aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/gamemodes
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-15 17:58:33 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-15 17:58:33 +0000
commit06924c215dcf8d4dd425cbbf178509bc222c2f7d (patch)
tree36db62761142f7a3430a5be26a335168d2da8d65 /Northstar.CustomServers/mod/scripts/vscripts/gamemodes
parent1b6e5af70bf442c684b891003e516329b190c130 (diff)
downloadNorthstarMods-06924c215dcf8d4dd425cbbf178509bc222c2f7d.tar.gz
NorthstarMods-06924c215dcf8d4dd425cbbf178509bc222c2f7d.zip
more playtest fixes
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/gamemodes')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut6
1 files changed, 3 insertions, 3 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut
index 4a756c02..3213827d 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut
@@ -116,8 +116,8 @@ void function RateSpawnpoints_CTF( int checkClass, array<entity> spawnpoints, in
vector zonePos = averageFriendlySpawns + Normalize( averageEnemySpawns - averageFriendlySpawns ) * ( i * averageFriendlySpawnDist )
float zonePower
- foreach ( entity player in enemyPlayers )
- if ( Distance2D( player.GetOrigin(), zonePos ) < averageFriendlySpawnDist )
+ foreach ( entity otherPlayer in enemyPlayers )
+ if ( Distance2D( otherPlayer.GetOrigin(), zonePos ) < averageFriendlySpawnDist )
zonePower += 1.0 / enemyPlayers.len()
zonePower = min( zonePower, remainingZonePower )
@@ -134,7 +134,7 @@ bool function VerifyCTFSpawnpoint( entity spawnpoint, int team )
{
// ensure spawnpoints aren't too close to enemy base
- if ( HasSwitchedSides() && spawnpoint.GetTeam() >= 2 )
+ if ( HasSwitchedSides() && spawnpoint.GetTeam() >= TEAM_IMC )
team = GetOtherTeam( team )
array<entity> startSpawns = SpawnPoints_GetPilotStart( team )