Advertisement
spinsquad

bullettime check

May 16th, 2015
447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. local servertime=0;
  2. local me = LocalPlayer();
  3.  
  4. hook.Add("Move", "", function()
  5.     if(!IsFirstTimePredicted()) then return; end
  6.     servertime = CurTime();
  7. end);
  8.  
  9. local function CanFire()
  10.     local w = me:GetActiveWeapon();
  11.     if(!w || !w:IsValid()) then return true; end
  12.     return( servertime >= w:GetNextPrimaryFire() );
  13. end
  14.  
  15. --[[
  16. inside aimbot:
  17.  
  18. if(Valid(aimtarget) && CanFire()) then
  19.     -- aimbot stuff
  20. end
  21. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement