info_doddetect

From Valve Developer Community
Jump to navigation Jump to search
Class hierarchy
CDODDetect
CBaseEntity
dod/dod_gamerules.h

info_doddetect is a logical entity available in Day of Defeat: Source Day of Defeat: Source.

It establishes the game rules on your map. This entity controls the respawn time for each team, and also tells whether each team is supposed to attack or defend on scenario maps (the voice that yells at the beginning of the round).

Icon-Bug.pngBug:This is supposed to be a preserved entity, but s_PreserveEnts looks for info_dod_detect instead.
Confirm:Is there a way to emulate preserving it? AddOutputing classname isn't safe, as the game specifically checks for entities with the info_doddetect classname when starting each round.

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).
Allies Respawn delay factor (detect_allies_respawnfactor) <float>
Respawn delay multiplier for the Allied team.
Axis Respawn delay factor (detect_axis_respawnfactor) <float>
Respawn delay multiplier for the Allied team.
Note.pngNote:Regardless of what respawn factor is used, the respawn delay will not go below 5 seconds or above 20 seconds.
The delay will be higher for larger team sizes, and will be lower for smaller team sizes. The delay will be higher if the team has lost their starting control points, and lower if they've captured new control points.
Start round command for Allies (detect_allies_startroundvoice) <integer choices>
Soundscript broadcast to Allied players at the beginning of the round.
Literal Value Description Soundscript
0 Attack Voice.US_ObjectivesAttack
1 Defend Voice.US_ObjectivesDefend
2 Beach Voice.US_Beach
3 Timed Attack Voice.US_ObjectivesAttackTimed
4 Timed Defend Voice.US_ObjectivesDefendTimed
5 Flags Voice.US_Flags
Start round command for Axis (detect_axis_startroundvoice) <integer choices>
Soundscript broadcast to Axis players at the beginning of the round.
Literal Value Description Soundscript
0 Attack Voice.German_ObjectivesAttack
1 Defend Voice.German_ObjectivesDefend
2 Beach Voice.German_Beach
3 Timed Attack Voice.German_ObjectivesAttackTimed
4 Timed Defend Voice.German_ObjectivesDefendTimed
5 Flags Voice.German_Flags
Note.pngNote:If detect_axis_startroundvoice or detect_allies_startroundvoice are set to invalid values, they default to their respective "Flags" soundscript.

Inputs

EnableDisable:

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