Advertisement
Sanwi

SwimHover

May 19th, 2015
795
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. $${
  2.  
  3. // This macro will hover at any Y level under water, or on the surface. Use LSHIFT and SPACE to move up or down, and it will hover at the new level. Bind this with $$<swimhover.txt>. It functions as a toggle.
  4.  
  5. if(!swimhover);
  6. set(swimhover);
  7. #y_anchor = %YPOS%;
  8. do;
  9. if(KEY_SPACE);
  10. keydown(jump);
  11. #y_anchor = %YPOS%;
  12. elseif(KEY_LSHIFT);
  13. keyup(jump);
  14. #y_anchor = %YPOS%;
  15. elseif(#y_anchor > %YPOS%);
  16. keydown(jump);
  17. else;
  18. keyup(jump);
  19. endif;
  20. loop;
  21. else;
  22. unset(swimhover);
  23. if(!KEY_SPACE);
  24. keyup(jump);
  25. endif;
  26. stop();
  27. endif;
  28.  
  29. stop();
  30. }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement