Game end: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Explain a way to end SP games.)
(removed the {{PAGENAME}} only because that was an exceedingly dumb use of it)
Line 2: Line 2:


==Entity description==
==Entity description==
[[File:{{PAGENAME}}.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.
[[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}}



Revision as of 00:06, 1 August 2018

Template:Base point

Entity description

Game end.png

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

C++ In code, it is represented by theCGameEndclass, defined in themaprules.cppfile.

Keyvalues

Master (Obsolete) ([todo internal name (i)]) <string>
Legacy support: The name of a master entity. If the master hasn't been activated, this entity will not activate.
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

Inputs

EndGame
End the multiplayer game.


Outputs