Template:I BaseNPC: Difference between revisions
Jump to navigation
Jump to search
Gameplayer (talk | contribs) No edit summary |
Gameplayer (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
<onlyinclude>{{expand|title=BaseNPC inputs| | <onlyinclude>{{expand|title=BaseNPC inputs| | ||
{{minititle|CAI_BaseNPC}} | {{minititle|CAI_BaseNPC}} | ||
{{IO| | {{IO|ActivateSpeedModifier}} | ||
{{IO|DisableSpeedModifier}} | |||
{{IO| | |||
{{IO|Break|Smash into pieces. If this is not possible, disappear.}} | {{IO|Break|Smash into pieces. If this is not possible, disappear.}} | ||
{{IO|BecomeRagdoll|Remove itself and instantly become a [[ragdoll]] with zero force (just go limp). OnDeath, etc. outputs will <strong>NOT</strong> be fired.|since=EP2}} | {{IO|BecomeRagdoll|Remove itself and instantly become a [[ragdoll]] with zero force (just go limp). OnDeath, etc. outputs will <strong>NOT</strong> be fired.|since=EP2}} | ||
Line 16: | Line 15: | ||
{{IO|HolsterAndDestroyWeapon|Same as <code>HolsterWeapon</code>, except the weapon is destroyed once it has been concealed.|since=EP1}} | {{IO|HolsterAndDestroyWeapon|Same as <code>HolsterWeapon</code>, except the weapon is destroyed once it has been concealed.|since=EP1}} | ||
{{IO|IgnoreDangerSounds|Ignore danger sounds for the specified number of seconds.|param=float}} | {{IO|IgnoreDangerSounds|Ignore danger sounds for the specified number of seconds.|param=float}} | ||
{{IO| | {{IO|InsideTransition}} | ||
{{IO|SetBodyGroup|HACK: Sets this NPC's body group (from 0–n).|param=int}}{{#ifeq: base | {{{branch|base}}} | | {{IO|OutsideTransition}} | ||
{{IO|SetBodyGroup|HACK: Sets this NPC's body group (from 0–n).|param=int}} | |||
{{IO|SetEnemyFilter|param=string}} | |||
{{IO|SetHealth|Set the NPC's health.|param=int}}{{#ifeq: base | {{{branch|base}}} | | |||
{{IO|SetMaxLookDistance|Sets the maximum look distance for the NPC. Defaults are 2048 and 6000 for long range NPCs.|param=float|only=GMOD}} }} | {{IO|SetMaxLookDistance|Sets the maximum look distance for the NPC. Defaults are 2048 and 6000 for long range NPCs.|param=float|only=GMOD}} }} | ||
{{IO|SetRelationship <[[string]]{{!}}[[targetname]] or [[classname]]> <[[string]]{{!}}disposition> <[[int]]{{!}}rank>|Changes whether this NPC likes or dislikes certain others. Used like the {{ent|ai_relationship}} entity, with this NPC as the subject. | {{IO|SetRelationship <[[string]]{{!}}[[targetname]] or [[classname]]> <[[string]]{{!}}disposition> <[[int]]{{!}}rank>|Changes whether this NPC likes or dislikes certain others. Used like the {{ent|ai_relationship}} entity, with this NPC as the subject. |
Revision as of 13:48, 25 September 2024
CAI_BaseNPC:
CBaseCombatCharacter:
DamageFilter: |