mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 04:41:23 +00:00
Apply banana drag effect to offroad
This commit is contained in:
parent
22b3a29d12
commit
a3211df748
1 changed files with 8 additions and 8 deletions
16
src/k_kart.c
16
src/k_kart.c
|
@ -1625,6 +1625,14 @@ static void K_GetKartBoostPower(player_t *player)
|
|||
else if (player->kartstuff[k_bananadrag] > TICRATE)
|
||||
boostpower = 4*boostpower/5;
|
||||
|
||||
// Banana drag/offroad dust
|
||||
if (boostpower < FRACUNIT)
|
||||
{
|
||||
K_SpawnWipeoutTrail(player->mo, true);
|
||||
if (leveltime % 6 == 0)
|
||||
S_StartSound(player->mo, sfx_cdfm70);
|
||||
}
|
||||
|
||||
if (player->kartstuff[k_sneakertimer]) // Sneaker
|
||||
{
|
||||
switch (gamespeed)
|
||||
|
@ -3564,15 +3572,7 @@ static void K_MoveHeldObjects(player_t *player)
|
|||
mobj_t *targ = player->mo;
|
||||
|
||||
if (P_IsObjectOnGround(player->mo) && player->speed > 0)
|
||||
{
|
||||
player->kartstuff[k_bananadrag]++;
|
||||
if (player->kartstuff[k_bananadrag] > TICRATE)
|
||||
{
|
||||
K_SpawnWipeoutTrail(player->mo, true);
|
||||
if (leveltime % 6 == 0)
|
||||
S_StartSound(player->mo, sfx_cdfm70);
|
||||
}
|
||||
}
|
||||
|
||||
while (cur && !P_MobjWasRemoved(cur))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue