mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-16 17:51:27 +00:00
Merge branch 'sonicitems' of https://git.magicalgirl.moe/STJr/SRB2.git into sonicitems
This commit is contained in:
commit
3295d6302a
1 changed files with 10 additions and 4 deletions
10
src/k_kart.c
10
src/k_kart.c
|
@ -3706,14 +3706,20 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
|||
if ((leveltime == starttime-(3*TICRATE)) || (leveltime == starttime-(2*TICRATE)) || (leveltime == starttime-TICRATE))
|
||||
S_StartSound(NULL, sfx_s3ka7);
|
||||
if (leveltime == starttime)
|
||||
{
|
||||
S_StartSound(NULL, sfx_s3kad);
|
||||
S_StopMusic(); // The GO! sound stops the level start ambience
|
||||
}
|
||||
}
|
||||
|
||||
// Start charging once you're given the opportunity.
|
||||
if (leveltime >= starttime-(2*TICRATE) && leveltime <= starttime && cmd->buttons & BT_ACCELERATE)
|
||||
if (leveltime >= starttime-(2*TICRATE) && leveltime <= starttime)
|
||||
{
|
||||
if (cmd->buttons & BT_ACCELERATE)
|
||||
player->kartstuff[k_boostcharge]++;
|
||||
if (leveltime >= starttime-(2*TICRATE) && leveltime <= starttime && !(cmd->buttons & BT_ACCELERATE))
|
||||
else
|
||||
player->kartstuff[k_boostcharge] = 0;
|
||||
}
|
||||
|
||||
// Increase your size while charging your engine.
|
||||
if (leveltime < starttime+10)
|
||||
|
|
Loading…
Reference in a new issue