Dod capture area: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎Outputs: all the DoD ents seem to use .FireOutput(this,this).)
Line 21: Line 21:


==Outputs==
==Outputs==
{{O|OnAlliesStartCap|Sent when Allies start capture.|}}
{{O|OnAlliesStartCap|ac-is-self=1|Sent when Allies start capture.|}}
{{O|OnAlliesBreakCap|Sent when Allies break capture.|}}
{{O|OnAlliesBreakCap|ac-is-self=1|Sent when Allies break capture.|}}
{{O|OnAlliesEndCap|Sent when Allies end capture.|}}
{{O|OnAlliesEndCap|ac-is-self=1|Sent when Allies end capture.|}}
{{O|OnAxisStartCap|Sent when Axis start capture.|}}
{{O|OnAxisStartCap|ac-is-self=1|Sent when Axis start capture.|}}
{{O|OnAxisBreakCap|Sent when Axis break capture.|}}
{{O|OnAxisBreakCap|ac-is-self=1|Sent when Axis break capture.|}}
{{O|OnAxisEndCap|Sent when Axis end capture.|}}
{{O|OnAxisEndCap|ac-is-self=1|Sent when Axis end capture.|}}
{{O|OnStartCap|Sent when either team starts capture.|}}
{{O|OnStartCap|ac-is-self=1|Sent when either team starts capture.|}}
{{O|OnBreakCap|Sent when either team break capture.|}}
{{O|OnBreakCap|ac-is-self=1|Sent when either team break capture.|}}
{{O|OnEndCap|Sent when either team end capture.|}}
{{O|OnEndCap|ac-is-self=1|Sent when either team end capture.|}}

Revision as of 11:21, 24 April 2025

C++ Class hierarchy
CAreaCapture
CBaseTrigger
CBaseToggle
CBaseEntity
C++ dod/dod_area_capture.cpp

dod_capture_area is a brush entity available in Day of Defeat: Source Day of Defeat: Source.

This brush entity represents the area where the player(s) must stand to start capturing the flag.

Key Values

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

Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).
Can Allies Cap? (area_allies_cancap) <boolean>
Select if Allies can capture the flag.
Can Axis Cap? (area_axis_cancap) <boolean>
Select if Axis can capture the flag.
Number of Allies to cap (area_allies_numcap) <integer>
The number of Allies needed to capture the flag.
Icon-Bug.pngBug:Client game crash if you set above 5. The limit is supposed to be 9.  [todo tested in ?]
Number of Axis to cap (area_axis_numcap) <integer>
The number of Axis needed to capture the flag.
Icon-Bug.pngBug:Client game crash if you set above 5. The limit is supposed to be 9.  [todo tested in ?]
Time to cap (sec) (area_time_to_cap) <integer>
Time to capture the flag, in seconds.
Name of the control point this area is linked to (area_cap_point) <targetname>
Name of the dod_control_point entity this area is linked to.

Inputs

RoundInit  !FGD
Re-parse the area_allies_numcap, area_allies_numcap, and area_time_to_cap KVs.

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.


Outputs

OnAlliesStartCap
!activator = !caller = this entity
Sent when Allies start capture.
OnAlliesBreakCap
!activator = !caller = this entity
Sent when Allies break capture.
OnAlliesEndCap
!activator = !caller = this entity
Sent when Allies end capture.
OnAxisStartCap
!activator = !caller = this entity
Sent when Axis start capture.
OnAxisBreakCap
!activator = !caller = this entity
Sent when Axis break capture.
OnAxisEndCap
!activator = !caller = this entity
Sent when Axis end capture.
OnStartCap
!activator = !caller = this entity
Sent when either team starts capture.
OnBreakCap
!activator = !caller = this entity
Sent when either team break capture.
OnEndCap
!activator = !caller = this entity
Sent when either team end capture.