[nexuiz-commits] r6466 - in trunk/data: qcsrc/server sound/weapons

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Apr 9 08:59:06 EDT 2009


Author: div0
Date: 2009-04-09 08:59:06 -0400 (Thu, 09 Apr 2009)
New Revision: 6466

Added:
   trunk/data/sound/weapons/campingrifle_fire2.ogg
Modified:
   trunk/data/qcsrc/server/w_campingrifle.qc
Log:
add a fire2 sound for the CR (currently identical to the primary one)


Modified: trunk/data/qcsrc/server/w_campingrifle.qc
===================================================================
--- trunk/data/qcsrc/server/w_campingrifle.qc	2009-04-09 12:18:56 UTC (rev 6465)
+++ trunk/data/qcsrc/server/w_campingrifle.qc	2009-04-09 12:59:06 UTC (rev 6466)
@@ -51,7 +51,11 @@
 	if not(self.items & IT_UNLIMITED_WEAPON_AMMO)
 		self.ammo_nails -= pAmmo;
 
-	W_SetupShot (self, FALSE, 2, "weapons/campingrifle_fire.wav");
+	if(deathtype & HITTYPE_SECONDARY)
+		W_SetupShot (self, FALSE, 2, "weapons/campingrifle_fire2.wav");
+	else
+		W_SetupShot (self, FALSE, 2, "weapons/campingrifle_fire.wav");
+
 	pointparticles(particleeffectnum("shotgun_muzzleflash"), w_shotorg, w_shotdir * 2000, 1);
 
 	if(self.BUTTON_ZOOM) // if zoomed, shoot from the eye
@@ -140,6 +144,7 @@
 		precache_model ("models/weapons/h_campingrifle.dpm");
 		precache_sound ("weapons/campingrifle_reload.wav");
 		precache_sound ("weapons/campingrifle_fire.wav");
+		precache_sound ("weapons/campingrifle_fire2.wav");
 	}
 	else if (req == WR_SETUP)
 	{

Added: trunk/data/sound/weapons/campingrifle_fire2.ogg
===================================================================
(Binary files differ)


Property changes on: trunk/data/sound/weapons/campingrifle_fire2.ogg
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream



More information about the nexuiz-commits mailing list