Game round win: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
m (Robot: fixing template case.)
Line 25: Line 25:


==Outputs==
==Outputs==
* {{o targetname}}
* {{O Targetname}}
* '''OnRoundWin'''
* '''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]]
[[Category:Team Fortress 2 Entities]]

Revision as of 20:11, 19 January 2009

Template:Wrongtitle

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).

Availability

This point entity is exclusive to Team Fortress 2.

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

  • TeamNum:
Initial Team (TeamNum) <choices>
Which Team the entity belongs / is assigned to on spawn
  • 0: None
  • 1: Spectator/Halloween Souls Team Fortress 2
  • 2: RED Team Fortress 2
  • 3: BLU/Robots Team Fortress 2
  • 5: Halloween Bosses (only in Team Fortress 2) !FGD


  • force_map_reset
<boolean> Force the map to reset during the force respawn after the round is over
  • switch_teams
<boolean> Switch the teams when the game is going to be reset.

Inputs

  • SetTeam
<integer> Changes the entity's team (this is used to determine which team has won the round (0 = none, 2 = red, 3 = blu).
  • RoundWin
Tell the game rules the round is over.

Outputs

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