game_end

From Valve Developer Community
Jump to navigation Jump to search
C++ Class hierarchy
CGameEnd
↳CRulePointEntity
↳CRuleEntity
↳CBaseEntity
C++ maprules.cpp
Game end.png

game_end is a logical entity available in all Source Source games. It ends a multiplayer game, and in at least some games[Which?], loads the next queued map. It does not work in single-player games. The Valve single-player maps end the game with a point_clientcommand passing startupmenu force to the console.

Note.pngNote: The properties of this entity apply to the whole map. Multiple instances of this entity within a map may cause errors.
Icon-Bug.pngBug:In Black Mesa Black Mesa this entity is broken. All it does is show scoreboard (that you are able to hide with TAB) and disable return from weapon recoil. Map doesn't change/restart, players still available to play and kill each other. Use game_round_win instead.

Keyvalues

Name (targetname) <string>
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also: Generic Keyvalues, Inputs and Outputs available to all entities
Master (master) <targetname> Obsolete
Deprecated.
Legacy support: The name of a master entity. If the master hasn't been activated, this entity will not activate.

Inputs

EndGame <void>
End the multiplayer game.
Use <void> !FGD Obsolete
Deprecated.
Like EndGame, but only if ends the game if the master is activated.

See also