Play sound when getting low on rings
This commit is contained in:
parent
7d7e107fc2
commit
43ad4b045b
1 changed files with 6 additions and 0 deletions
|
|
@ -3174,6 +3174,12 @@ void A_AttractChase(mobj_t *actor)
|
|||
actor->target->player->ringboost += K_GetKartRingPower(actor->target->player, true) + 3;
|
||||
S_StartSoundAtVolume(actor->target, sfx_s1b5, actor->target->player->ringvolume);
|
||||
|
||||
if (actor->target->player->rings <= 10)
|
||||
{
|
||||
S_StartSoundAtVolume(actor->target, sfx_s251, 255 - actor->target->player->rings*8);
|
||||
S_StartSoundAtVolume(actor->target, sfx_s251, 255 - actor->target->player->rings*8);
|
||||
}
|
||||
|
||||
if (actor->target->player->ringboost > (4*TICRATE + TICRATE/2))
|
||||
actor->target->player->ringboost = (4*TICRATE + TICRATE/2);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue