Replace paraprop power with scripted drops in Soviet01

This commit is contained in:
Smittytron
2020-05-16 20:49:10 -05:00
committed by Matthias Mailänder
parent b57c68e392
commit 15a92f443d
3 changed files with 29 additions and 6 deletions

View File

@@ -24,9 +24,9 @@ end
JeepDemolishingBridge = function()
StartJeep.Move(StartJeepMovePoint.Location)
Trigger.OnIdle(StartJeep, function()
Trigger.ClearAll(StartJeep)
if not BridgeBarrel.IsDead then
Trigger.OnEnteredFootprint({ StartJeepMovePoint.Location }, function(actor, id)
if actor.Owner == france and not BridgeBarrel.IsDead then
Trigger.RemoveFootprintTrigger(id)
BridgeBarrel.Kill()
end
@@ -39,6 +39,23 @@ JeepDemolishingBridge = function()
end)
end
Paratroopers = function()
Trigger.OnKilled(StartJeep, function()
Media.PlaySpeechNotification(player, "ReinforcementsArrived")
Paradrop.TargetParatroopers(StartJeepMovePoint.CenterPosition, Angle.East)
end)
Trigger.OnKilled(Church, function()
Media.PlaySpeechNotification(player, "ReinforcementsArrived")
Paradrop.TargetParatroopers(StartJeepMovePoint.CenterPosition, Angle.East)
end)
Trigger.OnKilled(ParaHut, function()
Media.PlaySpeechNotification(player, "ReinforcementsArrived")
Paradrop.TargetParatroopers(StartJeepMovePoint.CenterPosition, Angle.East)
end)
end
WorldLoaded = function()
player = Player.GetPlayer("USSR")
france = Player.GetPlayer("France")
@@ -70,7 +87,9 @@ WorldLoaded = function()
Media.PlaySpeechNotification(player, "MissionFailed")
end)
Paradrop = Actor.Create("powerproxy.paratroopers", false, { Owner = player })
Trigger.AfterDelay(DateTime.Seconds(2), InsertYaks)
Paratroopers()
end
Tick = function()