mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Add a fudge constant to the stumble indicator
This commit is contained in:
parent
6d45e58425
commit
e347fadf02
1 changed files with 2 additions and 1 deletions
|
|
@ -3925,6 +3925,7 @@ void K_InitStumbleIndicator(player_t *player)
|
||||||
|
|
||||||
void K_UpdateStumbleIndicator(player_t *player)
|
void K_UpdateStumbleIndicator(player_t *player)
|
||||||
{
|
{
|
||||||
|
const angle_t fudge = ANG10;
|
||||||
mobj_t *mobj = NULL;
|
mobj_t *mobj = NULL;
|
||||||
|
|
||||||
boolean air = false;
|
boolean air = false;
|
||||||
|
|
@ -3956,7 +3957,7 @@ void K_UpdateStumbleIndicator(player_t *player)
|
||||||
P_MoveOrigin(mobj, player->mo->x, player->mo->y, player->mo->z + (player->mo->height / 2));
|
P_MoveOrigin(mobj, player->mo->x, player->mo->y, player->mo->z + (player->mo->height / 2));
|
||||||
|
|
||||||
air = !P_IsObjectOnGround(player->mo);
|
air = !P_IsObjectOnGround(player->mo);
|
||||||
steepVal = air ? STUMBLE_STEEP_VAL_AIR : STUMBLE_STEEP_VAL;
|
steepVal = (air ? STUMBLE_STEEP_VAL_AIR : STUMBLE_STEEP_VAL) - fudge;
|
||||||
slopeSteep = max(AngleDelta(player->mo->pitch, 0), AngleDelta(player->mo->roll, 0));
|
slopeSteep = max(AngleDelta(player->mo->pitch, 0), AngleDelta(player->mo->roll, 0));
|
||||||
|
|
||||||
delta = 0;
|
delta = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue