Game round end: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (removed {{DISPLAYTITLE}}, covered by the csgo point template)
 
(9 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{csgo point|game_round_end}}  
{{CD|CGameRoundEnd|base=CRulePointEntity|file1=maprules.cpp}}
 
{{This is a|point entity|game=Counter-Strike: Global Offensive|name=game_round_end|sprite=game_end.png}} An entity that ends a multiplayer game round.
==Entity description==
{{Map properties note}}
[[File:game_end.png|left|link=]]An entity that ends a multiplayer game round.
{{map_properties}}
 
{{clr}}


__NOTOC__
== Keyvalues ==
== Keyvalues ==
{{KV Targetname}}
{{KV Targetname}}


== Inputs ==
== Inputs ==
{{I Targetname}}
{{I|EndRound_Draw|End the round in a draw after x seconds. Parameter is how long until the next round starts (normal time is 7).|param=float}}
{{IO|EndRound_Draw|End the round in a draw after x seconds.|param=float}}
{{I|EndRound_TerroristsWin|End the round, terrorists win after x seconds. Parameter is how long until the next round starts.|param=float}}
{{IO|EndRound_TerroristsWin|End the round, terrorists win after x seconds.|param=float}}
{{I|EndRound_CounterTerroristsWin|End the round, CTs win after x seconds. Parameter is how long until the next round starts.|param=float}}
{{IO|EndRound_CounterTerroristsWin|End the round, CTs win after x seconds.|param=float}}


== Outputs ==
== Outputs ==
{{O Targetname}}
{{O|OnRoundEnded|activator = !caller = NULL|caller=hide|Fires when the round ends regardless of it ended via input to this entity or not.|param=void}}
{{IO|OnRoundEnded|Fires when the round ends regardless of it ended via input to this entity or not.|param=void}}
 
== See Also ==
* {{ent|game_end}}
* {{ent|info_map_parameters/Counter-Strike series|alt=info_map_parameters}} - Can also be used to end a round
* {{tf2}} {{ent|game_round_win}} - analogous entity

Latest revision as of 09:37, 12 May 2025

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

game_round_end is a point entity available in Counter-Strike: Global Offensive Counter-Strike: Global Offensive. An entity that ends a multiplayer game round.

Note.pngNote:The properties of this entity apply to the whole map. Multiple instances of this entity within a map may cause errors.


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

Inputs

EndRound_Draw <floatRedirectInput/float>
End the round in a draw after x seconds. Parameter is how long until the next round starts (normal time is 7).
EndRound_TerroristsWin <floatRedirectInput/float>
End the round, terrorists win after x seconds. Parameter is how long until the next round starts.
EndRound_CounterTerroristsWin <floatRedirectInput/float>
End the round, CTs win after x seconds. Parameter is how long until the next round starts.

Outputs

OnRoundEnded <void>
!activator = !caller = NULL
Fires when the round ends regardless of it ended via input to this entity or not.

See Also