Point bugbait: Difference between revisions
Jump to navigation
Jump to search
In code, it is represented by the
(Added to entity description.) |
m (Template:in code -> Template:code class.) |
||
Line 1: | Line 1: | ||
{{stub}} | {{stub}} | ||
{{hl2 point|point_bugbait}} | {{hl2 point|point_bugbait}} | ||
{{code class|CBugBaitSensor|hl2_dll\grenade_bugbait.cpp}} | |||
==Entity description== | ==Entity description== | ||
This entity detects the usage of [[weapon_bugbait|Bugbait]] within a given radius. The OnBaited output can be set to fire if the Bugbait lands in a specific location, or if it is squeezed within its radius. | This entity detects the usage of [[weapon_bugbait|Bugbait]] within a given radius. The OnBaited output can be set to fire if the Bugbait lands in a specific location, or if it is squeezed within its radius. | ||
==Keyvalues== | ==Keyvalues== | ||
Line 15: | Line 14: | ||
==Flags== | ==Flags== | ||
{{fl|1|Do not call antlions to position}} | |||
{{fl|2|Don't activate on thrown bugbait splashes}} | |||
{{fl|4|Don't activate on squeezed bugbait}} | |||
==Inputs== | ==Inputs== | ||
Line 32: | Line 31: | ||
==See also== | ==See also== | ||
* | * {{ent|weapon_bugbait}} - The bugbait weapon. |
Revision as of 12:09, 15 May 2022

CBugBaitSensor
class, defined in thehl2_dll\grenade_bugbait.cpp
file.
Entity description
This entity detects the usage of Bugbait within a given radius. The OnBaited output can be set to fire if the Bugbait lands in a specific location, or if it is squeezed within its radius.
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Flags
- Do not call antlions to position : [1]
- Don't activate on thrown bugbait splashes : [2]
- Don't activate on squeezed bugbait : [4]
Inputs
EnableDisable:
- Enable / Disable
- Enable/disable this entity from performing its task. It might also disappear from view.
- Toggle
- Toggle this entity.
Outputs
- OnBaited
- Fires when bugbait lands within a radius of the sensor (!activator is the bugbait thrower).
See also
- weapon_bugbait - The bugbait weapon.