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

Note: The
Note: This entity is part of S_PreserveEnts.
(disable works just fine for disabling bomb sites) |
(That's cool! Just that they're !FGD... Added picture because yes.) |
||
Line 1: | Line 1: | ||
{{lang|Func bomb target}} | {{lang|Func bomb target}} | ||
[[File:Func_bomb_target_de_dust2_css.jpg|thumb|right|500px|The use of func_bomb_target on ''de_dust2'' in CS:S.]] | |||
{{base brush multi|func_bomb_target|game1=Counter-Strike: Source|game2=Counter-Strike: Global Offensive}} | {{base brush multi|func_bomb_target|game1=Counter-Strike: Source|game2=Counter-Strike: Global Offensive}} | ||
{{Note | The <code>StartDisabled</code> keyvalue and the <code>Enable/Disable</code> inputs are {{not in FGD}} and can be used!}} | |||
{{Note | This entity is part of [[S_PreserveEnts]]. <code>Kill</code>ing this entity removes it for all subsequent rounds! Use the <code>Enable/Disable</code> inputs instead.}} | |||
{{code class|CBombTarget|func_bomb_target.cpp}} | {{code class|CBombTarget|func_bomb_target.cpp}} | ||
Line 15: | Line 19: | ||
** {{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 | * 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'''. | ||
==Keyvalues== | ==Keyvalues== |
Revision as of 12:14, 13 August 2021



StartDisabled
keyvalue and the Enable/Disable
inputs are !FGD and can be used!
Kill
ing this entity removes it for all subsequent rounds! Use the Enable/Disable
inputs instead.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.
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.
|