Dod control point master: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Added EntityTabs Template. Made use of the IO & FL Templates.)
Line 1: Line 1:
{{dods point|dod_control_point_master}}
{{EntityTabs|dod_control_point|goldsrc = 1|source = 1|main = source}}
{{entity|dod_control_point|type=point|game=Day of Defeat: Source}}


==Entity Description==
This entity controls and checks the status of the control points on the map to determine a winner. Also allows for a timed map to be set up that allows for one team or the other to win after a certain amount of time. This will even show a timer countdown box in the upper left corner of the HUD.
This entity controls and checks the status of the control points on the map to determine a winner. Also allows for a timed map to be set up that allows for one team or the other to win after a certain amount of time. This will even show a timer countdown box in the upper left corner of the HUD.


==Keyvalues==
==Key Values==
* {{KV EnableDisable}}
{{KV EnableDisable}}
* '''point_give_delay_time'''
{{KV|point_give_delay_time|int|Time between point gives ( seconds ).}}
: <integer> Time between point gives ( seconds )
{{KV|cpm_group|string|Group Name.}}
 
{{KV|cpm_use_timer|boolean|Use round timer?}}
* '''cpm_group'''
{{KV|cpm_timer_team|choices|Which team wins when timer expires.}}
: <string> Group Name
 
* '''cpm_use_timer'''
: {{boolean}} Use round timer?
 
* '''cpm_timer_team'''
: <choices> Which team wins when timer expires
:{| class=standard-table
:{| class=standard-table
! Literal Value || Description
! Literal Value || Description
Line 28: Line 21:


==Inputs ==
==Inputs ==
* {{I EnableDisable}}
{{I EnableDisable}}
* '''RoundInit'''
{{IO|RoundInit|Re initializes the round.}}
: Re initializes the round
{{IO|RoundStart|Restarts the round.}}
 
{{IO|SetTeam <choices>|Used for the filtering of this entity.}}
* '''RoundStart'''
: Restarts the round
 
* '''SetTeam <choices>'''
: Used for the filtering of this entity
:{| class=standard-table
:{| class=standard-table
! Literal Value || Description
! Literal Value || Description
Line 48: Line 36:


==Outputs==
==Outputs==
* '''OnAlliesWin'''
{{IO|OnAlliesWin|Fires when the allies win... used for playing victory songs if you wish.}}
: trigger when the allies win... used for playing victory songs if you wish.
{{IO|OnAxisWin|Fires when the axis win... used for playing victory songs if you wish.}}
 
* '''OnAxisWin'''
: trigger when the axis win... used for playing victory songs if you wish.

Revision as of 23:23, 17 August 2023

Template:EntityTabs Template:Entity

This entity controls and checks the status of the control points on the map to determine a winner. Also allows for a timed map to be set up that allows for one team or the other to win after a certain amount of time. This will even show a timer countdown box in the upper left corner of the HUD.

Key Values

Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).
point_give_delay_time ([todo internal name (i)]) <integer>
Time between point gives ( seconds ).
cpm_group ([todo internal name (i)]) <string>
Group Name.
cpm_use_timer ([todo internal name (i)]) <boolean>
Use round timer?
cpm_timer_team ([todo internal name (i)]) <choices>
Which team wins when timer expires.
Literal Value Description
0 No
2 Allies
3 Axis

Inputs

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.
RoundInit
Re initializes the round.
RoundStart
Restarts the round.
SetTeam <choices>
Used for the filtering of this entity.
Literal Value Description
0 No
2 Allies
3 Axis

Outputs

OnAlliesWin
Fires when the allies win... used for playing victory songs if you wish.
OnAxisWin
Fires when the axis win... used for playing victory songs if you wish.