Difference between revisions of "Template:HPL2 InstanceVars Enemy"
Jump to navigation
Jump to search
(Created page with "{|class="wikitable mw-collapsible" |+ style="white-space:nowrap;text-align:-webkit-center"| Instance Vars (All Enemies) ! Name !! Type !! Default !! Description |- | CallbackF...") |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
! Name !! Type !! Default !! Description | ! Name !! Type !! Default !! Description | ||
|- | |- | ||
− | | CallbackFunc || String || || A callback function used for a number of events. Syntax: <code>void Func(string &in asEntityName, string &in asType)</code>. | + | {{#ifeq:{{{1|}}}|amfp| |
+ | {{!}} 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. | ||
+ | {{!}}- | ||
+ | {{!}} IsOccluder {{!}}{{!}} Bool {{!}}{{!}} false {{!}}{{!}} If objects behind should be culled. | ||
+ | {{!}}- | ||
+ | {{!}} 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. | ||
+ | {{!}}- | ||
+ | }} | ||
+ | | CallbackFunc || String || || A callback function used for a number of events. Syntax: <code>void Func(string &in asEntityName, string &in asType)</code>. 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. | | 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. | + | | Hallucination || Bool || false || If true, the enemy will disappear when close enough to the player.{{#ifeq:{{{1|}}}|amfp|<br>Uses enemy_hallucination_disappear.snt, which isn't in the game files but can be added. The hallucination effect now consists of some organic particles instead of the TDD dust particles.}} |
|- | |- | ||
| HallucinationEndDist || Float || 3 || The distance at which the hallucination disappears | | HallucinationEndDist || Float || 3 || The distance at which the hallucination disappears | ||
|- | |- | ||
+ | {{#ifeq:{{{1|}}}|amfp| | ||
+ | {{!}} Blind {{!}}{{!}} Bool {{!}}{{!}} false {{!}}{{!}} If true, the enemy will not react to seeing the player. | ||
+ | {{!}}- | ||
+ | {{!}} Deaf {{!}}{{!}} Bool {{!}}{{!}} false {{!}}{{!}} If true, the enemy will not react to hearing the player. | ||
+ | {{!}}- | ||
+ | {{!}} Invisible {{!}}{{!}} Bool {{!}}{{!}} false {{!}}{{!}} No effect. Formerly made the enemy invisible.<br>Not defined in EntityTypes.cfg. | ||
+ | {{!}}- | ||
+ | {{!}} Pose {{!}}{{!}} String {{!}}{{!}} Biped {{!}}{{!}} The starting pose of the enemy.<br>Can be "Biped" or "Quadruped". | ||
+ | {{!}}- | ||
+ | }} | ||
|} | |} |
Latest revision as of 22:45, 14 January 2025
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 |