Template:KV BaseNPC: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (ep1 add)
m (added help links to key names)
Line 11: Line 11:
: <target_destination> If set, the name of a path corner entity that this NPC will walk to, after spawning.
: <target_destination> If set, the name of a path corner entity that this NPC will walk to, after spawning.


* '''squadname'''
* '''[[squads|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.
: <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.


* '''hintgroup'''
* '''[[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.
: <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.


* '''hintlimiting'''
* '''[[hintgroup|hintlimiting]]'''
: {{boolean}} Limits NPC to using specified hint group for navigation requests, but does not limit local navigation.
: {{boolean}} Limits NPC to using specified hint group for navigation requests, but does not limit local navigation.


Line 41: Line 41:
: <float> Auto-wake if player within this distance
: <float> Auto-wake if player within this distance


* '''wakesquad'''
* '''[[squads|wakesquad]]'''
: {{boolean}} Wake all of the NPCs squadmates if the NPC is woken
: {{boolean}} Wake all of the NPCs squadmates if the NPC is woken


* '''physdamagescale'''
* '''physdamagescale'''
: <float> Scales damage energy when this character is hit by a physics object. With a value of 0 the NPC will take no damage from physics.
: <float> Scales damage energy when this character is hit by a physics object. With a value of 0 the NPC will take no damage from physics.

Revision as of 01:55, 3 March 2008

Template:Kv targetname

<boolean> Disable Recieving Shadows
  • target
<target_destination> If set, the name of a path corner entity that this NPC will walk to, after spawning.
<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.
<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.
<boolean> Limits NPC to using specified hint group for navigation requests, but does not limit local navigation.
  • sleepstate
<choices> Holds the NPC in stasis until specified condition. See also 'Wake Radius' and 'Wake Squad'.
Literal value Description
0 None
1 Waiting for threat
2 Waiting for PVS
3 Waiting for input, ignore PVS
Template:Ep1 add Template:Ep1 add
Template:Ep1 add Template:Ep1 add
  • wakeradius
<float> Auto-wake if player within this distance
<boolean> Wake all of the NPCs squadmates if the NPC is woken
  • physdamagescale
<float> Scales damage energy when this character is hit by a physics object. With a value of 0 the NPC will take no damage from physics.