diff --git a/OpenRA.sln b/OpenRA.sln index 85ac7c979c..89b306c453 100644 --- a/OpenRA.sln +++ b/OpenRA.sln @@ -63,6 +63,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tiberian Dawn Lua scripts", mods\cnc\maps\nod01\nod01.lua = mods\cnc\maps\nod01\nod01.lua mods\cnc\maps\nod03a\nod03a.lua = mods\cnc\maps\nod03a\nod03a.lua mods\cnc\maps\nod03b\nod03b.lua = mods\cnc\maps\nod03b\nod03b.lua + mods\cnc\maps\gdi03\gdi03.lua = mods\cnc\maps\gdi03\gdi03.lua EndProjectSection EndProject Global diff --git a/mods/cnc/maps/gdi03/gdi03.lua b/mods/cnc/maps/gdi03/gdi03.lua new file mode 100644 index 0000000000..65ade8ee51 --- /dev/null +++ b/mods/cnc/maps/gdi03/gdi03.lua @@ -0,0 +1,28 @@ +MissionAccomplished = function() + Mission.MissionOver({ player }, nil, false) + Media.PlayMovieFullscreen("bombaway.vqa") +end + +MissionFailed = function() + Mission.MissionOver(nil, { player }, false) + Media.PlayMovieFullscreen("gameover.vqa") +end + +WorldLoaded = function() + player = OpenRA.GetPlayer("GDI") + enemy = OpenRA.GetPlayer("Nod") + + Media.PlayMovieFullscreen("gdi3.vqa", function() Media.PlayMovieFullscreen("samdie.vqa") end) + + samSites = Team.New({ Sam1, Sam2, Sam3, Sam4 }) + Team.AddEventHandler(samSites.OnAllKilled, function() Actor.Create("PowerProxy.AirSupport", { Owner = player }) end) +end + +Tick = function() + if Mission.RequiredUnitsAreDestroyed(player) then + MissionFailed() + end + if Mission.RequiredUnitsAreDestroyed(enemy) then + MissionAccomplished() + end +end \ No newline at end of file diff --git a/mods/cnc/maps/gdi03/map.bin b/mods/cnc/maps/gdi03/map.bin new file mode 100644 index 0000000000..626001a409 Binary files /dev/null and b/mods/cnc/maps/gdi03/map.bin differ diff --git a/mods/cnc/maps/gdi03/map.yaml b/mods/cnc/maps/gdi03/map.yaml new file mode 100644 index 0000000000..9d451c113d --- /dev/null +++ b/mods/cnc/maps/gdi03/map.yaml @@ -0,0 +1,988 @@ +Selectable: True + +MapFormat: 6 + +RequiresMod: cnc + +Title: Destroy The SAM Sites + +Description: Build up forces to destroy Nod base. Once all Nod SAM sites are neutralized then air support will be provided to combat obstacles such as turrets. Destroy all units and structures to complete the mission objective. + +Author: Westwood Studios + +Tileset: TEMPERAT + +MapSize: 64,64 + +Bounds: 1,25,45,37 + +UseAsShellmap: False + +Type: Campaign + +Options: + Crates: False + Fog: False + Shroud: True + AllyBuildRadius: False + FragileAlliances: False + StartingCash: 5000 + ConfigurableStartingUnits: False + +Players: + PlayerReference@Nod: + Name: Nod + Race: nod + ColorRamp: 3,255,127 + Allies: Nod + Enemies: GDI + PlayerReference@Neutral: + Name: Neutral + OwnsWorld: True + NonCombatant: True + Race: gdi + Enemies: Nod + PlayerReference@GDI: + Name: GDI + Playable: True + AllowBots: False + Required: True + LockRace: True + Race: gdi + LockColor: True + ColorRamp: 31,222,183 + LockSpawn: True + LockTeam: True + Allies: GDI + Enemies: Nod + +Actors: + Actor0: wood + Location: 45,59 + Owner: Neutral + Actor1: wood + Location: 44,59 + Owner: Neutral + Actor2: wood + Location: 43,59 + Owner: Neutral + Actor3: wood + Location: 42,59 + Owner: Neutral + Actor4: wood + Location: 45,58 + Owner: Neutral + Actor5: v14 + Location: 44,58 + Owner: Neutral + Actor6: v15 + Location: 43,58 + Owner: Neutral + Actor7: wood + Location: 42,58 + Owner: Neutral + Actor8: wood + Location: 45,57 + Owner: Neutral + Actor9: v17 + Location: 44,57 + Owner: Neutral + Actor10: v17 + Location: 43,57 + Owner: Neutral + Actor11: wood + Location: 42,57 + Owner: Neutral + Actor12: sbag + Location: 35,33 + Owner: Neutral + Actor13: sbag + Location: 34,33 + Owner: Neutral + Actor14: sbag + Location: 33,33 + Owner: Neutral + Actor15: sbag + Location: 32,33 + Owner: Neutral + Actor16: sbag + Location: 31,33 + Owner: Neutral + Actor17: sbag + Location: 30,33 + Owner: Neutral + Actor18: sbag + Location: 29,33 + Owner: Neutral + Actor19: sbag + Location: 28,33 + Owner: Neutral + Actor20: sbag + Location: 23,33 + Owner: Neutral + Actor21: sbag + Location: 22,33 + Owner: Neutral + Actor22: sbag + Location: 21,33 + Owner: Neutral + Actor23: sbag + Location: 20,33 + Owner: Neutral + Actor24: sbag + Location: 35,32 + Owner: Neutral + Actor25: sbag + Location: 29,32 + Owner: Neutral + Actor26: sbag + Location: 28,32 + Owner: Neutral + Actor27: sbag + Location: 23,32 + Owner: Neutral + Actor28: sbag + Location: 22,32 + Owner: Neutral + Actor29: sbag + Location: 20,32 + Owner: Neutral + Actor30: sbag + Location: 35,31 + Owner: Neutral + Actor31: sbag + Location: 20,31 + Owner: Neutral + Actor32: sbag + Location: 35,30 + Owner: Neutral + Actor33: sbag + Location: 20,30 + Owner: Neutral + Actor34: sbag + Location: 35,29 + Owner: Neutral + Actor35: sbag + Location: 20,29 + Owner: Neutral + Actor36: sbag + Location: 35,28 + Owner: Neutral + Actor37: sbag + Location: 20,28 + Owner: Neutral + Actor38: sbag + Location: 35,27 + Owner: Neutral + Actor39: sbag + Location: 20,27 + Owner: Neutral + Actor40: sbag + Location: 35,26 + Owner: Neutral + Actor41: sbag + Location: 20,26 + Owner: Neutral + Actor42: sbag + Location: 35,25 + Owner: Neutral + Actor43: sbag + Location: 34,25 + Owner: Neutral + Actor44: sbag + Location: 33,25 + Owner: Neutral + Actor45: sbag + Location: 32,25 + Owner: Neutral + Actor46: sbag + Location: 31,25 + Owner: Neutral + Actor47: sbag + Location: 30,25 + Owner: Neutral + Actor48: sbag + Location: 29,25 + Owner: Neutral + Actor49: sbag + Location: 28,25 + Owner: Neutral + Actor50: sbag + Location: 27,25 + Owner: Neutral + Actor51: sbag + Location: 26,25 + Owner: Neutral + Actor52: sbag + Location: 25,25 + Owner: Neutral + Actor53: sbag + Location: 24,25 + Owner: Neutral + Actor54: sbag + Location: 23,25 + Owner: Neutral + Actor55: sbag + Location: 22,25 + Owner: Neutral + Actor56: sbag + Location: 21,25 + Owner: Neutral + Actor57: sbag + Location: 20,25 + Owner: Neutral + Actor58: t01 + Location: 21,51 + Owner: Neutral + Actor59: tc04 + Location: 11,34 + Owner: Neutral + Actor60: t01 + Location: 43,59 + Owner: Neutral + Actor61: t01 + Location: 41,58 + Owner: Neutral + Actor62: t05 + Location: 12,38 + Owner: Neutral + Actor63: tc01 + Location: 22,44 + Owner: Neutral + Actor64: t02 + Location: 3,34 + Owner: Neutral + Actor65: tc02 + Location: 24,57 + Owner: Neutral + Actor66: tc02 + Location: 3,35 + Owner: Neutral + Actor67: tc02 + Location: 2,48 + Owner: Neutral + Actor68: t03 + Location: 41,57 + Owner: Neutral + Actor69: t03 + Location: 45,55 + Owner: Neutral + Actor70: t06 + Location: 45,53 + Owner: Neutral + Actor71: t16 + Location: 40,60 + Owner: Neutral + Actor72: tc01 + Location: 44,52 + Owner: Neutral + Actor73: tc04 + Location: 39,53 + Owner: Neutral + Actor74: t01 + Location: 36,38 + Owner: Neutral + Actor75: t06 + Location: 36,43 + Owner: Neutral + Actor76: t06 + Location: 35,42 + Owner: Neutral + Actor77: t05 + Location: 24,56 + Owner: Neutral + Actor78: tc02 + Location: 30,51 + Owner: Neutral + Actor79: t01 + Location: 30,53 + Owner: Neutral + Actor80: tc05 + Location: 34,56 + Owner: Neutral + Actor81: tc04 + Location: 24,49 + Owner: Neutral + Actor82: t07 + Location: 4,36 + Owner: Neutral + Actor83: t06 + Location: 2,37 + Owner: Neutral + Actor84: t08 + Location: 3,38 + Owner: Neutral + Actor85: t11 + Location: 2,36 + Owner: Neutral + Actor86: tc05 + Location: 17,31 + Owner: Neutral + Actor87: t12 + Location: 19,26 + Owner: Neutral + Actor88: t12 + Location: 33,44 + Owner: Neutral + Actor89: t08 + Location: 36,42 + Owner: Neutral + Actor90: tc01 + Location: 39,43 + Owner: Neutral + Actor91: tc02 + Location: 22,51 + Owner: Neutral + Actor92: tc04 + Location: 20,50 + Owner: Neutral + Actor93: tc01 + Location: 43,33 + Owner: Neutral + Actor94: t17 + Location: 14,33 + Owner: Neutral + Actor95: t12 + Location: 36,30 + Owner: Neutral + Actor96: tc04 + Location: 38,25 + Owner: Neutral + Actor97: tc01 + Location: 36,28 + Owner: Neutral + Actor98: t16 + Location: 38,28 + Owner: Neutral + Actor99: tc01 + Location: 34,45 + Owner: Neutral + Actor100: tc04 + Location: 20,42 + Owner: Neutral + Actor101: t16 + Location: 19,43 + Owner: Neutral + Actor102: tc04 + Location: 16,26 + Owner: Neutral + Actor103: tc01 + Location: 4,31 + Owner: Neutral + Actor104: t17 + Location: 6,31 + Owner: Neutral + Actor105: t01 + Location: 20,38 + Owner: Neutral + Actor106: t02 + Location: 23,40 + Owner: Neutral + Actor107: t02 + Location: 31,42 + Owner: Neutral + Actor108: t07 + Location: 32,39 + Owner: Neutral + Actor109: t07 + Location: 21,33 + Owner: Neutral + Actor110: nuke + Location: 29,26 + Owner: Nod + Health: 1 + Facing: 0 + Actor111: hand + Location: 24,26 + Owner: Nod + Health: 1 + Facing: 0 + Actor112: silo + Location: 33,26 + Owner: Nod + Health: 1 + Facing: 0 + Actor113: silo + Location: 31,26 + Owner: Nod + Health: 1 + Facing: 0 + Actor114: proc + Location: 31,28 + Owner: Nod + Health: 1 + Facing: 0 + Actor115: nuke + Location: 22,26 + Owner: Nod + Health: 1 + Facing: 0 + Actor116: fact + Location: 26,26 + Owner: Nod + Health: 1 + Facing: 0 + Actor117: gun + Location: 20,34 + Owner: Nod + Health: 1 + Facing: 160 + Actor118: v07 + Location: 40,55 + Owner: Neutral + Health: 1 + Facing: 0 + Actor119: v11 + Location: 44,60 + Owner: Neutral + Health: 1 + Facing: 0 + Actor120: v08 + Location: 40,56 + Owner: Neutral + Health: 1 + Facing: 0 + Actor121: v01 + Location: 44,54 + Owner: Neutral + Health: 1 + Facing: 0 + Sam1: sam + Location: 28,52 + Owner: Nod + Health: 1 + Facing: 0 + Sam2: sam + Location: 22,46 + Owner: Nod + Health: 1 + Facing: 0 + Sam3: sam + Location: 35,47 + Owner: Nod + Health: 1 + Facing: 0 + Actor125: gun + Location: 36,30 + Owner: Nod + Health: 1 + Facing: 96 + Sam4: sam + Location: 12,34 + Owner: Nod + Health: 1 + Facing: 0 + Actor127: gun + Location: 29,34 + Owner: Nod + Health: 1 + Facing: 96 + Actor129: bggy + Location: 22,29 + Owner: Nod + Health: 1 + Facing: 128 + Actor130: mcv + Location: 9,60 + Owner: GDI + Health: 1 + Facing: 0 + Actor131: jeep + Location: 8,58 + Owner: GDI + Health: 1 + Facing: 0 + Actor132: jeep + Location: 10,58 + Owner: GDI + Health: 1 + Facing: 0 + Actor133: jeep + Location: 9,58 + Owner: GDI + Health: 1 + Facing: 0 + Actor134: bggy + Location: 21,29 + Owner: Nod + Health: 1 + Facing: 128 + Actor135: bggy + Location: 28,50 + Owner: Nod + Health: 1 + Facing: 160 + Actor136: bggy + Location: 6,25 + Owner: Nod + Health: 1 + Facing: 0 + Actor137: bggy + Location: 21,30 + Owner: Nod + Health: 1 + Facing: 128 + Actor138: bggy + Location: 22,30 + Owner: Nod + Health: 1 + Facing: 128 + Actor139: e3 + Location: 17,28 + Owner: Nod + Health: 1 + Facing: 96 + SubCell: 0 + Actor140: e1 + Location: 19,29 + Owner: Nod + Health: 1 + Facing: 160 + SubCell: 4 + Actor141: e1 + Location: 18,28 + Owner: Nod + Health: 1 + Facing: 160 + SubCell: 4 + Actor142: e1 + Location: 19,28 + Owner: Nod + Health: 1 + Facing: 96 + SubCell: 0 + Actor143: e1 + Location: 31,32 + Owner: Nod + Health: 1 + Facing: 160 + SubCell: 0 + Actor144: e1 + Location: 34,32 + Owner: Nod + Health: 1 + Facing: 96 + SubCell: 4 + Actor145: e3 + Location: 34,31 + Owner: Nod + Health: 1 + Facing: 96 + SubCell: 4 + Actor146: e3 + Location: 34,32 + Owner: Nod + Health: 1 + Facing: 96 + SubCell: 1 + Actor147: e3 + Location: 18,29 + Owner: Nod + Health: 1 + Facing: 160 + SubCell: 3 + Actor148: e3 + Location: 30,51 + Owner: Nod + Health: 1 + Facing: 160 + SubCell: 0 + Actor149: e1 + Location: 20,42 + Owner: Nod + Health: 1 + Facing: 160 + SubCell: 0 + Actor150: e1 + Location: 23,44 + Owner: Nod + Health: 1 + Facing: 224 + SubCell: 4 + Actor151: e1 + Location: 24,33 + Owner: Nod + Health: 1 + Facing: 192 + SubCell: 0 + Actor152: e1 + Location: 22,34 + Owner: Nod + Health: 1 + Facing: 96 + SubCell: 4 + Actor153: e1 + Location: 27,33 + Owner: Nod + Health: 1 + Facing: 96 + SubCell: 2 + Actor154: e1 + Location: 30,34 + Owner: Nod + Health: 1 + Facing: 160 + SubCell: 1 + Actor155: e1 + Location: 14,33 + Owner: Nod + Health: 1 + Facing: 96 + SubCell: 4 + Actor156: e1 + Location: 34,45 + Owner: Nod + Health: 1 + Facing: 64 + SubCell: 1 + Actor157: e1 + Location: 36,45 + Owner: Nod + Health: 1 + Facing: 160 + SubCell: 1 + Actor158: e3 + Location: 30,32 + Owner: Nod + Health: 1 + Facing: 160 + SubCell: 3 + Actor159: e3 + Location: 21,32 + Owner: Nod + Health: 1 + Facing: 96 + SubCell: 3 + Actor160: e3 + Location: 14,32 + Owner: Nod + Health: 1 + Facing: 96 + SubCell: 3 + Actor161: e1 + Location: 11,31 + Owner: Nod + Health: 1 + Facing: 96 + SubCell: 4 + Actor162: e1 + Location: 10,31 + Owner: Nod + Health: 1 + Facing: 96 + SubCell: 2 + Actor163: c6 + Location: 42,56 + Owner: Neutral + Health: 1 + Facing: 0 + SubCell: 1 + Actor164: c3 + Location: 43,56 + Owner: Neutral + Health: 1 + Facing: 0 + SubCell: 1 + Actor165: c2 + Location: 40,58 + Owner: Neutral + Health: 1 + Facing: 0 + SubCell: 1 + Actor166: e3 + Location: 40,43 + Owner: Nod + Health: 1 + Facing: 0 + SubCell: 3 + Actor167: e3 + Location: 19,45 + Owner: Nod + Health: 1 + Facing: 160 + SubCell: 2 + Actor168: e3 + Location: 43,33 + Owner: Nod + Health: 1 + Facing: 96 + SubCell: 4 + Actor169: e1 + Location: 11,58 + Owner: GDI + Health: 1 + Facing: 0 + SubCell: 2 + Actor170: e1 + Location: 11,58 + Owner: GDI + Health: 1 + Facing: 0 + SubCell: 1 + Actor171: e1 + Location: 11,57 + Owner: GDI + Health: 1 + Facing: 0 + SubCell: 4 + Actor172: e1 + Location: 11,57 + Owner: GDI + Health: 1 + Facing: 0 + SubCell: 3 + Actor173: e2 + Location: 7,58 + Owner: GDI + Health: 1 + Facing: 0 + SubCell: 1 + Actor174: e2 + Location: 7,57 + Owner: GDI + Health: 1 + Facing: 0 + SubCell: 3 + Actor175: e2 + Location: 7,57 + Owner: GDI + Health: 1 + Facing: 0 + SubCell: 4 + Actor176: e2 + Location: 7,58 + Owner: GDI + Health: 1 + Facing: 0 + SubCell: 2 + Actor177: e3 + Location: 14,32 + Owner: Nod + Health: 1 + Facing: 96 + SubCell: 1 + Actor178: e1 + Location: 9,31 + Owner: Nod + Health: 1 + Facing: 96 + SubCell: 1 + Actor179: e3 + Location: 13,36 + Owner: Nod + Health: 1 + Facing: 96 + SubCell: 2 + Actor180: e3 + Location: 11,34 + Owner: Nod + Health: 1 + Facing: 64 + SubCell: 4 + Actor181: e3 + Location: 20,45 + Owner: Nod + Health: 1 + Facing: 160 + SubCell: 3 + Actor182: e1 + Location: 25,51 + Owner: Nod + Health: 1 + Facing: 160 + SubCell: 0 + Actor183: e1 + Location: 24,52 + Owner: Nod + Health: 1 + Facing: 160 + SubCell: 0 + Actor184: e3 + Location: 33,46 + Owner: Nod + Health: 1 + Facing: 160 + SubCell: 0 + Actor185: e3 + Location: 37,47 + Owner: Nod + Health: 1 + Facing: 160 + SubCell: 3 + Actor186: e3 + Location: 37,28 + Owner: Nod + Health: 1 + Facing: 0 + SubCell: 3 + Actor187: e3 + Location: 38,28 + Owner: Nod + Health: 1 + Facing: 0 + SubCell: 0 + Actor188: e3 + Location: 14,32 + Owner: Nod + Health: 1 + Facing: 0 + SubCell: 4 + Actor189: e1 + Location: 10,31 + Owner: Nod + Health: 1 + Facing: 0 + SubCell: 3 + Actor190: e1 + Location: 10,31 + Owner: Nod + Health: 1 + Facing: 0 + SubCell: 4 + Actor191: e3 + Location: 24,46 + Owner: Nod + Health: 1 + Facing: 128 + SubCell: 1 + waypoint26: waypoint + Location: 2,54 + Owner: Neutral + waypoint12: waypoint + Location: 11,37 + Owner: Neutral + waypoint11: waypoint + Location: 32,41 + Owner: Neutral + waypoint10: waypoint + Location: 29,50 + Owner: Neutral + waypoint9: waypoint + Location: 6,52 + Owner: Neutral + waypoint8: waypoint + Location: 14,35 + Owner: Neutral + waypoint7: waypoint + Location: 36,35 + Owner: Neutral + waypoint6: waypoint + Location: 36,32 + Owner: Neutral + waypoint5: waypoint + Location: 17,41 + Owner: Neutral + waypoint4: waypoint + Location: 24,54 + Owner: Neutral + waypoint3: waypoint + Location: 42,51 + Owner: Neutral + waypoint2: waypoint + Location: 43,37 + Owner: Neutral + waypoint1: waypoint + Location: 34,37 + Owner: Neutral + waypoint0: waypoint + Location: 26,37 + Owner: Neutral + +Smudges: + +Rules: + World: + -SpawnMPUnits: + -MPStartLocations: + -CrateSpawner: + LuaScriptInterface: + LuaScripts: gdi03.lua + Player: + -ConquestVictoryConditions: + ^Infantry: + MustBeDestroyed: + WEAP: + -Buildable: + NUK2: + -Buildable: + FIX: + -Buildable: + HPAD: + -Buildable: + EYE: + -Buildable: + GUN: + -Buildable: + GTWR: + -Buildable: + ATWR: + -Buildable: + E3: + -Buildable: + E4: + -Buildable: + E5: + -Buildable: + RMBO: + -Buildable: + AFLD: + -Buildable: + TMPL: + -Buildable: + OBLI: + -Buildable: + SAM: + -Buildable: + HQ: + -Buildable: + NOHQ: + RequiresPower: + CanPowerDown: + Inherits: ^Building + Valued: + Cost: 1000 + Tooltip: + Name: Communications Center + Description: Provides an overview of the battlefield.\n Requires power to operate. + ProvidesCustomPrerequisite: + Prerequisite: anyhq + Buildable: + BuildPaletteOrder: 70 + Prerequisites: proc + Owner: gdi,nod + Building: + Power: -40 + Footprint: x_ xx + Dimensions: 2,2 + Health: + HP: 750 + RevealsShroud: + Range: 10 + Bib: + ProvidesRadar: + RenderBuilding: + Image: hq + PowerProxy.AirSupport: + AirstrikePower: + Icon: airstrike + ChargeTime: 30 + SquadSize: 3 + QuantizedFacings: 8 + Description: Air Strike + LongDesc: Deploy an aerial napalm strike.\nBurns buildings and infantry along a line. + EndChargeSound: airredy1.aud + SelectTargetSound: select1.aud + IncomingSound: enemya.aud + UnitType: a10 + +Sequences: + +VoxelSequences: + +Weapons: + +Voices: + +Notifications: + +Translations: