mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-24 23:46:16 +00:00
Change threshold on autobrake skidding sound/animaton to runspeed rather than half of runspeed.
This commit is contained in:
parent
e8cf839d2f
commit
7a4d1eefdb
1 changed files with 1 additions and 1 deletions
|
|
@ -11289,7 +11289,7 @@ void P_PlayerThink(player_t *player)
|
|||
if (!currentlyonground)
|
||||
acceleration /= 2;
|
||||
// fake skidding! see P_SkidStuff for reference on conditionals
|
||||
else if (!player->skidtime && !(player->mo->eflags & MFE_GOOWATER) && !(player->pflags & (PF_JUMPED|PF_SPINNING|PF_SLIDING)) && !(player->charflags & SF_NOSKID) && P_AproxDistance(player->mo->momx, player->mo->momy) >= FixedMul(player->runspeed/2, player->mo->scale))
|
||||
else if (!player->skidtime && !(player->mo->eflags & MFE_GOOWATER) && !(player->pflags & (PF_JUMPED|PF_SPINNING|PF_SLIDING)) && !(player->charflags & SF_NOSKID) && P_AproxDistance(player->mo->momx, player->mo->momy) >= FixedMul(player->runspeed, player->mo->scale)) // modified from player->runspeed/2 'cuz the skid was just TOO frequent ngl
|
||||
{
|
||||
if (player->mo->state-states != S_PLAY_SKID)
|
||||
P_SetPlayerMobjState(player->mo, S_PLAY_SKID);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue