Added WorldThingGround event to hook into the actor at exact moment its corpse spawns gibs upon being crushed.
This commit is contained in:
parent
54f85d4caa
commit
7285c5aca8
4 changed files with 33 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue