Fix a few things regarding grabber swinging
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 17 Apr 2011 01:36:56 +0000 (04:36 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 17 Apr 2011 01:36:56 +0000 (04:36 +0300)
data/balanceVT.cfg
data/qcsrc/server/vore.qc
data/qcsrc/server/w_grabber.qc
data/sound/weapons/grabber_melee.ogg [deleted file]
data/sound/weapons/grabber_swing.ogg [new file with mode: 0644]

index b57345b..5453b2c 100644 (file)
@@ -180,10 +180,10 @@ set g_balance_grabber_secondary_damage 45
 set g_balance_grabber_secondary_force 175\r
 set g_balance_grabber_secondary_radius 75\r
 set g_balance_grabber_secondary_recoil 4;\r
-set g_balance_grabber_melee_damage 15 // only used to boost stomach kicks\r
-set g_balance_grabber_melee_force 25 // only used to boost stomach kicks\r
-set g_balance_grabber_melee_refire 0.35 // only used to boost stomach kicks\r
-set g_balance_grabber_melee_recoil 2 // only used to boost stomach kicks\r
+set g_balance_grabber_kick_damage 15 // only used to boost stomach kicks\r
+set g_balance_grabber_kick_force 25 // only used to boost stomach kicks\r
+set g_balance_grabber_kick_refire 0.35 // only used to boost stomach kicks\r
+set g_balance_grabber_kick_recoil 2 // only used to boost stomach kicks\r
 set g_balance_grabber_reload_ammo 35\r
 set g_balance_grabber_reload_time 2\r
 // }}}\r
index 83694d8..2a57bca 100644 (file)
@@ -404,12 +404,12 @@ void Vore_StomachKick()
                if(self.weapon)\r
                {\r
                        e = get_weaponinfo(self.weapon);\r
-                       damage += cvar(strcat("g_balance_", e.netname, "_melee_damage"));\r
-                       force += cvar(strcat("g_balance_", e.netname, "_melee_force"));\r
-                       rekick += cvar(strcat("g_balance_", e.netname, "_melee_refire"));\r
+                       damage += cvar(strcat("g_balance_", e.netname, "_kick_damage"));\r
+                       force += cvar(strcat("g_balance_", e.netname, "_kick_force"));\r
+                       rekick += cvar(strcat("g_balance_", e.netname, "_kick_refire"));\r
                        if (!g_norecoil)\r
-                               self.punchangle_x -= cvar(strcat("g_balance_", e.netname, "_melee_recoil"));\r
-                       sound (self, CHAN_WEAPON, "weapons/grabber_melee.wav", VOL_BASE, ATTN_NORM);\r
+                               self.punchangle_x -= cvar(strcat("g_balance_", e.netname, "_kick_recoil"));\r
+                       sound (self, CHAN_WEAPON, "weapons/grabber_swing.wav", VOL_BASE, ATTN_NORM);\r
                        weapon_thinkf(WFRAME_FIRE2, rekick, w_ready); // only intended to animate the gun, as damage is calculated above\r
                }\r
 \r
index 1de3ecf..246bee8 100644 (file)
@@ -195,7 +195,7 @@ float w_grabber(float req)
                precache_sound ("weapons/grabber_impact.wav"); // done by g_grabber.qc\r
                precache_sound ("weapons/grabber_fire.wav");\r
                precache_sound ("weapons/grabber_altfire.wav");\r
-               precache_sound ("weapons/grabber_melee.wav");\r
+               precache_sound ("weapons/grabber_swing.wav");\r
                precache_sound ("weapons/reload.wav");\r
        }\r
        else if (req == WR_SETUP)\r
diff --git a/data/sound/weapons/grabber_melee.ogg b/data/sound/weapons/grabber_melee.ogg
deleted file mode 100644 (file)
index 0562b55..0000000
Binary files a/data/sound/weapons/grabber_melee.ogg and /dev/null differ
diff --git a/data/sound/weapons/grabber_swing.ogg b/data/sound/weapons/grabber_swing.ogg
new file mode 100644 (file)
index 0000000..0562b55
Binary files /dev/null and b/data/sound/weapons/grabber_swing.ogg differ