happyfaic72

BUSINESS LIFTS????

Sep 2nd, 2018 (edited)
907
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.62 KB | None | 0 0
  1. @name BIZZLE LIFTER CODE SIMPLIFIED
  2. @inputs Mouse1 Mouse2 R
  3. @outputs Constant Damping Length
  4. @persist Length
  5.  
  6. runOnTick(1)
  7. #=====================
  8. LifterInput=(Mouse1-Mouse2)
  9. Reset=(R)
  10. Constant=100000
  11. Damping=1500
  12. StationaryLength=100
  13. MinLength=0
  14. MaxLength=200
  15. RateOfChange=5
  16. #=====================
  17. if(Length==0){Length=StationaryLength}
  18.  
  19. if(LifterInput==1){Length=Length+RateOfChange}
  20. if(Length>MaxLength){Length=MaxLength}
  21.  
  22. if(LifterInput==-1){Length=Length-RateOfChange}
  23. if(Length<MinLength){Length=MinLength}
  24.  
  25. if(LifterInput==0){Length=Length}
  26. if(Reset==1){Length=StationaryLength}
  27. #=====================
Advertisement
Add Comment
Please, Sign In to add comment