Point bugbait
From Valve Developer Community
| Table of contents |
[edit]
Entity Description
Bugbait sensor point
[edit]
Availability
This point-based entity is available in: HL2.
In code it is represented by class CBugBaitSensor (http://doxygen.page.needed/class_c_bug_bait_sensor.html), defined in hl2_dll\grenade_bugbait.cpp (http://doxygen.page.needed/grenade__bugbait_8cpp-source.html).
[edit]
Keyvalues
- targetname <target_source>
- Defines the name that other entities refer to this entity by.
- hammerid [Episode Two Update]
- <integer readonly> This id is used for debugging purposes in Hammer.
- Enabled
- <boolean> Start Enabled
- radius
- <float> Sensor Radius
[edit]
Flags
- 1 : Do not call antlions to position
- 2 : Don't activate on thrown bugbait splashes
- 4 : Don't activate on squeezed bugbait
[edit]
Inputs
- Kill
- Removes this entity from the world.
- Removes this entity and all its children from the world.
- AddOutput <string>
- Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
- Format:
<key> <value> - Format:
<output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>
- Causes this entity's OnUser1-4 outputs to be fired. See User Inputs and Outputs.
- Enable
- Enable this entity.
- Disable
- Disable this entity.
- Toggle
- Toggle this entity
[edit]
Outputs
- Fired in response to FireUser1-4 inputs. See User Inputs and Outputs.
- !activator = activator
- OnBaited
- Fires when bugbait lands within a radius of the sensor.
- !activator = bugbait thrower
