Advertisement
drabont

Stationeers - TurboPressureRegulator

Nov 21st, 2021
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #Prg: TurboPressureRegulator by swagman
  2. #Man: https://youtu.be/ReuxBHLlC0I
  3. define Vout 200 #out pipe volume
  4. alias TVPump d0
  5. alias PresIn d1
  6. alias PresOt d2
  7. alias Target d3
  8. alias LedDis d4
  9. loop:
  10. l r0 PresOt Pressure
  11. l r1 PresIn Pressure
  12. l r2 Target Setting
  13. s LedDis Setting r0
  14. sub r2 r2 r0
  15. sltz r3 r2
  16. select r4 r3 r0 r1
  17. mul r2 r2 Vout
  18. div r2 r2 r4
  19. abs r2 r2
  20. s TVPump Mode r3
  21. s TVPump Setting r2
  22. yield
  23. s TVPump Setting 0
  24. yield
  25. j loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement