]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/physics/movelib.qh
Cleanse steerlib and movelib of self
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / physics / movelib.qh
index 90ea4b4160e12d79ce24e4b00e60fc9582c424f0..a64651b30e092dd2939cb513bcab941744d0ba35 100644 (file)
@@ -8,7 +8,7 @@
     Simulate drag
     self.velocity = movelib_dragvec(self.velocity,0.02,0.5);
 **/
-vector movelib_dragvec(float drag, float exp_);
+vector movelib_dragvec(entity this, float drag, float exp_);
 
 /**
     Simulate drag
@@ -21,12 +21,12 @@ float movelib_dragflt(float fspeed,float drag,float exp_);
     Basicaly, this allows you to simulate loss of steering with higher speed.
     self.velocity = movelib_inertmove_byspeed(self.velocity,newvel,1000,0.1,0.9);
 **/
-vector movelib_inertmove_byspeed(vector vel_new, float vel_max,float newmin,float oldmax);
+vector movelib_inertmove_byspeed(entity this, vector vel_new, float vel_max, float newmin, float oldmax);
 
-vector movelib_inertmove(vector new_vel,float new_bias);
+vector movelib_inertmove(entity this, vector new_vel, float new_bias);
 
 .float  movelib_lastupdate;
-void movelib_move(vector force,float max_velocity,float drag,float theMass,float breakforce);
+void movelib_move(entity this, vector force, float max_velocity, float drag, float theMass, float breakforce);
 
 /*
 void movelib_move_simple(vector newdir,float velo,float blendrate)