More guard sfx

This commit is contained in:
AJ Martinez 2023-05-19 19:45:20 -07:00
parent d725963f42
commit f6407d03d0
3 changed files with 7 additions and 2 deletions

View file

@ -744,7 +744,7 @@ static void K_PlayerJustBumped(player_t *player, boolean guardbreak)
if (guardbreak && K_PlayerGuard(player))
{
S_StartSound(player->mo, sfx_s3k9e);
S_StartSound(player->mo, sfx_gbrk);
K_AddHitLag(player->mo, TICRATE, true);
player->instaShieldCooldown = 2*TICRATE;
}
@ -9865,6 +9865,9 @@ void K_KartEbrakeVisuals(player_t *p)
P_SetScale(body, p->mo->scale);
K_MatchGenericExtraFlags(body, p->mo);
body->renderflags |= RF_DONTDRAW;
if (K_PlayerGuard(p))
S_StartSound(body, sfx_s1af);
}
// HOLD! bubble.

View file

@ -1184,7 +1184,8 @@ sfxinfo_t S_sfx[NUMSFX] =
{"monch", false, 255, 0, -1, NULL, 0, -1, -1, LUMPERROR, ""},
{"etexpl", false, 255, 0, -1, NULL, 0, -1, -1, LUMPERROR, "Game crash"},
{"iwhp", false, 255, 0, -1, NULL, 0, -1, -1, LUMPERROR, ""}, // Grow alarm
{"iwhp", false, 255, 0, -1, NULL, 0, -1, -1, LUMPERROR, ""}, // Instawhip attack
{"gbrk", false, 255, 8, -1, NULL, 0, -1, -1, LUMPERROR, ""}, // Guard break!
// SRB2Kart - Engine sounds
// Engine class A

View file

@ -1254,6 +1254,7 @@ typedef enum
sfx_etexpl,
sfx_iwhp,
sfx_gbrk,
// Next up: UNIQUE ENGINE SOUNDS! Hoooooo boy...
// Engine class A - Low Speed, Low Weight