Add civilian movement and balance changes in Allies 04
This commit is contained in:
@@ -16,8 +16,8 @@ using OpenRA.FileFormats;
|
|||||||
using OpenRA.Mods.RA.Activities;
|
using OpenRA.Mods.RA.Activities;
|
||||||
using OpenRA.Mods.RA.Air;
|
using OpenRA.Mods.RA.Air;
|
||||||
using OpenRA.Mods.RA.Buildings;
|
using OpenRA.Mods.RA.Buildings;
|
||||||
|
using OpenRA.Mods.RA.Move;
|
||||||
using OpenRA.Mods.RA.Render;
|
using OpenRA.Mods.RA.Render;
|
||||||
using OpenRA.Network;
|
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
using OpenRA.Widgets;
|
using OpenRA.Widgets;
|
||||||
|
|
||||||
@@ -66,6 +66,7 @@ namespace OpenRA.Mods.RA.Missions
|
|||||||
Player allies1;
|
Player allies1;
|
||||||
Player allies2;
|
Player allies2;
|
||||||
Player soviets;
|
Player soviets;
|
||||||
|
Player neutral;
|
||||||
World world;
|
World world;
|
||||||
|
|
||||||
Patrol[] patrols;
|
Patrol[] patrols;
|
||||||
@@ -85,6 +86,8 @@ namespace OpenRA.Mods.RA.Missions
|
|||||||
string difficulty;
|
string difficulty;
|
||||||
int destroyBaseTicks;
|
int destroyBaseTicks;
|
||||||
|
|
||||||
|
int nextCivilianMove = 1;
|
||||||
|
|
||||||
void MissionFailed(string text)
|
void MissionFailed(string text)
|
||||||
{
|
{
|
||||||
if (allies1.WinState != WinState.Undefined)
|
if (allies1.WinState != WinState.Undefined)
|
||||||
@@ -174,6 +177,16 @@ namespace OpenRA.Mods.RA.Missions
|
|||||||
OnObjectivesUpdated(true);
|
OnObjectivesUpdated(true);
|
||||||
MissionAccomplished("The Soviet research laboratory has been secured successfully.");
|
MissionAccomplished("The Soviet research laboratory has been secured successfully.");
|
||||||
}
|
}
|
||||||
|
if (world.FrameNumber == nextCivilianMove)
|
||||||
|
{
|
||||||
|
var civilians = world.Actors.Where(a => !a.IsDead() && a.IsInWorld && a.Owner == neutral && a.HasTrait<Mobile>());
|
||||||
|
if (civilians.Any())
|
||||||
|
{
|
||||||
|
var civilian = civilians.Random(world.SharedRandom);
|
||||||
|
civilian.Trait<Mobile>().Nudge(civilian, civilian, true);
|
||||||
|
nextCivilianMove += world.SharedRandom.Next(1, 75);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SovietBaseDestroyed()
|
bool SovietBaseDestroyed()
|
||||||
@@ -361,6 +374,7 @@ namespace OpenRA.Mods.RA.Missions
|
|||||||
}
|
}
|
||||||
allies = w.Players.Single(p => p.InternalName == "Allies");
|
allies = w.Players.Single(p => p.InternalName == "Allies");
|
||||||
soviets = w.Players.Single(p => p.InternalName == "Soviets");
|
soviets = w.Players.Single(p => p.InternalName == "Soviets");
|
||||||
|
neutral = w.Players.Single(p => p.InternalName == "Neutral");
|
||||||
|
|
||||||
destroyBaseTicks = difficulty == "Hard" ? 1500 * 20 : difficulty == "Normal" ? 1500 * 25 : 1500 * 30;
|
destroyBaseTicks = difficulty == "Hard" ? 1500 * 20 : difficulty == "Normal" ? 1500 * 25 : 1500 * 30;
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ Author: Scott_NZ
|
|||||||
|
|
||||||
Tileset: TEMPERAT
|
Tileset: TEMPERAT
|
||||||
|
|
||||||
|
Difficulties: Easy,Normal,Hard
|
||||||
|
|
||||||
MapSize: 128,128
|
MapSize: 128,128
|
||||||
|
|
||||||
Bounds: 16,16,96,96
|
Bounds: 16,16,96,96
|
||||||
@@ -20,8 +22,6 @@ UseAsShellmap: False
|
|||||||
|
|
||||||
Type: Campaign
|
Type: Campaign
|
||||||
|
|
||||||
Difficulties: Easy, Normal, Hard
|
|
||||||
|
|
||||||
Players:
|
Players:
|
||||||
PlayerReference@Neutral:
|
PlayerReference@Neutral:
|
||||||
Name: Neutral
|
Name: Neutral
|
||||||
@@ -117,7 +117,7 @@ Actors:
|
|||||||
Location: 70,84
|
Location: 70,84
|
||||||
Owner: Neutral
|
Owner: Neutral
|
||||||
Actor10: v02
|
Actor10: v02
|
||||||
Location: 71,89
|
Location: 73,90
|
||||||
Owner: Neutral
|
Owner: Neutral
|
||||||
Actor236: sbag
|
Actor236: sbag
|
||||||
Location: 66,36
|
Location: 66,36
|
||||||
@@ -167,9 +167,9 @@ Actors:
|
|||||||
Actor84: tc02
|
Actor84: tc02
|
||||||
Location: 94,75
|
Location: 94,75
|
||||||
Owner: Neutral
|
Owner: Neutral
|
||||||
Actor9: v01
|
Actor9: v01.sniper
|
||||||
Location: 64,94
|
Location: 64,94
|
||||||
Owner: Neutral
|
Owner: Soviets
|
||||||
Actor53: powr
|
Actor53: powr
|
||||||
Location: 86,65
|
Location: 86,65
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
@@ -304,7 +304,7 @@ Actors:
|
|||||||
Location: 31,82
|
Location: 31,82
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor37: dome
|
Actor37: dome
|
||||||
Location: 45,57
|
Location: 44,57
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor65: sam
|
Actor65: sam
|
||||||
Location: 50,37
|
Location: 50,37
|
||||||
@@ -425,20 +425,20 @@ Actors:
|
|||||||
Actor119: e1
|
Actor119: e1
|
||||||
Location: 99,41
|
Location: 99,41
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor122: fenc
|
Actor279: dog
|
||||||
Location: 108,39
|
Location: 101,38
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor123: fenc
|
Actor151: fenc
|
||||||
Location: 109,39
|
|
||||||
Owner: Soviets
|
|
||||||
Actor124: fenc
|
|
||||||
Location: 110,39
|
|
||||||
Owner: Soviets
|
|
||||||
Actor125: fenc
|
|
||||||
Location: 111,39
|
Location: 111,39
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor127: ftur
|
Actor125: fenc
|
||||||
Location: 108,40
|
Location: 110,39
|
||||||
|
Owner: Soviets
|
||||||
|
Actor124: fenc
|
||||||
|
Location: 109,39
|
||||||
|
Owner: Soviets
|
||||||
|
Actor127: fenc
|
||||||
|
Location: 99,39
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor148: e1
|
Actor148: e1
|
||||||
Location: 92,20
|
Location: 92,20
|
||||||
@@ -452,8 +452,8 @@ Actors:
|
|||||||
Actor101: kenn
|
Actor101: kenn
|
||||||
Location: 41,47
|
Location: 41,47
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor130: apwr
|
Actor133: apwr
|
||||||
Location: 101,16
|
Location: 97,16
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor131: apwr
|
Actor131: apwr
|
||||||
Location: 107,16
|
Location: 107,16
|
||||||
@@ -461,8 +461,8 @@ Actors:
|
|||||||
Actor132: apwr
|
Actor132: apwr
|
||||||
Location: 107,19
|
Location: 107,19
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor133: apwr
|
Actor130: apwr
|
||||||
Location: 101,19
|
Location: 101,16
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor134: proc
|
Actor134: proc
|
||||||
Location: 106,30
|
Location: 106,30
|
||||||
@@ -479,23 +479,20 @@ Actors:
|
|||||||
Actor138: sam
|
Actor138: sam
|
||||||
Location: 33,27
|
Location: 33,27
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor140: fenc
|
Actor143: e1
|
||||||
Location: 91,23
|
Location: 61,98
|
||||||
Owner: Soviets
|
|
||||||
Actor139: fenc
|
|
||||||
Location: 91,24
|
|
||||||
Owner: Soviets
|
|
||||||
Actor141: fenc
|
|
||||||
Location: 91,19
|
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor142: fenc
|
Actor142: fenc
|
||||||
Location: 91,18
|
Location: 91,16
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor143: fenc
|
Actor141: fenc
|
||||||
Location: 91,17
|
Location: 91,17
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor144: fenc
|
Actor140: fenc
|
||||||
Location: 91,16
|
Location: 91,18
|
||||||
|
Owner: Soviets
|
||||||
|
Actor139: fenc
|
||||||
|
Location: 91,19
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor145: ftur
|
Actor145: ftur
|
||||||
Location: 90,23
|
Location: 90,23
|
||||||
@@ -507,22 +504,22 @@ Actors:
|
|||||||
Location: 92,23
|
Location: 92,23
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor118: ftur
|
Actor118: ftur
|
||||||
Location: 98,40
|
Location: 99,40
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor149: fact
|
Actor149: fact
|
||||||
Location: 95,25
|
Location: 95,25
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor151: v01
|
Actor304: 3tnk
|
||||||
Location: 89,50
|
Location: 106,38
|
||||||
Owner: Neutral
|
|
||||||
Actor150: silo
|
|
||||||
Location: 110,28
|
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor152: v07
|
Actor488: t02
|
||||||
Location: 79,45
|
Location: 110,28
|
||||||
Owner: Neutral
|
Owner: Neutral
|
||||||
|
Actor123: fenc
|
||||||
|
Location: 108,39
|
||||||
|
Owner: Soviets
|
||||||
Actor153: apwr
|
Actor153: apwr
|
||||||
Location: 97,16
|
Location: 101,19
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor154: apwr
|
Actor154: apwr
|
||||||
Location: 93,16
|
Location: 93,16
|
||||||
@@ -705,9 +702,9 @@ Actors:
|
|||||||
Actor213: t16
|
Actor213: t16
|
||||||
Location: 102,22
|
Location: 102,22
|
||||||
Owner: Neutral
|
Owner: Neutral
|
||||||
Actor214: t14
|
Actor214: silo
|
||||||
Location: 109,29
|
Location: 109,29
|
||||||
Owner: Neutral
|
Owner: Soviets
|
||||||
Actor215: t01
|
Actor215: t01
|
||||||
Location: 96,36
|
Location: 96,36
|
||||||
Owner: Neutral
|
Owner: Neutral
|
||||||
@@ -741,8 +738,8 @@ Actors:
|
|||||||
Actor224: 4tnk
|
Actor224: 4tnk
|
||||||
Location: 103,30
|
Location: 103,30
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor223: 4tnk
|
Actor144: 4tnk
|
||||||
Location: 43,57
|
Location: 42,58
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor52: hpad
|
Actor52: hpad
|
||||||
Location: 83,65
|
Location: 83,65
|
||||||
@@ -840,8 +837,8 @@ Actors:
|
|||||||
Actor262: e1
|
Actor262: e1
|
||||||
Location: 37,31
|
Location: 37,31
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor263: truk
|
Actor274: truk
|
||||||
Location: 34,31
|
Location: 36,31
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor264: v2rl
|
Actor264: v2rl
|
||||||
Location: 50,36
|
Location: 50,36
|
||||||
@@ -868,30 +865,27 @@ Actors:
|
|||||||
Actor271: dog
|
Actor271: dog
|
||||||
Location: 37,40
|
Location: 37,40
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor272: wood
|
Actor122: fenc
|
||||||
Location: 83,45
|
Location: 107,39
|
||||||
Owner: Neutral
|
Owner: Soviets
|
||||||
Actor273: wood
|
Actor263: bio
|
||||||
Location: 84,45
|
Location: 34,31
|
||||||
Owner: Neutral
|
Owner: Soviets
|
||||||
Actor274: wood
|
Actor152: ftur
|
||||||
Location: 85,45
|
Location: 107,40
|
||||||
Owner: Neutral
|
Owner: Soviets
|
||||||
Actor275: tc02
|
Actor275: tc02
|
||||||
Location: 74,48
|
Location: 74,48
|
||||||
Owner: Neutral
|
Owner: Neutral
|
||||||
Actor276: t03
|
Actor276: t03
|
||||||
Location: 91,43
|
Location: 91,43
|
||||||
Owner: Neutral
|
Owner: Neutral
|
||||||
Actor277: wood
|
Actor277: dog.patrol
|
||||||
Location: 89,45
|
Location: 37,32
|
||||||
Owner: Neutral
|
Owner: Soviets
|
||||||
Actor278: wood
|
Actor272: 3tnk
|
||||||
Location: 87,45
|
Location: 102,37
|
||||||
Owner: Neutral
|
Owner: Soviets
|
||||||
Actor279: wood
|
|
||||||
Location: 88,45
|
|
||||||
Owner: Neutral
|
|
||||||
Actor280: t16
|
Actor280: t16
|
||||||
Location: 87,41
|
Location: 87,41
|
||||||
Owner: Neutral
|
Owner: Neutral
|
||||||
@@ -988,15 +982,15 @@ Actors:
|
|||||||
Actor311: oilb
|
Actor311: oilb
|
||||||
Location: 32,76
|
Location: 32,76
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor313: e1
|
Actor114: c1
|
||||||
Location: 70,94
|
Location: 69,84
|
||||||
Owner: Soviets
|
Owner: Neutral
|
||||||
Actor314: e1
|
Actor217: c3
|
||||||
Location: 56,89
|
Location: 63,96
|
||||||
Owner: Soviets
|
Owner: Neutral
|
||||||
Actor315: e1
|
Actor54: c1
|
||||||
Location: 68,86
|
Location: 67,99
|
||||||
Owner: Soviets
|
Owner: Neutral
|
||||||
Actor302: tsla
|
Actor302: tsla
|
||||||
Location: 103,34
|
Location: 103,34
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
@@ -1141,7 +1135,7 @@ Actors:
|
|||||||
Actor364: t01
|
Actor364: t01
|
||||||
Location: 73,91
|
Location: 73,91
|
||||||
Owner: Neutral
|
Owner: Neutral
|
||||||
Actor365: hosp
|
Actor273: v10
|
||||||
Location: 58,86
|
Location: 58,86
|
||||||
Owner: Neutral
|
Owner: Neutral
|
||||||
Actor343: e1
|
Actor343: e1
|
||||||
@@ -1210,15 +1204,12 @@ Actors:
|
|||||||
Actor243: ftur
|
Actor243: ftur
|
||||||
Location: 81,69
|
Location: 81,69
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor388: v02
|
Actor223: e3
|
||||||
Location: 79,50
|
Location: 39,53
|
||||||
Owner: Neutral
|
Owner: Soviets
|
||||||
Actor389: v11
|
Actor278: ftur
|
||||||
Location: 83,51
|
Location: 37,58
|
||||||
Owner: Neutral
|
Owner: Soviets
|
||||||
Actor390: v06
|
|
||||||
Location: 81,50
|
|
||||||
Owner: Neutral
|
|
||||||
Actor391: ftur
|
Actor391: ftur
|
||||||
Location: 94,66
|
Location: 94,66
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
@@ -1349,15 +1340,9 @@ Actors:
|
|||||||
Actor296: kenn
|
Actor296: kenn
|
||||||
Location: 90,68
|
Location: 90,68
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Actor303: v10
|
Actor303: e2
|
||||||
Location: 97,47
|
Location: 100,38
|
||||||
Owner: Neutral
|
Owner: Soviets
|
||||||
Actor304: v08
|
|
||||||
Location: 78,45
|
|
||||||
Owner: Neutral
|
|
||||||
Actor306: v04
|
|
||||||
Location: 87,50
|
|
||||||
Owner: Neutral
|
|
||||||
Actor408: dog
|
Actor408: dog
|
||||||
Location: 108,42
|
Location: 108,42
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
@@ -1527,9 +1512,9 @@ Actors:
|
|||||||
Actor457: t06
|
Actor457: t06
|
||||||
Location: 101,92
|
Location: 101,92
|
||||||
Owner: Neutral
|
Owner: Neutral
|
||||||
Actor458: dog
|
Actor115: c2
|
||||||
Location: 57,88
|
Location: 56,89
|
||||||
Owner: Soviets
|
Owner: Neutral
|
||||||
Actor459: e1
|
Actor459: e1
|
||||||
Location: 79,102
|
Location: 79,102
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
@@ -1615,6 +1600,60 @@ Actors:
|
|||||||
Actor487: fenc
|
Actor487: fenc
|
||||||
Location: 84,74
|
Location: 84,74
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
|
Actor313: c3
|
||||||
|
Location: 65,86
|
||||||
|
Owner: Neutral
|
||||||
|
Actor314: c4
|
||||||
|
Location: 72,91
|
||||||
|
Owner: Neutral
|
||||||
|
Actor315: c4
|
||||||
|
Location: 58,92
|
||||||
|
Owner: Neutral
|
||||||
|
Actor458: c8
|
||||||
|
Location: 68,94
|
||||||
|
Owner: Neutral
|
||||||
|
Actor476: c9
|
||||||
|
Location: 59,98
|
||||||
|
Owner: Neutral
|
||||||
|
Actor477: c10
|
||||||
|
Location: 57,82
|
||||||
|
Owner: Neutral
|
||||||
|
Actor478: c7
|
||||||
|
Location: 69,89
|
||||||
|
Owner: Neutral
|
||||||
|
Actor479: c6
|
||||||
|
Location: 73,89
|
||||||
|
Owner: Neutral
|
||||||
|
Actor150: silo
|
||||||
|
Location: 109,31
|
||||||
|
Owner: Soviets
|
||||||
|
Actor489: silo
|
||||||
|
Location: 110,30
|
||||||
|
Owner: Soviets
|
||||||
|
Actor490: silo
|
||||||
|
Location: 108,30
|
||||||
|
Owner: Soviets
|
||||||
|
Actor306: e2
|
||||||
|
Location: 43,56
|
||||||
|
Owner: Soviets
|
||||||
|
Actor365: e3
|
||||||
|
Location: 40,54
|
||||||
|
Owner: Soviets
|
||||||
|
Actor388: e1
|
||||||
|
Location: 38,50
|
||||||
|
Owner: Soviets
|
||||||
|
Actor389: e1
|
||||||
|
Location: 48,58
|
||||||
|
Owner: Soviets
|
||||||
|
Actor390: e2
|
||||||
|
Location: 42,43
|
||||||
|
Owner: Soviets
|
||||||
|
Actor491: e1
|
||||||
|
Location: 42,41
|
||||||
|
Owner: Soviets
|
||||||
|
Actor492: e1
|
||||||
|
Location: 35,35
|
||||||
|
Owner: Soviets
|
||||||
|
|
||||||
Smudges:
|
Smudges:
|
||||||
|
|
||||||
@@ -1737,7 +1776,7 @@ Rules:
|
|||||||
Speed: 9
|
Speed: 9
|
||||||
AttackMove:
|
AttackMove:
|
||||||
JustMove: yes
|
JustMove: yes
|
||||||
HIND.AutoTarget
|
HIND.AutoTarget:
|
||||||
Inherits: ^Helicopter
|
Inherits: ^Helicopter
|
||||||
AutoTarget:
|
AutoTarget:
|
||||||
Valued:
|
Valued:
|
||||||
|
|||||||
Reference in New Issue
Block a user