The unavailable.wav sound is only located in misc/, not weapons/ (as it addresses...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 28 Feb 2011 23:53:19 +0000 (01:53 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 28 Feb 2011 23:53:19 +0000 (01:53 +0200)
data/qcsrc/server/cl_weaponsystem.qc
data/qcsrc/server/miscfunctions.qc

index 2b06fed..004442c 100644 (file)
@@ -996,7 +996,7 @@ float weapon_prepareattack_checkammo(float secondary)
        {\r
                if(self.weapon == self.switchweapon && time - self.prevdryfire > 1) // only play once BEFORE starting to switch weapons\r
                {\r
-                       sound (self, CHAN_AUTO, "weapons/unavailable.wav", VOL_BASE, ATTN_NORM);\r
+                       sound (self, CHAN_AUTO, "misc/unavailable.wav", VOL_BASE, ATTN_NORM);\r
                        self.prevdryfire = time;\r
                }\r
 \r
@@ -1594,7 +1594,7 @@ float W_ReloadCheck()
        {\r
                if(clienttype(self) == CLIENTTYPE_REAL && self.reload_complain < time)\r
                {\r
-                       play2(self, "weapons/unavailable.wav");\r
+                       play2(self, "misc/unavailable.wav");\r
                        sprint(self, strcat("You don't have enough ammo to reload the ^2", W_Name(self.weapon), "\n"));\r
                        self.reload_complain = time + 1;\r
                }\r
index db7de65..bf8aaed 100644 (file)
@@ -1442,7 +1442,6 @@ void precache()
     // common weapon precaches\r
     precache_sound ("weapons/weapon_switch.wav");\r
     precache_sound ("weapons/weaponpickup.wav");\r
-       precache_sound ("weapons/unavailable.wav");\r
     precache_sound ("weapons/grabber_fire.wav"); // grabber\r
        precache_sound ("weapons/grabber_altfire.wav"); // grabber\r
     precache_sound ("weapons/grabber_impact.wav"); // grabber\r