Replace pre-placed Nod units with reinforcements
This commit is contained in:
@@ -351,11 +351,6 @@ Actors:
|
|||||||
Owner: Neutral
|
Owner: Neutral
|
||||||
Health: 1
|
Health: 1
|
||||||
Facing: 0
|
Facing: 0
|
||||||
Actor80: bike
|
|
||||||
Location: 52,38
|
|
||||||
Owner: Nod
|
|
||||||
Health: 1
|
|
||||||
Facing: 128
|
|
||||||
Actor82: jeep
|
Actor82: jeep
|
||||||
Location: 21,22
|
Location: 21,22
|
||||||
Owner: GDI
|
Owner: GDI
|
||||||
@@ -371,31 +366,11 @@ Actors:
|
|||||||
Owner: GDI
|
Owner: GDI
|
||||||
Health: 1
|
Health: 1
|
||||||
Facing: 128
|
Facing: 128
|
||||||
Actor86: mcv
|
|
||||||
Location: 50,36
|
|
||||||
Owner: Nod
|
|
||||||
Health: 1
|
|
||||||
Facing: 128
|
|
||||||
Actor87: bike
|
|
||||||
Location: 51,38
|
|
||||||
Owner: Nod
|
|
||||||
Health: 1
|
|
||||||
Facing: 128
|
|
||||||
Actor89: jeep
|
Actor89: jeep
|
||||||
Location: 29,34
|
Location: 29,34
|
||||||
Owner: GDI
|
Owner: GDI
|
||||||
Health: 1
|
Health: 1
|
||||||
Facing: 96
|
Facing: 96
|
||||||
Actor90: bggy
|
|
||||||
Location: 48,38
|
|
||||||
Owner: Nod
|
|
||||||
Health: 1
|
|
||||||
Facing: 128
|
|
||||||
Actor92: bggy
|
|
||||||
Location: 49,38
|
|
||||||
Owner: Nod
|
|
||||||
Health: 1
|
|
||||||
Facing: 128
|
|
||||||
TibFieldHumvee01: jeep
|
TibFieldHumvee01: jeep
|
||||||
Location: 52,19
|
Location: 52,19
|
||||||
Owner: GDI
|
Owner: GDI
|
||||||
@@ -489,12 +464,6 @@ Actors:
|
|||||||
Health: 1
|
Health: 1
|
||||||
Facing: 160
|
Facing: 160
|
||||||
SubCell: 2
|
SubCell: 2
|
||||||
Actor110: e1
|
|
||||||
Location: 48,39
|
|
||||||
Owner: Nod
|
|
||||||
Health: 1
|
|
||||||
Facing: 128
|
|
||||||
SubCell: 4
|
|
||||||
Actor111: e1
|
Actor111: e1
|
||||||
Location: 39,31
|
Location: 39,31
|
||||||
Owner: GDI
|
Owner: GDI
|
||||||
@@ -507,12 +476,6 @@ Actors:
|
|||||||
Health: 1
|
Health: 1
|
||||||
Facing: 96
|
Facing: 96
|
||||||
SubCell: 0
|
SubCell: 0
|
||||||
Actor113: e1
|
|
||||||
Location: 49,39
|
|
||||||
Owner: Nod
|
|
||||||
Health: 1
|
|
||||||
Facing: 128
|
|
||||||
SubCell: 3
|
|
||||||
Actor116: e2
|
Actor116: e2
|
||||||
Location: 34,22
|
Location: 34,22
|
||||||
Owner: GDI
|
Owner: GDI
|
||||||
@@ -537,24 +500,18 @@ Actors:
|
|||||||
Health: 1
|
Health: 1
|
||||||
Facing: 128
|
Facing: 128
|
||||||
SubCell: 0
|
SubCell: 0
|
||||||
Actor122: e3
|
|
||||||
Location: 51,39
|
|
||||||
Owner: Nod
|
|
||||||
Health: 1
|
|
||||||
Facing: 128
|
|
||||||
SubCell: 4
|
|
||||||
Actor123: e3
|
|
||||||
Location: 52,39
|
|
||||||
Owner: Nod
|
|
||||||
Health: 1
|
|
||||||
Facing: 128
|
|
||||||
SubCell: 1
|
|
||||||
AttackWaveSpawnA: waypoint
|
AttackWaveSpawnA: waypoint
|
||||||
Location: 45,16
|
Location: 45,16
|
||||||
Owner: Neutral
|
Owner: Neutral
|
||||||
|
NodEntry: waypoint
|
||||||
|
Location: 54,40
|
||||||
|
Owner: Neutral
|
||||||
PlayerBase: waypoint
|
PlayerBase: waypoint
|
||||||
Location: 50,38
|
Location: 50,38
|
||||||
Owner: Neutral
|
Owner: Neutral
|
||||||
|
NodRallyPoint: waypoint
|
||||||
|
Location: 45,42
|
||||||
|
Owner: Neutral
|
||||||
AttackWaveSpawnC: waypoint
|
AttackWaveSpawnC: waypoint
|
||||||
Location: 33,16
|
Location: 33,16
|
||||||
Owner: Neutral
|
Owner: Neutral
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
NodUnits = { "bike", "e3", "e1", "bggy", "e1", "e3", "bike", "bggy" }
|
||||||
FirstAttackWave = { "e1", "e1", "e1", "e2", }
|
FirstAttackWave = { "e1", "e1", "e1", "e2", }
|
||||||
SecondThirdAttackWave = { "e1", "e1", "e2", }
|
SecondThirdAttackWave = { "e1", "e1", "e2", }
|
||||||
|
|
||||||
@@ -7,6 +8,13 @@ SendAttackWave = function(units, spawnPoint)
|
|||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
InsertNodUnits = function()
|
||||||
|
Reinforcements.Reinforce(player, NodUnits, { NodEntry.Location, NodRallyPoint.Location })
|
||||||
|
Trigger.AfterDelay(Utils.Seconds(9), function()
|
||||||
|
Reinforcements.Reinforce(player, { "mcv" }, { NodEntry.Location, PlayerBase.Location })
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
WorldLoaded = function()
|
WorldLoaded = function()
|
||||||
player = Player.GetPlayer("Nod")
|
player = Player.GetPlayer("Nod")
|
||||||
enemy = Player.GetPlayer("GDI")
|
enemy = Player.GetPlayer("GDI")
|
||||||
@@ -15,6 +23,7 @@ WorldLoaded = function()
|
|||||||
nodObjective1 = player.AddPrimaryObjective("Capture the prison")
|
nodObjective1 = player.AddPrimaryObjective("Capture the prison")
|
||||||
nodObjective2 = player.AddSecondaryObjective("Destroy all GDI forces")
|
nodObjective2 = player.AddSecondaryObjective("Destroy all GDI forces")
|
||||||
|
|
||||||
|
InsertNodUnits()
|
||||||
Trigger.AfterDelay(Utils.Seconds(20), function() SendAttackWave(FirstAttackWave, AttackWaveSpawnA.Location) end)
|
Trigger.AfterDelay(Utils.Seconds(20), function() SendAttackWave(FirstAttackWave, AttackWaveSpawnA.Location) end)
|
||||||
Trigger.AfterDelay(Utils.Seconds(50), function() SendAttackWave(SecondThirdAttackWave, AttackWaveSpawnB.Location) end)
|
Trigger.AfterDelay(Utils.Seconds(50), function() SendAttackWave(SecondThirdAttackWave, AttackWaveSpawnB.Location) end)
|
||||||
Trigger.AfterDelay(Utils.Seconds(100), function() SendAttackWave(SecondThirdAttackWave, AttackWaveSpawnC.Location) end)
|
Trigger.AfterDelay(Utils.Seconds(100), function() SendAttackWave(SecondThirdAttackWave, AttackWaveSpawnC.Location) end)
|
||||||
|
|||||||
@@ -457,16 +457,12 @@ Actors:
|
|||||||
Owner: Neutral
|
Owner: Neutral
|
||||||
Health: 1
|
Health: 1
|
||||||
Facing: 0
|
Facing: 0
|
||||||
Actor69: mcv
|
McvEntry: waypoint
|
||||||
Location: 52,37
|
Location: 54,38
|
||||||
Owner: Nod
|
Owner: Neutral
|
||||||
Health: 1
|
McvDeploy: waypoint
|
||||||
Facing: 128
|
Location: 52,36
|
||||||
Actor70: bike
|
Owner: Neutral
|
||||||
Location: 48,39
|
|
||||||
Owner: Nod
|
|
||||||
Health: 1
|
|
||||||
Facing: 128
|
|
||||||
Actor72: jeep
|
Actor72: jeep
|
||||||
Location: 28,21
|
Location: 28,21
|
||||||
Owner: GDI
|
Owner: GDI
|
||||||
@@ -487,56 +483,17 @@ Actors:
|
|||||||
Owner: GDI
|
Owner: GDI
|
||||||
Health: 1
|
Health: 1
|
||||||
Facing: 128
|
Facing: 128
|
||||||
Actor76: bggy
|
NodEntry: waypoint
|
||||||
Location: 49,38
|
Location: 54,40
|
||||||
Owner: Nod
|
Owner: Neutral
|
||||||
Health: 1
|
NodRallypoint: waypoint
|
||||||
Facing: 128
|
Location: 50,42
|
||||||
|
Owner: Neutral
|
||||||
Actor77: jeep
|
Actor77: jeep
|
||||||
Location: 47,21
|
Location: 47,21
|
||||||
Owner: GDI
|
Owner: GDI
|
||||||
Health: 1
|
Health: 1
|
||||||
Facing: 160
|
Facing: 160
|
||||||
Actor78: bike
|
|
||||||
Location: 49,39
|
|
||||||
Owner: Nod
|
|
||||||
Health: 1
|
|
||||||
Facing: 128
|
|
||||||
Actor79: bggy
|
|
||||||
Location: 49,37
|
|
||||||
Owner: Nod
|
|
||||||
Health: 1
|
|
||||||
Facing: 128
|
|
||||||
Actor83: e6
|
|
||||||
Location: 48,40
|
|
||||||
Owner: Nod
|
|
||||||
Health: 1
|
|
||||||
Facing: 128
|
|
||||||
SubCell: 3
|
|
||||||
Actor84: e6
|
|
||||||
Location: 48,40
|
|
||||||
Owner: Nod
|
|
||||||
Health: 1
|
|
||||||
Facing: 128
|
|
||||||
SubCell: 4
|
|
||||||
Actor85: e6
|
|
||||||
Location: 48,41
|
|
||||||
Owner: Nod
|
|
||||||
Health: 1
|
|
||||||
Facing: 128
|
|
||||||
SubCell: 0
|
|
||||||
Actor99: e1
|
|
||||||
Location: 50,41
|
|
||||||
Owner: Nod
|
|
||||||
Health: 1
|
|
||||||
Facing: 128
|
|
||||||
SubCell: 3
|
|
||||||
Actor100: e1
|
|
||||||
Location: 50,41
|
|
||||||
Owner: Nod
|
|
||||||
Health: 1
|
|
||||||
Facing: 128
|
|
||||||
SubCell: 4
|
|
||||||
Actor101: c1
|
Actor101: c1
|
||||||
Location: 16,36
|
Location: 16,36
|
||||||
Owner: Neutral
|
Owner: Neutral
|
||||||
@@ -567,30 +524,6 @@ Actors:
|
|||||||
Health: 1
|
Health: 1
|
||||||
Facing: 224
|
Facing: 224
|
||||||
SubCell: 4
|
SubCell: 4
|
||||||
Actor112: e1
|
|
||||||
Location: 50,40
|
|
||||||
Owner: Nod
|
|
||||||
Health: 1
|
|
||||||
Facing: 128
|
|
||||||
SubCell: 3
|
|
||||||
Actor114: e1
|
|
||||||
Location: 50,40
|
|
||||||
Owner: Nod
|
|
||||||
Health: 1
|
|
||||||
Facing: 128
|
|
||||||
SubCell: 4
|
|
||||||
Actor115: e1
|
|
||||||
Location: 49,40
|
|
||||||
Owner: Nod
|
|
||||||
Health: 1
|
|
||||||
Facing: 128
|
|
||||||
SubCell: 4
|
|
||||||
Actor116: e1
|
|
||||||
Location: 49,41
|
|
||||||
Owner: Nod
|
|
||||||
Health: 1
|
|
||||||
Facing: 128
|
|
||||||
SubCell: 4
|
|
||||||
PlayerBase: waypoint
|
PlayerBase: waypoint
|
||||||
Location: 50,39
|
Location: 50,39
|
||||||
Owner: Neutral
|
Owner: Neutral
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
NodUnits = { "e1", "e1", "bggy", "bike", "e1", "e1", "bike", "bggy", "e1", "e1" }
|
||||||
|
Engineers = { "e6", "e6", "e6" }
|
||||||
FirstAttackWaveUnits = { "e1", "e1", "e2" }
|
FirstAttackWaveUnits = { "e1", "e1", "e2" }
|
||||||
SecondAttackWaveUnits = { "e1", "e1", "e1" }
|
SecondAttackWaveUnits = { "e1", "e1", "e1" }
|
||||||
ThirdAttackWaveUnits = { "e1", "e1", "e1", "e2" }
|
ThirdAttackWaveUnits = { "e1", "e1", "e1", "e2" }
|
||||||
@@ -21,6 +23,14 @@ SecondAttackWave = function(soldier)
|
|||||||
soldier.AttackMove(PlayerBase.Location)
|
soldier.AttackMove(PlayerBase.Location)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
InsertNodUnits = function()
|
||||||
|
Reinforcements.Reinforce(player, { "mcv" }, { McvEntry.Location, McvDeploy.Location })
|
||||||
|
Reinforcements.Reinforce(player, NodUnits, { NodEntry.Location, NodRallypoint.Location })
|
||||||
|
Trigger.AfterDelay(Utils.Seconds(15), function()
|
||||||
|
Reinforcements.Reinforce(player, Engineers, { McvEntry.Location, PlayerBase.Location })
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
WorldLoaded = function()
|
WorldLoaded = function()
|
||||||
player = Player.GetPlayer("Nod")
|
player = Player.GetPlayer("Nod")
|
||||||
enemy = Player.GetPlayer("GDI")
|
enemy = Player.GetPlayer("GDI")
|
||||||
@@ -29,6 +39,7 @@ WorldLoaded = function()
|
|||||||
nodObjective1 = player.AddPrimaryObjective("Capture the prison")
|
nodObjective1 = player.AddPrimaryObjective("Capture the prison")
|
||||||
nodObjective2 = player.AddSecondaryObjective("Destroy all GDI forces")
|
nodObjective2 = player.AddSecondaryObjective("Destroy all GDI forces")
|
||||||
|
|
||||||
|
InsertNodUnits()
|
||||||
Trigger.OnObjectiveCompleted(player, function() Media.DisplayMessage("Objective completed") end)
|
Trigger.OnObjectiveCompleted(player, function() Media.DisplayMessage("Objective completed") end)
|
||||||
Trigger.OnObjectiveFailed(player, function() Media.DisplayMessage("Objective failed") end)
|
Trigger.OnObjectiveFailed(player, function() Media.DisplayMessage("Objective failed") end)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user