Tf logic domination: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
 
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{tf2c point|tf_logic_domination}}
{{this is a|logical entity|game=Team Fortress 2 Classic|name=tf_logic_domination}}


== Entity description ==
This entity enables the Domination game mode and its HUD.
This entity enables the Domination game mode and its HUD.


==Keyvalues==
== Keyvalues ==
{{KV Targetname}}
{{KV|Point Limit (point_limit)|integer|Amount of points required to win a Domination round.}}
{{KV|Point Limit (point_limit)|integer|Amount of points required to win a Domination round.}}
{{KV|Win on Point Limit? (win_on_limit)|boolean|First team to reach point limit wins immediately.}}
{{KV|Win on Point Limit? (win_on_limit)|boolean|First team to reach point limit wins immediately.}}
{{KV|Kills award points? (kills_give_points)|boolean|Kills award points to the killers team.}}
{{KV|Kills award points? (kills_give_points)|boolean|Kills award points to the killers team.}}
{{KV BaseEntity|base=1}}
 
==Inputs==
== Inputs ==
{{IO|AddRedPoints|Add to RED team Domination points (can be a negative number).}}
{{I|AddRedPoints|Add to RED team Domination points (can be a negative number).}}
{{IO|AddBluePoints|Add to BLU team Domination points (can be a negative number).}}
{{I|AddBluePoints|Add to BLU team Domination points (can be a negative number).}}
{{IO|AddGreenPoints|Add to GRN team Domination points (can be a negative number).}}
{{I|AddGreenPoints|Add to GRN team Domination points (can be a negative number).}}
{{IO|AddYellowPoints|Add to YLW team Domination points (can be a negative number).}}
{{I|AddYellowPoints|Add to YLW team Domination points (can be a negative number).}}
{{IO|SetRedPoints|Set the RED team Domination points.}}
{{I|SetRedPoints|Set the RED team Domination points.}}
{{Bug|As of 2.0.3, this currently behaves identically to <code>AddRedPoints</code>.}}
{{Bug*|As of 2.0.3, this currently behaves identically to <code>AddRedPoints</code>.}}
{{IO|SetBluePoints|Set BLU team Domination points.}}
{{I|SetBluePoints|Set BLU team Domination points.}}
{{Bug|As of 2.0.3, this currently behaves identically to <code>AddBluePoints</code>.}}
{{Bug*|As of 2.0.3, this currently behaves identically to <code>AddBluePoints</code>.}}
{{IO|SetGreenPoints|Set GRN team Domination points.}}
{{I|SetGreenPoints|Set GRN team Domination points.}}
{{IO|SetYellowPoints|Set YLW team Domination points.}}
{{I|SetYellowPoints|Set YLW team Domination points.}}
{{I BaseEntity|base=1}}
 
==Outputs==
== Outputs ==
{{IO|OnPointLimitAny|Sent when a team hits the point limit.}}
{{O|OnPointLimitAny|Sent when a team hits the point limit.}}
{{IO|OnPointLimitRed|Sent when a team hits the point limit.}}
{{O|OnPointLimitRed|Sent when a team hits the point limit.}}
{{IO|OnPointLimitBlue|Sent when a team hits the point limit.}}
{{O|OnPointLimitBlue|Sent when a team hits the point limit.}}
{{IO|OnPointLimitGreen|Sent when a team hits the point limit.}}
{{O|OnPointLimitGreen|Sent when a team hits the point limit.}}
{{IO|OnPointLimitYellow|Sent when a team hits the point limit.}}
{{O|OnPointLimitYellow|Sent when a team hits the point limit.}}
{{O BaseEntity|base=1}}

Latest revision as of 11:24, 23 May 2025

tf_logic_domination is a logical entity available in Team Fortress 2 Classic Team Fortress 2 Classic.

This entity enables the Domination game mode and its HUD.

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

Point Limit (point_limit) ([todo internal name (i)]) <integer>
Amount of points required to win a Domination round.
Win on Point Limit? (win_on_limit) ([todo internal name (i)]) <boolean>
First team to reach point limit wins immediately.
Kills award points? (kills_give_points) ([todo internal name (i)]) <boolean>
Kills award points to the killers team.

Inputs

AddRedPoints
Add to RED team Domination points (can be a negative number).
AddBluePoints
Add to BLU team Domination points (can be a negative number).
AddGreenPoints
Add to GRN team Domination points (can be a negative number).
AddYellowPoints
Add to YLW team Domination points (can be a negative number).
SetRedPoints
Set the RED team Domination points.
Icon-Bug.pngBug*:As of 2.0.3, this currently behaves identically to AddRedPoints.
SetBluePoints
Set BLU team Domination points.
Icon-Bug.pngBug*:As of 2.0.3, this currently behaves identically to AddBluePoints.
SetGreenPoints
Set GRN team Domination points.
SetYellowPoints
Set YLW team Domination points.

Outputs

OnPointLimitAny
Sent when a team hits the point limit.
OnPointLimitRed
Sent when a team hits the point limit.
OnPointLimitBlue
Sent when a team hits the point limit.
OnPointLimitGreen
Sent when a team hits the point limit.
OnPointLimitYellow
Sent when a team hits the point limit.