Template:KV BaseNPC: Difference between revisions
Jump to navigation
Jump to search
Tip:{{{noscroll}}} works.
mNo edit summary |
(-cleanup) |
||
Line 1: | Line 1: | ||
<noinclude>{{lang|Template:KV BaseNPC}}[[Category:Keyvalue Templates|BaseNPC]] | <noinclude>{{lang|Template:KV BaseNPC}}[[Category:Keyvalue Templates|BaseNPC]] | ||
{{tip| | {{tip|{{Param|noscroll}} works.}} | ||
</noinclude>{{ScrollBox|title=BaseNPC|noscroll={{{noscroll|<noinclude>1</noinclude>}}}| | </noinclude>{{ScrollBox|title=BaseNPC|noscroll={{{noscroll|<noinclude>1</noinclude>}}}| | ||
{{KV|Relationship|string| Changes whether this NPC likes or dislikes certain others. Used like the {{ent|ai_relationship}} entity, with this NPC as the subject. Format: <code><[[string]]{{!}}[[targetname]] or [[classname]]> <[[string]]{{!}}disposition> <[[int]]{{!}}rank></code>. | {{KV|Relationship|string| Changes whether this NPC likes or dislikes certain others. Used like the {{ent|ai_relationship}} entity, with this NPC as the subject. Format: <code><[[string]]{{!}}[[targetname]] or [[classname]]> <[[string]]{{!}}disposition> <[[int]]{{!}}rank></code>. | ||
Line 24: | Line 24: | ||
{{KV|Ignore unseen enemies|intn=ignoreunseenenemies|bool|Prefers visible enemies, regardless of distance or relationship priority.}} | {{KV|Ignore unseen enemies|intn=ignoreunseenenemies|bool|Prefers visible enemies, regardless of distance or relationship priority.}} | ||
{{KV|Physics Impact Damage Scale|intn=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.}} | {{KV|Physics Impact Damage Scale|intn=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.}} | ||
{{KV DamageFilter}} }} | |||
{{KV DamageFilter |
Revision as of 04:05, 1 July 2024

BaseNPC:
- Relationship ([todo internal name (i)]) <string> !FGD
- Changes whether this NPC likes or dislikes certain others. Used like the ai_relationship entity, with this NPC as the subject. Format:
<string|targetname or classname> <string|disposition> <int|rank>
. - Values for
disposition
are:D_HT
: HateD_FR
: FearD_LI
: LikeD_NU
: Neutral
- Target Path Corner (target) <targetname>
- The path_corner that this NPC will move 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.
- 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 entity to test targets against.
- 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 character is hit by a physics object. With a value of 0 the NPC will take no damage from physics.
DamageFilter:
- Damage Filter (damagefilter) <targetname>
- Name of the filter_damage_type entity that controls which entities can damage us.