]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
sound!
authorFruitieX <rasse@rasse-lappy.localdomain>
Tue, 20 Jul 2010 15:48:33 +0000 (18:48 +0300)
committerFruitieX <rasse@rasse-lappy.localdomain>
Tue, 20 Jul 2010 15:48:33 +0000 (18:48 +0300)
qcsrc/server/w_shotgun.qc
sound/weapons/shotgun_melee.ogg [new file with mode: 0644]

index 5775f3dda2c77d0c29dbdadedb7042ba82eae6ed..e126787713a1a2fde315f651ff45b670f752e8d9 100644 (file)
@@ -111,6 +111,7 @@ void shotgun_meleethink (void)
 
 void W_Shotgun_Attack3 (void)
 {
+       sound (self, CHAN_PROJECTILE, "weapons/shotgun_melee.wav", VOL_BASE, ATTN_NORM);
        weapon_thinkf(WFRAME_FIRE2, cvar("g_balance_shotgun_secondary_animtime"), w_ready);
 
        entity meleetemp;
@@ -172,6 +173,7 @@ float w_shotgun(float req)
                precache_model ("models/weapons/h_shotgun.iqm");
                precache_sound ("misc/itempickup.wav");
                precache_sound ("weapons/shotgun_fire.wav");
+               precache_sound ("weapons/shotgun_melee.wav");
        }
        else if (req == WR_SETUP)
                weapon_setup(WEP_SHOTGUN);
diff --git a/sound/weapons/shotgun_melee.ogg b/sound/weapons/shotgun_melee.ogg
new file mode 100644 (file)
index 0000000..0562b55
Binary files /dev/null and b/sound/weapons/shotgun_melee.ogg differ