Info doddetect: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(→‎Key Values: list soundscripts used; note defaults)
Line 9: Line 9:
{{KV|Allies Respawn delay factor|intn=detect_allies_respawnfactor|float|Respawn delay of the Allied team.}}
{{KV|Allies Respawn delay factor|intn=detect_allies_respawnfactor|float|Respawn delay of the Allied team.}}
{{KV|Axis Respawn delay factor|intn=detect_axis_respawnfactor|float|Respawn delay of the Axis team.}}
{{KV|Axis Respawn delay factor|intn=detect_axis_respawnfactor|float|Respawn delay of the Axis team.}}
{{KV|Start round command for Allies|intn=detect_allies_startroundvoice|integer choices|The claim of the players said at the beginning of the round.}}
{{KV|Start round command for Allies|intn=detect_allies_startroundvoice|integer choices|[[Soundscript]] broadcast to Allied players at the beginning of the round.}}
:{| class=standard-table
:{| class=standard-table
! Literal Value || Description
! Literal Value || Description || Soundscript
|-
|-
| 0 || Attack
| 0 || Attack || {{mono|Voice.US_ObjectivesAttack}}
|-
|-
| 1 || Defend
| 1 || Defend || {{mono|Voice.US_ObjectivesDefend}}
|-
|-
| 2 || Beach
| 2 || Beach || {{mono|Voice.US_Beach}}
|-
|-
| 3 || Timed Attack
| 3 || Timed Attack || {{mono|Voice.US_ObjectivesAttackTimed}}
|-
|-
| 4 || Timed Defend
| 4 || Timed Defend || {{mono|Voice.US_ObjectivesDefendTimed}}
|-
|-
| 5 || Flags
| 5 || Flags || {{mono|Voice.US_Flags}}
|}
|}
{{KV|Start round command for Axis|intn=detect_axis_startroundvoice|integer choices|The claim of the players said at the beginning of the round.}}
{{KV|Start round command for Axis|intn=detect_axis_startroundvoice|integer choices|[[Soundscript]] broadcast to Axis players at the beginning of the round.}}
:{| class=standard-table
:{| class=standard-table
! Literal Value || Description
! Literal Value || Description || Soundscript
|-
|-
| 0 || Attack
| 0 || Attack || {{mono|Voice.German_ObjectivesAttack}}
|-
|-
| 1 || Defend
| 1 || Defend || {{mono|Voice.German_ObjectivesDefend}}
|-
|-
| 2 || Beach
| 2 || Beach || {{mono|Voice.German_Beach}}
|-
|-
| 3 || Timed Attack
| 3 || Timed Attack || {{mono|Voice.German_ObjectivesAttackTimed}}
|-
|-
| 4 || Timed Defend
| 4 || Timed Defend || {{mono|Voice.German_ObjectivesDefendTimed}}
|-
|-
| 5 || Flags
| 5 || Flags || {{mono|Voice.German_Flags}}
|}
|}
{{note|If {{mono|detect_axis_startroundvoice}} or {{mono|detect_allies_startroundvoice}} are set to invalid values, they default to their respective "Flags" soundscript.}}


==Inputs==
==Inputs==
{{I EnableDisable}}
{{I EnableDisable}}

Revision as of 10:50, 12 March 2025

C++ Class hierarchy
CDODDetect
CBaseEntity
C++ dod/dod_gamerules.h

info_doddetect is a point 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).

Key Values

Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).
Allies Respawn delay factor (detect_allies_respawnfactor) <float>
Respawn delay of the Allied team.
Axis Respawn delay factor (detect_axis_respawnfactor) <float>
Respawn delay of the Axis team.
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.