Npc heli avoidsphere: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(-added class hierarchy, cleanup)
 
(9 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{wrongtitle|title=npc_heli_avoidsphere}}
{{CD|CAvoidSphere|file1=1}}
{{hl2 point|npc_heli_avoidsphere}}<br>
{{this is a|point entity|name=npc_heli_avoidsphere|game=Half-Life 2 series}}
The [[npc_helicopter]] avoid this sphere.
{{bug|In Hammer editor the entity image of [[env_firesource]] will be shown up.}}


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


* {{KV Targetname}}
In Hammer, this entity shares its icon with {{ent|env_firesource}}.


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


* '''Radius''' <[[float]]>
== Flags ==
: Radius of the sphere. (Default 128)
{{fl|65536|Avoid the sphere above and below}}
 
==Flags==
 
* 65536 : Avoid the sphere above and below
 
==Inputs==
 
* {{I Targetname}}
 
* {{I Parentname}}
 
==Outputs==
 
* {{O Targetname}}


==See also==
==See also==
[[npc_heli_avoidbox]]
* {{ent|npc_heli_avoidbox}} - Same function, only brush based.

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