Battle: screen shake when Barrier arms and once it reaches smallest radius

- Plays sound effect when Barrier reaches minimum size.
This commit is contained in:
James R 2024-01-03 05:39:13 -08:00
parent c9398e21be
commit 6431ef8250

View file

@ -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