Point antlion repellant: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
(-added class hierarchy, cleanup, intn)
 
(16 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{wrongtitle|title=point_antlion_repellant}}
{{CD|CAntlionRepellant|file1=1}}
==Entity Description==
{{This is a|point entity|name=point_antlion_repellant|game=Half-Life 2 series|game1=Portal}}
Simple entity that prevents [[npc_antlion|antlions]] from jumping into its radius, starting at the center of the entity.


==Keyvalues==
{{Note|To ward off antlions, use an [[ai_sound]] set to soundtype "Thumper" or a [[prop_thumper]].}}


* {{kv targetname}}
== Keyvalues ==
{{KV Targetname}}
{{KV|Repell radius|intn=repelradius|float|Antlions aren't allowed to be inside this radius.}}


* '''repelradius'''
== Inputs ==
: <float> Antlions aren't allowed to be inside this radius
{{I|Enable|Enable the repell.|}}
{{I|Disable|Disable the repell.|}}


==Inputs==
== See also ==
 
* {{ent|npc_antlion}}
* {{i targetname}}
 
* '''Enable'''
 
* '''Disable'''
 
==Outputs==
 
* {{o targetname}}
 
[[Category:Entities

Latest revision as of 21:38, 19 April 2025

C++ Class hierarchy
CAntlionRepellant
CPointEntity
CBaseEntity
C++ npc_antlion.cpp

point_antlion_repellant is a point entity available in Half-Life 2 series Half-Life 2 series and Portal Portal. Simple entity that prevents antlions from jumping into its radius, starting at the center of the entity.

Note.pngNote:To ward off antlions, use an ai_sound set to soundtype "Thumper" or a prop_thumper.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Repell radius (repelradius) <float>
Antlions aren't allowed to be inside this radius.

Inputs

Enable
Enable the repell.
Disable
Disable the repell.

See also