Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. auto weapon = G::LocalPlayer->GetWeapon();
  2.  
  3. float server_time = G::LocalPlayer->GetTickBase() * I::Globals->interval_per_tick;
  4. float next_shot = weapon->GetNextPrimaryAttack() - server_time;
  5.  
  6.  
  7.  
  8. bool can_shoot = true;
  9.  
  10. if (next_shot > 0)
  11. can_shoot = false;
  12.  
  13. if (can_shoot)
  14. G::UserCmd->buttons |= IN_ATTACK;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement