Have the starting camera viewport position be determined by the local player
This commit is contained in:
@@ -34,6 +34,8 @@ namespace OpenRA.Mods.RA.Missions
|
|||||||
Actor tanya;
|
Actor tanya;
|
||||||
Actor einstein;
|
Actor einstein;
|
||||||
|
|
||||||
|
Actor allies2BasePoint;
|
||||||
|
|
||||||
Player allies1;
|
Player allies1;
|
||||||
Player allies2;
|
Player allies2;
|
||||||
Player soviets;
|
Player soviets;
|
||||||
@@ -108,11 +110,12 @@ namespace OpenRA.Mods.RA.Missions
|
|||||||
sam4 = actors["SAM4"];
|
sam4 = actors["SAM4"];
|
||||||
tanya = actors["Tanya"];
|
tanya = actors["Tanya"];
|
||||||
einstein = actors["Einstein"];
|
einstein = actors["Einstein"];
|
||||||
|
allies2BasePoint = actors["Allies2BasePoint"];
|
||||||
w.WorldActor.Trait<Shroud>().Explore(w, sam1.Location, 2);
|
w.WorldActor.Trait<Shroud>().Explore(w, sam1.Location, 2);
|
||||||
w.WorldActor.Trait<Shroud>().Explore(w, sam2.Location, 2);
|
w.WorldActor.Trait<Shroud>().Explore(w, sam2.Location, 2);
|
||||||
w.WorldActor.Trait<Shroud>().Explore(w, sam3.Location, 2);
|
w.WorldActor.Trait<Shroud>().Explore(w, sam3.Location, 2);
|
||||||
w.WorldActor.Trait<Shroud>().Explore(w, sam4.Location, 2);
|
w.WorldActor.Trait<Shroud>().Explore(w, sam4.Location, 2);
|
||||||
Game.MoveViewport(chinookHusk.Location.ToFloat2());
|
Game.MoveViewport((w.LocalPlayer == allies1 ? chinookHusk.Location : allies2BasePoint.Location).ToFloat2());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
@@ -27,7 +27,6 @@ Players:
|
|||||||
PlayerReference@Allies1:
|
PlayerReference@Allies1:
|
||||||
Name: Allies1
|
Name: Allies1
|
||||||
Playable: True
|
Playable: True
|
||||||
#AllowBots: False
|
|
||||||
LockRace: True
|
LockRace: True
|
||||||
Race: allies
|
Race: allies
|
||||||
LockColor: True
|
LockColor: True
|
||||||
@@ -39,7 +38,6 @@ Players:
|
|||||||
PlayerReference@Allies2:
|
PlayerReference@Allies2:
|
||||||
Name: Allies2
|
Name: Allies2
|
||||||
Playable: True
|
Playable: True
|
||||||
#AllowBots: False
|
|
||||||
LockRace: True
|
LockRace: True
|
||||||
Race: allies
|
Race: allies
|
||||||
LockColor: True
|
LockColor: True
|
||||||
@@ -1438,8 +1436,8 @@ Actors:
|
|||||||
Actor528: fenc
|
Actor528: fenc
|
||||||
Location: 74,23
|
Location: 74,23
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor530: ftur
|
Actor473: tsla
|
||||||
Location: 52,61
|
Location: 52,60
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor167: tsla
|
Actor167: tsla
|
||||||
Location: 58,44
|
Location: 58,44
|
||||||
@@ -1516,8 +1514,8 @@ Actors:
|
|||||||
Actor444: dome
|
Actor444: dome
|
||||||
Location: 55,68
|
Location: 55,68
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor445: fact
|
Actor445: apwr
|
||||||
Location: 27,56
|
Location: 29,54
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor450: silo
|
Actor450: silo
|
||||||
Location: 47,43
|
Location: 47,43
|
||||||
@@ -1576,6 +1574,27 @@ Actors:
|
|||||||
Actor466: gun
|
Actor466: gun
|
||||||
Location: 31,89
|
Location: 31,89
|
||||||
Owner: Allies2
|
Owner: Allies2
|
||||||
|
Actor83: dome
|
||||||
|
Location: 29,96
|
||||||
|
Owner: Allies2
|
||||||
|
Allies2BasePoint: waypoint
|
||||||
|
Location: 32,97
|
||||||
|
Owner: Neutral
|
||||||
|
Actor468: apwr
|
||||||
|
Location: 25,54
|
||||||
|
Owner: Soviets
|
||||||
|
Actor467: powr
|
||||||
|
Location: 102,46
|
||||||
|
Owner: Soviets
|
||||||
|
Actor469: apwr
|
||||||
|
Location: 25,57
|
||||||
|
Owner: Soviets
|
||||||
|
Actor470: apwr
|
||||||
|
Location: 29,57
|
||||||
|
Owner: Soviets
|
||||||
|
Actor472: fact
|
||||||
|
Location: 29,61
|
||||||
|
Owner: Soviets
|
||||||
|
|
||||||
Smudges:
|
Smudges:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user