From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10337
d7cf8633-e32d-0410-b094-
e92efae38249
// TEST!!!
+ float ground_hit_target;
if (!cl.onground)
- cl.ground_hit_speed = cl.velocity[2];
+ cl.ground_hit_speed = cl.velocity[2] * 0.1;
else
+ {
+ if(cl.ground_hit_speed > ground_hit_target)
+ cl.ground_hit_speed -= 0.1;
+ if(cl.ground_hit_speed < ground_hit_target)
+ cl.ground_hit_speed += 0.1;
+
vieworg[2] += cl.ground_hit_speed;
+ gunorg[2] += cl.ground_hit_speed;
+ }
// End of TEST!!!