Advertisement
Guest User

zero pitch on land

a guest
Jan 20th, 2019
886
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  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 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement