Dod bomb dispenser: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
(24 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{wrongtitle|title=dod_bomb_dispenser}}
{{CD|CDODBombDispenser|base=CBaseTrigger|file1=dod/dod_bombdispenser.cpp}}
{{this is a|brush entity|name=dod_bomb_dispenser|game=Day of Defeat: Source}}
It is invisible and generally in marked out in game by a bomb stack model. It will give the specified team a bomb in a detonation type map.


{{note|Entity is missing from the valve dod.fgd file - june 28 2006 update}}
{{note|This entity counts as two entities during runtime; a {{ent|dod_bomb_dispenser_icon}} is created at the center of this entity's [[bounding box]] (''not'' its [[origin]]).}}
==Entity Description==


This entity is a solid which is tied to an entity. It is generally in marked out in game by a bomb stack model.  It will give the specified team a bomb in a detonation type map.
==Key Values==
 
{{otherKIO|trigger|append=Functionality of KVs and I/O not mentioned here is not guaranteed.}}
==Keyvalues==
{{KV Targetname}}
 
{{KV|Team to give Bomb to|intn=dispense_team|integer choices|The team that will be placing a bomb at this point.}}
* '''targetname'''
:{| class=standard-table
: <string> Name given to the entity
 
* '''dispense_team'''
: <choices> The team that will be placing a bom at this point
:{|
!| Value || Description
!| Value || Description
|-
|-
| 1 || Both
| 1 || Both Teams
|-
|-
| 2 || Allies
| 2 || U.S. Army Only
|-
|-
| 3 || Axis
| 3 || Wehrmacht Only
|}
 
* '''StartDisabled'''
: <choices> Weather or not the entity starts disabled
:{|
!| Value || Description
|-
| 0 || No
|-
| 1 || Yes
|}
|}
{{KV StartDisabled}}
:{{important|Initialized to false when this entity spawns, regardless of what is set in the map editor; use a {{ent|logic_auto}} to set the {{mono|Disable}} input instead.<!-- still parsed if you use AddOutput (why would you do that though), ergo it's inclusion on this page -->}}


==Inputs ==
==Inputs ==
* '''Enable'''
{{I EnableDisable}}
: Enables the entity
 
* '''Disable'''
: Disables the entity
 
==Outputs==
* '''OnTntPickup'''
: Sent when a player pick up TNT {{note|May not work}}
 
==See Also==
 
* [[List_of_DoD:S_entities|List of DoD:S entities]]
 
[[Category:Day of Defeat: Source Entities]]
[[Category:Entities]]
[[Category:Level Design]]

Latest revision as of 15:57, 3 June 2025

C++ Class hierarchy
CDODBombDispenser
CBaseTrigger
CBaseToggle
CBaseEntity
C++ dod/dod_bombdispenser.cpp

dod_bomb_dispenser is a brush entity available in Day of Defeat: Source Day of Defeat: Source. It is invisible and generally in marked out in game by a bomb stack model. It will give the specified team a bomb in a detonation type map.

Note.pngNote:This entity counts as two entities during runtime; a dod_bomb_dispenser_icon is created at the center of this entity's bounding box (not its origin).

Key Values

Note.pngNote:Other Keyvalues / Inputs / Outputs are same as trigger.
Functionality of KVs and I/O not mentioned here is not guaranteed.
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

Team to give Bomb to (dispense_team) <integer choices>
The team that will be placing a bomb at this point.
Value Description
1 Both Teams
2 U.S. Army Only
3 Wehrmacht Only
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).
Icon-Important.pngImportant:Initialized to false when this entity spawns, regardless of what is set in the map editor; use a logic_auto to set the Disable input instead.

Inputs

EnableDisable:

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