From Valve Developer Community
Jump to navigation
Jump to search
Source 2 BaseNPC
-
Target Path Corner (target) <targetname>
-
If set, the name of a path_corner entity that this NPC will walk to, after spawning.
-
Squad Name (squadname) <string>
-
NPCs that are in the same squad (i.e., have matching squad names) will share information about enemies and will take turns attacking and covering each other.
-
Hint Group (hintgroup) <string>
-
Hint groups are used by NPCs to restrict their hint-node searching to a subset of the map's hint nodes. Only hint nodes with matching hint group names will be considered by this NPC.
-
Hint Limit Nav (hintlimiting) <boolean>
-
Limits NPC to using specified hint group for navigation requests. Does not limit local navigation.
-
If a Hint Group is specified, whether to also allow the use of generic nodes. (allowgenericnodes) <boolean>
-
-
Initial Idle Activity (initialidle) <string>
-
Leftover in FGD.
Activity the NPC should use to idle until becomes alert
-
Sleep State (sleepstate) <choices>
-
Holds the NPC in stasis until specified condition. See also Wake Radius and Wake Squad.
- 0: None
- 1: Waiting for threat
- 2: Waiting for PVS
- 3: Waiting for input, ignore PVS
- 4: Auto PVS
- 5: Auto PVS after PVS
-
Wake Radius (wakeradius) <float>
-
Auto-wake if player comes within this distance.
-
Wake Squad (wakesquad) <boolean>
-
Wake all of the NPCs squadmates if the NPC is woken.
-
Enemy Filter (enemyfilter) <targetname>
-
Filter by which to filter potential enemies
-
Ignore unseen enemies (ignoreunseenenemies) <boolean>
-
Prefers visible enemies, regardless of distance or relationship priority.
-
Physics Impact Damage Scale (physdamagescale) <float>
-
Scales damage energy when this object is hit by a physics object. With a value of 0 the NPC will take no damage from physics.
-
Nav Restriction Volume (NavRestrictionVolume) <targetname>
-
Markup volume entity to restrict unit navigation
-
Spawn as Temp Ragdoll (spawnasragdoll) <choices>
-
Specifies if the NPC will spawn as a temporary ragdoll and the behavior after becoming a ragdoll.
- 0: Disabled
- 1: Ragdoll and get up when settled
- 2: Ragdoll and remain ragdoll
-
Use Alt NPC Avoidance (UseAltNpcAvoid) <choices>
-
Specifies if the NPC should be using any algorithm variants when avoiding other NPCs.
-
Preview Animation (DefaultAnim) <sequence>
-
Name of an animation to preview in Hammer, does not do anything in game.
|