From 41ec203c56a9f2f83ad9fb1b2fcd5dd4027c96b4 Mon Sep 17 00:00:00 2001 From: F1F7Y <64418963+F1F7Y@users.noreply.github.com> Date: Wed, 22 Jun 2022 14:03:02 +0200 Subject: Use wait instead of waitthread (#393) --- .../mod/scripts/vscripts/gamemodes/_gamemode_aitdm.nut | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 ) { -- cgit v1.2.3