r4815 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Oct 22 10:21:22 EDT 2008


Author: div0
Date: 2008-10-22 10:21:21 -0400 (Wed, 22 Oct 2008)
New Revision: 4815

Modified:
   trunk/data/qcsrc/server/g_hook.qc
Log:
fix hook shot origin


Modified: trunk/data/qcsrc/server/g_hook.qc
===================================================================
--- trunk/data/qcsrc/server/g_hook.qc	2008-10-22 13:13:51 UTC (rev 4814)
+++ trunk/data/qcsrc/server/g_hook.qc	2008-10-22 14:21:21 UTC (rev 4815)
@@ -324,7 +324,7 @@
 
 	// UGLY WORKAROUND: play this on CHAN_WEAPON2 so it can't cut off fire sounds
 	sound (self, CHAN_WEAPON2, "weapons/hook_fire.wav", VOL_BASE, ATTN_NORM);
-	org = self.origin + self.view_ofs + v_forward * 8 - v_right * 8 + '0 0 -12';
+	org = self.origin + self.view_ofs + v_forward * hook_shotorigin_x + v_right * hook_shotorigin_y + v_up * hook_shotorigin_z;
 	pointparticles(particleeffectnum("grapple_muzzleflash"), org, '0 0 0', 1);
 
 	missile = spawn ();
@@ -467,7 +467,7 @@
 	if(g_grappling_hook)
 		hook_shotorigin = '8 -8 -12';
 	else
-		hook_shotorigin = '25 6 -8';
+		hook_shotorigin = '25 8 -8';
 }
 
 void SetGrappleHookBindings()




More information about the nexuiz-commits mailing list