From 33815eaa4e24ddc0493303e7874af3af6dde21f0 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Wed, 13 Apr 2011 13:27:09 +1200 Subject: [PATCH] split aircraft out into their own yaml file --- mods/ra/mod.yaml | 1 + mods/ra/rules/aircraft.yaml | 334 +++++++++++++++++++++++++++++++++++ mods/ra/rules/vehicles.yaml | 335 ------------------------------------ 3 files changed, 335 insertions(+), 335 deletions(-) create mode 100644 mods/ra/rules/aircraft.yaml diff --git a/mods/ra/mod.yaml b/mods/ra/mod.yaml index 1b573f7fee..8d7e73fb86 100644 --- a/mods/ra/mod.yaml +++ b/mods/ra/mod.yaml @@ -37,6 +37,7 @@ Rules: mods/ra/rules/infantry.yaml mods/ra/rules/civilian.yaml mods/ra/rules/trees.yaml + mods/ra/rules/aircraft.yaml Sequences: mods/ra/sequences.yaml diff --git a/mods/ra/rules/aircraft.yaml b/mods/ra/rules/aircraft.yaml new file mode 100644 index 0000000000..e9d0aa7037 --- /dev/null +++ b/mods/ra/rules/aircraft.yaml @@ -0,0 +1,334 @@ +BADR: + ParaDrop: + LZRange: 4 + Inherits: ^Plane + Health: + HP: 60 + Armor: + Type: Light + Plane: + ROT: 5 + Speed: 16 + RenderUnit: + Smokes: no + WithShadow: + IronCurtainable: + Cargo: + Passengers: 10 +# Types: Infantry, Vehicle + -Selectable: + -GainsExperience: + Tooltip: + Name: Badger + Contrail@1: + ContrailOffset: 11, -11 + Contrail@2: + ContrailOffset: -11, -11 + FallsToEarth: + Spins: no + Moves: yes + Explosion: UnitExplode + SmokeTrailWhenDamaged@0: + Offset: 11, -11 + Interval: 2 + SmokeTrailWhenDamaged@1: + Offset: -11, -11 + Interval: 2 + -EjectOnDeath: + +BADR.bomber: + CarpetBomb: + Range: 3 + Weapon: ParaBomb + Inherits: ^Plane + Health: + HP: 60 + Armor: + Type: Light + Plane: + ROT: 5 + Speed: 16 + LimitedAmmo: + Ammo: 7 + RenderUnit: + Image: badr + Smokes: no + WithShadow: + IronCurtainable: + -Selectable: + -GainsExperience: + Tooltip: + Name: Badger + Contrail@1: + ContrailOffset: 11, -11 + Contrail@2: + ContrailOffset: -11, -11 + FallsToEarth: + Spins: no + Moves: yes + Explosion: UnitExplode + SmokeTrailWhenDamaged@0: + Offset: 11, -11 + Interval: 2 + SmokeTrailWhenDamaged@1: + Offset: -11, -11 + Interval: 2 + -EjectOnDeath: + +MIG: + Inherits: ^Plane + Buildable: + Queue: Plane + BuildPaletteOrder: 100 + Prerequisites: afld, stek + BuiltAt: afld + Owner: soviet + Valued: + Cost: 2000 + Tooltip: + Name: Mig Attack Plane + Description: Fast Ground-Attack Plane.\n Strong vs Buildings\n Weak vs Infantry, Light Vehicles + Health: + HP: 70 + Armor: + Type: Light + RevealsShroud: + Range: 12 + AttackPlane: + PrimaryWeapon: Maverick + SecondaryWeapon: Maverick + PrimaryLocalOffset: -15,0,-10,-12,0,6 + SecondaryLocalOffset: 15,0,10,12,0,6 + FacingTolerance: 20 + Plane: + InitialFacing: 192 + ROT: 5 + Speed: 20 + RearmBuildings: afld + RenderUnit: + Smokes: no + WithShadow: + LimitedAmmo: + Ammo: 8 + IronCurtainable: + ReturnOnIdle: + Selectable: + Bounds: 44,40,0,0 + Contrail@1: + ContrailOffset: 16,-14 + Contrail@2: + ContrailOffset: -16,-14 + FallsToEarth: + Spins: no + Moves: yes + Explosion: UnitExplode + SmokeTrailWhenDamaged: + Offset: 0,-20,0,-4 + Interval: 2 + +YAK: + Inherits: ^Plane + Buildable: + Queue: Plane + BuildPaletteOrder: 50 + Prerequisites: afld + BuiltAt: afld + Owner: soviet + Valued: + Cost: 1000 + Tooltip: + Name: Yak Attack Plane + Description: Anti-Tanks & Anti-Infantry Plane.\n Strong vs Infantry, Tanks\n Weak vs Buildings + Health: + HP: 60 + Armor: + Type: Light + RevealsShroud: + Range: 10 + AttackPlane: + PrimaryWeapon: ChainGun.Yak + SecondaryWeapon: ChainGun.Yak + PrimaryOffset: -5,-6,0,0 + SecondaryOffset: 5,-6,0,0 + FacingTolerance: 20 + Plane: + RearmBuildings: afld + InitialFacing: 192 + ROT: 5 + Speed: 16 + RenderUnit: + Smokes: no + WithShadow: + LimitedAmmo: + Ammo: 18 + PipCount: 6 + IronCurtainable: + ReturnOnIdle: + WithMuzzleFlash: + Contrail: + ContrailOffset: 0, -20 + FallsToEarth: + Spins: no + Moves: yes + Explosion: UnitExplode + SmokeTrailWhenDamaged: + Offset: 0, -20 + Interval: 2 + + +TRAN: + Inherits: ^Plane + Buildable: + Queue: Plane + BuildPaletteOrder: 110 + Prerequisites: hpad + BuiltAt: hpad + Owner: allies + Valued: + Cost: 1200 + Tooltip: + Name: Transport Helicopter + Description: Fast Infantry Transport Helicopter.\n Unarmed + Health: + HP: 90 + Armor: + Type: Light + RevealsShroud: + Range: 12 + Helicopter: + RearmBuildings: hpad + InitialFacing: 0 + ROT: 5 + Speed: 12 + LandableTerrainTypes: Clear,Rough,Road,Ore,Beach + RenderUnit: + WithRotor@PRIMARY: + Offset: 0,14,0,-8 + WithRotor@SECONDARY: + Id: rotor_2 + Offset: 0,-14,0,-5 + WithShadow: + Cargo: + Types: Infantry + Passengers: 5 + IronCurtainable: + FallsToEarth: + Explosion: UnitExplode + +HELI: + Inherits: ^Plane + Buildable: + Queue: Plane + BuildPaletteOrder: 90 + Prerequisites: hpad + BuiltAt: hpad + Owner: allies + Valued: + Cost: 2000 + Tooltip: + Name: Longbow + Description: Helicopter Gunship with AG Missiles.\n Strong vs Tanks\n Weak vs Infantry + Health: + HP: 120 + Armor: + Type: Light + RevealsShroud: + Range: 12 + AttackHeli: + PrimaryWeapon: Hellfire + SecondaryWeapon: Hellfire + PrimaryOffset: -5,0,0,2 + SecondaryOffset: 5,0,0,2 + FacingTolerance: 20 + Helicopter: + RearmBuildings: hpad + LandWhenIdle: false + InitialFacing: 20 + ROT: 4 + Speed: 16 + RenderUnit: + Smokes: no + WithRotor: + Offset: 0,0,0,-2 + WithShadow: + LimitedAmmo: + Ammo: 8 + IronCurtainable: + FallsToEarth: + Explosion: UnitExplode + SmokeTrailWhenDamaged: + Offset: 0,-10 + +HIND: + Inherits: ^Plane + Buildable: + Queue: Plane + BuildPaletteOrder: 90 + Prerequisites: hpad + BuiltAt: hpad + Owner: allies + Valued: + Cost: 1000 + Tooltip: + Name: Hind + Description: Helicopter Gunship with Chainguns.\n Strong vs Infantry, Light Vehicles.\n Weak vs Tanks + Health: + HP: 150 + Armor: + Type: Light + RevealsShroud: + Range: 10 + AttackHeli: + PrimaryWeapon: ChainGun + SecondaryWeapon: ChainGun + PrimaryOffset: -5,-2,0,2 + SecondaryOffset: 5,-2,0,2 + FacingTolerance: 20 + Helicopter: + RearmBuildings: hpad + LandWhenIdle: false + InitialFacing: 20 + ROT: 4 + Speed: 12 + RenderUnit: + Smokes: no + WithRotor: + WithShadow: + LimitedAmmo: + Ammo: 24 + PipCount: 6 + IronCurtainable: + Selectable: + Bounds: 38,32,0,0 + WithMuzzleFlash: + FallsToEarth: + Explosion: UnitExplode + SmokeTrailWhenDamaged: + Offset: 0,-10 + +U2: + Inherits: ^Plane + Health: + HP: 2000 + Armor: + Type: Heavy + Plane: + ROT: 7 + Speed: 40 + RenderUnit: + Smokes: no + WithShadow: + IronCurtainable: + -Selectable: + -GainsExperience: + Contrail@1: + ContrailOffset: 16, -17 + Contrail@2: + ContrailOffset: -16, -17 + FallsToEarth: + Spins: no + Moves: yes + Explosion: UnitExplode + SmokeTrailWhenDamaged: + Offset: 0,-25 + Interval: 2 diff --git a/mods/ra/rules/vehicles.yaml b/mods/ra/rules/vehicles.yaml index 6dbe578bee..13d5876eb9 100644 --- a/mods/ra/rules/vehicles.yaml +++ b/mods/ra/rules/vehicles.yaml @@ -1,80 +1,3 @@ -BADR: - ParaDrop: - LZRange: 4 - Inherits: ^Plane - Health: - HP: 60 - Armor: - Type: Light - Plane: - ROT: 5 - Speed: 16 - RenderUnit: - Smokes: no - WithShadow: - IronCurtainable: - Cargo: - Passengers: 10 -# Types: Infantry, Vehicle - -Selectable: - -GainsExperience: - Tooltip: - Name: Badger - Contrail@1: - ContrailOffset: 11, -11 - Contrail@2: - ContrailOffset: -11, -11 - FallsToEarth: - Spins: no - Moves: yes - Explosion: UnitExplode - SmokeTrailWhenDamaged@0: - Offset: 11, -11 - Interval: 2 - SmokeTrailWhenDamaged@1: - Offset: -11, -11 - Interval: 2 - -EjectOnDeath: - -BADR.bomber: - CarpetBomb: - Range: 3 - Weapon: ParaBomb - Inherits: ^Plane - Health: - HP: 60 - Armor: - Type: Light - Plane: - ROT: 5 - Speed: 16 - LimitedAmmo: - Ammo: 7 - RenderUnit: - Image: badr - Smokes: no - WithShadow: - IronCurtainable: - -Selectable: - -GainsExperience: - Tooltip: - Name: Badger - Contrail@1: - ContrailOffset: 11, -11 - Contrail@2: - ContrailOffset: -11, -11 - FallsToEarth: - Spins: no - Moves: yes - Explosion: UnitExplode - SmokeTrailWhenDamaged@0: - Offset: 11, -11 - Interval: 2 - SmokeTrailWhenDamaged@1: - Offset: -11, -11 - Interval: 2 - -EjectOnDeath: - V2RL: Inherits: ^Vehicle Buildable: @@ -718,264 +641,6 @@ PT: IronCurtainable: RepairableNear: -MIG: - Inherits: ^Plane - Buildable: - Queue: Plane - BuildPaletteOrder: 100 - Prerequisites: afld, stek - BuiltAt: afld - Owner: soviet - Valued: - Cost: 2000 - Tooltip: - Name: Mig Attack Plane - Description: Fast Ground-Attack Plane.\n Strong vs Buildings\n Weak vs Infantry, Light Vehicles - Health: - HP: 70 - Armor: - Type: Light - RevealsShroud: - Range: 12 - AttackPlane: - PrimaryWeapon: Maverick - SecondaryWeapon: Maverick - PrimaryLocalOffset: -15,0,-10,-12,0,6 - SecondaryLocalOffset: 15,0,10,12,0,6 - FacingTolerance: 20 - Plane: - InitialFacing: 192 - ROT: 5 - Speed: 20 - RearmBuildings: afld - RenderUnit: - Smokes: no - WithShadow: - LimitedAmmo: - Ammo: 8 - IronCurtainable: - ReturnOnIdle: - Selectable: - Bounds: 44,40,0,0 - Contrail@1: - ContrailOffset: 16,-14 - Contrail@2: - ContrailOffset: -16,-14 - FallsToEarth: - Spins: no - Moves: yes - Explosion: UnitExplode - SmokeTrailWhenDamaged: - Offset: 0,-20,0,-4 - Interval: 2 - -YAK: - Inherits: ^Plane - Buildable: - Queue: Plane - BuildPaletteOrder: 50 - Prerequisites: afld - BuiltAt: afld - Owner: soviet - Valued: - Cost: 1000 - Tooltip: - Name: Yak Attack Plane - Description: Anti-Tanks & Anti-Infantry Plane.\n Strong vs Infantry, Tanks\n Weak vs Buildings - Health: - HP: 60 - Armor: - Type: Light - RevealsShroud: - Range: 10 - AttackPlane: - PrimaryWeapon: ChainGun.Yak - SecondaryWeapon: ChainGun.Yak - PrimaryOffset: -5,-6,0,0 - SecondaryOffset: 5,-6,0,0 - FacingTolerance: 20 - Plane: - RearmBuildings: afld - InitialFacing: 192 - ROT: 5 - Speed: 16 - RenderUnit: - Smokes: no - WithShadow: - LimitedAmmo: - Ammo: 18 - PipCount: 6 - IronCurtainable: - ReturnOnIdle: - WithMuzzleFlash: - Contrail: - ContrailOffset: 0, -20 - FallsToEarth: - Spins: no - Moves: yes - Explosion: UnitExplode - SmokeTrailWhenDamaged: - Offset: 0, -20 - Interval: 2 - - -TRAN: - Inherits: ^Plane - Buildable: - Queue: Plane - BuildPaletteOrder: 110 - Prerequisites: hpad - BuiltAt: hpad - Owner: allies - Valued: - Cost: 1200 - Tooltip: - Name: Transport Helicopter - Description: Fast Infantry Transport Helicopter.\n Unarmed - Health: - HP: 90 - Armor: - Type: Light - RevealsShroud: - Range: 12 - Helicopter: - RearmBuildings: hpad - InitialFacing: 0 - ROT: 5 - Speed: 12 - LandableTerrainTypes: Clear,Rough,Road,Ore,Beach - RenderUnit: - WithRotor@PRIMARY: - Offset: 0,14,0,-8 - WithRotor@SECONDARY: - Id: rotor_2 - Offset: 0,-14,0,-5 - WithShadow: - Cargo: - Types: Infantry - Passengers: 5 - IronCurtainable: - FallsToEarth: - Explosion: UnitExplode - -HELI: - Inherits: ^Plane - Buildable: - Queue: Plane - BuildPaletteOrder: 90 - Prerequisites: hpad - BuiltAt: hpad - Owner: allies - Valued: - Cost: 2000 - Tooltip: - Name: Longbow - Description: Helicopter Gunship with AG Missiles.\n Strong vs Tanks\n Weak vs Infantry - Health: - HP: 120 - Armor: - Type: Light - RevealsShroud: - Range: 12 - AttackHeli: - PrimaryWeapon: Hellfire - SecondaryWeapon: Hellfire - PrimaryOffset: -5,0,0,2 - SecondaryOffset: 5,0,0,2 - FacingTolerance: 20 - Helicopter: - RearmBuildings: hpad - LandWhenIdle: false - InitialFacing: 20 - ROT: 4 - Speed: 16 - RenderUnit: - Smokes: no - WithRotor: - Offset: 0,0,0,-2 - WithShadow: - LimitedAmmo: - Ammo: 8 - IronCurtainable: - FallsToEarth: - Explosion: UnitExplode - SmokeTrailWhenDamaged: - Offset: 0,-10 - -HIND: - Inherits: ^Plane - Buildable: - Queue: Plane - BuildPaletteOrder: 90 - Prerequisites: hpad - BuiltAt: hpad - Owner: allies - Valued: - Cost: 1000 - Tooltip: - Name: Hind - Description: Helicopter Gunship with Chainguns.\n Strong vs Infantry, Light Vehicles.\n Weak vs Tanks - Health: - HP: 150 - Armor: - Type: Light - RevealsShroud: - Range: 10 - AttackHeli: - PrimaryWeapon: ChainGun - SecondaryWeapon: ChainGun - PrimaryOffset: -5,-2,0,2 - SecondaryOffset: 5,-2,0,2 - FacingTolerance: 20 - Helicopter: - RearmBuildings: hpad - LandWhenIdle: false - InitialFacing: 20 - ROT: 4 - Speed: 12 - RenderUnit: - Smokes: no - WithRotor: - WithShadow: - LimitedAmmo: - Ammo: 24 - PipCount: 6 - IronCurtainable: - Selectable: - Bounds: 38,32,0,0 - WithMuzzleFlash: - FallsToEarth: - Explosion: UnitExplode - SmokeTrailWhenDamaged: - Offset: 0,-10 - -U2: - Inherits: ^Plane - Health: - HP: 2000 - Armor: - Type: Heavy - Plane: - ROT: 7 - Speed: 40 - RenderUnit: - Smokes: no - WithShadow: - IronCurtainable: - -Selectable: - -GainsExperience: - Contrail@1: - ContrailOffset: 16, -17 - Contrail@2: - ContrailOffset: -16, -17 - FallsToEarth: - Spins: no - Moves: yes - Explosion: UnitExplode - SmokeTrailWhenDamaged: - Offset: 0,-25 - Interval: 2 - 1TNK.Husk: Inherits: ^Husk Tooltip: