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

@@ -339,7 +339,7 @@ Actors:
Actor98: barl Actor98: barl
Location: 45,50 Location: 45,50
Owner: Germany Owner: Germany
Actor99: v04 ParaHut: v04
Location: 58,54 Location: 58,54
Owner: France Owner: France
Health: 41 Health: 41

View File

@@ -13,6 +13,11 @@ V01:
SpawnActorOnDeath: SpawnActorOnDeath:
Actor: healcrate Actor: healcrate
powerproxy.paratroopers:
ParatroopersPower:
DisplayBeacon: False
DropItems: E1,E1,E1,E2,E2
^CivBuilding: ^CivBuilding:
MustBeDestroyed: MustBeDestroyed:
@@ -35,8 +40,7 @@ AFLD:
AirstrikePower@spyplane: AirstrikePower@spyplane:
Prerequisites: ~disabled Prerequisites: ~disabled
ParatroopersPower@paratroopers: ParatroopersPower@paratroopers:
ChargeInterval: 1500 Prerequisites: ~disabled
DropItems: E1,E1,E1,E2,E2
-RallyPoint: -RallyPoint:
-Sellable: -Sellable:
Demolishable: Demolishable:

View File

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