Add PushSound property and Slide state
First Commit, hip hip hooray!
This commit is contained in:
parent
2a9e28d949
commit
9af664d117
7 changed files with 39 additions and 0 deletions
|
|
@ -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) &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue