Offroad spark fix & sink

This commit is contained in:
Sally Cochenour 2019-02-02 00:58:51 -05:00
parent 34b027e8ba
commit 6a14d79cf0
2 changed files with 5 additions and 9 deletions

View file

@ -1637,10 +1637,8 @@ static void K_GetKartBoostPower(player_t *player)
&& player->kartstuff[k_offroad] >= 0) && player->kartstuff[k_offroad] >= 0)
boostpower = FixedDiv(boostpower, player->kartstuff[k_offroad] + FRACUNIT); boostpower = FixedDiv(boostpower, player->kartstuff[k_offroad] + FRACUNIT);
if (player->kartstuff[k_itemtype] == KITEM_KITCHENSINK) if (player->kartstuff[k_bananadrag] > TICRATE)
boostpower = max((TICRATE/2), (5*TICRATE)-(player->kartstuff[k_bananadrag]/2))*boostpower/(5*TICRATE); boostpower = (4*boostpower)/5;
else if (player->kartstuff[k_bananadrag] > TICRATE)
boostpower = 4*boostpower/5;
// Banana drag/offroad dust // Banana drag/offroad dust
if (boostpower < FRACUNIT if (boostpower < FRACUNIT
@ -4716,9 +4714,9 @@ static void K_KartDrift(player_t *player, boolean onground)
} }
// Disable drift-sparks until you're going fast enough // Disable drift-sparks until you're going fast enough
if (player->kartstuff[k_getsparks] == 0) if (player->kartstuff[k_getsparks] == 0 || player->kartstuff[k_offroad])
driftadditive = 0; driftadditive = 0;
if (player->speed > minspeed*2 && !player->kartstuff[k_offroad]) if (player->speed > minspeed*2)
player->kartstuff[k_getsparks] = 1; player->kartstuff[k_getsparks] = 1;
// This spawns the drift sparks // This spawns the drift sparks

View file

@ -1408,10 +1408,8 @@ fixed_t P_GetMobjGravity(mobj_t *mo)
case MT_JAWZ: case MT_JAWZ:
case MT_JAWZ_DUD: case MT_JAWZ_DUD:
case MT_SSMINE: case MT_SSMINE:
gravityadd = (5*gravityadd)/2;
break;
case MT_SINK: case MT_SINK:
gravityadd = (5*gravityadd); // Double gravity gravityadd = (5*gravityadd)/2;
break; break;
case MT_SIGN: case MT_SIGN:
gravityadd /= 8; gravityadd /= 8;