Func bomb target: Difference between revisions
Jump to navigation
Jump to search

Note: This entity is part of S_PreserveEnts.
To "disable" it for a round, one could fire the
(BombDefused is not working correctly?) |
(Checked CSS) |
||
Line 10: | Line 10: | ||
* [[Player]]s must touch the volume of any [[func_bomb_target]] in order to plant a [[weapon_c4|C4 entity]]. | * [[Player]]s must touch the volume of any [[func_bomb_target]] in order to plant a [[weapon_c4|C4 entity]]. | ||
* As soon as a C4 entity is planted inside this entity's volume or as soon as it receives the input '''<code>BombPlanted</code>''', this entity will no longer allow players to plant a C4 entity inside it. | * {{csgo}} As soon as a C4 entity is planted inside this entity's volume or as soon as it receives the input '''<code>BombPlanted</code>''', this entity will no longer allow players to plant a C4 entity inside it. | ||
* If a C4 entity is planted inside this entity's volume, this entity fires the outputs '''<code>BombPlanted</code>''', '''<code>BombDefused</code>''' and/or '''<code>BombExplode</code>''' for this specific C4 entity. | * If a C4 entity is planted inside this entity's volume, this entity fires the outputs '''<code>BombPlanted</code>''', '''<code>BombDefused</code>''' and/or '''<code>BombExplode</code>''' for this specific C4 entity. | ||
** {{Bug | The '''<code>BombDefused</code>''' output is '''NOT''' fired when a bomb is defused.}} | |||
** {{csgo}} When planting outside any [[func_bomb_target]] with {{ent|mp_plant_c4_anywhere|1}}, there is still a [[func_bomb_target]] entity chosen that does the above, even if all existing [[func_bomb_target]]s are already consumed. | ** {{csgo}} When planting outside any [[func_bomb_target]] with {{ent|mp_plant_c4_anywhere|1}}, there is still a [[func_bomb_target]] entity chosen that does the above, even if all existing [[func_bomb_target]]s are already consumed. | ||
* The radar will automatically label a <code>func_bomb_target</code> as either '''A''' or '''B''', depending on which one was created first. | * The radar will automatically label a <code>func_bomb_target</code> as either '''A''' or '''B''', depending on which one was created first. | ||
** | ** If there are more than two of these entities, only two of them will be labelled with '''A''' and '''B'''. | ||
{{Note | This entity is part of [[S_PreserveEnts]]. | {{Note | This entity is part of [[S_PreserveEnts]]. <code>Kill</code>ing this entity removes it for all subsequent rounds!<br>{{csgo}} To "disable" it for a round, one could fire the '''<code>BombPlanted</code>''' input.}} | ||
==Keyvalues== | ==Keyvalues== | ||
Line 36: | Line 36: | ||
==Outputs== | ==Outputs== | ||
{{IO|BombExplode|Fires when the bomb explodes.}} | {{IO|BombExplode|Fires when the bomb explodes.}} | ||
{{IO|BombDefused|Fires when the bomb is defused. {{Bug | | {{IO|BombDefused|Fires when the bomb is defused. {{Bug | Is not fired by normal gameplay, only with the '''<code>BombDefused</code>''' input.}} }} | ||
{{IO|BombPlanted|Fires when the bomb is planted.}} | {{IO|BombPlanted|Fires when the bomb is planted.}} | ||
{{O BaseTrigger}} | {{O BaseTrigger}} | ||
{{O BaseEntity}} | {{O BaseEntity}} |
Revision as of 20:08, 12 August 2021


Entity Description
The existence of this entity makes a map a bomb defusal scenario. It marks where C4 entities can be planted.
- Players must touch the volume of any func_bomb_target in order to plant a C4 entity.
As soon as a C4 entity is planted inside this entity's volume or as soon as it receives the input
BombPlanted
, this entity will no longer allow players to plant a C4 entity inside it.- If a C4 entity is planted inside this entity's volume, this entity fires the outputs
BombPlanted
,BombDefused
and/orBombExplode
for this specific C4 entity.Bug: The
BombDefused
output is NOT fired when a bomb is defused. [todo tested in ?]When planting outside any func_bomb_target with mp_plant_c4_anywhere 1, there is still a func_bomb_target entity chosen that does the above, even if all existing func_bomb_targets are already consumed.
- The radar will automatically label a
func_bomb_target
as either A or B, depending on which one was created first.- If there are more than two of these entities, only two of them will be labelled with A and B.

Kill
ing this entity removes it for all subsequent rounds!
BombPlanted
input.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.
|
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 and removes this entity's volume from the planting zones.
|
Outputs
- BombExplode
- Fires when the bomb explodes.
- BombDefused
- Fires when the bomb is defused.
Bug: Is not fired by normal gameplay, only with the
BombDefused
input. [todo tested in ?]
- BombPlanted
- Fires when the bomb is planted.
|