nmrih_game_state

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)

nmrih_game_state is a point entity available in No More Room in Hell No More Room in Hell.

Entity Description

The nmrih_game_state is a point entity that controls the overall game state, managing round restarts, freezing NPCs and Survivors, and game overs.

KeyValues

Name (targetname) <string>
The name that other entities refer to this entity by.
Entity Scripts (vscripts) <string>
Name(s) of script files that are executed after all entities have spawned.
Script think function (thinkfunction) <string>
Name of a function in this entity's script scope which will be called automatically.
Origin (X Y Z) (origin) <origin>
The position of this entity's center in the world. Rotating entities typically rotate around their origin.

Flags

Disable Periodic Spawning : [1]
Disables the periodic spawning of zombies.

Inputs

EndRound
Ends the round (loss state).
ExtractPlayer
Extracts a player (activator of the I/O chain).
ExtractAllPlayers
Extracts all players (win state).
RespawnPlayer
Respawns a player (activator of the I/O chain).
RespawnAllPlayers
Respawns all players.
RespawnDeadPlayers
Respawns dead players.
NukePlayers
Kills all players, then ends the round (loss state).
FreezeAllPlayers
Freezes all players.
UnfreezeAllPlayers
Unfreezes all players.
FreezeAllNPCs
Freezes all NPCs.
UnfreezeAllNPCs
Unfreezes all NPCs.
RestartRound
Restarts round immediately.

Outputs

OnRoundEnd
Fires on round end.
OnRoundRestart
Fires on round restart.
PreRoundRestart
Fires on pre-round restart.
OnUser1 to OnUser4
Fired in response to the FireUser inputs.