Skip to content

Commit

Permalink
style: Revert unrelated whitespace changes
Browse files Browse the repository at this point in the history
  • Loading branch information
GeckoEidechse committed Sep 7, 2024
1 parent de442a4 commit fbc8a5d
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Northstar.CustomServers/mod/scripts/vscripts/mp/spawn.nut
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void function InitSpawnpoint( entity spawnpoint )
{
spawnpoint.s.lastUsedTime <- -999
spawnpoint.s.inUse <- false
}
}

string function CreateNoSpawnArea( int blockSpecificTeam, int blockEnemiesOfTeam, vector position, float lifetime, float radius )
{
Expand Down Expand Up @@ -225,7 +225,7 @@ entity function FindSpawnPoint( entity player, bool isTitan, bool useStartSpawnp
SpawnPoints_SortTitanStart()
else
SpawnPoints_SortTitan()

spawnpoints = useStartSpawnpoint ? SpawnPoints_GetTitanStart( team ) : SpawnPoints_GetTitan()
}
else
Expand All @@ -234,17 +234,17 @@ entity function FindSpawnPoint( entity player, bool isTitan, bool useStartSpawnp
SpawnPoints_SortPilotStart()
else
SpawnPoints_SortPilot()

spawnpoints = useStartSpawnpoint ? SpawnPoints_GetPilotStart( team ) : SpawnPoints_GetPilot()
}

entity spawnpoint = GetBestSpawnpoint( player, spawnpoints, isTitan )

spawnpoint.s.lastUsedTime = Time()
player.SetLastSpawnPoint( spawnpoint )

//SpawnPoints_DiscardRatings()

return spawnpoint
}

Expand Down Expand Up @@ -312,7 +312,7 @@ bool function IsSpawnpointValid( entity spawnpoint, int team )
foreach ( bool functionref( entity, int ) customValidationRule in file.customSpawnpointValidationRules )
if ( !customValidationRule( spawnpoint, team ) )
return false

if ( !IsSpawnpointValidDrop( spawnpoint, team ) || Time() - spawnpoint.s.lastUsedTime <= 10.0 )
return false

Expand Down Expand Up @@ -351,7 +351,7 @@ bool function IsSpawnpointValid( entity spawnpoint, int team )
*/

void function RateSpawnpoints_Generic( int checkClass, array<entity> spawnpoints, int team, entity player )
{
{
foreach ( entity spawnpoint in spawnpoints )
{
float currentRating = 0.0
Expand Down Expand Up @@ -494,7 +494,7 @@ void function RateSpawnpoints_SpawnZones( int checkClass, array<entity> spawnpoi
rating = 10.0
else
rating = 2.0 * ( 1 - ( distance / 3000.0 ) )

spawn.CalculateRating( checkClass, team, rating, rating * 0.25 )
}
}
Expand All @@ -513,17 +513,17 @@ entity function DecideSpawnZone_Generic( array<entity> spawnzones, int team )
vector averageFriendlySpawns
foreach ( entity spawn in startSpawns )
averageFriendlySpawns += spawn.GetOrigin()

averageFriendlySpawns /= startSpawns.len()

vector averageEnemySpawns
foreach ( entity spawn in enemyStartSpawns )
averageEnemySpawns += spawn.GetOrigin()

averageEnemySpawns /= enemyStartSpawns.len()

float baseDistance = Distance2D( averageFriendlySpawns, averageEnemySpawns )

if ( TeamHasDirtySpawnzone( team ) )
{
array<entity> possibleZones
Expand Down

0 comments on commit fbc8a5d

Please sign in to comment.