dod_capture_area

From Valve Developer Community
Revision as of 17:36, 10 December 2025 by SirYodaJedi (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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

Note.pngNote:Other Keyvalues / Inputs / Outputs are same as CBaseTrigger.
Functionality of KVs and I/O not mentioned here is not guaranteed.
Name (targetname) <string>
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).
Icon-Bug.pngBug:Set to false when spawned, overriding this KV. Use the Disable input instead.
Can Allies Cap? (area_allies_cancap) <boolean>
Can Axis Cap? (area_axis_cancap) <boolean>
Select if Allied or Axis players can capture the flag, respectively.
Number of Allies to cap (area_allies_numcap) <integer>
Number of Axis to cap (area_axis_numcap) <integer>
The number of Allied or Axis players needed to capture the flag, respectively.
Icon-Bug.pngBug:Client game crash if you set above 5. The limit is supposed to be 9.
Time to cap (sec) (area_time_to_cap) <float>
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_axis_numcap, and area_time_to_cap KVs. Use this if they are changed via AddOutput.

EnableDisable:

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

Outputs

Note.pngNote:The !activator and !caller for all of the following outputs is this entity.
OnAlliesStartCap / OnAxisStartCap
Sent when Allies or Axis start capture, respectively.
OnAlliesBreakCap / OnAxisBreakCap
Sent when Allies or Axis break capture, respectively.
OnAlliesEndCap / OnAxisEndCap
Sent when Allies or Axis end capture, respectively.
OnStartCap
Sent when either team starts capture.
OnBreakCap
Sent when either team break capture.
OnEndCap
Sent when either team end capture.

Console variables

Cvar/Command Parameters or default value Descriptor Effect
dod_simulatemultiplecappers 1 string Cheat. The number of players touching the capture area is multiplied by this value.