Skip to content

Commit

Permalink
Soviet05 Radar Reveal
Browse files Browse the repository at this point in the history
Added beacon and message
  • Loading branch information
Arular101 authored and reaperrr committed Nov 26, 2017
1 parent 2043576 commit 02d57c5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
6 changes: 6 additions & 0 deletions mods/ra/maps/soviet-05/rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 11 additions & 2 deletions mods/ra/maps/soviet-05/soviet05.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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)

Expand All @@ -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()
Expand Down

0 comments on commit 02d57c5

Please sign in to comment.