drabont

Stationeers - satellite switcher V

Aug 27th, 2019 (edited)
1,056
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #ins: https://youtu.be/msYBfoqJJik
  2. #satellite switcher V
  3. alias SatDish d0
  4. alias DiodeSlide d1
  5. alias LedDisplay d2
  6. alias LastID r15
  7. alias Vstep r13
  8. alias Hstep r14
  9. move Vstep 5
  10. move Hstep 10
  11. loop:
  12. yield
  13. l r0 SatDish SignalStrength
  14. l r1 SatDish SignalID
  15. l r2 DiodeSlide On
  16. s db Setting r0
  17. s DiodeSlide Setting r0
  18. s LedDisplay Setting r1
  19. bgtz r2 loop
  20. beq r1 LastID rotate
  21. blt r0 0.95 rotate
  22. move LastID r1
  23. s DiodeSlide On 1
  24. j loop
  25. rotate:
  26. l r0 SatDish Vertical
  27. l r1 SatDish Horizontal
  28. add r0 r0 Vstep
  29. blt r0 5 Vrev
  30. bgt r0 90 Vrev
  31. step:
  32. s SatDish Vertical r0
  33. s SatDish Horizontal r1
  34. j loop
  35. Vrev:
  36. mul Vstep Vstep -1
  37. max r0 r0 5
  38. min r0 r0 90
  39. add r1 r1 Hstep
  40. blt r1 0 Hrev
  41. bgt r1 355 Hrev
  42. j step
  43. Hrev:
  44. mul Hstep Hstep -1
  45. max r1 r1 0
  46. min r1 r1 355
  47. j step
Add Comment
Please, Sign In to add comment