Func bomb target

From Valve Developer Community
Revision as of 13:06, 5 October 2018 by Pinsplash (talk | contribs) (updates)
Jump to navigation Jump to search
English (en)Translate (Translate)

Template:Base brush multi It marks where the bomb can be planted. The Terrorist holding the bomb must be able to touch the volume to plant. The radar will automatically label a func_bomb_target as either "A" or "B", depending on which one was created first.

C++ In code, it is represented by theCBombTargetclass, defined in thefunc_bomb_target.cppfile.

Keyvalues

Heist Mode bomb Target (heistbomb) ([todo internal name (i)]) <boolean>
Tells the bomb target that it's designed for the Heist game mode.
Bomb Mount Target ([todo internal name (i)]) <targetname>
Optionally, have the bomb be forced to a specific position and orientation after being planted. The position and angles are determined by the ones of a specified info_target.
BaseTrigger
Filter Name (filtername) <filter>
A filter entity to test potential activators against.
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).


Inputs

BombExplode  !FGD
Pretend the bomb exploded; fires the BombExplode output.
BombDefused  !FGD
Pretend the bomb was defused; fires the BombDefused output.
BombPlanted  !FGD
Pretend the bomb was planted; fires the BombPlanted output.
BaseTrigger
Toggle
Toggles this trigger between enabled and disabled states.
Enable
Enable trigger
Disable
Disable trigger
TouchTest  (in all games since Source 2007)
Triggers either the OnTouching or OnNotTouching outputs for whether anything is touching this entity.
Icon-Bug.pngBug:Sleeping prop_physics will never fire "OnTouching". Also applies to entities using prop_physics as base.  (tested in: Half-Life 2)
StartTouch  (in all games since Source 2007) !FGD
Behave as if the !caller entity had just entered the trigger volume. Accepts non-physical entities.
EndTouch  (in all games since Source 2007) !FGD
Behave as if !caller had just exited the trigger volume.
DisableAndEndTouch  (only in Source 2013 MultiplayerTeam Fortress 2 branch)
Disables this trigger and calls EndTouch on all currently-touching entities.


Outputs

BombExplode
Fires when the bomb explodes.
BombDefused
Fires when the bomb is defused.
BombPlanted
Fires when the bomb is planted.
BaseTrigger
OnStartTouch
!activator = entity that caused this output
!caller = this entity
Fired when a valid entity starts touching this trigger.
OnStartTouchAll
!activator = entity that caused this output
!caller = this entity
Fired when a valid entity starts touching this trigger, and no other entities are touching it. If there are any other entities touching the trigger when a new one begins to touch, only OnStartTouch will fire.
OnEndTouch
!activator = entity that caused this output
!caller = this entity
Fired when a valid entity stops touching this trigger.
Note.pngNote:Will also fire for entities touching it when trigger is disabled via Disable input
Warning.pngWarning:This includes entities which are deleted while inside the trigger. In this case !activator will be invalid.
Warning.pngWarning:OnEndTouch can fire before OnStartTouch under certain circumstances[How?] where both are fired on the same tick and each have the same delay.
Note.pngFix:Add a slight delay to OnEndTouch.
OnEndTouchAll
!activator = entity that caused this output
!caller = this entity
Fired when all valid entities stop touching this trigger.
OnTouching  (in all games since Source 2007)
!activator = !caller = this entity
Fired if something is currently touching this trigger when TouchTest is fired.
OnNotTouching  (in all games since Source 2007)
!activator = !caller = this entity
Fired if nothing is currently touching this trigger when TouchTest is fired.