Results 1 to 4 of 4

Thread: [COD2] Rcon password entry in ingame menu

  1. #1
    ... connecting
    Join Date
    Jun 2014
    Posts
    9
    Thanks
    2
    Thanked 0 Times in 0 Posts

    [COD2] Rcon password entry in ingame menu

    Hello all.

    It is your pal, happy polak, cropek

    I continue making my in-game rcontool for CoD2 v1.3.
    Another thing I'd like to include in it is a rcon password entry in ingame menu.

    I decided the easier way was just to create/copy a popmenu from password.menu.
    The most important part of this is:

    Code:
    	itemDef {
    		name			passwordEntry
    		group			grpControls
    		TYPE			4
    		text			" "
    		dvar			"password"
    		rect			30 75 179 12
    		maxchars		12
    		maxpaintchars		12
    		textalign		ITEM_ALIGN_RIGHT
    		textalignx		0
    		textaligny		10
    		textfont		UI_FONT_NORMAL
    		textscale		.25 		 
    		forecolor		OPTIONS_CONTROL_FORECOLOR
    		style			WINDOW_STYLE_FILLED
    		backcolor		1 1 1 .3
    		visible			1
    		mouseenter		{ show keyBindStatus; play "mouse_over"; }
    		mouseexit		{ hide keyBindStatus }
    	}
    Am I supposed to make a new dvar? How to do this?

  2. #2
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    What password? Would you like to alter it in a gsc file? Or just the password for joining a server?

  3. #3
    ... connecting
    Join Date
    Jun 2014
    Posts
    9
    Thanks
    2
    Thanked 0 Times in 0 Posts
    rcon password entry in ingame menu.
    I think that modification gsc file is inevitable as I need to create a new dvar for "rcon login" command :/ I absolutely have no idea how to do this...

  4. #4
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by cropek View Post
    I think that modification gsc file is inevitable as I need to create a new dvar for "rcon login" command :/ I absolutely have no idea how to do this...
    Rcon login is a game engine dvar. You cannot redefine game engine dvars. If you try, then you should expect failure because it wont work. Your new custom dvar will have no functionality in terms of engine functions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •