From d72fd39d61d17aa4f8b53e5ee5ae4b23b9995e0b Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Sun, 7 Jun 2015 09:16:46 +0200 Subject: [PATCH] Make use of the new DisguiseAsType function in allies05a and remove the cloak hack --- mods/ra/maps/allies-05a/allies05a.lua | 5 +---- mods/ra/maps/allies-05a/map.yaml | 14 -------------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/mods/ra/maps/allies-05a/allies05a.lua b/mods/ra/maps/allies-05a/allies05a.lua index a90da28896..f93e667f19 100644 --- a/mods/ra/maps/allies-05a/allies05a.lua +++ b/mods/ra/maps/allies-05a/allies05a.lua @@ -160,8 +160,6 @@ WarfactoryInfiltrated = function() end MissInfiltrated = function() - CloakProvider.Destroy() - for i = 0, 5, 1 do local sound = Utils.Random(TanyaVoices) Trigger.AfterDelay(DateTime.Seconds(i), function() @@ -247,9 +245,8 @@ InitTriggers = function() if a == Truk then Trigger.RemoveFootprintTrigger(id) - CloakProvider = Actor.Create("CloakUpgrade", true, { Owner = greece, Location = Prison.Location }) - Spy = Actor.Create("spy", true, { Owner = greece, Location = TrukWaypoint5.Location }) + Spy.DisguiseAsType("e1", ussr) Spy.Move(SpyWaypoint.Location) Spy.Infiltrate(Prison) Media.PlaySoundNotification(greece, SpyVoice) diff --git a/mods/ra/maps/allies-05a/map.yaml b/mods/ra/maps/allies-05a/map.yaml index e5ae9d780d..cf66949521 100644 --- a/mods/ra/maps/allies-05a/map.yaml +++ b/mods/ra/maps/allies-05a/map.yaml @@ -1694,20 +1694,6 @@ Rules: Types: Mission Objectives DisguiseToolTip: ShowOwnerRow: false - Cloak@MISS: - UpgradeTypes: miss - UpgradeMinEnabledLevel: 1 - InitialDelay: 0 - CloakDelay: 0 - Palette: - CloakUpgrade: - AlwaysVisible: - Immobile: - OccupiesSpace: false - BodyOrientation: - UpgradeActorsNear: - Upgrades: miss - Range: 5c512 WEAP: TargetableBuilding: TargetTypes: Ground, C4, DetonateAttack, Structure, Mission Objectives