Update the bottlenecker...again
This commit is contained in:
parent
70ab81a81d
commit
42a441ec0e
2 changed files with 16 additions and 2 deletions
|
|
@ -93,7 +93,7 @@
|
|||
#define ASSET_HASH_TEXTURES_KART 0xb4211b2f32b6a291
|
||||
#define ASSET_HASH_CHARS_KART 0x1e68a3e01aa5c68b
|
||||
#define ASSET_HASH_MAPS_KART 0x38558ed00da41ce9
|
||||
#define ASSET_HASH_MAIN_PK3 0xbbd57453623962af
|
||||
#define ASSET_HASH_MAIN_PK3 0x6ae176cd227ed0eb
|
||||
#define ASSET_HASH_MAPPATCH_PK3 0x6ad99efcfaafb70f
|
||||
#define ASSET_HASH_BONUSCHARS_KART 0x60e6f13d822a7461
|
||||
#ifdef USE_PATCH_FILE
|
||||
|
|
|
|||
16
src/k_kart.c
16
src/k_kart.c
|
|
@ -7259,14 +7259,28 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
|
|||
{
|
||||
if (!player->invincibilitywarning)
|
||||
{
|
||||
S_StartSound(player->mo, sfx_cdfm79);
|
||||
S_StartSound(player->mo, sfx_cdfm71);
|
||||
player->invincibilitywarning = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (((INT16)(player->invincibilitybottleneck) > 127) &&
|
||||
(!S_SoundPlaying(player->mo, sfx_s3kbes)))
|
||||
{
|
||||
S_StartSound(player->mo, sfx_s3kbes);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
player->invincibilitytimer--;
|
||||
|
||||
if (S_SoundPlaying(player->mo, sfx_s3kbes) &&
|
||||
K_IsKartItemAlternate(KITEM_INVINCIBILITY))
|
||||
{
|
||||
// Shut off the bottlenecker sound.
|
||||
S_StopSoundByID(player->mo, sfx_s3kbes);
|
||||
}
|
||||
|
||||
player->invincibilitybottleneck = 0;
|
||||
player->invincibilitywarning = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue