daily pastebin goal
64%
SHARE
TWEET

zero pitch on land

a guest Jan 20th, 2019 305 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local my_move = false
  2.  
  3. function draw_text()
  4. player = entities.GetLocalPlayer();
  5.     if player:IsAlive() then
  6.     draw.Color(255, 0, 0, 255);
  7.         if my_move then
  8.         jump = player:GetProp("m_fFlags")
  9.             if jump < 257 then
  10.                 gui.SetValue("rbot_antiaim_move_pitch_real", 4);
  11.                 gui.SetValue("rbot_antiaim_stand_pitch_real", 4);
  12.             else
  13.                 gui.SetValue("rbot_antiaim_move_pitch_real", 1);
  14.                 gui.SetValue("rbot_antiaim_stand_pitch_real", 1);
  15.             end
  16.         end
  17.     end
  18. end
  19.  
  20. function move(UserCmd)
  21.     if UserCmd:GetForwardMove() ~= 0.0 then
  22.         my_move = true
  23.     else
  24.         my_move = false
  25.     end
  26. end
  27.  
  28. callbacks.Register("CreateMove", "move", move);
  29. callbacks.Register( "Draw", "draw_text", draw_text );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top