Created
January 10, 2021 21:18
-
-
Save fadookie/26dedf4dfe0cb89e0306af6a3186e774 to your computer and use it in GitHub Desktop.
"Ohio" Sub Example for OpenRA Modding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OHIOSUB: | |
Inherits: ^Ship | |
Inherits@AUTOTARGET: ^AutoTargetAllAssaultMove | |
Buildable: | |
Queue: Ship | |
BuildAtProductionType: Submarine | |
BuildPaletteOrder: 60 | |
Prerequisites: ~syrd, atek, ~techlevel.unrestricted | |
Description: Submerged anti-ground siege unit\nwith anti-air capabilities.\nCan detect other submarines.\n Strong vs Buildings, Ground units, Aircraft\n Weak vs Naval units\n Special Ability: Submerge | |
Valued: | |
Cost: 240 | |
Tooltip: | |
Name: 'Ohio'-Class Ballistic Sub | |
UpdatesPlayerStatistics: | |
AddToArmyValue: true | |
Health: | |
HP: 2000 | |
HitShape: | |
Armor: | |
Type: Wood | |
Mobile: | |
TurnSpeed: 2 | |
Speed: 70 | |
Locomotor: lcraft | |
RevealsShroud: | |
MinRange: 5c0 | |
Range: 8c0 | |
RevealGeneratedShroud: False | |
RevealsShroud@GAPGEN: | |
Range: 5c0 | |
RenderSprites: | |
Image: msub | |
Targetable: | |
TargetTypes: Ground, Water, Ship, Submarine, Repair | |
RequiresCondition: !underwater | |
Targetable@UNDERWATER: | |
TargetTypes: Underwater, Submarine | |
RequiresCondition: underwater | |
Cloak: | |
CloakTypes: Underwater | |
InitialDelay: 0 | |
CloakDelay: 100 | |
CloakSound: subshow1.aud | |
UncloakSound: subshow1.aud | |
CloakedCondition: underwater | |
Palette: submerged | |
PauseOnCondition: cloak-force-disabled | |
GrantConditionOnDamageState@UNCLOAK: | |
Condition: cloak-force-disabled | |
ValidDamageStates: Critical | |
Armament@PRIMARY: | |
Weapon: SubMissile | |
LocalOffset: 0,-171,0, 0,171,0 | |
FireDelay: 2 | |
Armament@SECONDARY: | |
Weapon: SubMissileAA | |
LocalOffset: 0,-171,0, 0,171,0 | |
FireDelay: 2 | |
AttackFrontal: | |
TargetFrozenActors: True | |
ForceFireIgnoresActors: True | |
SelectionDecorations: | |
AutoTarget: | |
InitialStance: HoldFire | |
InitialStanceAI: ReturnFire | |
DetectCloaked: | |
CloakTypes: Underwater | |
Range: 4c0 | |
RenderDetectionCircle: | |
RenderRangeCircle: | |
Explodes: | |
Weapon: UnitExplodeSubmarine | |
EmptyWeapon: UnitExplodeSubmarine | |
Selectable: | |
DecorationBounds: 44,44 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment