Recreating GameUI

From Valve Developer Community
Revision as of 02:02, 5 January 2006 by Ts2do (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This article will focus on recreating the GameUI so it's easier to modify as well as control the GameMenu.

Note:There is no code posted for the below changes, so following the directions will not show expected results

Base Modifications

  • Make resource\GameMenu.res so it's empty or has "GameMenu"{} in it

Singleplayer Chapters

The custom chapter system has been made so it uses the list in resource\ChapterList.res. Here's an example of the file:

"ChapterList"
{
	"1" "chapter1map1"
	"2" "chapter2map1"
	"3" "chapter3map1"
}

Create Multiplayer Game Dialog

The custom create MP game dialog has been made so it uses the ConVar list in cfg\server_settings_default.txt.

"ServerOptions"
{
	"hostname"
	{
		"label"		"#Valve_Hostname"
		"type"		"string"
		"initial"	"Hostname"
	}

	"maxplayers"
	{
		"label"		"#Valve_Max_Players"
		"type"		"integer"
		"minimum"	"2"
		"maximum"	"16"
		"initial"	"16"
	}

	"sv_password"
	{
		"label"		"#Valve_Server_Password"
		"type"		"string"
		"initial"	""
	}

	"mp_fraglimit"
	{
		"Frag Limit"
		"type"		"integer"
		"minimum"	"0"
		"initial"	"0"
	}

	"mp_timelimit"
	{
		"label"		"Time Limit (Min.)"
		"type"		"float"
		"minimum"	"0"
		"initial"	"0"
	}

	"mp_teamplay"
	{
		"Frag Limit"
		"type"		"boolean"
		"initial"	"0"
	}

	"mp_weaponstay"
	{
		"label"		"Weapons Stay"
		"type"		"boolean"
		"initial"	"0"
	}

	"mp_footsteps"
	{
		"label"		"#Valve_Footsteps"
		"type"		"boolean"
		"initial"	"1"
	}

	"mp_flashlight"
	{
		"label"		"Flashlight"
		"type"		"boolean"
		"initial"	"0"
	}

	"mp_forcerespawn"
	{
		"label"		"Force Respawn"
		"type"		"boolean"
		"initial"	"0"
	}
}