Replace Camera.Truk by using ValidStances on RevealsShroud
This commit is contained in:
@@ -84,7 +84,6 @@ end
|
|||||||
|
|
||||||
Tick = function()
|
Tick = function()
|
||||||
if FollowTruk then
|
if FollowTruk then
|
||||||
TrukCamera.Teleport(Truk.Location)
|
|
||||||
Camera.Position = Truk.CenterPosition
|
Camera.Position = Truk.CenterPosition
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -150,7 +149,7 @@ end
|
|||||||
|
|
||||||
WarfactoryInfiltrated = function()
|
WarfactoryInfiltrated = function()
|
||||||
FollowTruk = true
|
FollowTruk = true
|
||||||
TrukCamera = Actor.Create("camera.truk", true, { Owner = greece, Location = Truk.Location })
|
Truk.GrantCondition("hijacked")
|
||||||
|
|
||||||
Truk.Wait(DateTime.Seconds(1))
|
Truk.Wait(DateTime.Seconds(1))
|
||||||
Utils.Do(TrukPath, function(waypoint)
|
Utils.Do(TrukPath, function(waypoint)
|
||||||
@@ -256,12 +255,11 @@ InitTriggers = function()
|
|||||||
Media.PlaySoundNotification(greece, SpyVoice)
|
Media.PlaySoundNotification(greece, SpyVoice)
|
||||||
|
|
||||||
FollowTruk = false
|
FollowTruk = false
|
||||||
TrukCamera.Destroy()
|
|
||||||
|
|
||||||
if SpecialCameras then
|
if SpecialCameras then
|
||||||
PrisonCamera = Actor.Create("camera", true, { Owner = greece, Location = TrukWaypoint5.Location })
|
PrisonCamera = Actor.Create("camera", true, { Owner = greece, Location = TrukWaypoint5.Location })
|
||||||
else
|
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
|
end
|
||||||
|
|
||||||
Trigger.OnKilled(Spy, function() ussr.MarkCompletedObjective(ussrObj) end)
|
Trigger.OnKilled(Spy, function() ussr.MarkCompletedObjective(ussrObj) end)
|
||||||
|
|||||||
@@ -19,13 +19,10 @@ World:
|
|||||||
tough: Real tough guy
|
tough: Real tough guy
|
||||||
Default: easy
|
Default: easy
|
||||||
|
|
||||||
Camera.Truk:
|
Camera.Small:
|
||||||
AlwaysVisible:
|
Inherits: CAMERA
|
||||||
Mobile:
|
|
||||||
TerrainSpeeds:
|
|
||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
Range: 4c0
|
Range: 4c0
|
||||||
ScriptTriggers:
|
|
||||||
|
|
||||||
FTUR:
|
FTUR:
|
||||||
DetectCloaked:
|
DetectCloaked:
|
||||||
@@ -76,6 +73,12 @@ TRUK.mission:
|
|||||||
WithFacingSpriteBody:
|
WithFacingSpriteBody:
|
||||||
-SpawnActorOnDeath:
|
-SpawnActorOnDeath:
|
||||||
-EjectOnDeath:
|
-EjectOnDeath:
|
||||||
|
RevealsShroud:
|
||||||
|
Range: 4c0
|
||||||
|
ValidStances: Ally, Enemy
|
||||||
|
RequiresCondition: hijacked
|
||||||
|
ExternalCondition@hijacked:
|
||||||
|
Condition: hijacked
|
||||||
RenderSprites:
|
RenderSprites:
|
||||||
Image: TRUK
|
Image: TRUK
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user