mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Allow fastfall out of water run
This commit is contained in:
parent
8f320b6ac2
commit
3a305be3cd
2 changed files with 16 additions and 0 deletions
|
|
@ -2983,6 +2983,12 @@ boolean K_WaterSkip(mobj_t *mobj)
|
|||
// Don't allow
|
||||
return false;
|
||||
}
|
||||
|
||||
if (K_PlayerEBrake(mobj->player))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Allow
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
10
src/p_mobj.c
10
src/p_mobj.c
|
|
@ -3358,6 +3358,16 @@ boolean P_CanRunOnWater(mobj_t *mobj, ffloor_t *rover)
|
|||
}
|
||||
}
|
||||
|
||||
// E-brake during water-run forces a fastfall.
|
||||
// We disable the ebrake input safety to do this, so we've gotta check it as late as
|
||||
// possible: otherwise, this would cause misinput fastfall or underwater twerking.
|
||||
if (mobj->player != NULL && K_PlayerEBrake(mobj->player))
|
||||
{
|
||||
if (P_IsObjectOnGround(mobj) && !mobj->player->fastfall)
|
||||
mobj->player->pflags &= ~PF_NOFASTFALL;
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue