Difference between revisions of "Template:HPL2 InstanceVars Enemy"

From Frictional Wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
|-
 
|-
 
{{#ifeq:{{{1|}}}|amfp|
 
{{#ifeq:{{{1|}}}|amfp|
{{!}} AutoRemoveAtPathEnd {{!}}{{!}} Bool {{!}}{{!}} true {{!}}{{!}} Unused. If enemy should be removed when it reaches the end of the path.<br>Must not be seen by the player and must be more than 10 meters away from them.
+
{{!}} AutoRemoveAtPathEnd {{!}}{{!}} Bool {{!}}{{!}} true {{!}}{{!}} If enemy should be removed when it reaches the end of the path.<br>Must not be seen by the player and must be more than 10 meters away from them.
 
{{!}}-
 
{{!}}-
{{!}} AutoReverseAtPathEnd {{!}}{{!}} Bool {{!}}{{!}} false {{!}}{{!}} No effect. Formerly made the enemy return to its first patrol node if it didn't auto-disable on reaching the end of its path.
+
{{!}} IsOccluder {{!}}{{!}} Bool {{!}}{{!}} false {{!}}{{!}} If objects behind should be culled.
 
{{!}}-
 
{{!}}-
{{!}} mfAutoRemoveMinPlayerDistance {{!}}{{!}} Float {{!}}{{!}} 10 {{!}}{{!}} No effect. Formerly the minimum distance from the player that the enemy needs to be in order to be auto-removed at the end of its path.
+
{{!}} AutoReverseAtPathEnd {{!}}{{!}} Bool {{!}}{{!}} false {{!}}{{!}} No effect. Formerly made the enemy return to its first patrol node if it didn't auto-disable on reaching the end of its path.<br>Not defined in EntityTypes.cfg.
 +
{{!}}-
 +
{{!}} AutoRemoveMinPlayerDistance {{!}}{{!}} Float {{!}}{{!}} 10 {{!}}{{!}} No effect. Formerly the minimum distance from the player that the enemy needs to be in order to be auto-removed at the end of its path.
 
{{!}}-
 
{{!}}-
 
}}
 
}}
Line 20: Line 22:
 
|-
 
|-
 
{{#ifeq:{{{1|}}}|amfp|
 
{{#ifeq:{{{1|}}}|amfp|
{{!}} Blind {{!}}{{!}} Bool {{!}}{{!}} false {{!}}{{!}} If the enemy cannot see.
+
{{!}} Blind {{!}}{{!}} Bool {{!}}{{!}} false {{!}}{{!}} If true, the enemy will not react to seeing the player.
 
{{!}}-
 
{{!}}-
{{!}} Deaf {{!}}{{!}} Bool {{!}}{{!}} false {{!}}{{!}} If the enemy cannot hear.
+
{{!}} Deaf {{!}}{{!}} Bool {{!}}{{!}} false {{!}}{{!}} If true, the enemy will not react to hearing the player.
 
{{!}}-
 
{{!}}-
{{!}} Invisible {{!}}{{!}} Bool {{!}}{{!}} false {{!}}{{!}} No effect. Formerly made the enemy invisible.
+
{{!}} Invisible {{!}}{{!}} Bool {{!}}{{!}} false {{!}}{{!}} No effect. Formerly made the enemy invisible.<br>Not defined in EntityTypes.cfg.
 
{{!}}-
 
{{!}}-
{{!}} Pose {{!}}{{!}} String {{!}}{{!}} biped {{!}}{{!}} The starting pose.<br>Can be "biped" or "quadruped".
+
{{!}} Pose {{!}}{{!}} String {{!}}{{!}} Biped {{!}}{{!}} The starting pose of the enemy.<br>Can be "Biped" or "Quadruped".
 
{{!}}-
 
{{!}}-
 
}}
 
}}
 
|}
 
|}

Latest revision as of 23:45, 14 January 2025

Instance Vars (All Enemies) Collapse
Name Type Default Description
CallbackFunc String A callback function used for a number of events. Syntax: void Func(string &in asEntityName, string &in asType). asType can be OnDeath or OnAutoDisabled
DisableTriggers Bool false If true, the enemy does not react to any trigger such as seeing or hearing the player.
Hallucination Bool false If true, the enemy will disappear when close enough to the player.
HallucinationEndDist Float 3 The distance at which the hallucination disappears