Game.txt: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (updated language bar.)
No edit summary
Line 1: Line 1:
{{lang|noborder=true|Game.txt|$title=game.txt}}[[Category:Glossary]][[Category:Modding]]
{{lang|noborder=true|Game.txt|$title=game.txt}}
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.
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.


Line 5: Line 5:
  // Game specific definitions
  // Game specific definitions
  "$game" "HL2MP"
  "$game" "HL2MP"
[[Category:Source]]
[[Category:Modding]]
{{stub}}
{{orphan}}

Revision as of 08:38, 8 April 2023

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"

Stub

This article or section is a stub. You can help by expanding it.