diff --git a/mods/ra/bits/mh60.shp b/mods/ra/bits/mh60.shp new file mode 100755 index 0000000000..eb5c403901 Binary files /dev/null and b/mods/ra/bits/mh60.shp differ diff --git a/mods/ra/bits/mh60icon.shp b/mods/ra/bits/mh60icon.shp new file mode 100755 index 0000000000..da60468566 Binary files /dev/null and b/mods/ra/bits/mh60icon.shp differ diff --git a/mods/ra/bits/yrotorlg.shp b/mods/ra/bits/yrotorlg.shp new file mode 100755 index 0000000000..c01f592d16 Binary files /dev/null and b/mods/ra/bits/yrotorlg.shp differ diff --git a/mods/ra/rules/ai.yaml b/mods/ra/rules/ai.yaml index a6fc3a07d1..5a46c080c4 100644 --- a/mods/ra/rules/ai.yaml +++ b/mods/ra/rules/ai.yaml @@ -337,7 +337,7 @@ Player: ttnk: 25 stnk: 5 heli: 30 - hind: 30 + mh60: 30 mig: 30 yak: 30 ss: 10 @@ -379,7 +379,7 @@ Player: ttnk: 25 stnk: 10 heli: 30 - hind: 30 + mh60: 30 mig: 30 yak: 30 ss: 10 @@ -404,7 +404,7 @@ Player: UnitsToBuild: harv: 1 heli: 30 - hind: 30 + mh60: 30 mig: 30 yak: 30 ss: 10 diff --git a/mods/ra/rules/aircraft.yaml b/mods/ra/rules/aircraft.yaml index bc17991ac3..7ea5989c25 100644 --- a/mods/ra/rules/aircraft.yaml +++ b/mods/ra/rules/aircraft.yaml @@ -343,7 +343,7 @@ HIND: Queue: Aircraft BuildAtProductionType: Helicopter BuildPaletteOrder: 20 - Prerequisites: ~hpad, ~techlevel.medium + Prerequisites: ~disabled, ~hpad, ~techlevel.medium Description: Helicopter gunship armed\nwith dual chainguns.\n Strong vs Infantry, Light armor\n Weak vs Tanks, Aircraft Valued: Cost: 1500 @@ -436,3 +436,73 @@ U2: RejectsOrders: Interactable: -MapEditorData: + +MH60: + Inherits: ^Helicopter + Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove + Buildable: + Queue: Aircraft + BuildAtProductionType: Helicopter + BuildPaletteOrder: 20 + Prerequisites: ~hpad, ~techlevel.medium + Description: Helicopter gunship armed\nwith dual chainguns.\n Strong vs Infantry, Light armor\n Weak vs Tanks, Aircraft + Valued: + Cost: 1500 + Tooltip: + Name: Black Hawk + UpdatesPlayerStatistics: + AddToArmyValue: true + Health: + HP: 10000 + RevealsShroud: + Range: 10c0 + Type: GroundPosition + RevealGeneratedShroud: False + RevealsShroud@GAPGEN: + Range: 8c0 + Type: GroundPosition + Armament@PRIMARY: + Weapon: ChainGun + LocalOffset: 85,-213,-85, 85,213,-85 + MuzzleSequence: muzzle + PauseOnCondition: !ammo + Armament@SECONDARY: + Name: secondary + Weapon: ChainGun + LocalOffset: 85,213,-85, 85,-213,-85 + MuzzleSequence: muzzle + PauseOnCondition: !ammo + AttackAircraft: + FacingTolerance: 20 + PersistentTargeting: false + AttackType: Hover + Aircraft: + LandWhenIdle: false + TurnSpeed: 4 + Speed: 112 + AutoTarget: + InitialStance: HoldFire + InitialStanceAI: HoldFire + WithIdleOverlay@ROTORAIR: + Sequence: rotor + RequiresCondition: airborne + WithIdleOverlay@ROTORGROUND: + Sequence: slow-rotor + RequiresCondition: !airborne + AmmoPool: + Ammo: 24 + PipCount: 6 + ReloadDelay: 8 + AmmoCondition: ammo + SelectionDecorations: + WithMuzzleOverlay: + SpawnActorOnDeath: + Actor: MH60.Husk + SmokeTrailWhenDamaged: + Offset: -427,0,0 + ProducibleWithLevel: + Prerequisites: aircraft.upgraded + Selectable: + DecorationBounds: 38,32 + Rearmable: + RearmActors: hpad diff --git a/mods/ra/rules/husks.yaml b/mods/ra/rules/husks.yaml index 5f599da43e..6fe0b66399 100644 --- a/mods/ra/rules/husks.yaml +++ b/mods/ra/rules/husks.yaml @@ -440,3 +440,25 @@ TC05.Husk: Dimensions: 4,3 MapEditorData: ExcludeTilesets: DESERT, INTERIOR + +MH60.Husk: + Inherits: ^HelicopterHusk + Tooltip: + Name: Black Hawk + Aircraft: + TurnSpeed: 4 + Speed: 112 + WithIdleOverlay: + Sequence: rotor + SmokeTrailWhenDamaged: + Offset: -427,0,0 + MinDamage: Undamaged + RevealsShroud: + Range: 10c0 + Type: GroundPosition + RevealGeneratedShroud: False + RevealsShroud@GAPGEN: + Range: 8c0 + Type: GroundPosition + RenderSprites: + Image: MH60 diff --git a/mods/ra/sequences/aircraft.yaml b/mods/ra/sequences/aircraft.yaml index 50df86a92f..85268e36f2 100644 --- a/mods/ra/sequences/aircraft.yaml +++ b/mods/ra/sequences/aircraft.yaml @@ -70,3 +70,17 @@ u2: badr: idle: Facings: 16 + +mh60: + idle: + Facings: 32 + UseClassicFacingFudge: True + rotor: yrotorlg + Length: 4 + slow-rotor: yrotorlg + Start: 4 + Length: 8 + muzzle: minigun + Length: 6 + Facings: 8 + icon: mh60icon