diff options
author | Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> | 2022-07-23 20:43:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-23 21:43:49 +0200 |
commit | 14ee2ce0a4fcee0e9f2afce87936016cd8b72568 (patch) | |
tree | a2556ad41baf0af9562a394483f679f51022835a /Northstar.CustomServers/mod/scripts/vscripts/gamemodes | |
parent | 92e0c79759e4388320f565f3922ff5608aff19d6 (diff) | |
download | NorthstarMods-14ee2ce0a4fcee0e9f2afce87936016cd8b72568.tar.gz NorthstarMods-14ee2ce0a4fcee0e9f2afce87936016cd8b72568.zip |
[FD] Forwardbase Kodai improvements + attempt to stop AI from clipping into the harvester (#452)
* Change Kodai to use weighted events and cloak drones
* Set Kodai drones to not loop their route
* Stop AI from clipping into the harvester
Not perfect, but now at least they clip into it less, and dont stay in it
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/gamemodes')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd_events.nut | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd_events.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd_events.nut index 8792a861..5b641ee8 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd_events.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd_events.nut @@ -41,6 +41,7 @@ global struct SpawnEvent{ string npcClassName string aiSettings string entityGlobalKey + bool shouldLoop = false } global struct FlowControlEvent{ @@ -542,7 +543,7 @@ WaveEvent function CreateWaitForLessThanTypedEvent(int aiTypeId,int amount,int n event.flowControlEvent.waitEntityType = aiTypeId return event } -WaveEvent function CreateSpawnDroneEvent(vector origin,vector angles,string route,int nextEventIndex,int executeOnThisCall = 1,string entityGlobalKey="") +WaveEvent function CreateSpawnDroneEvent(vector origin,vector angles,string route,int nextEventIndex, bool shouldLoop = true, int executeOnThisCall = 1,string entityGlobalKey="") { WaveEvent event event.eventFunction = spawnDrones @@ -554,6 +555,7 @@ WaveEvent function CreateSpawnDroneEvent(vector origin,vector angles,string rout event.spawnEvent.origin = origin event.spawnEvent.entityGlobalKey = entityGlobalKey event.spawnEvent.route = route + event.spawnEvent.shouldLoop = shouldLoop return event } @@ -613,7 +615,7 @@ void function spawnDrones(SmokeEvent smokeEvent,SpawnEvent spawnEvent,FlowContro SetTargetName( guy, GetTargetNameForID(eFD_AITypeIDs.DRONE)) AddMinimapForHumans(guy) spawnedNPCs.append(guy) - thread droneNav_thread(guy, spawnEvent.route, 0, 500, true) + thread droneNav_thread(guy, spawnEvent.route, 0, 500, spawnEvent.shouldLoop) } |