Dod control point master: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Fix KVs and I/Os)
Line 5: Line 5:


==Key Values==
==Key Values==
{{KV EnableDisable}}
{{KV|Use round timer?|intn=cpm_use_timer|boolean|}}
{{KV|point_give_delay_time|int|Time between point gives ( seconds ).}}
{{KV|Round timer length in seconds|intn=cpm_timer_length|int|}}
{{KV|cpm_group|string|Group Name.}}
{{KV|Which team wins when timer expires|intn=cpm_timer_team|choices|}}
{{KV|cpm_use_timer|boolean|Use round timer?}}
{{KV|cpm_timer_team|choices|Which team wins when timer expires.}}
:{| class=standard-table
:{| class=standard-table
! Literal Value || Description
! Literal Value || Description
Line 19: Line 17:
| 3 || Axis
| 3 || Axis
|}
|}
{{KV EnableDisable}}


==Inputs ==
==Inputs ==
{{I EnableDisable}}
{{I EnableDisable}}
{{IO|RoundInit|Re initializes the round.}}
{{IO|AddTimerSeconds|param=int|Add seconds to the duration of the round timer}}
{{IO|RoundStart|Restarts the round.}}
{{IO|RoundInit|Re initializes the round. {{!fgd}}}}
{{IO|SetTeam <choices>|Used for the filtering of this entity.}}
{{IO|RoundStart|Restarts the round. {{!fgd}}}}
:{| class=standard-table
! Literal Value || Description
|-
| 0 || No
|-
| 2 || Allies
|-
| 3 || Axis
|}


==Outputs==
==Outputs==
{{IO|OnAlliesWin|Fires when the Allies win.}}
{{IO|OnAlliesWin|Fires when the Allies win.}}
{{IO|OnAxisWin|Fires when the Axis win.}}
{{IO|OnAxisWin|Fires when the Axis win.}}
{{Note|Should not be used for victory music, as it will be overlaid over the vanilla music. The default [[soundscripts]] should be overridden using {{file|maps/<mapname>_sounds|txt}} instead.}}
:{{Note|Should not be used for victory music, as it will be overlaid over the vanilla music. The default [[soundscripts]] should be overridden using {{file|maps/<mapname>_sounds|txt}} instead.}}

Revision as of 20:44, 14 May 2024

dod_control_point_master is a point available in Day of Defeat: Source Day of Defeat: Source.

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

Use round timer? (cpm_use_timer) <boolean>
Round timer length in seconds (cpm_timer_length) <integer>
Which team wins when timer expires (cpm_timer_team) <choices>
Literal Value Description
0 No
2 Allies
3 Axis
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).

Inputs

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.
AddTimerSeconds <integerRedirectInput/integer>
Add seconds to the duration of the round timer
RoundInit
Re initializes the round. !FGD
RoundStart
Restarts the round. !FGD

Outputs

OnAlliesWin
Fires when the Allies win.
OnAxisWin
Fires when the Axis win.
Note.pngNote:Should not be used for victory music, as it will be overlaid over the vanilla music. The default soundscripts should be overridden using 🖿maps/<mapname>_sounds.txt instead.