Soviet05 Radar Reveal

Added beacon and message
This commit is contained in:
Arular101
2017-11-10 16:39:49 +01:00
committed by reaperrr
parent 2043576857
commit 02d57c5fee
2 changed files with 17 additions and 2 deletions

View File

@@ -22,6 +22,12 @@ World:
hard: Hard
Default: easy
MCV.CAM:
Inherits: CAMERA
RevealsShroud:
Range: 4c0
Type: CenterPosition
AFLD:
ParatroopersPower@paratroopers:
DropItems: E1,E1,E1,E2,E2

View File

@@ -85,6 +85,7 @@ Expand = function()
mcvGG.Move(mcvGGLoadPoint.Location)
mcvtransport.Move(lstBeachPoint.Location)
Media.DisplayMessage("Allied MCV detected moving to the island.")
Reinforcements.Reinforce(GoodGuy, { "dd", "dd" }, ShipArrivePath, 0, function(ddsquad)
ddsquad.AttackMove(NearExpPoint.Location) end)
@@ -193,8 +194,6 @@ WorldLoaded = function()
GoodGuy = Player.GetPlayer("GoodGuy")
Greece = Player.GetPlayer("Greece")
RunInitialActivities()
Trigger.OnObjectiveAdded(player, function(p, id)
Media.DisplayMessage(p.GetObjectiveDescription(id), "New " .. string.lower(p.GetObjectiveType(id)) .. " objective")
end)
@@ -210,6 +209,8 @@ WorldLoaded = function()
KillAll = player.AddPrimaryObjective("Defeat the Allied forces.")
BeatUSSR = GoodGuy.AddPrimaryObjective("Defeat the Soviet forces.")
RunInitialActivities()
Trigger.OnDamaged(mcvGG, Expand)
Trigger.OnDamaged(mcvtransport, Expand)
@@ -227,6 +228,14 @@ WorldLoaded = function()
Trigger.OnCapture(Radar, function()
HoldObjective = player.AddPrimaryObjective("Defend the Radar Dome.")
player.MarkCompletedObjective(CaptureObjective)
Beacon.New(player, MCVDeploy.CenterPosition)
if Map.LobbyOption("difficulty") == "easy" then
Actor.Create("camera", true, { Owner = player, Location = MCVDeploy.Location })
Media.DisplayMessage("Movement of an Allied expansion base discovered.")
else
Actor.Create("MCV.CAM", true, { Owner = player, Location = MCVDeploy.Location })
Media.DisplayMessage("Coordinates of an Allied expansion base discovered.")
end
if not ExpansionCheck then
Expand()