From 6431ef8250398f6f57b0283ec96805d325a86423 Mon Sep 17 00:00:00 2001 From: James R Date: Wed, 3 Jan 2024 05:39:13 -0800 Subject: [PATCH] Battle: screen shake when Barrier arms and once it reaches smallest radius - Plays sound effect when Barrier reaches minimum size. --- src/k_battle.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/k_battle.c b/src/k_battle.c index c7993c410..8fa3909ae 100644 --- a/src/k_battle.c +++ b/src/k_battle.c @@ -694,7 +694,10 @@ void K_RunBattleOvertime(void) Music_DelayEnd("level", 0); } else if (battleovertime.enabled == 10*TICRATE) + { S_StartSound(NULL, sfx_kc40); + P_StartQuake(5, 64 * mapobjectscale, 0, NULL); + } if (!Music_Playing("level") && !Music_Playing("battle_overtime")) { @@ -718,6 +721,8 @@ void K_RunBattleOvertime(void) { battleovertime.radius = minradius; K_CheckBumpers(); + S_StartSound(NULL, sfx_kc40); + P_StartQuake(5, 64 * mapobjectscale, 0, NULL); } // Subtract the 10 second grace period of the barrier