mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-19 22:42:46 +00:00
POINTS power-up: play SRB2 emerald token SFX on pickup
This commit is contained in:
parent
87531075f1
commit
c2c15f12d3
1 changed files with 7 additions and 0 deletions
|
|
@ -6,6 +6,8 @@
|
||||||
#include "k_objects.h"
|
#include "k_objects.h"
|
||||||
#include "k_powerup.h"
|
#include "k_powerup.h"
|
||||||
#include "k_hud.h" // K_AddMessage
|
#include "k_hud.h" // K_AddMessage
|
||||||
|
#include "p_mobj.h"
|
||||||
|
#include "s_sound.h"
|
||||||
|
|
||||||
tic_t K_PowerUpRemaining(const player_t* player, kartitems_t powerup)
|
tic_t K_PowerUpRemaining(const player_t* player, kartitems_t powerup)
|
||||||
{
|
{
|
||||||
|
|
@ -91,6 +93,11 @@ void K_GivePowerUp(player_t* player, kartitems_t powerup, tic_t time)
|
||||||
case POWERUP_POINTS:
|
case POWERUP_POINTS:
|
||||||
K_AddMessageForPlayer(player, "Got 6 POINTS!", true, false);
|
K_AddMessageForPlayer(player, "Got 6 POINTS!", true, false);
|
||||||
K_GivePointsToPlayer(player, nullptr, 6);
|
K_GivePointsToPlayer(player, nullptr, 6);
|
||||||
|
|
||||||
|
if (!P_MobjWasRemoved(player->mo))
|
||||||
|
{
|
||||||
|
S_StartSound(player->mo, sfx_token);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue