mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Battle UFO: tractor pull strength is stronger at bottom, weaker at top
This commit is contained in:
parent
b064d133f1
commit
40b4cc845b
1 changed files with 3 additions and 1 deletions
|
|
@ -787,7 +787,9 @@ static BlockItReturn_t PIT_CheckThing(mobj_t *thing)
|
||||||
|
|
||||||
if (!tm.thing->player || !tm.thing->player->fastfall)
|
if (!tm.thing->player || !tm.thing->player->fastfall)
|
||||||
{
|
{
|
||||||
P_SetObjectMomZ(tm.thing, FRACUNIT, true);
|
fixed_t tractorHeight = 211*mapobjectscale;
|
||||||
|
fixed_t zRange = FixedDiv(thing->z - tm.thing->z, tractorHeight);
|
||||||
|
P_SetObjectMomZ(tm.thing, max(zRange, FRACUNIT/16), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
fixed_t friction = 33*FRACUNIT/35;
|
fixed_t friction = 33*FRACUNIT/35;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue