Game round win: Difference between revisions
Jump to navigation
Jump to search

m (fix typo (avaible -> available near top of page)) |
(-added class hierarchy, cleanup) |
||
Line 1: | Line 1: | ||
{{ | {{LanguageBar}} | ||
{{CD|CTeamplayRoundWin|nolink=1|file1=entity_roundwin.cpp}} | |||
[[File:game_round_win.png|frame|right|Entity icon by [https://developer.valvesoftware.com/wiki/Category:Ficool2_tools ficool2].]] | [[File:game_round_win.png|frame|right|Entity icon by [https://developer.valvesoftware.com/wiki/Category:Ficool2_tools ficool2].]] | ||
{{this is a|point entity|name=game_round_win|game=Team Fortress 2}} It is also available in {{bms|4}}. In {{tf2 | {{this is a|point entity|name=game_round_win|game=Team Fortress 2}} It is also available in {{bms|4}}. In {{tf2}} it tells the game rules that the round either has been won (if a team is assigned) or should enter Sudden Death mode (if no team is assigned). In {{bms}} triggers victory for either of the teams; if in deathmatch, regular end of round is triggered. | ||
==Keyvalues== | == Keyvalues == | ||
{{KV Targetname}} | |||
{{KV|Force map reset|intn=force_map_reset|boolean|Force the map to reset during the force respawn after the round is over. {{bug|If this is set to <code>False</code> and <code>TeamNum</code> is nonzero, the <code>RoundWin</code> input often causes crashes. It is best practice to have this set to <code>True</code> unless you have a reason not to.}} | {{KV|Force map reset|intn=force_map_reset|boolean|Force the map to reset during the force respawn after the round is over. {{bug|If this is set to <code>False</code> and <code>TeamNum</code> is nonzero, the <code>RoundWin</code> input often causes crashes. It is best practice to have this set to <code>True</code> unless you have a reason not to.}} | ||
{{KV|Switch teams on map win?|intn=switch_teams|boolean|Switch the teams when the game is going to be reset. {{note|This overrides the setting in any {{ent|team_control_point_master}} entity.}}}}}} | {{KV|Switch teams on map win?|intn=switch_teams|boolean|Switch the teams when the game is going to be reset. {{note|This overrides the setting in any {{ent|team_control_point_master}} entity.}}}}}} | ||
{{KV TeamNum | {{KV TeamNum}} | ||
==Inputs== | ==Inputs== | ||
{{IO|RoundWin|Tell the game rules the round is over.}} | {{IO|RoundWin|Tell the game rules the round is over.}} | ||
{{I TFTeam | {{I TFTeam}} | ||
==Outputs== | ==Outputs== | ||
{{IO|OnRoundWin|Sent when the entity tells the game rules the round is over.}} | {{IO|OnRoundWin|Sent when the entity tells the game rules the round is over.}} | ||
Revision as of 13:54, 25 September 2024


![]() |
---|
CTeamplayRoundWin |
![]() |

Entity icon by ficool2.
game_round_win
is a point entity available in Team Fortress 2. It is also available in
Black Mesa. In
it tells the game rules that the round either has been won (if a team is assigned) or should enter Sudden Death mode (if no team is assigned). In
triggers victory for either of the teams; if in deathmatch, regular end of round is triggered.
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Force map reset (force_map_reset) <boolean>
- Force the map to reset during the force respawn after the round is over.
Bug:If this is set to
False
andTeamNum
is nonzero, theRoundWin
input often causes crashes. It is best practice to have this set toTrue
unless you have a reason not to. [todo tested in ?]
- Switch teams on map win? (switch_teams) <boolean>
- Switch the teams when the game is going to be reset.
Note:This overrides the setting in any team_control_point_master entity.
TeamNum:
- Initial Team (TeamNum, or teamnumber
) <choices>
- Which Team the entity belongs / is assigned to on spawn
- 0: None
- 1: Spectator, Spectator/Halloween Souls
- 2: RED
, Survivors
, Terrorists
, Marines (Team-based game modes only)
- 3: BLU/Robots
, Infected
, Counter-Terrorists
, Scientists (Team-based game modes only)
- 5: Halloween Bosses (only in
) !FGD
Inputs
- RoundWin
- Tell the game rules the round is over.
Outputs
- OnRoundWin
- Sent when the entity tells the game rules the round is over.