From 023141f20381f4aa9aaa4f572e61141e56f7323e Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Wed, 27 Apr 2022 01:14:20 +0000 Subject: fix more 3am maths --- .../mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut | 4 ++-- 1 file 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 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 -- cgit v1.2.3