From 02a2db560933cca16f6db651ddf3567cafd3f8a9 Mon Sep 17 00:00:00 2001 From: Steam Deck User Date: Sun, 19 Mar 2023 17:40:43 -0400 Subject: [PATCH] SERVER: Add additional sound for Nuke Power-Up --- source/server/entities/powerups.qc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/server/entities/powerups.qc b/source/server/entities/powerups.qc index ffbd19c..ee89f0b 100644 --- a/source/server/entities/powerups.qc +++ b/source/server/entities/powerups.qc @@ -311,6 +311,9 @@ void() PU_NukeKill = // kill a target self.th_die(); + // override their death sound + sound(self, CHAN_BODY, "sounds/pu/nuke.wav", 1, ATTN_NORM); + // restore self self = oldself; @@ -487,7 +490,7 @@ void() PU_Init = } // Just add all of them for now - PU_AddToStruct(PU_NUKE, true, "models/pu/nuke!.mdl", "sounds/pu/nuke.wav", PU_Nuke, + PU_AddToStruct(PU_NUKE, true, "models/pu/nuke!.mdl", "sounds/pu/kaboom.wav", PU_Nuke, PU_NullRequirement ); PU_AddToStruct(PU_INSTAKILL, false, "models/pu/instakill!.mdl", "sounds/pu/insta_kill.wav", PU_InstaKill, PU_NullRequirement ); @@ -498,6 +501,9 @@ void() PU_Init = PU_AddToStruct(PU_MAXAMMO, false, "models/pu/maxammo!.mdl", "sounds/pu/maxammo.wav", PU_MaxAmmo, PU_NullRequirement ); + // Nuke requires an extra Precache + precache_sound("sounds/pu/nuke.wav"); + // Fill the array PU_PopulateArray();