summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
995171d)
+ float ground_hit_target;
- cl.ground_hit_speed = cl.velocity[2];
+ cl.ground_hit_speed = cl.velocity[2] * 0.1;
+ {
+ 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;
vieworg[2] += cl.ground_hit_speed;
+ gunorg[2] += cl.ground_hit_speed;
+ }