Es getgame
From EventScripts Community Encyclopedia
|
[edit] OverviewSyntax: Note: Command parameters are described inside the
< and > characters. Optional parameters are contained within [ and ] characters.Variation of this command that doesn't expand variables: es_xgetgame [edit] DescriptionStores the name of the current Source game that loaded EventScripts [edit] Parameters
[edit] Exampleses_setinfo game 0 es_getgame game if ("Counter-Strike" in server_var(game)) then es_setinfo script_gametype "cstrike" if ("Day of Defeat" in server_var(game)) then es_setinfo script_gametype "dod" if ("Deathmatch" in server_var(game)) then es_setinfo script_gametype "hl2mp" if ("Team Fortress" in server_var(game)) then es_setinfo script_gametype "tf"
[edit] Notes(None)
[edit] See also(None) |
