aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_aitdm.nut
diff options
context:
space:
mode:
authorWilliam Miller <william-millennium@hotmail.com>2024-09-10 16:31:12 -0300
committerGitHub <noreply@github.com>2024-09-10 16:31:12 -0300
commit228aefe63642ba8b43b1a137031ea606ccec2501 (patch)
treedd762c11c79559eeda63eed706e494c4d0820ab5 /Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_aitdm.nut
parenta1502e9ad3ed44b2a0a8ab5f17d4d2bf5238d9cf (diff)
parent3dfd2091b4e72aad14b5d9cfd2332e7ec643c7fd (diff)
downloadNorthstarMods-228aefe63642ba8b43b1a137031ea606ccec2501.tar.gz
NorthstarMods-228aefe63642ba8b43b1a137031ea606ccec2501.zip
Merge branch 'main' into gamemode_fdgamemode_fd
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_aitdm.nut')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_aitdm.nut10
1 files changed, 7 insertions, 3 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_aitdm.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_aitdm.nut
index f47ee90f..cacb54cf 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_aitdm.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_aitdm.nut
@@ -60,6 +60,7 @@ void function GamemodeAITdm_Init()
}
ScoreEvent_SetupEarnMeterValuesForMixedModes()
+ SetupGenericTDMChallenge()
}
// add settings
@@ -434,9 +435,12 @@ void function SquadHandler( array<entity> guys )
// Setup AI, first assault point
foreach ( guy in guys )
{
- guy.EnableNPCFlag( NPC_ALLOW_PATROL | NPC_ALLOW_INVESTIGATE | NPC_ALLOW_HAND_SIGNALS | NPC_ALLOW_FLEE )
- guy.AssaultPoint( point )
- guy.AssaultSetGoalRadius( 1600 ) // 1600 is minimum for npc_stalker, works fine for others
+ if ( IsAlive( guy ) )
+ {
+ guy.EnableNPCFlag( NPC_ALLOW_PATROL | NPC_ALLOW_INVESTIGATE | NPC_ALLOW_HAND_SIGNALS | NPC_ALLOW_FLEE )
+ guy.AssaultPoint( point )
+ guy.AssaultSetGoalRadius( 1600 ) // 1600 is minimum for npc_stalker, works fine for others
+ }
//thread AITdm_CleanupBoredNPCThread( guy )
}