Variouscacti

Sine Function Hypixel Housing

Jan 30th, 2025
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. // by sndy
  2.  
  3. // How To Use:
  4. // Name function "sin" for compatibility with my other functions
  5. // Input a value to the stat "sinInput" 1000 times the intended input
  6. // Output will be in the stat "sinOutput", 1000 times the intended output, where -1000 <= output <= 1000 (Calculation is in degrees)
  7.  
  8. // Enjoy!
  9.  
  10. if () {
  11. stat sinInput += 4611686018427360000
  12. teamstat a TEAM_NAME = "%stat.player/sinInput%"
  13. teamstat a TEAM_NAME /= 360000
  14. teamstat a TEAM_NAME *= 360000
  15. stat sinInput -= "%stat.team/a TEAM_NAME%"
  16. stat sinInput -= 180000
  17. globalstat a = "%stat.player/sinInput%"
  18. globalstat a += 180001
  19. globalstat a /= 180001
  20. globalstat a *= 2
  21. globalstat a -= 1
  22. stat sinInput *= "%stat.global/a%"
  23. globalstat a *= -1
  24. teamstat a TEAM_NAME = 179968
  25. teamstat a TEAM_NAME -= "%stat.player/sinInput%"
  26. teamstat a TEAM_NAME *= "%stat.player/sinInput%"
  27. stat sinOutput = 4005
  28. stat sinOutput *= "%stat.team/a TEAM_NAME%"
  29. teamstat b TEAM_NAME = 40500000000
  30. teamstat b TEAM_NAME -= "%stat.team/a TEAM_NAME%"
  31. stat sinOutput /= "%stat.team/b TEAM_NAME%"
  32. stat sinOutput *= "%stat.global/a%"
  33. globalstat a = 0
  34. teamstat a TEAM_NAME = 0
  35. teamstat b TEAM_NAME = 0
  36. }
Advertisement
Add Comment
Please, Sign In to add comment