From Valve Developer Community
Revision as of 11:14, 24 April 2011 by Barracuda (talk | contribs)
Jump to: navigation, search

<Day of Defeat: Source> dod_bomb_dispenser is a point entity available in Day of Defeat: Source.

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.



Name (targetname) <string>
The targetname that other entities refer to this entity by.
Entity Scripts (vscripts) <scriptlist> (in all games since <Left 4 Dead 2>)
Space delimited list of VScript files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.
Script think function (thinkfunction) <string> (in all games since <Left 4 Dead 2>)
Name of a function in this entity's script which will be called automatically every 100 milliseconds (ten times a second) for the duration of the script. It can be used to create timers or to simulate autonomous behavior. The return value (if present) will set the time until the next call.
Note.png Note: Try to avoid expensive operations in this function, as it may cause performance problems.
  • dispense_team
<choices> The team that will be placing a bomb at this point
Value Description
1 Both
2 Allies
3 Axis
  • EnableDisable:
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).


  • EnableDisable:
Enable/disable this entity from performing its task. It might also disappear from view.


  • OnTntPickup
Sent when a player pick up TNT
Note.png Note: May not work

See Also