mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Battle UFO: do not suck up into tractor beam if player is fast-falling
This commit is contained in:
parent
fe60216559
commit
8d2327c5c9
1 changed files with 5 additions and 1 deletions
|
|
@ -785,7 +785,11 @@ static BlockItReturn_t PIT_CheckThing(mobj_t *thing)
|
||||||
return BMIT_CONTINUE; // overhead
|
return BMIT_CONTINUE; // overhead
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!tm.thing->player || !tm.thing->player->fastfall)
|
||||||
|
{
|
||||||
P_SetObjectMomZ(tm.thing, FRACUNIT, true);
|
P_SetObjectMomZ(tm.thing, FRACUNIT, true);
|
||||||
|
}
|
||||||
|
|
||||||
fixed_t friction = 33*FRACUNIT/35;
|
fixed_t friction = 33*FRACUNIT/35;
|
||||||
tm.thing->momx = FixedMul(tm.thing->momx, friction);
|
tm.thing->momx = FixedMul(tm.thing->momx, friction);
|
||||||
tm.thing->momy = FixedMul(tm.thing->momy, friction);
|
tm.thing->momy = FixedMul(tm.thing->momy, friction);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue