[nexuiz-commits] r8744 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Mar 9 16:27:47 EST 2010


Author: fruitiex
Date: 2010-03-09 16:27:47 -0500 (Tue, 09 Mar 2010)
New Revision: 8744

Modified:
   trunk/data/qcsrc/server/cl_physics.qc
Log:
add z velocity from trace_ent when jumping

Modified: trunk/data/qcsrc/server/cl_physics.qc
===================================================================
--- trunk/data/qcsrc/server/cl_physics.qc	2010-03-09 14:43:36 UTC (rev 8743)
+++ trunk/data/qcsrc/server/cl_physics.qc	2010-03-09 21:27:47 UTC (rev 8744)
@@ -91,7 +91,7 @@
 			//print("Trace plane normal z: ", ftos(trace_plane_normal_z), ", disabling speed cap!\n");
 		}
 		else
-			self.velocity_z = min(cvar("sv_jumpvelocity") * cvar("sv_jumpspeedcap_max"), self.velocity_z);
+			self.velocity_z = min(cvar("sv_jumpvelocity") * cvar("sv_jumpspeedcap_max"), self.velocity_z) + trace_ent.velocity_z;
 	}
 
 	if(!(self.lastflags & FL_ONGROUND))



More information about the nexuiz-commits mailing list