- added DavidPH's submission for allowing a special state on puffs when hitting bleeding actors.

SVN r3234 (trunk)
This commit is contained in:
Christoph Oelckers 2011-06-13 10:34:46 +00:00
commit a587ffed57
3 changed files with 9 additions and 1 deletions

View file

@ -4421,6 +4421,10 @@ AActor *P_SpawnPuff (AActor *source, const PClass *pufftype, fixed_t x, fixed_t
{
puff->SetState (crashstate);
}
else if ((flags & PF_HITTHINGBLEED) && (crashstate = puff->FindState(NAME_Death, NAME_Extreme, true)) != NULL)
{
puff->SetState (crashstate);
}
else if ((flags & PF_MELEERANGE) && puff->MeleeState != NULL)
{
// handle the hard coded state jump of Doom's bullet puff