Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // by sndy
- // How To Use:
- // Name function "cos" for compatibility with my other functions
- // Input a value to the stat "cosInput" 1000 times the intended input
- // Output will be in the stat "cosOutput", 1000 times the intended output, where -1000 <= output <= 1000 (Calculation is in degrees)
- // Enjoy!
- if () {
- stat cosInput += 4611686018427450000
- teamstat a TEAM_NAME = "%stat.player/cosInput%"
- teamstat a TEAM_NAME /= 360000
- teamstat a TEAM_NAME *= 360000
- stat cosInput -= "%stat.team/a TEAM_NAME%"
- stat cosInput -= 180000
- globalstat a = "%stat.player/cosInput%"
- globalstat a += 180001
- globalstat a /= 180001
- globalstat a *= 2
- globalstat a -= 1
- stat cosInput *= "%stat.global/a%"
- globalstat a *= -1
- teamstat a TEAM_NAME = 179968
- teamstat a TEAM_NAME -= "%stat.player/cosInput%"
- teamstat a TEAM_NAME *= "%stat.player/cosInput%"
- stat cosOutput = 4005
- stat cosOutput *= "%stat.team/a TEAM_NAME%"
- teamstat b TEAM_NAME = 40500000000
- teamstat b TEAM_NAME -= "%stat.team/a TEAM_NAME%"
- stat cosOutput /= "%stat.team/b TEAM_NAME%"
- stat cosOutput *= "%stat.global/a%"
- globalstat a = 0
- teamstat a TEAM_NAME = 0
- teamstat b TEAM_NAME = 0
- }
Advertisement
Add Comment
Please, Sign In to add comment