Game.txt: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (spam revert)
 
(18 intermediate revisions by 11 users not shown)
Line 1: Line 1:
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.
{{LanguageBar|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]]{{clarify}} that 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:Source]]
[[Category:Plain text files]]
[[Category:Modding]]
{{stub}}
{{orphan}}

Latest revision as of 16:01, 18 July 2025

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.