This article's documentation is for anything that uses the Source engine. Click here for more information.

Game end: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Undo revision 476906 by SirYodaJedi (talk))
Tag: Undo
 
(24 intermediate revisions by 13 users not shown)
Line 1: Line 1:
{{wrongtitle|title=game_end}}
{{tabsBar|main=gs|base=game_end}}
{{base_point}}
{{CD|CGameEnd|file1=maprules.cpp}}
[[File:game_end.png|left|link=]]
{{This is a|logical entity|name=game_end}} It ends a multiplayer game. It does not work in single-player games. The Valve single-player maps end the game with a {{ent|point_clientcommand}} passing <code>startupmenu force</code> to the console.
{{Map properties note}}
{{bug|hidetested=1|In {{bms|4}} this entity is broken. The only what it does - show score board (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 {{ent|game_round_win}} instead.}}


== Keyvalues ==
{{KV Targetname}}
{{KV Master}}


== Inputs ==
{{I|EndGame|End the multiplayer game.}}


==Entity Description==
== See also ==
[[Image:Game end.png|left]]An entity that ends a multiplayer game. Does not work in single-player games.
* {{tf2}} {{ent|game_round_win}}
* {{map_properties}}
* {{csgo}} {{ent|game_round_end}}
{{clr}}
 
 
{{in code|class=class_c_game_end.html CGameEnd|file=maprules_8cpp-source.html maprules.cpp}}
 
==Keyvalues==
*{{kv targetname}}
*'''master'''
:<string> Legacy support: The name of a master entity. If the master hasn't been activated, this entity will not activate.
 
==Inputs==
*{{i targetname}}
*'''EndGame'''
:End the multiplayer game.
 
==Outputs==
*{{o targetname}}

Latest revision as of 20:28, 12 May 2025

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. 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. The only what it does - show score board (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>[ Edit ]
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
End the multiplayer game.

See also