MaceBallImpact

From Eternity Wiki
Revision as of 16:01, 23 April 2020 by Printz (talk | contribs) (Created page with "{{codepointer |description=Small Heretic firemace ball impact action. |usage='''MaceBallImpact''' |examples= From base/heretic/things.edf: Death: FX02 F 4 bright A_MaceB...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Description

Small Heretic firemace ball impact action.

Usage

MaceBallImpact

Parameters

No parameters.

Examples

From base/heretic/things.edf:

 Death:
   FX02 F 4 bright A_MaceBallImpact
   FX02 GHIJ 4 bright
   stop

Notes

If the projectile landed on liquid, just remove it (what will remain will be the terrain effect).

Otherwise, if it still has vertical velocity and hits the floor, it will bounce back up at 75% velocity and lose the HERETICBOUNCES flag. Its state will be reset to its spawnstate to prevent being lost, and will play sound 415 (ht_bounce). This codepointer will only work once. On second attempt, or if it doesn't hit the floor, it will become NOGRAVITY, lose LOGRAV and play sound 359 (ht_lobhit).

If actor has 1234 hit points, it will never bounce (technically on first bounce it this pointer will give it 1234 hit points so it doesn't bounce again).

See also