Replace paraprop power with scripted drops in Soviet01
This commit is contained in:
committed by
Matthias Mailänder
parent
b57c68e392
commit
15a92f443d
@@ -339,7 +339,7 @@ Actors:
|
||||
Actor98: barl
|
||||
Location: 45,50
|
||||
Owner: Germany
|
||||
Actor99: v04
|
||||
ParaHut: v04
|
||||
Location: 58,54
|
||||
Owner: France
|
||||
Health: 41
|
||||
|
||||
@@ -13,6 +13,11 @@ V01:
|
||||
SpawnActorOnDeath:
|
||||
Actor: healcrate
|
||||
|
||||
powerproxy.paratroopers:
|
||||
ParatroopersPower:
|
||||
DisplayBeacon: False
|
||||
DropItems: E1,E1,E1,E2,E2
|
||||
|
||||
^CivBuilding:
|
||||
MustBeDestroyed:
|
||||
|
||||
@@ -35,8 +40,7 @@ AFLD:
|
||||
AirstrikePower@spyplane:
|
||||
Prerequisites: ~disabled
|
||||
ParatroopersPower@paratroopers:
|
||||
ChargeInterval: 1500
|
||||
DropItems: E1,E1,E1,E2,E2
|
||||
Prerequisites: ~disabled
|
||||
-RallyPoint:
|
||||
-Sellable:
|
||||
Demolishable:
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user