Template:KV BaseCombatCharacter: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(minititle)
(moved asw KVs here)
Line 1: Line 1:
<noinclude>Use this only for {{ent|CBaseCombatCharacter}}s that AREN'T {{ent|CAI_BaseNPC}}s.[[Category:FGD Templates]]
<noinclude>Use this only for {{ent|CBaseCombatCharacter}}s that AREN'T {{ent|CAI_BaseNPC}}s.[[Category:FGD Templates]]
Add <code>|as=1</code> for entities that include the new Alien Swarm keyvalues (HullType and BloodColor).
----</noinclude>{{minititle|BaseCombatCharacter}}
----</noinclude>{{minititle|BaseCombatCharacter}}
{{KV|Relationship (Relationship)|string|<[[string]]&#124;[[targetname]] or [[classname]]> <[[string]]&#124;disposition> <[[int]]&#124;rank>  
{{KV|Relationship (Relationship)|string|<[[string]]&#124;[[targetname]] or [[classname]]> <[[string]]&#124;disposition> <[[int]]&#124;rank>  
Line 8: Line 11:
:*<code>D_LI</code>: Like
:*<code>D_LI</code>: Like
:*<code>D_NU</code>: Neutral|nofgd=1}}
:*<code>D_NU</code>: Neutral|nofgd=1}}
{{KV|Physics Impact Damage Scale (physdamagescale)|float|Multiplier for damage amount when this NPC is hit by a physics object. With a value of 0 the entity will take no damage from physics.}}
{{KV|Physics Impact Damage Scale (physdamagescale)|float|Multiplier for damage amount when this NPC is hit by a physics object. With a value of 0 the entity will take no damage from physics.}}<!--
-->{{#if:{{{as|}}}|
{{KV|Hull Type (HullType)|integer|Physical size of the NPC. Affects navigation capabilities and the [[bounding box]].|nofgd=1|since=AS}}
:*<code>HUMAN_HULL</code>: Human
:*<code>WIDE_HUMAN_HULL</code>: Wide
:*<code>TINY_HULL</code>: Tiny
:*<code>MEDIUM_HULL</code>: Medium
:*<code>LARGE_HULL</code>: Large
{{confirm|Works? This keyvalue is defined as using integers}}
{{KV|Blood Color (BloodColor)|integer|Blood color of the NPC when shot.|nofgd=1|since=AS}}
{{confirm|Works? This keyvalue is defined as using integers}}| }}

Revision as of 06:19, 13 September 2018

Use this only for CBaseCombatCharacters that AREN'T CAI_BaseNPCs.

Add |as=1 for entities that include the new Alien Swarm keyvalues (HullType and BloodColor).


BaseCombatCharacter:

Relationship (Relationship) ([todo internal name (i)]) <string> !FGD
<string|targetname or classname> <string|disposition> <int|rank>
Changes whether this entity likes or dislikes certain other things. Used like the ai_relationship entity, with this entity as the subject.
Values for disposition are:
  • D_HT: Hate
  • D_FR: Fear
  • D_LI: Like
  • D_NU: Neutral
Physics Impact Damage Scale (physdamagescale) ([todo internal name (i)]) <float>
Multiplier for damage amount when this NPC is hit by a physics object. With a value of 0 the entity will take no damage from physics.