diff options
Diffstat (limited to 'Northstar.CustomServers/scripts/vscripts/gamemodes')
-rw-r--r-- | Northstar.CustomServers/scripts/vscripts/gamemodes/_gamemode_ctf.nut | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Northstar.CustomServers/scripts/vscripts/gamemodes/_gamemode_ctf.nut b/Northstar.CustomServers/scripts/vscripts/gamemodes/_gamemode_ctf.nut index 728d742d..704f55d3 100644 --- a/Northstar.CustomServers/scripts/vscripts/gamemodes/_gamemode_ctf.nut +++ b/Northstar.CustomServers/scripts/vscripts/gamemodes/_gamemode_ctf.nut @@ -69,8 +69,12 @@ void function RateSpawnpoints_CTF( int checkClass, array<entity> spawnpoints, in // if there are, spawn them outside of it ( but ideally still close ) // max distance away should be like, angel city markets - array<entity> startSpawns = SpawnPoints_GetPilotStart( team ) - array<entity> enemyPlayers = GetPlayerArrayOfTeam_Alive( GetOtherTeam( team ) ) + int spawnTeam = team + if ( HasSwitchedSides() ) + spawnTeam = GetOtherTeam( team ) + + array<entity> startSpawns = SpawnPoints_GetPilotStart( spawnTeam ) + array<entity> enemyPlayers = GetPlayerArrayOfTeam_Alive( GetOtherTeam( spawnTeam ) ) vector startSpawnAverage bool enemyInBase = false |