Added WorldThingGround event to hook into the actor at exact moment its corpse spawns gibs upon being crushed.

This commit is contained in:
nashmuhandes 2020-09-06 20:34:40 +08:00 committed by Christoph Oelckers
commit 7285c5aca8
4 changed files with 33 additions and 1 deletions

View file

@ -1204,6 +1204,7 @@ bool AActor::Grind(bool items)
S_Sound (this, CHAN_BODY, 0, "misc/fallingsplat", 1, ATTN_IDLE);
Translation = BloodTranslation;
}
Level->localEventManager->WorldThingGround(this);
return false;
}
if (!(flags & MF_NOBLOOD))
@ -1246,6 +1247,7 @@ bool AActor::Grind(bool items)
gib->Translation = BloodTranslation;
}
S_Sound (this, CHAN_BODY, 0, "misc/fallingsplat", 1, ATTN_IDLE);
Level->localEventManager->WorldThingGround(this);
}
if (flags & MF_ICECORPSE)
{