Rework D2k campaign scripts:

- Add InitialProductionDelay
- Different attacksDelays for early game and late game
- Adjust T3 unit production for selected missions
- Implement InitialAttackDelay, TimeBetweenAttacks
- Implement routines for idle units
- Emergency mode
- Airstrike rework
This commit is contained in:
N.N
2026-01-27 10:11:07 +00:00
committed by Gustas Kažukauskas
parent 0a933ba09c
commit 3a86c035b3
107 changed files with 5292 additions and 454 deletions

View File

@@ -32,6 +32,7 @@ HarkonnenReinforcements =
}
HarkonnenEntryWaypoints = { HarkonnenWaypoint1.Location, HarkonnenWaypoint2.Location, HarkonnenWaypoint3.Location, HarkonnenWaypoint4.Location }
HarkonnenAttackDelay = DateTime.Seconds(30)
HarkonnenAttackWaves =
@@ -49,6 +50,7 @@ ToHarvest =
}
OrdosReinforcements = { "light_inf", "light_inf", "light_inf", "light_inf", "raider" }
OrdosEntryPath = { OrdosWaypoint.Location, OrdosRally.Location }
Messages =
@@ -118,14 +120,10 @@ WorldLoaded = function()
end
Trigger.OnRemovedFromWorld(OrdosConyard, function()
-- Mission already failed, no need to check the other conditions as well
if checkResourceCapacity() then
return
end
if checkResourceCapacity() then return end
local refs = Utils.Where(Map.ActorsInWorld, function(actor) return actor.Type == "refinery" and actor.Owner == Ordos end)
if #refs == 0 then
Harkonnen.MarkCompletedObjective(KillOrdos)
else