dod_bomb_target
		
		
		
		Jump to navigation
		Jump to search
		
|  Class hierarchy | 
|---|
| CDODBombTarget | 
|  dod/dod_bombtarget.h | 
dod_bomb_target  is a   model entity  available in  Day of Defeat: Source.
This entity represents a detonation location within the map. It is shown visually by TNT. A player must be carrying a weapon_basebomb to plant here.
 Day of Defeat: Source.
This entity represents a detonation location within the map. It is shown visually by TNT. A player must be carrying a weapon_basebomb to plant here. 
 Note:When the bomb explodes, the entity changes to its "disabled" state and EF_NODRAW is added to hide the model.
Note:When the bomb explodes, the entity changes to its "disabled" state and EF_NODRAW is added to hide the model.Entity statistics
| Entity state | Model | 
|---|---|
| Able to be planted |  models/weapons/w_tnt_red.mdl | 
| Unable to be planted |  models/weapons/w_tnt_grey.mdl | 
| Armed |  models/weapons/w_tnt.mdl | 
| Action | Radius | 
|---|---|
| Planting | 80qu | 
| Defusing | 96qu | 
| Situation | Time | 
|---|---|
| Bomb timer | 20 sec | 
| Time to plant | 2 sec | 
| Time to defuse | 3 sec | 
Keyvalues
 Note: See Model entity/Generic Keyvalues, Inputs and Outputs for keyvalues and inputs that affect model rendering.
Note: See Model entity/Generic Keyvalues, Inputs and Outputs for keyvalues and inputs that affect model rendering. Note that the following keyvalues are unavailable due to being overridden by game code:
model, sequence, playbackrate
It may still be possible to use their associated inputs or AddOutput them.
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentnameortarget).
 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).
- Pitch Yaw Roll (Y Z X) (angles) <QAngle>
- This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
- Target Control Point (target_control_point) <targetname>
- Control point which the entity captures, or helps capture, when detonated. Can be omitted if this is not tied to an objective.
- Bombing Team (bombing_team) <integer choices>
- The team that will be placing a bomb at this point. Defaults to Allies if absent or set to 0.
- Value - Description - 2 - Allies - 3 - Axis 
 Tip:To create a team-agnostic bomb target, place two dod_bomb_targets in the same location with the same angles. Send the Disable input to the opposite team's bomb target via OnBombPlanted, and send the Enable input to the opposite team's bomb target via OnBombDefused. Tip:To create a team-agnostic bomb target, place two dod_bomb_targets in the same location with the same angles. Send the Disable input to the opposite team's bomb target via OnBombPlanted, and send the Enable input to the opposite team's bomb target via OnBombDefused.
 Since - w_tnt_red.mdland - w_tnt_grey.mdlboth use- $additive, no z-fighting will occur, and the unplaced bomb will look yellowish (placeable) for both teams.
- Add To Timer (sec) (add_timer_seconds) <integer>
- Adds selected time to the map timer if successfully bombed.
Inputs
EnableDisable:
- Enable / Disable
- Enable/disable this entity from performing its task. It might also disappear from view.
Outputs
 Note:The !activator and !caller for all outputs is this entity.
Note:The !activator and !caller for all outputs is this entity.- OnBombExploded
- Fired when the bomb explodes.
- OnBombPlanted
- Fired when a bomb is planted.
- OnBombDefused
- Fired when a bomb is defused.
- OnBombTargetActivated
- Fired when this entity receives the Enable input.
- OnBombTargetDeactivated
- Fired when this entity receives the Disable input.