Npc heli avoidsphere: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
(-added class hierarchy, cleanup)
 
(14 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{wrongtitle|title=npc_heli_avoidsphere}}
{{CD|CAvoidSphere|file1=1}}
{{this is a|point entity|name=npc_heli_avoidsphere|game=Half-Life 2 series}}


==Entity Description==
Defines a spherical area which helicopter NPCs should avoid. {{ent|npc_helicopter}} and {{ent|npc_combinegunship}} avoid this sphere, but ''not'' {{ent|npc_combinedropship}}.


Helicopters avoid this sphere
In Hammer, this entity shares its icon with {{ent|env_firesource}}.


==Keyvalues==
== Keyvalues ==
{{KV Targetname}}
{{KV|Radius|intn=radius|float|Radius of the sphere. (Default 128)}}


* {{kv targetname}}
== Flags ==
{{fl|65536|Avoid the sphere above and below}}


* {{KV Parentname}}
==See also==
 
* {{ent|npc_heli_avoidbox}} - Same function, only brush based.
* '''radius'''
: <float>
 
==Flags==
 
* 65536 : Avoid the sphere above and below
 
==Inputs==
 
* {{I Targetname}}
 
* {{I Parentname}}
 
==Outputs==
 
* {{o targetname}}
 
[[Category:Entities]]

Latest revision as of 17:11, 5 June 2025

C++ Class hierarchy
CAvoidSphere
CBaseEntity
C++ npc_attackchopper.cpp

npc_heli_avoidsphere is a point entity available in Half-Life 2 series Half-Life 2 series.

Defines a spherical area which helicopter NPCs should avoid. npc_helicopter and npc_combinegunship avoid this sphere, but not npc_combinedropship.

In Hammer, this entity shares its icon with env_firesource.

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

Radius (radius) <float>
Radius of the sphere. (Default 128)

Flags

Avoid the sphere above and below : [65536]

See also