Game.txt: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{lang|noborder=true|Game.txt|$title=game.txt}}
{{lang|noborder=true|Game.txt|$title=<code>game.txt</code>}}
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]]{{clarify}} that names the interface.


For an HL2MP mod, the default content is:
For an HL2MP mod, the default content is:
Line 7: Line 7:


[[Category:Source]]
[[Category:Source]]
[[Category:Files]]
[[Category:Modding]]
[[Category:Modding]]


{{stub}}
{{stub}}
{{orphan}}
{{orphan}}

Revision as of 12:22, 14 June 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[Clarify] 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.