mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-09 01:01:05 +00:00
Simplify sliding objects for now
This commit is contained in:
parent
9af664d117
commit
b66433478c
2 changed files with 1 additions and 12 deletions
|
@ -349,7 +349,6 @@ xx(GenericFreezeDeath)
|
||||||
xx(GenericCrush)
|
xx(GenericCrush)
|
||||||
xx(DieFromSpawn)
|
xx(DieFromSpawn)
|
||||||
xx(Slam)
|
xx(Slam)
|
||||||
xx(Slide)
|
|
||||||
|
|
||||||
// Bounce state names
|
// Bounce state names
|
||||||
xx(Bounce)
|
xx(Bounce)
|
||||||
|
|
|
@ -1684,19 +1684,9 @@ bool PIT_CheckThing(FMultiBlockThingsIterator &it, FMultiBlockThingsIterator::Ch
|
||||||
{ // Push thing
|
{ // Push thing
|
||||||
if (thing->lastpush != tm.PushTime)
|
if (thing->lastpush != tm.PushTime)
|
||||||
{
|
{
|
||||||
|
thing->PlayPushSound();
|
||||||
thing->Vel += tm.thing->Vel.XY() * thing->pushfactor;
|
thing->Vel += tm.thing->Vel.XY() * thing->pushfactor;
|
||||||
thing->lastpush = tm.PushTime;
|
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) &&
|
solid = (thing->flags & MF_SOLID) &&
|
||||||
|
|
Loading…
Reference in a new issue