Movement and jumping speed now depends on size. Needs to be tweaked better though.
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 2 May 2011 01:27:28 +0000 (04:27 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 2 May 2011 01:27:28 +0000 (04:27 +0300)
data/qcsrc/server/cl_physics.qc

index 2c28409..85c1ac5 100644 (file)
@@ -55,6 +55,8 @@ void PlayerJump (void)
        }\r
 \r
        mjumpheight = cvar("sv_jumpvelocity");\r
+       if(self.scale) // we are smaller or larger, so we jump lower or higher\r
+               mjumpheight *= self.scale;\r
        if (self.waterlevel >= WATERLEVEL_SWIMMING)\r
        {\r
                if (self.watertype == CONTENT_WATER)\r
@@ -500,6 +502,9 @@ void PM_Accelerate(vector wishdir, float wishspeed, float wishspeed0, float acce
        if(speedclamp)\r
                accelqw = -accelqw;\r
 \r
+       if(self.scale) // we are smaller or larger, so we run lower or higher\r
+               wishspeed *= self.scale;\r
+\r
        if(cvar("sv_gameplayfix_q2airaccelerate"))\r
                wishspeed0 = wishspeed;\r
 \r