Point antlion repellant: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎Inputs: Substituted IO templates)
(-added class hierarchy, cleanup, intn)
 
Line 1: Line 1:
{{this is a|point entity|name=point_antlion_repellant|game=Half-Life 2|game1=Half-Life 2: Episode One|game2=Half-Life 2: Episode Two|game3=Half-Life 2: Deathmatch}}
{{CD|CAntlionRepellant|file1=1}}
 
{{This is a|point entity|name=point_antlion_repellant|game=Half-Life 2 series|game1=Portal}}
==Entity description==
Simple entity that prevents [[npc_antlion|antlions]] from jumping into its radius, starting at the center of the entity.  
Simple entity that prevents [[npc_antlion|antlions]] from jumping into its radius, starting at the center of the entity.  


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


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


{{KV|Repell radius|float|Antlions aren't allowed to be inside this radius.}}
== Inputs ==
 
==Inputs==
{{I Targetname}}
 
{{I|Enable|Enable the repell.|}}
{{I|Enable|Enable the repell.|}}
{{I|Disable|Disable the repell.|}}
{{I|Disable|Disable the repell.|}}


==Outputs==
== See also ==
{{O Targetname}}
* {{ent|npc_antlion}}

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