Game.txt: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (updated language bar.)
Line 1: Line 1:
{{otherlang2
{{lang|noborder=true|Game.txt|$title=game.txt}}[[Category:Glossary]][[Category:Modding]]
|noborder=true
The [[game.txt]] file is located in the scripts directory. It defines the variable <code>$game</code>, which is later used in another script file that names the interface.
|es=Game.txt:es
}}
The '''game.txt''' file is located in the scripts directory. It defines the variable '''$game''' which is later used in another script file which names the interface.


For a HL2MP mod the default content is:
For an HL2MP mod, the default content is:
  // Game specific definitions
  // Game specific definitions
  "$game" "HL2MP"
  "$game" "HL2MP"
[[Category:Modding]]

Revision as of 18:33, 20 May 2022

English (en)Español (es)Translate (Translate)

The game.txt file is located in the scripts directory. It defines the variable $game, which is later used in another script file that names the interface.

For an HL2MP mod, the default content is:

// Game specific definitions
"$game"	"HL2MP"