diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-12-06 21:52:34 +0000 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-12-06 21:52:34 +0000 |
commit | 1f534d940670d6df826be68b39fcaa846f139a81 (patch) | |
tree | b5c08b6f8a12a2047455e9b1066d855bf803e632 /Northstar.CustomServers/mod/scripts/vscripts/mp/spawn.nut | |
parent | f1a07e1b01923b45f7a82c063d25b8dea5b13d53 (diff) | |
download | NorthstarMods-1f534d940670d6df826be68b39fcaa846f139a81.tar.gz NorthstarMods-1f534d940670d6df826be68b39fcaa846f139a81.zip |
some bugfixes from playtest
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/mp/spawn.nut')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/mp/spawn.nut | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/spawn.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/spawn.nut index 1766a216..70d1e527 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/spawn.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/spawn.nut @@ -139,6 +139,10 @@ entity function FindSpawnPoint( entity player, bool isTitan, bool useStartSpawnp InitRatings( player, team ) + // don't think this is necessary since we call discardratings + //foreach ( entity spawnpoint in spawnpoints ) + // spawnpoint.CalculateRating( isTitan ? TD_TITAN : TD_PILOT, team, 0.0, 0.0 ) + void functionref( int, array<entity>, int, entity ) ratingFunc = isTitan ? GameMode_GetTitanSpawnpointsRatingFunc( GAMETYPE ) : GameMode_GetPilotSpawnpointsRatingFunc( GAMETYPE ) ratingFunc( isTitan ? TD_TITAN : TD_PILOT, spawnpoints, team, player ) @@ -165,7 +169,7 @@ entity function FindSpawnPoint( entity player, bool isTitan, bool useStartSpawnp spawnpoint.s.lastUsedTime = Time() player.SetLastSpawnPoint( spawnpoint ) - + return spawnpoint } |