Add PushSound property and Slide state

First Commit, hip hip hooray!
This commit is contained in:
UnizoneDev 2022-11-11 14:23:58 -06:00 committed by Christoph Oelckers
commit 9af664d117
7 changed files with 39 additions and 0 deletions

View file

@ -1686,6 +1686,17 @@ bool PIT_CheckThing(FMultiBlockThingsIterator &it, FMultiBlockThingsIterator::Ch
{
thing->Vel += tm.thing->Vel.XY() * thing->pushfactor;
thing->lastpush = tm.PushTime;
FState* push = thing->FindState(NAME_Slide);
if (push != NULL)
{
thing->SetState(push);
thing->PlayPushSound();
}
else
{
thing->SetIdle();
}
}
}
solid = (thing->flags & MF_SOLID) &&