]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Play the beep sound when the last rocket is loaded, to notify the player of that...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 12 Apr 2011 16:52:26 +0000 (19:52 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 12 Apr 2011 16:52:26 +0000 (19:52 +0300)
qcsrc/server/w_hagar.qc

index 025edf927e59c7ec825a1298198f71c3ebafaeae..80384e35d32c9b3dad4e7cdc501c74540feb2f7a 100644 (file)
@@ -164,6 +164,10 @@ void W_Hagar_Attack2_Load (void)
                                self.hagar_load += 1;
                                sound(self, CHAN_WEAPON2, "weapons/hagar_load.wav", VOL_BASE, ATTN_NORM);
 
+                               // if this is the last rocket we can load, play a beep sound to notify the player of that
+                               if(self.hagar_load >= autocvar_g_balance_hagar_secondary_load_max)
+                                       sound(self, CHAN_WEAPON, "weapons/hagar_beep.wav", VOL_BASE, ATTN_NORM);
+
                                self.hagar_loadstep = time + autocvar_g_balance_hagar_secondary_load_speed;
                        }
                }
@@ -289,6 +293,7 @@ float w_hagar(float req)
                precache_model ("models/weapons/h_hagar.iqm");
                precache_sound ("weapons/hagar_fire.wav");
                precache_sound ("weapons/hagar_load.wav");
+               precache_sound ("weapons/hagar_beep.wav");
                //precache_sound ("weapons/reload.wav"); // until weapons have individual reload sounds, precache the reload sound somewhere else
        }
        else if (req == WR_SETUP)