Game round win: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎Keyvalues: clean up, replaced: {{ModernBug → {{bug)
No edit summary
Line 1: Line 1:
{{lang|Game round win}}
{{lang|Game round win}}
{{tf2 point|game_round_win}} 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).
[[File:game_round_win.png|frame|right|Entity icon by [[Ficool2]].]]
{{This is a|name=game_round_win|e0|game=Team Fortress 2}} It is also avaible in {{bms|4}}. In {{tf2|4}} 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|4}} triggers victory for either of the teams; if in deathmatch, regular end of round is triggered.


==Keyvalues==
==Keyvalues==
{{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|tf2=1}}
{{KV TeamNum|}}
{{KV BaseEntity|base=1}}
{{KV BaseEntity|base=1}}


==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|}}
{{I BaseEntity|base=1}}
{{I BaseEntity|base=1}}



Revision as of 09:27, 11 January 2024

English (en)Translate (Translate)
Entity icon by Ficool2.

game_round_win is an e0 available in Team Fortress 2 Team Fortress 2. It is also avaible in Black Mesa Black Mesa. In Team Fortress 2 Team Fortress 2 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 Black Mesa Black Mesa triggers victory for either of the teams; if in deathmatch, regular end of round is triggered.

Keyvalues

Force map reset (force_map_reset) <boolean>
Force the map to reset during the force respawn after the round is over.
Icon-Bug.pngBug:If this is set to False and TeamNum is nonzero, the RoundWin input often causes crashes. It is best practice to have this set to True 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.pngNote:This overrides the setting in any team_control_point_master entity.
TeamNum:
Initial Team (TeamNum, or teamnumber Counter-Strike: Global Offensive) <choices>
Which Team the entity belongs / is assigned to on spawn
  • 0: None
  • 1: Spectator, Spectator/Halloween Souls Team Fortress 2
  • 2: RED Team Fortress 2, Survivors Left 4 Dead seriesLeft 4 Dead series, Terrorists Counter-Strike: Source Counter-Strike: Global Offensive, Marines (Team-based game modes only) Black Mesa
  • 3: BLU/Robots Team Fortress 2, Infected Left 4 Dead seriesLeft 4 Dead series, Counter-Terrorists Counter-Strike: Source Counter-Strike: Global Offensive, Scientists (Team-based game modes only) Black Mesa
  • 5: Halloween Bosses (only in Team Fortress 2) !FGD


Inputs

RoundWin
Tell the game rules the round is over.
SetTeam <integerRedirectInput/integer>
Changes the entity's team.


Outputs

OnRoundWin
Sent when the entity tells the game rules the round is over.