MaceBallImpact

From Eternity Wiki
Jump to: navigation, search

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