Initial commit: OpenRA game engine
Fork from OpenRA/OpenRA with one-click launch script (start-ra.cmd) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
BIN
mods/d2k/maps/ordos-02a/map.bin
Normal file
BIN
mods/d2k/maps/ordos-02a/map.bin
Normal file
Binary file not shown.
3
mods/d2k/maps/ordos-02a/map.ftl
Normal file
3
mods/d2k/maps/ordos-02a/map.ftl
Normal file
@@ -0,0 +1,3 @@
|
||||
## rules.yaml
|
||||
briefing =
|
||||
Harkonnen forces are weakened in the Imperial Basin. Use the sensors in our Outpost to find them. Strike hard and destroy everything.
|
||||
BIN
mods/d2k/maps/ordos-02a/map.png
Normal file
BIN
mods/d2k/maps/ordos-02a/map.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 140 KiB |
158
mods/d2k/maps/ordos-02a/map.yaml
Normal file
158
mods/d2k/maps/ordos-02a/map.yaml
Normal file
@@ -0,0 +1,158 @@
|
||||
MapFormat: 12
|
||||
|
||||
RequiresMod: d2k
|
||||
|
||||
Title: Ordos 02a
|
||||
|
||||
Author: Westwood Studios
|
||||
|
||||
Tileset: ARRAKIS
|
||||
|
||||
MapSize: 52,52
|
||||
|
||||
Bounds: 2,2,48,48
|
||||
|
||||
Visibility: MissionSelector
|
||||
|
||||
Categories: Campaign
|
||||
|
||||
LockPreview: True
|
||||
|
||||
Players:
|
||||
PlayerReference@Neutral:
|
||||
Name: Neutral
|
||||
OwnsWorld: True
|
||||
NonCombatant: True
|
||||
Faction: Random
|
||||
PlayerReference@Creeps:
|
||||
Name: Creeps
|
||||
NonCombatant: True
|
||||
Faction: Random
|
||||
Enemies: Ordos, Harkonnen
|
||||
PlayerReference@Ordos:
|
||||
Name: Ordos
|
||||
Playable: True
|
||||
LockFaction: True
|
||||
Faction: ordos
|
||||
LockColor: True
|
||||
Color: 5A9473
|
||||
Enemies: Harkonnen, Creeps
|
||||
PlayerReference@Harkonnen:
|
||||
Name: Harkonnen
|
||||
LockFaction: True
|
||||
Faction: harkonnen
|
||||
LockColor: True
|
||||
Color: D64A42
|
||||
Enemies: Ordos, Creeps
|
||||
Bot: campaign
|
||||
|
||||
Actors:
|
||||
Actor0: spicebloom.spawnpoint
|
||||
Location: 7,18
|
||||
Owner: Neutral
|
||||
Actor1: light_inf
|
||||
Location: 18,25
|
||||
Owner: Ordos
|
||||
Actor2: raider
|
||||
Location: 21,26
|
||||
Owner: Ordos
|
||||
Actor3: light_inf
|
||||
Location: 22,26
|
||||
Owner: Ordos
|
||||
OConyard: construction_yard
|
||||
Location: 18,27
|
||||
Owner: Ordos
|
||||
Actor5: raider
|
||||
Location: 16,28
|
||||
Owner: Ordos
|
||||
Actor6: raider
|
||||
Location: 22,28
|
||||
Owner: Ordos
|
||||
Actor7: light_inf
|
||||
Location: 17,30
|
||||
Owner: Ordos
|
||||
Actor8: light_inf
|
||||
Location: 21,30
|
||||
Owner: Ordos
|
||||
Actor9: wormspawner
|
||||
Location: 20,37
|
||||
Owner: Creeps
|
||||
Actor10: light_inf
|
||||
Location: 27,40
|
||||
Owner: Harkonnen
|
||||
Actor11: trike
|
||||
Location: 31,41
|
||||
Owner: Harkonnen
|
||||
Actor12: light_inf
|
||||
Location: 34,41
|
||||
Owner: Harkonnen
|
||||
HOutpost: outpost
|
||||
Location: 25,42
|
||||
Owner: Harkonnen
|
||||
Actor14: trike
|
||||
Location: 29,42
|
||||
Owner: Harkonnen
|
||||
Actor15: light_inf
|
||||
Location: 36,42
|
||||
Owner: Harkonnen
|
||||
HPower2: wind_trap
|
||||
Location: 30,44
|
||||
Owner: Harkonnen
|
||||
HBarracks: barracks
|
||||
Location: 34,44
|
||||
Owner: Harkonnen
|
||||
HPower1: wind_trap
|
||||
Location: 22,45
|
||||
Owner: Harkonnen
|
||||
Actor19: trike
|
||||
Location: 40,45
|
||||
Owner: Harkonnen
|
||||
HConyard: construction_yard
|
||||
Location: 26,46
|
||||
Owner: Harkonnen
|
||||
Actor21: trike
|
||||
Location: 37,46
|
||||
Owner: Harkonnen
|
||||
HarkonnenRally1: waypoint
|
||||
Owner: Neutral
|
||||
Location: 24,44
|
||||
HarkonnenEntry1: waypoint
|
||||
Owner: Neutral
|
||||
Location: 24,49
|
||||
HarkonnenRally2: waypoint
|
||||
Owner: Neutral
|
||||
Location: 39,44
|
||||
HarkonnenEntry2: waypoint
|
||||
Owner: Neutral
|
||||
Location: 39,49
|
||||
OrdosRally: waypoint
|
||||
Owner: Neutral
|
||||
Location: 16,25
|
||||
OrdosEntry: waypoint
|
||||
Owner: Neutral
|
||||
Location: 2,25
|
||||
HarkonnenRally3: waypoint
|
||||
Owner: Neutral
|
||||
Location: 27,31
|
||||
HarkonnenEntry3: waypoint
|
||||
Owner: Neutral
|
||||
Location: 27,49
|
||||
HarkonnenEntry4: waypoint
|
||||
Owner: Neutral
|
||||
Location: 49,38
|
||||
HarkonnenEntry5: waypoint
|
||||
Owner: Neutral
|
||||
Location: 2,38
|
||||
HarkonnenRally4: waypoint
|
||||
Owner: Neutral
|
||||
Location: 15,30
|
||||
HarkonnenRally5: waypoint
|
||||
Owner: Neutral
|
||||
Location: 31,24
|
||||
HarkonnenRally6: waypoint
|
||||
Owner: Neutral
|
||||
Location: 25,17
|
||||
|
||||
Rules: d2k|rules/campaign-rules.yaml, d2k|rules/campaign-tooltips.yaml, d2k|rules/campaign-palettes.yaml, rules.yaml
|
||||
|
||||
FluentMessages: d2k|fluent/lua.ftl, d2k|fluent/campaign.ftl, map.ftl
|
||||
34
mods/d2k/maps/ordos-02a/ordos02a-AI.lua
Normal file
34
mods/d2k/maps/ordos-02a/ordos02a-AI.lua
Normal file
@@ -0,0 +1,34 @@
|
||||
--[[
|
||||
Copyright (c) The OpenRA Developers and Contributors
|
||||
This file is part of OpenRA, which is free software. It is made
|
||||
available to you under the terms of the GNU General Public License
|
||||
as published by the Free Software Foundation, either version 3 of
|
||||
the License, or (at your option) any later version. For more
|
||||
information, see COPYING.
|
||||
]]
|
||||
|
||||
AttackGroupSize =
|
||||
{
|
||||
easy = 6,
|
||||
normal = 8,
|
||||
hard = 10
|
||||
}
|
||||
|
||||
AttackDelays =
|
||||
{
|
||||
easy = { DateTime.Seconds(4), DateTime.Seconds(9) },
|
||||
normal = { DateTime.Seconds(2), DateTime.Seconds(7) },
|
||||
hard = { DateTime.Seconds(1), DateTime.Seconds(5) }
|
||||
}
|
||||
|
||||
HarkonnenInfantryTypes = { "light_inf" }
|
||||
|
||||
ActivateAI = function()
|
||||
IdlingUnits[Harkonnen] = { }
|
||||
local delay = function() return Utils.RandomInteger(AttackDelays[Difficulty][1], AttackDelays[Difficulty][2] + 1) end
|
||||
local toBuild = function() return HarkonnenInfantryTypes end
|
||||
local attackThresholdSize = AttackGroupSize[Difficulty] * 2.5
|
||||
|
||||
DefendAndRepairBase(Harkonnen, HarkonnenBase, 0.75, AttackGroupSize[Difficulty])
|
||||
ProduceUnits(Harkonnen, HBarracks, delay, toBuild, AttackGroupSize[Difficulty], attackThresholdSize)
|
||||
end
|
||||
119
mods/d2k/maps/ordos-02a/ordos02a.lua
Normal file
119
mods/d2k/maps/ordos-02a/ordos02a.lua
Normal file
@@ -0,0 +1,119 @@
|
||||
--[[
|
||||
Copyright (c) The OpenRA Developers and Contributors
|
||||
This file is part of OpenRA, which is free software. It is made
|
||||
available to you under the terms of the GNU General Public License
|
||||
as published by the Free Software Foundation, either version 3 of
|
||||
the License, or (at your option) any later version. For more
|
||||
information, see COPYING.
|
||||
]]
|
||||
|
||||
HarkonnenBase = { HConyard, HPower1, HPower2, HBarracks, HOutpost }
|
||||
HarkonnenBaseAreaTrigger = { CPos.New(31, 37), CPos.New(32, 37), CPos.New(33, 37), CPos.New(34, 37), CPos.New(35, 37), CPos.New(36, 37), CPos.New(37, 37), CPos.New(38, 37), CPos.New(39, 37), CPos.New(40, 37), CPos.New(41, 37), CPos.New(42, 37), CPos.New(42, 38), CPos.New(42, 39), CPos.New(42, 40), CPos.New(42, 41), CPos.New(42, 42), CPos.New(42, 43), CPos.New(42, 44), CPos.New(42, 45), CPos.New(42, 46), CPos.New(42, 47), CPos.New(42, 48), CPos.New(42, 49) }
|
||||
|
||||
HarkonnenReinforcements =
|
||||
{
|
||||
easy =
|
||||
{
|
||||
{ "light_inf", "trike" },
|
||||
{ "light_inf", "trike" },
|
||||
{ "light_inf", "light_inf", "light_inf", "trike", "trike" }
|
||||
},
|
||||
|
||||
normal =
|
||||
{
|
||||
{ "light_inf", "trike" },
|
||||
{ "light_inf", "trike" },
|
||||
{ "light_inf", "light_inf", "light_inf", "trike", "trike" },
|
||||
{ "light_inf", "light_inf" },
|
||||
{ "light_inf", "light_inf", "light_inf" },
|
||||
{ "light_inf", "trike" }
|
||||
},
|
||||
|
||||
hard =
|
||||
{
|
||||
{ "trike", "trike" },
|
||||
{ "light_inf", "trike" },
|
||||
{ "light_inf", "trike" },
|
||||
{ "light_inf", "light_inf", "light_inf", "trike", "trike" },
|
||||
{ "light_inf", "light_inf" },
|
||||
{ "trike", "trike" },
|
||||
{ "light_inf", "light_inf", "light_inf" },
|
||||
{ "light_inf", "trike" },
|
||||
{ "trike", "trike" }
|
||||
}
|
||||
}
|
||||
|
||||
HarkonnenAttackPaths =
|
||||
{
|
||||
{ HarkonnenEntry3.Location, HarkonnenRally3.Location },
|
||||
{ HarkonnenEntry4.Location, HarkonnenRally5.Location },
|
||||
{ HarkonnenEntry4.Location, HarkonnenRally6.Location },
|
||||
{ HarkonnenEntry5.Location, HarkonnenRally4.Location }
|
||||
}
|
||||
|
||||
InitialHarkonnenReinforcementsPaths =
|
||||
{
|
||||
{ HarkonnenEntry1.Location, HarkonnenRally1.Location },
|
||||
{ HarkonnenEntry2.Location, HarkonnenRally2.Location }
|
||||
}
|
||||
|
||||
InitialHarkonnenReinforcements =
|
||||
{
|
||||
{ "trike", "trike" },
|
||||
{ "light_inf", "light_inf" }
|
||||
}
|
||||
|
||||
HarkonnenAttackDelay =
|
||||
{
|
||||
easy = DateTime.Minutes(5),
|
||||
normal = DateTime.Minutes(2) + DateTime.Seconds(40),
|
||||
hard = DateTime.Minutes(1) + DateTime.Seconds(20)
|
||||
}
|
||||
|
||||
HarkonnenAttackWaves =
|
||||
{
|
||||
easy = 3,
|
||||
normal = 6,
|
||||
hard = 9
|
||||
}
|
||||
|
||||
OrdosReinforcements = { "light_inf", "light_inf", "raider" }
|
||||
OrdosEntryPath = { OrdosEntry.Location, OrdosRally.Location }
|
||||
|
||||
Tick = function()
|
||||
if Ordos.HasNoRequiredUnits() then
|
||||
Harkonnen.MarkCompletedObjective(KillOrdos)
|
||||
end
|
||||
|
||||
if Harkonnen.HasNoRequiredUnits() and not Ordos.IsObjectiveCompleted(KillHarkonnen) then
|
||||
Media.DisplayMessage(UserInterface.GetFluentMessage("harkonnen-annihilated"), Mentat)
|
||||
Ordos.MarkCompletedObjective(KillHarkonnen)
|
||||
end
|
||||
end
|
||||
|
||||
WorldLoaded = function()
|
||||
Harkonnen = Player.GetPlayer("Harkonnen")
|
||||
Ordos = Player.GetPlayer("Ordos")
|
||||
|
||||
InitObjectives(Ordos)
|
||||
KillOrdos = AddPrimaryObjective(Harkonnen, "")
|
||||
KillHarkonnen = AddPrimaryObjective(Ordos, "destroy-harkonnen-forces")
|
||||
|
||||
Camera.Position = OConyard.CenterPosition
|
||||
|
||||
Trigger.OnAllKilled(HarkonnenBase, function()
|
||||
Utils.Do(Harkonnen.GetGroundAttackers(), IdleHunt)
|
||||
end)
|
||||
|
||||
Trigger.AfterDelay(DateTime.Minutes(1), function()
|
||||
Media.PlaySpeechNotification(Ordos, "Reinforce")
|
||||
Reinforcements.ReinforceWithTransport(Ordos, "carryall.reinforce", OrdosReinforcements, OrdosEntryPath, { OrdosEntryPath[1] })
|
||||
end)
|
||||
|
||||
TriggerCarryallReinforcements(Ordos, Harkonnen, HarkonnenBaseAreaTrigger, InitialHarkonnenReinforcements[1], InitialHarkonnenReinforcementsPaths[1])
|
||||
TriggerCarryallReinforcements(Ordos, Harkonnen, HarkonnenBaseAreaTrigger, InitialHarkonnenReinforcements[2], InitialHarkonnenReinforcementsPaths[2])
|
||||
|
||||
local path = function() return Utils.Random(HarkonnenAttackPaths) end
|
||||
SendCarryallReinforcements(Harkonnen, 0, HarkonnenAttackWaves[Difficulty], HarkonnenAttackDelay[Difficulty], path, HarkonnenReinforcements[Difficulty])
|
||||
Trigger.AfterDelay(0, ActivateAI)
|
||||
end
|
||||
61
mods/d2k/maps/ordos-02a/rules.yaml
Normal file
61
mods/d2k/maps/ordos-02a/rules.yaml
Normal file
@@ -0,0 +1,61 @@
|
||||
Player:
|
||||
PlayerResources:
|
||||
DefaultCash: 5000
|
||||
|
||||
World:
|
||||
LuaScript:
|
||||
Scripts: campaign.lua, utils.lua, ordos02a.lua, ordos02a-AI.lua
|
||||
MissionData:
|
||||
Briefing: briefing
|
||||
BriefingVideo: O_BR02_E.VQA
|
||||
MapOptions:
|
||||
TechLevel: low
|
||||
ScriptLobbyDropdown@difficulty:
|
||||
ID: difficulty
|
||||
Label: dropdown-difficulty.label
|
||||
Description: dropdown-difficulty.description
|
||||
Values:
|
||||
easy: options-difficulty.easy
|
||||
normal: options-difficulty.normal
|
||||
hard: options-difficulty.hard
|
||||
Default: easy
|
||||
|
||||
carryall.reinforce:
|
||||
Cargo:
|
||||
MaxWeight: 10
|
||||
|
||||
upgrade.conyard:
|
||||
Buildable:
|
||||
Prerequisites: ~disabled
|
||||
|
||||
upgrade.barracks:
|
||||
Buildable:
|
||||
Prerequisites: ~disabled
|
||||
|
||||
upgrade.light:
|
||||
Buildable:
|
||||
Prerequisites: ~disabled
|
||||
|
||||
upgrade.heavy:
|
||||
Buildable:
|
||||
Prerequisites: ~disabled
|
||||
|
||||
concreteb:
|
||||
Buildable:
|
||||
Prerequisites: ~disabled
|
||||
|
||||
heavy_factory:
|
||||
Buildable:
|
||||
Prerequisites: ~disabled
|
||||
|
||||
medium_gun_turret:
|
||||
Buildable:
|
||||
Prerequisites: ~disabled
|
||||
|
||||
wall:
|
||||
Buildable:
|
||||
Prerequisites: ~disabled
|
||||
|
||||
outpost:
|
||||
Buildable:
|
||||
Prerequisites: barracks
|
||||
Reference in New Issue
Block a user