diff --git a/mods/ra/maps/allies-05a/allies05a.lua b/mods/ra/maps/allies-05a/allies05a.lua index 0246c35625..7f11a63d1e 100644 --- a/mods/ra/maps/allies-05a/allies05a.lua +++ b/mods/ra/maps/allies-05a/allies05a.lua @@ -84,7 +84,6 @@ end Tick = function() if FollowTruk then - TrukCamera.Teleport(Truk.Location) Camera.Position = Truk.CenterPosition end @@ -150,7 +149,7 @@ end WarfactoryInfiltrated = function() FollowTruk = true - TrukCamera = Actor.Create("camera.truk", true, { Owner = greece, Location = Truk.Location }) + Truk.GrantCondition("hijacked") Truk.Wait(DateTime.Seconds(1)) Utils.Do(TrukPath, function(waypoint) @@ -256,12 +255,11 @@ InitTriggers = function() Media.PlaySoundNotification(greece, SpyVoice) FollowTruk = false - TrukCamera.Destroy() if SpecialCameras then PrisonCamera = Actor.Create("camera", true, { Owner = greece, Location = TrukWaypoint5.Location }) else - PrisonCamera = Actor.Create("camera.truk", true, { Owner = greece, Location = Prison.Location + CVec.New(1, 1) }) + PrisonCamera = Actor.Create("camera.small", true, { Owner = greece, Location = Prison.Location + CVec.New(1, 1) }) end Trigger.OnKilled(Spy, function() ussr.MarkCompletedObjective(ussrObj) end) diff --git a/mods/ra/maps/allies-05a/rules.yaml b/mods/ra/maps/allies-05a/rules.yaml index c07d269ff7..b262b6e6aa 100644 --- a/mods/ra/maps/allies-05a/rules.yaml +++ b/mods/ra/maps/allies-05a/rules.yaml @@ -19,13 +19,10 @@ World: tough: Real tough guy Default: easy -Camera.Truk: - AlwaysVisible: - Mobile: - TerrainSpeeds: +Camera.Small: + Inherits: CAMERA RevealsShroud: Range: 4c0 - ScriptTriggers: FTUR: DetectCloaked: @@ -76,6 +73,12 @@ TRUK.mission: WithFacingSpriteBody: -SpawnActorOnDeath: -EjectOnDeath: + RevealsShroud: + Range: 4c0 + ValidStances: Ally, Enemy + RequiresCondition: hijacked + ExternalCondition@hijacked: + Condition: hijacked RenderSprites: Image: TRUK