diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-04-27 01:14:20 +0000 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-04-27 01:14:20 +0000 |
commit | 023141f20381f4aa9aaa4f572e61141e56f7323e (patch) | |
tree | feaaa798e856b2a20e62281ed09b25567103d93f | |
parent | 6372e71c27fc208074f45186d96a8ae346cffe01 (diff) | |
download | NorthstarMods-023141f20381f4aa9aaa4f572e61141e56f7323e.tar.gz NorthstarMods-023141f20381f4aa9aaa4f572e61141e56f7323e.zip |
fix more 3am maths
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut index 67d8d530..f72573d6 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut @@ -89,8 +89,8 @@ void function RateSpawnpoints_CTF( int checkClass, array<entity> spawnpoints, in { // determine the angles of the lines we need to be within to be rated here // magic number gives roughly ~8deg from right mid to base on glitch - float ratingAnglePos = flagDist / 0.0026 - float ratingAngleNeg = flagDist / -0.0026 + float ratingAnglePos = flagDist * 0.0026 + float ratingAngleNeg = flagDist * -0.0026 ratingAngleNeg = ( ( ( ratingAngleNeg % 360 ) + 360 ) % 360 ) // this is probably shit i just copied a negative modulo func // calc angle between our spawnpoint and frontline, check if it's within the previous 2 angles |