mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-28 10:42:34 +00:00
Don't stair jank on really small steps
Also don't do it off slope launches.
This commit is contained in:
parent
50c198cc0f
commit
b3293aa122
2 changed files with 8 additions and 5 deletions
10
src/p_map.c
10
src/p_map.c
|
|
@ -2492,7 +2492,7 @@ boolean P_TryMove(mobj_t *thing, fixed_t x, fixed_t y, boolean allowdropoff)
|
|||
|
||||
if (maxstep > 0)
|
||||
{
|
||||
const fixed_t minstep = maxstep / 8;
|
||||
const fixed_t minstep = maxstep / 4;
|
||||
|
||||
thingtop = thing->z + thing->height;
|
||||
|
||||
|
|
@ -2501,7 +2501,7 @@ boolean P_TryMove(mobj_t *thing, fixed_t x, fixed_t y, boolean allowdropoff)
|
|||
{
|
||||
if (tmfloorstep <= maxstep)
|
||||
{
|
||||
stairjank = thing->floordrop;
|
||||
stairjank = tmfloorstep;
|
||||
stairstep = minstep;
|
||||
|
||||
thing->z = thing->floorz = tmfloorz;
|
||||
|
|
@ -2517,7 +2517,7 @@ boolean P_TryMove(mobj_t *thing, fixed_t x, fixed_t y, boolean allowdropoff)
|
|||
{
|
||||
if (tmceilingstep <= maxstep)
|
||||
{
|
||||
stairjank = thing->ceilingdrop;
|
||||
stairjank = tmceilingstep;
|
||||
stairstep = minstep;
|
||||
|
||||
thing->z = ( thing->ceilingz = tmceilingz ) - thing->height;
|
||||
|
|
@ -2536,7 +2536,7 @@ boolean P_TryMove(mobj_t *thing, fixed_t x, fixed_t y, boolean allowdropoff)
|
|||
|
||||
if (thingtop == thing->ceilingz && tmceilingz > thingtop && tmceilingz - thingtop <= maxstep)
|
||||
{
|
||||
stairjank = thing->ceilingdrop;
|
||||
stairjank = (tmceilingz - thingtop);
|
||||
stairstep = minstep;
|
||||
|
||||
thing->z = (thing->ceilingz = tmceilingz) - thing->height;
|
||||
|
|
@ -2546,7 +2546,7 @@ boolean P_TryMove(mobj_t *thing, fixed_t x, fixed_t y, boolean allowdropoff)
|
|||
}
|
||||
else if (thing->z == thing->floorz && tmfloorz < thing->z && thing->z - tmfloorz <= maxstep)
|
||||
{
|
||||
stairjank = thing->floordrop;
|
||||
stairjank = (thing->z - tmfloorz);
|
||||
stairstep = minstep;
|
||||
|
||||
thing->z = thing->floorz = tmfloorz;
|
||||
|
|
|
|||
|
|
@ -850,7 +850,10 @@ void P_SlopeLaunch(mobj_t *mo)
|
|||
mo->standingslope = NULL;
|
||||
|
||||
if (mo->player)
|
||||
{
|
||||
mo->player->powers[pw_justlaunched] = 1;
|
||||
mo->player->stairjank = 0; // fuck you
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue