Rework objectives in Situation Critical
This commit is contained in:
@@ -85,11 +85,8 @@ end
|
|||||||
LabInfiltrated = false
|
LabInfiltrated = false
|
||||||
SetupTriggers = function()
|
SetupTriggers = function()
|
||||||
Trigger.OnAllKilled(SamSites, function()
|
Trigger.OnAllKilled(SamSites, function()
|
||||||
local proxy = Actor.Create("powerproxy.parabombs", false, { Owner = USSR })
|
USSR.MarkCompletedObjective(KillSams)
|
||||||
proxy.TargetAirstrike(TacticalNuke1.CenterPosition, Angle.SouthWest)
|
SendInBombers()
|
||||||
proxy.TargetAirstrike(TacticalNuke2.CenterPosition, Angle.SouthWest)
|
|
||||||
proxy.TargetAirstrike(TacticalNuke3.CenterPosition, Angle.SouthWest)
|
|
||||||
proxy.Destroy()
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
Trigger.OnInfiltrated(BioLab, function()
|
Trigger.OnInfiltrated(BioLab, function()
|
||||||
@@ -97,6 +94,7 @@ SetupTriggers = function()
|
|||||||
Trigger.AfterDelay(DateTime.Seconds(5), function()
|
Trigger.AfterDelay(DateTime.Seconds(5), function()
|
||||||
USSR.MarkCompletedObjective(InfiltrateLab)
|
USSR.MarkCompletedObjective(InfiltrateLab)
|
||||||
LabInfiltrated = true
|
LabInfiltrated = true
|
||||||
|
SendInBombers()
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
@@ -118,6 +116,17 @@ SetupTriggers = function()
|
|||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
SendInBombers = function()
|
||||||
|
if LabInfiltrated and USSR.IsObjectiveCompleted(KillSams) then
|
||||||
|
local proxy = Actor.Create("powerproxy.parabombs", false, { Owner = USSR })
|
||||||
|
proxy.TargetAirstrike(TacticalNuke1.CenterPosition, Angle.SouthWest)
|
||||||
|
proxy.TargetAirstrike(TacticalNuke2.CenterPosition, Angle.SouthWest)
|
||||||
|
proxy.TargetAirstrike(TacticalNuke3.CenterPosition, Angle.SouthWest)
|
||||||
|
proxy.Destroy()
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
SendInVolkov = function()
|
SendInVolkov = function()
|
||||||
if not VolkovArrived then
|
if not VolkovArrived then
|
||||||
USSR.MarkCompletedObjective(KillPower)
|
USSR.MarkCompletedObjective(KillPower)
|
||||||
@@ -167,7 +176,8 @@ WorldLoaded = function()
|
|||||||
LaunchMissles = Turkey.AddObjective("Survive until time expires.")
|
LaunchMissles = Turkey.AddObjective("Survive until time expires.")
|
||||||
KillPower = USSR.AddObjective("Bring the base to low power. Volkov will arrive\nonce the defenses are down.")
|
KillPower = USSR.AddObjective("Bring the base to low power. Volkov will arrive\nonce the defenses are down.")
|
||||||
InfiltrateLab = USSR.AddObjective("Infiltrate the bio-weapons lab with the scientist.")
|
InfiltrateLab = USSR.AddObjective("Infiltrate the bio-weapons lab with the scientist.")
|
||||||
DestroyFacility = USSR.AddObjective("Destroy all sam sites on the island.\nOur strategic bombers will finish the rest.")
|
DestroyFacility = USSR.AddObjective("Destroy the bio-weapons lab and missile silos.")
|
||||||
|
KillSams = USSR.AddObjective("Destroy all sam sites on the island.\nOur strategic bombers will finish the rest.", "Secondary", false)
|
||||||
VolkovSurvive = USSR.AddObjective("Volkov must survive.")
|
VolkovSurvive = USSR.AddObjective("Volkov must survive.")
|
||||||
|
|
||||||
Trigger.OnObjectiveCompleted(USSR, function(p, id)
|
Trigger.OnObjectiveCompleted(USSR, function(p, id)
|
||||||
|
|||||||
Reference in New Issue
Block a user