Initial commit: OpenRA game engine
Some checks failed
Continuous Integration / Linux (.NET 8.0) (push) Has been cancelled
Continuous Integration / Windows (.NET 8.0) (push) Has been cancelled

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:
let5sne.win10
2026-01-10 21:46:54 +08:00
commit 9cf6ebb986
4065 changed files with 635973 additions and 0 deletions

Binary file not shown.

View File

@@ -0,0 +1,5 @@
## rules.yaml
briefing =
GDI is developing an orbital weapon. Our spies have located the R&D center near a large lake.
Find the base and use the sniper to take out their lead scientist.

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,69 @@
--[[
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.
]]
if Difficulty == "easy" then
Rambo = "rmbo.easy"
elseif Difficulty == "hard" then
Rambo = "rmbo.hard"
else
Rambo = "rmbo"
end
GDIBuildings = { ConYard, PowerPlant1, PowerPlant2, PowerPlant3, PowerPlant4, Barracks, CommCenter, WeaponsFactory, GuardTower1, GuardTower2, GuardTower3 }
ReinforceWithChinook = function(_, discoverer)
if not ChinookTrigger and discoverer == Nod then
ChinookTrigger = true
Trigger.AfterDelay(DateTime.Seconds(1), function()
Actor.Create("flare", true, { Owner = Nod, Location = DefaultFlareLocation.Location })
Media.PlaySpeechNotification(Nod, "Reinforce")
Reinforcements.ReinforceWithTransport(Nod, "tran", nil, { ChinookEntry.Location, ChinookTarget.Location })
end)
end
end
CreateScientist = function()
local scientist = Actor.Create("CHAN", true, { Owner = GDI, Location = ScientistLocation.Location })
KillScientistObjective = AddPrimaryObjective(Nod, "kill-gdi-scientist")
Nod.MarkCompletedObjective(DestroyTechCenterObjective)
Trigger.OnKilled(scientist, function()
Nod.MarkCompletedObjective(KillScientistObjective)
end)
end
WorldLoaded = function()
Nod = Player.GetPlayer("Nod")
GDI = Player.GetPlayer("GDI")
GDI.Cash = 10000
Camera.Position = DefaultCameraPosition.CenterPosition
InitObjectives(Nod)
Utils.Do(GDIBuildings, function(building)
RepairBuilding(GDI, building, 0.75)
end)
DestroyTechCenterObjective = AddPrimaryObjective(Nod, "destroy-tech-center")
Actor.Create(Rambo, true, { Owner = Nod, Location = RamboLocation.Location })
Trigger.OnDiscovered(TechCenter, ReinforceWithChinook)
Trigger.OnKilled(TechCenter, CreateScientist)
end
Tick = function()
if DateTime.GameTime > 2 and Nod.HasNoRequiredUnits() then
Nod.MarkFailedObjective(DestroyTechCenterObjective)
end
end

View File

@@ -0,0 +1,63 @@
World:
LuaScript:
Scripts: campaign.lua, utils.lua, nod10a.lua
MissionData:
Briefing: briefing
BackgroundVideo: kanepre.vqa
LossVideo: nodlose.vqa
BriefingVideo: nod10a.vqa
SmudgeLayer@SCORCH:
InitialSmudges:
59,55: sc4,0
43,53: sc3,0
8,22: sc1,0
8,19: sc1,0
8,16: sc1,0
7,16: sc1,0
3,14: sc5,0
30,5: sc1,0
SmudgeLayer@CRATER:
InitialSmudges:
7,15: cr1,0
35,5: cr1,0
51,4: cr1,0
41,3: cr1,0
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: normal
-LegacyBridgeLayer:
^CivBuilding:
AnnounceOnSeen:
Player:
EnemyWatcher:
PlayerResources:
DefaultCash: 0
RMBO.easy:
Inherits: RMBO
Health:
HP: 30000
ChangesHealth:
Step: 500
Delay: 10
StartIfBelow: 50
DamageCooldown: 200
RenderSprites:
Image: RMBO
RMBO.hard:
Inherits: RMBO
-AutoTarget:
-AutoTargetPriority@DEFAULT:
-AutoTargetPriority@ATTACKANYTHING:
-AttackMove:
RenderSprites:
Image: RMBO