return -1;\r
}\r
\r
-vector lerp(float t0, vector v0, float t1, vector v1, float t)\r
+vector lerpv(float t0, vector v0, float t1, vector v1, float t)\r
{\r
return v0 + (v1 - v0) * ((t - t0) / (t1 - t0));\r
}\r
if(i1 >= ANTILAG_MAX_ORIGINS)\r
i1 = 0;\r
\r
- return lerp(e.(antilag_times[i0]), e.(antilag_origins[i0]), e.(antilag_times[i1]), e.(antilag_origins[i1]), t);\r
+ return lerpv(e.(antilag_times[i0]), e.(antilag_origins[i0]), e.(antilag_times[i1]), e.(antilag_origins[i1]), t);\r
}\r
\r
vector antilag_takebackavgvelocity(entity e, float t0, float t1)\r
self.punchvector = '0 0 0';\r
self.oldvelocity = self.velocity;\r
self.fire_endtime = -1;\r
+ self.lastteleporttime = time;\r
\r
msg_entity = self;\r
WRITESPECTATABLE_MSG_ONE({\r