Template:KV BaseCombatCharacter: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(.)
mNo edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>Use this only for {{ent|CBaseCombatCharacter}}s that AREN'T {{ent|CAI_BaseNPC}}s.[[Category:FGD Templates]]
<noinclude>{{back|Template:KV_BaseAnimating}}


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


----</noinclude>{{minititle|BaseCombatCharacter}}
----</noinclude>{{minititle|CBaseCombatCharacter}}
{{KV|Relationship (Relationship)|string|<[[string]]&#124;[[targetname]] or [[classname]]> <[[string]]&#124;disposition> <[[int]]&#124;rank>  
{{KV|Relationship|intn=Relationship|string|<[[string]]&#124;[[targetname]] or [[classname]]> <[[string]]&#124;disposition> <[[int]]&#124;rank>  
:Changes whether this entity likes or dislikes certain other things. Used like the {{ent|ai_relationship}} entity, with this entity as the subject.
:Changes whether this entity likes or dislikes certain other things. Used like the {{ent|ai_relationship}} entity, with this entity as the subject.
:Values for <code>disposition</code> are:
:Values for <code>disposition</code> are:
Line 11: 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 entity is hit by a physics object. With a value of 0 the entity will take no damage from physics.}}<!--
{{KV|Physics Impact Damage Scale|intn=physdamagescale|float|Multiplier for damage amount when this entity is hit by a physics object. With a value of 0 the entity will take no damage from physics.}}<!--
-->{{#if:{{{as|}}}|
-->{{#if:{{{as|}}}|
{{KV|Hull Type (HullType)|integer|Physical size of the entity. Affects navigation capabilities and the [[bounding box]].|nofgd=1|since=AS}}
{{KV|Hull Type|intn=HullType|integer|Physical size of the entity. Affects navigation capabilities and the [[bounding box]].|nofgd=1|since=AS}}
:*<code>HUMAN_HULL</code>: Human
:*<code>HUMAN_HULL</code>: Human
:*<code>WIDE_HUMAN_HULL</code>: Wide
:*<code>WIDE_HUMAN_HULL</code>: Wide
Line 20: Line 20:
:*<code>LARGE_HULL</code>: Large
:*<code>LARGE_HULL</code>: Large
{{confirm|Works? This keyvalue is defined as using integers}}
{{confirm|Works? This keyvalue is defined as using integers}}
{{KV|Blood Color (BloodColor)|integer|Blood color of the entity when shot.|nofgd=1|since=AS}}
{{KV|Blood Color|intn=BloodColor|integer|Blood color of the entity when shot.|nofgd=1|since=AS}}
{{confirm|Works? This keyvalue is defined as using integers}}| }}
{{confirm|Works? This keyvalue is defined as using integers}}| }}<noinclude>[[Category:Keyvalue Templates|BaseCombatCharacter]]</noinclude>

Latest revision as of 10:27, 25 September 2024

Template:KV_BaseAnimating

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


CBaseCombatCharacter:

Relationship (Relationship) <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) <float>
Multiplier for damage amount when this entity is hit by a physics object. With a value of 0 the entity will take no damage from physics.