Template:KV CAI BaseNPC: Difference between revisions
Jump to navigation
Jump to search
Note:Some
No edit summary |
No edit summary |
||
Line 25: | Line 25: | ||
{{KV|Wake Radius (wakeradius)|float|Auto-wake if player is within this distance, in Hammer units.}} | {{KV|Wake Radius (wakeradius)|float|Auto-wake if player is within this distance, in Hammer units.}} | ||
{{KV|Wake Squad (wakesquad)|bool|If yes, wake all of the NPCs squadmates if the NPC is woken.}} | {{KV|Wake Squad (wakesquad)|bool|If yes, wake all of the NPCs squadmates if the NPC is woken.}} | ||
{{KV|Ignore unseen enemies (ignoreunseenenemies)| | {{KV|Ignore unseen enemies (ignoreunseenenemies)|boolean|Prefer visible enemies, regardless of distance or relationship priority.}} | ||
{{KV|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.}} | {{KV|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.}} | ||
{{KV|Hint Limit Nav (hintlimiting)|bool|If yes, limits NPC to using specified hint group for navigation requests, but does not limit local navigation.}} | {{KV|Hint Limit Nav (hintlimiting)|bool|If yes, limits NPC to using specified hint group for navigation requests, but does not limit local navigation.}} |
Revision as of 04:07, 29 October 2018
This template is our holder for all keyvalues that are assigned through CAI_BaseNPC.
Add |addeq=[text here]
to (optionally) write a custom description for the Weapon Held keyvalue.

CBaseEntity
keyvalues are listed here for practical reasons.AI_BaseNPC:
- Weapon Held (additionalequipment) ([todo internal name (i)]) <classname>
- Gives the NPC a weapon. NPCs may attack oddly or not attack if they don't know how to use a particular weapon.
- Squad Name (squadname) ([todo internal name (i)]) <string>
- NPCs that are in the same squad will share information about enemies, and will take turns attacking and covering each other.
- Target Path Corner (target) ([todo internal name (i)]) <targetname>
- If set, the name of a path_corner entity that this NPC will move to, after spawning. Must be within 576 units from the NPC.
- Sleep State (sleepstate) ([todo internal name (i)]) <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
- Todo: clarify the differences between each
- Wake Radius (wakeradius) ([todo internal name (i)]) <float>
- Auto-wake if player is within this distance, in Hammer units.
- Wake Squad (wakesquad) ([todo internal name (i)]) <boolean>
- If yes, wake all of the NPCs squadmates if the NPC is woken.
- Ignore unseen enemies (ignoreunseenenemies) ([todo internal name (i)]) <boolean>
- Prefer visible enemies, regardless of distance or relationship priority.
- Hint Group (hintgroup) ([todo internal name (i)]) <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) ([todo internal name (i)]) <boolean>
- If yes, limits NPC to using specified hint group for navigation requests, but does not limit local navigation.
- Enemy Filter (enemyfilter) ([todo internal name (i)]) <targetname>
- Filter by which to filter potential enemies.
- Local Velocity (velocity) ([todo internal name (i)]) <vector> !FGD
- Velocity generated by the entity, can cause strange behavior if changed.
- Base Velocity (basevelocity) ([todo internal name (i)]) <vector> !FGD
- Velocity to start with on spawn.