diff options
author | F1F7Y <64418963+F1F7Y@users.noreply.github.com> | 2022-06-22 14:03:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-22 13:03:02 +0100 |
commit | 41ec203c56a9f2f83ad9fb1b2fcd5dd4027c96b4 (patch) | |
tree | 7b3043161911438f581fe9035b969e13de8c00e9 | |
parent | 8c0ef3516f23a296c71cc4d61ec2b09746db9ca2 (diff) | |
download | NorthstarMods-1.8.2-rc3.tar.gz NorthstarMods-1.8.2-rc3.zip |
Use wait instead of waitthread (#393)v1.8.2-rc3v1.8.2-rc2v1.8.2-rc11.8.X
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_aitdm.nut | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_aitdm.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_aitdm.nut index 38c9cacd..9a94b848 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_aitdm.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_aitdm.nut @@ -267,7 +267,7 @@ void function Spawner_Threaded( int team ) if ( RandomInt( points.len() ) ) { entity node = points[ GetSpawnPointIndex( points, team ) ] - waitthread AiGameModes_SpawnDropShip( node.GetOrigin(), node.GetAngles(), team, 4, SquadHandler ) + waitthread Aitdm_SpawnDropShip( node, team ) continue } } @@ -281,6 +281,12 @@ void function Spawner_Threaded( int team ) } } +void function Aitdm_SpawnDropShip( entity node, int team ) +{ + thread AiGameModes_SpawnDropShip( node.GetOrigin(), node.GetAngles(), team, 4, SquadHandler ) + wait 20 +} + // Based on points tries to balance match void function Escalate( int team ) { |