Editing VileChase

From Eternity Wiki
Jump to navigationJump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{codepointer
Type: AI pointer, normal
|description=Chase for target while also potentially raising the dead in the way (like the Doom 2 archvile).
|usage='''VileChase'''
|examples=
From base/doom/things.edf:
  See:
    VILE AABBCCDDEEFF 2 A_VileChase
    loop
|notes=When a corpse (thing with the '''CORPSE''' [[thing type flags|flag]] set) is encountered which has a resurrection state, is currently in a frame with a -1 tics value, and is not currently blocked by any other creature, the object will stop beside it and transfer to its '''healstate''' ('''Heal''' on Decorate) or, if not set, to frame #266 ('''S_VILE_HEAL''' in Doom). The object being resurrected will emit the '''slop''' sound and will be placed into its first resurrection frame ('''raisestate''' or '''Raise''').


The resurrected object's normal height, radius, health, and flags information will be restored. Friendliness of the object performing the resurrection will be transferred to the resurrected object (friendly objects resurrect friends, and vice versa). If no corpses are found to resurrect, control transfers to the [[Chase]] codepointer for normal attack and walking logic.
Purpose: Causes an object to look for monster corpses as it walks. When a corpse is encountered which has a resurrection state, is currently in a frame with a -1 tics value, and is not currently blocked by any other creature, the object will stop beside it and transfer to frame #266 (S_VILE_HEAL). The object being resurrected will emit the DSSLOP sound and will be placed into its first resurrection frame. The resurrected object's normal height, radius, health, and flags information will be restored. Friendliness of the object performing the resurrection will be transferred to the resurrected object (friendly objects resurrect friends, and vice versa). If no corpses are found to resurrect, control transfers to the Chase codepointer for normal attack and walking logic.


If '''comp_vile''' is set in the game configuration or [[OPTIONS]], crushed creatures will not have their height or radius information restored, and will become "ghosts."
Notes: If comp_vile is set, crushed creatures will not have their height or radius information restored, and will become "ghosts."
|seealso=
[[Category:Codepointers]]
*[[Chase]]
}}
Please note that all contributions to Eternity Wiki are considered to be released under the GNU Free Documentation License 1.2 (see Eternity Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)

Template used on this page: