Dod bomb target: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Not sure weapon_basebomb even has a model.)
Line 1: Line 1:
{{CD|CDODBombTarget|base=CBaseAnimating|file1=dod/dod_bombtarget.h}}
[[File:Detonation_bomb.PNG|thumb|right|250px|Picture of the dod_bomb_target Entity in Hammer.]]
[[File:Detonation_bomb.PNG|thumb|right|250px|Picture of the dod_bomb_target Entity in Hammer.]]
{{this is a|brush entity|name=dod_bomb_target|game=Day of Defeat: Source}}
{{this is a|brush entity|name=dod_bomb_target|game=Day of Defeat: Source}}
This entity represents a detonation location within the map. It is shown visually by a grey or yellow outline of {{ent|weapon_basebomb}}.
This entity represents a detonation location within the map. It is shown visually by a {{file|models/weapons/w_tnt|mdl}}, {{file|models/weapons/w_tnt_red|mdl}}, and {{file|models/weapons/w_tnt_grey|mdl}}, depending upon the status of this entity. A player must be carrying a {{ent|weapon_basebomb}} to plant here.
{{clr}}
==Key Values==
==Key Values==
{{KV Targetname}}
{{KV Targetname}}

Revision as of 15:43, 13 March 2025

C++ Class hierarchy
CDODBombTarget
CBaseAnimating
CBaseEntity
C++ dod/dod_bombtarget.h
Picture of the dod_bomb_target Entity in Hammer.

dod_bomb_target is a brush entity available in Day of Defeat: Source Day of Defeat: Source. This entity represents a detonation location within the map. It is shown visually by a 🖿models/weapons/w_tnt.mdl, 🖿models/weapons/w_tnt_red.mdl, and 🖿models/weapons/w_tnt_grey.mdl, depending upon the status of this entity. A player must be carrying a weapon_basebomb to plant here.

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).
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.
Confirm:Might set both the rotation of the trigger box and the rotation of the displayed model
Origin (origin) <origin>
Controls the location of the bomb model.
Target CP (target_control_point) <targetname>
Target Control point - Control point which the entity captures, or helps capture, when detonated-
Bombing Team (bombing_team) <integer choices>
The team that will be placing a bomb at this point.
Value Description
2 U.S. Army
3 Wehrmacht
Add To Timer (sec) (add_timer_seconds) <integer>
Adds selected time to the Map timer if bombed.

Inputs

EnableDisable:

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

Outputs

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.