Game round win: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Updated with data from tf-abs.fgd)
Line 1: Line 1:
{{wrongtitle|title=game_round_win}}
{{tf2 point|game_round_win}}
{{Tf2 point}}


==Entity Description==
==Entity description==
Tells the game rules that the round has either been won (if a team is assigned) or enter Sudden Death mode (if no team is assigned).
Tells the game rules that the round has either been won (if a team is assigned) or enter Sudden Death mode (if no team is assigned).


==Keyvalues==
==Keyvalues==
* {{KV Targetname}}
{{KV Targetname}}
* {{KV TFTeam}}
{{KV|Team|choices|Setting this to none will result in Sudden Death or a Stalemate, depending on the server's choice.}}
* '''force_map_reset'''
:* 0 : None
: <[[boolean]]> Force the map to reset during the force respawn after the round is over
:* 2 : Red
* '''switch_teams'''
:* 3 : Blue
: <[[boolean]]> Switch the teams when the game is going to be reset.
{{KV|Force map reset|boolean|Force the map to reset during the force respawn after the round is over.}}
<!--==Flags==
{{KV|Switch teams on map win?|boolean|Switch the teams when the game is going to be reset.}}
This entity doesn't have any flags.
-->


==Inputs==
==Inputs==
* {{I Targetname}}
{{I Targetname}}
* '''SetTeam'''
{{IO|SetTeam|Changes the entity's team (this is used to determine which team has won the round (0 {{=}} none).|param=integer}}
: <integer> Changes the entity's team (this is used to determine which team has won the round (0 = none, 2 = red, 3 = blu).
{{IO|RoundWin|Tell the game rules the round is over.}}
* '''RoundWin'''
: Tell the game rules the round is over.


==Outputs==
==Outputs==
* {{O Targetname}}
{{O Targetname}}
* '''OnRoundWin'''
{{IO|OnRoundWin|Sent when the entity tells the game rules the round is over.}}
: Sent when the entity tells the game rules the round is over.
 
[[Category:Team Fortress 2 Entities]]

Revision as of 01:28, 10 May 2011

Team Fortress 2 game_round_win is a point entity available in Team Fortress 2 Team Fortress 2.

Entity description

Tells the game rules that the round has either been won (if a team is assigned) or enter Sudden Death mode (if no team is assigned).

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

Team ([todo internal name (i)]) <choices>
Setting this to none will result in Sudden Death or a Stalemate, depending on the server's choice.
  • 0 : None
  • 2 : Red
  • 3 : Blue
Force map reset ([todo internal name (i)]) <boolean>
Force the map to reset during the force respawn after the round is over.
Switch teams on map win? ([todo internal name (i)]) <boolean>
Switch the teams when the game is going to be reset.

Inputs

SetTeam <integerRedirectInput/integer>
Changes the entity's team (this is used to determine which team has won the round (0 = none).
RoundWin
Tell the game rules the round is over.

Outputs

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