Guest User

Untitled

a guest
Oct 6th, 2017
1,745
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1.  
  2. vector extrapolate(baseentity* his, int value){
  3.  
  4. return his->origin + (his->velocity * (Globals->tick_interval * (float)value));
  5. }
  6.  
  7. Entity->head = extrapolate(Entity, TIME_TICKS(GetNetworklatency(Flow_incoming) + getnetworklatency(flow_outgoing)));
  8.  
  9. storedvalue.tickdiff = TIME_TICKS(GetNetworklatency(Flow_incoming) + getnetworklatency(flow_outgoing));
  10.  
  11.  
  12. cmd->tick_count = storedvalue.tick_count + tickdiff;
Advertisement
Add Comment
Please, Sign In to add comment