Game end: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(removed the {{PAGENAME}} only because that was an exceedingly dumb use of it)
(-added class hierarchy, cleanup)
Line 1: Line 1:
{{base point|game_end}}  
{{CD|CGameEnd|file1=maprules.cpp}}
 
[[File:game_end.png|left|link=]]
==Entity description==
{{entity|type=e0|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 [[point_clientcommand]] passing <code>startupmenu force</code> to the console.
[[File:game_end.png|left|link=]]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 <code>startupmenu force</code> to the console.
{{map_properties}}
{{map_properties}}
{{code class|CGameEnd|maprules.cpp}}
{{clr}}


== Keyvalues ==
== Keyvalues ==
{{KV|Master (Obsolete)|string|Legacy support: The name of a master entity. If the master hasn't been activated, this entity will not activate.}}
{{KV Targetname}}
{{KV Targetname}}
{{KV|Master (obsolete)|intn=master|string|Legacy support: The name of a master entity. If the master hasn't been activated, this entity will not activate.}}


== Inputs ==
== Inputs ==
{{IO|EndGame|End the multiplayer game.}}
{{IO|EndGame|End the multiplayer game.}}
{{I Targetname}}
== Outputs ==
{{O Targetname}}

Revision as of 19:24, 26 August 2023

C++ Class hierarchy
CGameEnd
CRulePointEntity
CRuleEntity
CBaseEntity
C++ maprules.cpp
Game end.png

Template:Entity 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. Template:Map properties

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 (obsolete) (master) <string>
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.