Skip to content

Zero Hour rebuilt from EA's source: x64, Direct3D 11, VS2022/CMake, ~60 original bugs fixed, an AI that builds a base. Bring your own game.

117 KB
Raw Blame
; Zero Hour Reforged's Turkiye faction, loaded after FixesReforged.ini with INI_LOAD_MULTIFILE.
;
; Every Turkiye object is an ObjectReskin of an existing one, followed by a patch block on the new
; name. The reskin copies the source template whole, as Balance and Fixes left it, and the patch
; then sets Side = Turkiye and whatever the plan (docs/plans/TURKIYE-FRAKSIYON-KONSEPT.md in the
; workspace, section 5) changes: cost, build time, health, vision, the weapon set and the command
; set. The weapons are new and live in TurkiyeWeaponReforged.ini, which loads before every object.
;
; A reskin counts as its source wherever the engine asks ThingTemplate::isEquivalentTo: a Turkiye
; War Factory meets a prerequisite that names AmericaWarFactory, and a Turkiye factory asked for an
; America-named unit by the skirmish scripts makes the Turkiye one its button names
; (BuildAssistant::findBuildButtonTemplate). That is what lets a Turkiye AI run the SkirmishAmerica
; scripts unchanged, so the units the scripts ask for by name are reskins of exactly those American
; units: Mehmetcik of the Ranger, Altay of the Crusader, Firtina of the Tomahawk and so on. The few
; that are not (the engineer, the supply truck, the radar tower, the Siper, the mine) the AI
; reaches through the dozer and harvester scans or its build list.
;
; ThingFactory::newObject turns any object made for a Turkiye player into the one Turkiye reskin of
; it, so there is never more than one Turkiye reskin of a source template.
;
; These are placeholders: the source models, voices and cameos under Turkish names.
;
; This file lands in the multiplayer INI checksum.

; ==== Buildings ===================================================================================

ObjectReskin TurkiyeCommandCenter AmericaCommandCenter
End

Object TurkiyeCommandCenter
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyeCommandCenter
  CommandSet = TurkiyeCommandCenterCommandSet
  ; the radar circle the faction's rockets keep their lock in (TurkiyeWeaponReforged.ini). Every
  ; Turkiye radar takes Erken Ihbar's quarter and the Radar Tower's Hedef Siniflandirma.
  AddModule
    Behavior = RadarCoverageBehavior ModuleTag_TurkiyeRadarCoverage
      Radius          = 600
      RadiusUpgrade   = Upgrade_TurkiyeEarlyWarning 1.25
      ClassifyUpgrade = Upgrade_TurkiyeTargetClassification
    End
  End
  ; The rank powers (ScienceReforged.ini, SpecialPowerReforged.ini). A power's enum is one per
  ; object, so the American powers whose enums these take go: the Daisy Cutter (20), the Spy Drone
  ; (21), the spy satellite scan (24), the crate drop (25), the A-10 (26), Emergency Repair (27), the
  ; Spectre (32, 33) and the leaflet drop (34). None had a Turkiye button.
  RemoveModule ModuleTag_20
  RemoveModule ModuleTag_21
  RemoveModule ModuleTag_24
  RemoveModule ModuleTag_25
  RemoveModule ModuleTag_26
  RemoveModule ModuleTag_27
  RemoveModule ModuleTag_32
  RemoveModule ModuleTag_33
  RemoveModule ModuleTag_34
  ; Rank 1, SIHA Kesfi: a recon marker at the point
  AddModule
    Behavior = OCLSpecialPower ModuleTag_TurkiyeUavRecon
      SpecialPowerTemplate = SuperweaponTurkiyeUavRecon
      OCL                  = SUPERWEAPON_TurkiyeUavRecon
      CreateLocation       = CREATE_AT_LOCATION
    End
  End
  ; Rank 3, SIHA Surusu: one, three or five loitering munitions on the dearest targets in the circle
  AddModule
    Behavior = SwarmStrikeSpecialPower ModuleTag_TurkiyeSwarmMunition
      SpecialPowerTemplate = SuperweaponTurkiyeSwarmMunition
      Radius               = 200
      TargetCount          = 1
      UpgradeTargetCount   = SCIENCE_TurkiyeSwarmMunition3 5
      UpgradeTargetCount   = SCIENCE_TurkiyeSwarmMunition2 3
      Weapon               = TurkiyeSwarmMunitionWeapon
      TargetFX             = WeaponFX_ComancheAntiTankMissileDetonation
    End
  End
  ; Rank 3, Elektronik Harp: every enemy with a building in the circle loses its radar for 30 s, and
  ; the circle is jammed as long: enemy drones and spotters in it go blind and guided missiles lose
  ; their lock (TurkiyeElectronicWarfareMarker, below)
  AddModule
    Behavior = RadarJamSpecialPower ModuleTag_TurkiyeElectronicBlinding
      SpecialPowerTemplate = SuperweaponTurkiyeElectronicBlinding
      Radius               = 300
      Duration             = 30000
      FX                   = WeaponFX_EMPPulseImpact
      OCL                  = SUPERWEAPON_TurkiyeElectronicWarfare
    End
  End
  ; Rank 3, Gokbey Indirmesi, in the American paradrop's place
  ReplaceModule ModuleTag_22
    Behavior = OCLSpecialPower ModuleTag_22_Turkiye
      SpecialPowerTemplate = SuperweaponTurkiyeRapidDeployment
      UpgradeOCL           = SCIENCE_TurkiyeRapidDeployment3 SUPERWEAPON_TurkiyeRapidDeployment3
      UpgradeOCL           = SCIENCE_TurkiyeRapidDeployment2 SUPERWEAPON_TurkiyeRapidDeployment2
      OCL                  = SUPERWEAPON_TurkiyeRapidDeployment
      CreateLocation       = CREATE_AT_EDGE_NEAR_SOURCE
      OCLAdjustPositionToPassable = Yes
    End
  End
  ; Rank 5, Uydu Gudum: no target; its marker covers the whole map
  AddModule
    Behavior = OCLSpecialPower ModuleTag_TurkiyeSatelliteGuidance
      SpecialPowerTemplate = SuperweaponTurkiyeSatelliteGuidance
      OCL                  = SUPERWEAPON_TurkiyeSatelliteGuidance
      CreateLocation       = CREATE_AT_LOCATION
    End
  End
  ; Rank 5, Tayfun: a ballistic missile out of the Command Center
  AddModule
    Behavior = OCLSpecialPower ModuleTag_TurkiyeTayfun
      SpecialPowerTemplate = SuperweaponTurkiyeTayfun
      OCL                  = SUPERWEAPON_TurkiyeTayfun
      CreateLocation       = CREATE_AT_LOCATION
    End
  End
  ; Rank 5, Bordo Bere Baskini: a Maroon Beret and two spotter teams by parachute, an eye behind the lines
  AddModule
    Behavior = OCLSpecialPower ModuleTag_TurkiyeCommandoRaid
      SpecialPowerTemplate = SuperweaponTurkiyeCommandoRaid
      OCL                  = SUPERWEAPON_TurkiyeCommandoRaid
      CreateLocation       = CREATE_AT_EDGE_NEAR_SOURCE
      OCLAdjustPositionToPassable = Yes
    End
  End
  ; Its own model: a whitewashed command palace in the First National style, symmetric along its long
  ; front: two lead-capped corner towers, two pavilions (the vehicle gate and its garage in one, a
  ; matching shut gate in the other) and the portal tower in the middle carrying the drone
  ; ground-control dish, a red-tiled central wing between flat parapet terraces, the flag and badge
  ; sign in the yard and a guard post on the exit lane. TRCMDHQ and its damaged, burning and rubble
  ; states TRCMDHQ_D, _E and _R,
  ; the gate leaves TRCMDHQ_DR and the construction scaffold TRCMDHQ_SC in Code/Data/Art/W3D, the
  ; TRCmdHQ_*.tga and ZHCA_TRCmdHQ.tga textures in Code/Data/Art/Textures, all made by
  ; experiments/proofs/2026-11-02/hq in the workspace. Three draw modules take the place of retail's
  ; eight. The building: the flag waves and the dish re-aims in every state, night and snow draw the
  ; day model, and construction sinks it into the ground as retail's does, with the flag, the radio
  ; mast, the dish, the guard post and the badge sign (POST) hidden until it is finished. The gate
  ; leaves, opened and shut by ProductionUpdate's door states. The scaffold, standing at full height
  ; while the building rises inside it. The American fence, crane, radar dish and Officers Club flag
  ; go.
  ReplaceModule ModuleTag_01
    Draw = W3DModelDraw ModuleTag_01_Turkiye
      OkToChangeModelColor = Yes
      ConditionState       = NONE
        Model              = TRCMDHQ
        Animation          = TRCMDHQ.TRCMDHQ
        AnimationMode      = LOOP
        ShowSubObject      = FLAGPOLE MAST FLAG01 FLAG02 FLAG03 FLAG04 DISH POST
      End
      ConditionState       = AWAITING_CONSTRUCTION
        Model              = NONE
      End
      AliasConditionState  = AWAITING_CONSTRUCTION DAMAGED
      AliasConditionState  = AWAITING_CONSTRUCTION REALLYDAMAGED
      AliasConditionState  = SOLD
      AliasConditionState  = SOLD DAMAGED
      AliasConditionState  = SOLD REALLYDAMAGED
      ConditionState       = DAMAGED
        Model              = TRCMDHQ_D
        Animation          = TRCMDHQ_D.TRCMDHQ_D
        AnimationMode      = LOOP
        ShowSubObject      = FLAGPOLE MAST FLAG01 FLAG02 FLAG03 FLAG04 DISH POST
      End
      ConditionState       = REALLYDAMAGED
        Model              = TRCMDHQ_E
        Animation          = TRCMDHQ_E.TRCMDHQ_E
        AnimationMode      = LOOP
        ShowSubObject      = FLAGPOLE MAST FLAG01 FLAG02 FLAG03 FLAG04 DISH POST
      End
      ConditionState       = RUBBLE
        Model              = TRCMDHQ_R
        Animation          = TRCMDHQ_R.TRCMDHQ_R
        AnimationMode      = LOOP
      End
      AliasConditionState  = REALLYDAMAGED RUBBLE
      ; the same model as the finished state, so the finished state shows what this one hid
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED
        Model              = TRCMDHQ
        Animation          = TRCMDHQ.TRCMDHQ
        AnimationMode      = LOOP
        Flags              = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
        HideSubObject      = FLAGPOLE MAST FLAG01 FLAG02 FLAG03 FLAG04 DISH POST
      End
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED
        Model              = TRCMDHQ_D
        Animation          = TRCMDHQ_D.TRCMDHQ_D
        AnimationMode      = LOOP
        Flags              = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
        HideSubObject      = FLAGPOLE MAST FLAG01 FLAG02 FLAG03 FLAG04 DISH POST
      End
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED
        Model              = TRCMDHQ_E
        Animation          = TRCMDHQ_E.TRCMDHQ_E
        AnimationMode      = LOOP
        Flags              = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
        HideSubObject      = FLAGPOLE MAST FLAG01 FLAG02 FLAG03 FLAG04 DISH POST
      End
    End
  End
  ; the vehicle gate's two leaves, shut by default; damage leaves them as they are, rubble has no gate.
  ; The best match counts the bits a state shares with the object's, so damage on its own would pick
  ; the AWAITING_CONSTRUCTION DAMAGED alias (no model) over the default: every door state names its
  ; damaged forms outright.
  ReplaceModule ModuleTag_04
    Draw = W3DModelDraw ModuleTag_04_Turkiye
      OkToChangeModelColor = Yes
      DefaultConditionState
        Model              = TRCMDHQ_DR
        Animation          = TRCMDHQ_DR.TRCMDHQ_DR
        AnimationMode      = MANUAL
        Flags              = START_FRAME_FIRST
      End
      ConditionState       = DAMAGED
        Model              = TRCMDHQ_DR
        Animation          = TRCMDHQ_DR.TRCMDHQ_DR
        AnimationMode      = MANUAL
        Flags              = START_FRAME_FIRST
      End
      AliasConditionState  = REALLYDAMAGED
      ConditionState       = DOOR_1_OPENING
        Model              = TRCMDHQ_DR
        Animation          = TRCMDHQ_DR.TRCMDHQ_DR
        AnimationMode      = ONCE
        Flags              = START_FRAME_FIRST
      End
      AliasConditionState  = DOOR_1_OPENING DAMAGED
      AliasConditionState  = DOOR_1_OPENING REALLYDAMAGED
      ConditionState       = DOOR_1_WAITING_OPEN
        Model              = TRCMDHQ_DR
        Animation          = TRCMDHQ_DR.TRCMDHQ_DR
        AnimationMode      = MANUAL
        Flags              = START_FRAME_LAST
      End
      AliasConditionState  = DOOR_1_WAITING_OPEN DAMAGED
      AliasConditionState  = DOOR_1_WAITING_OPEN REALLYDAMAGED
      ConditionState       = DOOR_1_CLOSING
        Model              = TRCMDHQ_DR
        Animation          = TRCMDHQ_DR.TRCMDHQ_DR
        AnimationMode      = ONCE_BACKWARDS
        Flags              = START_FRAME_LAST
      End
      AliasConditionState  = DOOR_1_CLOSING DAMAGED
      AliasConditionState  = DOOR_1_CLOSING REALLYDAMAGED
      ConditionState       = RUBBLE
        Model              = NONE
      End
      AliasConditionState  = REALLYDAMAGED RUBBLE
      AliasConditionState  = RUBBLE DOOR_1_OPENING
      AliasConditionState  = RUBBLE DOOR_1_WAITING_OPEN
      AliasConditionState  = RUBBLE DOOR_1_CLOSING
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED
        Model              = TRCMDHQ_DR
        Animation          = TRCMDHQ_DR.TRCMDHQ_DR
        AnimationMode      = MANUAL
        Flags              = START_FRAME_FIRST ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
      End
      ConditionState       = AWAITING_CONSTRUCTION
        Model              = NONE
      End
      AliasConditionState  = AWAITING_CONSTRUCTION DAMAGED
      AliasConditionState  = AWAITING_CONSTRUCTION REALLYDAMAGED
      AliasConditionState  = SOLD
      AliasConditionState  = SOLD DAMAGED
      AliasConditionState  = SOLD REALLYDAMAGED
    End
  End
  ; the scaffold: only while the building goes up or comes down for a sale, never height-adjusted
  ReplaceModule ModuleTag_05
    Draw = W3DModelDraw ModuleTag_05_Turkiye
      DefaultConditionState
        Model              = NONE
      End
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED
        Model              = TRCMDHQ_SC
      End
    End
  End
  ; units are made deep in the garage behind the gate, out of the camera's sight with the leaves
  ; open, and walk out through it to the same natural rally point
  ReplaceModule ModuleTag_13
    Behavior = DefaultProductionExitUpdate ModuleTag_13_Turkiye
      UnitCreatePoint      = X:-6.0  Y:34.5  Z:0.0
      NaturalRallyPoint    = X:60.0  Y:35.0  Z:0.0
    End
  End
  RemoveModule ModuleTag_02
  RemoveModule ModuleTag_03
  RemoveModule ModuleTag_06
  RemoveModule ModuleTag_07
  RemoveModule ModuleTag_OfficersClub
End

ObjectReskin TurkiyePowerPlant AmericaPowerPlant
End

Object TurkiyePowerPlant
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyePowerPlant
  ; Its own model: concept A, the Silahtaraga turbine hall. A long whitewashed hall in the First
  ; National style with two rows of tall pointed windows, a cornice over brackets and a lead-grey
  ; hipped roof with a glazed clerestory; a boiler house with a parapet terrace and one stout square
  ; stone chimney; a small office under a red-tile hip; a switchyard of three transformers under two
  ; steel portals. TRPWRPLT, its upgraded form TRPWRPLT_U (the hall's windows lit), its damaged,
  ; burning and rubble states TRPWRPLT_D, _E and _R and the construction scaffold TRPWRPLT_SC in
  ; Code/Data/Art/W3D, the TRPwrPlt_*.tga and ZHCA_TRPwrPlt.tga textures in Code/Data/Art/Textures,
  ; all made by experiments/proofs/2026-11-04/powerplant in the workspace. The logic is retail
  ; AmericaPowerPlant's untouched: footprint, GeometryHeight, the Advanced Control Rods upgrade. Two
  ; draw modules take the place of retail's five: the plant and the scaffold. Night and snow draw
  ; the day models. Steam rises from the chimney; the upgraded plant sparks on its portals.
  ReplaceModule ModuleTag_01
    Draw = W3DModelDraw ModuleTag_01_Turkiye
      OkToChangeModelColor = Yes
      ConditionState       = NONE
        Model              = TRPWRPLT
        Animation          = TRPWRPLT.TRPWRPLT
        AnimationMode      = LOOP
        ParticleSysBone    = STEAM01 SteamVent
      End
      ConditionState       = POWER_PLANT_UPGRADED
        Model              = TRPWRPLT_U
        Animation          = TRPWRPLT_U.TRPWRPLT_U
        AnimationMode      = LOOP
        ParticleSysBone    = STEAM01 SteamVent
        ParticleSysBone    = SPARK01 LiveWireSparks
        ParticleSysBone    = SPARK02 LiveWireSparks02
        ParticleSysBone    = SPARK03 LiveWireSparks
        ParticleSysBone    = SPARK04 LiveWireSparks02
        ParticleSysBone    = SPARK05 LiveWireSparks
        ParticleSysBone    = SPARK06 LiveWireSparks02
      End
      ConditionState       = AWAITING_CONSTRUCTION
        Model              = NONE
      End
      AliasConditionState  = AWAITING_CONSTRUCTION DAMAGED
      AliasConditionState  = AWAITING_CONSTRUCTION REALLYDAMAGED
      AliasConditionState  = SOLD
      AliasConditionState  = SOLD DAMAGED
      AliasConditionState  = SOLD REALLYDAMAGED
      AliasConditionState  = SOLD POWER_PLANT_UPGRADED
      AliasConditionState  = SOLD DAMAGED POWER_PLANT_UPGRADED
      AliasConditionState  = SOLD REALLYDAMAGED POWER_PLANT_UPGRADED
      ConditionState       = DAMAGED
        Model              = TRPWRPLT_D
        Animation          = TRPWRPLT_D.TRPWRPLT_D
        AnimationMode      = LOOP
        ParticleSysBone    = STEAM01 SteamVent
        ParticleSysBone    = SPARK02 LiveWireSparks
        ParticleSysBone    = SPARK05 LiveWireSparks
      End
      ConditionState       = DAMAGED POWER_PLANT_UPGRADED
        Model              = TRPWRPLT_D
        Animation          = TRPWRPLT_D.TRPWRPLT_D
        AnimationMode      = LOOP
        ParticleSysBone    = STEAM01 SteamVent
        ParticleSysBone    = SPARK01 LiveWireSparks
        ParticleSysBone    = SPARK02 LiveWireSparks02
        ParticleSysBone    = SPARK04 LiveWireSparks
        ParticleSysBone    = SPARK05 LiveWireSparks02
      End
      ConditionState       = REALLYDAMAGED
        Model              = TRPWRPLT_E
        ParticleSysBone    = STEAM01 SmolderingSmoke
        ParticleSysBone    = SPARK01 LiveWireSparks
        ParticleSysBone    = SPARK05 LiveWireSparks02
      End
      AliasConditionState  = REALLYDAMAGED POWER_PLANT_UPGRADED
      ConditionState       = RUBBLE
        Model              = TRPWRPLT_R
      End
      AliasConditionState  = REALLYDAMAGED RUBBLE
      AliasConditionState  = RUBBLE POWER_PLANT_UPGRADED
      AliasConditionState  = REALLYDAMAGED RUBBLE POWER_PLANT_UPGRADED
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED
        Model              = TRPWRPLT
        Flags              = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
      End
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED
        Model              = TRPWRPLT_D
        Flags              = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
      End
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED
        Model              = TRPWRPLT_E
        Flags              = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
      End
    End
  End
  ; the scaffold: only while the plant goes up or comes down for a sale, never height-adjusted
  ReplaceModule ModuleTag_02
    Draw = W3DModelDraw ModuleTag_02_Turkiye
      DefaultConditionState
        Model              = NONE
      End
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED
        Model              = TRPWRPLT_SC
      End
    End
  End
  RemoveModule ModuleTag_03
  RemoveModule ModuleTag_04
  RemoveModule ModuleTag_05
End

; The Supply Center's free gatherer is a Turkiye supply truck. Turkiye has no supply drop zone,
; hacker or black market, so the center itself pays a trickle, a black market's: 20 every 2
; seconds. Without it a Hard Turkiye AI earned 77% of what America's did per minute, 50% of China's
; and 32% of GLA's.

ObjectReskin TurkiyeSupplyCenter AmericaSupplyCenter
End

Object TurkiyeSupplyCenter
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyeSupplyCenter
  CommandSet = TurkiyeSupplyCenterCommandSet
  AddModule
    Behavior = AutoDepositUpdate ModuleTag_TurkiyeIncome
      DepositTiming       = 2000
      DepositAmount       = 20
      InitialCaptureBonus = 0
    End
  End
  ReplaceModule ModuleTag_12
    Behavior            = SpawnBehavior ModuleTag_12_Turkiye
      SpawnNumber       = 1
      SpawnReplaceDelay = 9999
      SpawnTemplateName = TurkiyeVehicleSupplyTruck
      OneShot           = Yes
      CanReclaimOrphans = No
      SlavesHaveFreeWill = Yes
    End
  End
End

ObjectReskin TurkiyeBarracks AmericaBarracks
End

Object TurkiyeBarracks
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyeBarracks
  CommandSet = TurkiyeBarracksCommandSet
End

ObjectReskin TurkiyeWarFactory AmericaWarFactory
End

Object TurkiyeWarFactory
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyeWarFactory
  CommandSet = TurkiyeWarFactoryCommandSet
End

ObjectReskin TurkiyeAirfield AmericaAirfield
End

Object TurkiyeAirfield
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyeAirfield
  CommandSet = TurkiyeAirfieldCommandSet
  ; Its own model: concept C, the hardened fortress field. Four earth-covered hardened shelters
  ; hold the hangar spots, each behind an up-and-over steel door in team-coloured panels; in the far
  ; corner a whitewashed stone keep on a battered foot with a crown portal, crenellated parapets
  ; and a square stone control tower whose glazed cab sits under a lead pyramid, an approach radar
  ; turning on a lattice mast on the keep's roof; a crew kiosk under a red-tile hip by the helipad.
  ; TRAIRFLD and its damaged, burning and rubble states TRAIRFLD_D, _E and _R, the four doors
  ; TRAIRFLD_DR1 to _DR4 and the construction scaffold TRAIRFLD_SC in Code/Data/Art/W3D, the
  ; TRAirfld_*.tga and ZHCA_TRAirfld.tga textures in Code/Data/Art/Textures, all made by
  ; experiments/proofs/2026-11-02/airfield in the workspace. The logic is retail AmericaAirfield's
  ; untouched: every model carries the 17 public bones where ABArFrcCmd has them, the footprint,
  ; GeometryHeight, ParkingPlaceBehavior and ProductionUpdate (four doors, 2 s to open) stay.
  ; Five draw modules take the place of retail's nine: the field, the four doors (DOOR_1 to DOOR_4,
  ; the parking spaces in ParkingPlaceBehavior's order), the scaffold. Night and snow draw the day
  ; models. Construction sinks the field into the ground as retail's does, with the painted stands
  ; (MARKS) and the radar hidden and the doors not drawn, inside a scaffold round the keep and a cage
  ; round the tower. The blinking production lights, the American fence and crane go.
  ReplaceModule ModuleTag_01
    Draw = W3DModelDraw ModuleTag_01_Turkiye
      ExtraPublicBone = Runway1Parking1
      ExtraPublicBone = Runway1Parking2
      ExtraPublicBone = Runway2Parking1
      ExtraPublicBone = Runway2Parking2
      ExtraPublicBone = Runway1Park1Han
      ExtraPublicBone = Runway1Park2Han
      ExtraPublicBone = Runway2Park1Han
      ExtraPublicBone = Runway2Park2Han
      ExtraPublicBone = Runway1Prep1
      ExtraPublicBone = Runway1Prep2
      ExtraPublicBone = Runway2Prep1
      ExtraPublicBone = Runway2Prep2
      ExtraPublicBone = RunwayStart1
      ExtraPublicBone = RunwayStart2
      ExtraPublicBone = RunwayEnd1
      ExtraPublicBone = RunwayEnd2
      ExtraPublicBone = HeliPark01
      OkToChangeModelColor = Yes
      ConditionState       = NONE
        Model              = TRAIRFLD
        Animation          = TRAIRFLD.TRAIRFLD
        AnimationMode      = LOOP
        ShowSubObject      = MARKS RADAR
      End
      ConditionState       = AWAITING_CONSTRUCTION
        Model              = NONE
      End
      AliasConditionState  = AWAITING_CONSTRUCTION DAMAGED
      AliasConditionState  = AWAITING_CONSTRUCTION REALLYDAMAGED
      AliasConditionState  = SOLD
      AliasConditionState  = SOLD DAMAGED
      AliasConditionState  = SOLD REALLYDAMAGED
      ConditionState       = DAMAGED
        Model              = TRAIRFLD_D
        Animation          = TRAIRFLD_D.TRAIRFLD_D
        AnimationMode      = LOOP
        ShowSubObject      = MARKS RADAR
      End
      ConditionState       = REALLYDAMAGED
        Model              = TRAIRFLD_E
        ShowSubObject      = MARKS RADAR
      End
      ConditionState       = RUBBLE
        Model              = TRAIRFLD_R
      End
      AliasConditionState  = REALLYDAMAGED RUBBLE
      ; the same models as the finished states, so those show what these hid
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED
        Model              = TRAIRFLD
        Animation          = TRAIRFLD.TRAIRFLD
        AnimationMode      = LOOP
        Flags              = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
        HideSubObject      = MARKS RADAR
      End
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED
        Model              = TRAIRFLD_D
        Animation          = TRAIRFLD_D.TRAIRFLD_D
        AnimationMode      = LOOP
        Flags              = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
        HideSubObject      = MARKS RADAR
      End
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED
        Model              = TRAIRFLD_E
        Flags              = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
        HideSubObject      = MARKS RADAR
      End
    End
  End
  ; The four shelter doors, shut by default; damage leaves them as they are, rubble has no doors,
  ; construction draws none (their team panels would stand outside the scaffold). Every door state
  ; names its damaged forms outright, or damage alone would match the AWAITING_CONSTRUCTION DAMAGED
  ; alias (no model) over the default. DOOR_n is the n-th parking space: 1 and 2 the side row
  ; (Runway1Park1Han, Runway2Park1Han), 3 and 4 the back row (Runway1Park2Han, Runway2Park2Han).
  ReplaceModule ModuleTag_03
    Draw = W3DModelDraw ModuleTag_03_Turkiye
      OkToChangeModelColor = Yes
      DefaultConditionState
        Model              = TRAIRFLD_DR1
        Animation          = TRAIRFLD_DR1.TRAIRFLD_DR1
        AnimationMode      = MANUAL
        Flags              = START_FRAME_FIRST
      End
      ConditionState       = DAMAGED
        Model              = TRAIRFLD_DR1
        Animation          = TRAIRFLD_DR1.TRAIRFLD_DR1
        AnimationMode      = MANUAL
        Flags              = START_FRAME_FIRST
      End
      AliasConditionState  = REALLYDAMAGED
      ConditionState       = DOOR_1_OPENING
        Model              = TRAIRFLD_DR1
        Animation          = TRAIRFLD_DR1.TRAIRFLD_DR1
        AnimationMode      = ONCE
        Flags              = START_FRAME_FIRST
      End
      AliasConditionState  = DOOR_1_OPENING DAMAGED
      AliasConditionState  = DOOR_1_OPENING REALLYDAMAGED
      ConditionState       = DOOR_1_WAITING_OPEN
        Model              = TRAIRFLD_DR1
        Animation          = TRAIRFLD_DR1.TRAIRFLD_DR1
        AnimationMode      = MANUAL
        Flags              = START_FRAME_LAST
      End
      AliasConditionState  = DOOR_1_WAITING_OPEN DAMAGED
      AliasConditionState  = DOOR_1_WAITING_OPEN REALLYDAMAGED
      ConditionState       = DOOR_1_CLOSING
        Model              = TRAIRFLD_DR1
        Animation          = TRAIRFLD_DR1.TRAIRFLD_DR1
        AnimationMode      = ONCE_BACKWARDS
        Flags              = START_FRAME_LAST
      End
      AliasConditionState  = DOOR_1_CLOSING DAMAGED
      AliasConditionState  = DOOR_1_CLOSING REALLYDAMAGED
      ConditionState       = RUBBLE
        Model              = NONE
      End
      AliasConditionState  = REALLYDAMAGED RUBBLE
      AliasConditionState  = RUBBLE DOOR_1_OPENING
      AliasConditionState  = RUBBLE DOOR_1_WAITING_OPEN
      AliasConditionState  = RUBBLE DOOR_1_CLOSING
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED
        Model              = NONE
      End
      AliasConditionState  = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED
      AliasConditionState  = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED
      AliasConditionState  = AWAITING_CONSTRUCTION
      AliasConditionState  = AWAITING_CONSTRUCTION DAMAGED
      AliasConditionState  = AWAITING_CONSTRUCTION REALLYDAMAGED
      AliasConditionState  = SOLD
      AliasConditionState  = SOLD DAMAGED
      AliasConditionState  = SOLD REALLYDAMAGED
    End
  End
  ReplaceModule ModuleTag_04
    Draw = W3DModelDraw ModuleTag_04_Turkiye
      OkToChangeModelColor = Yes
      DefaultConditionState
        Model              = TRAIRFLD_DR2
        Animation          = TRAIRFLD_DR2.TRAIRFLD_DR2
        AnimationMode      = MANUAL
        Flags              = START_FRAME_FIRST
      End
      ConditionState       = DAMAGED
        Model              = TRAIRFLD_DR2
        Animation          = TRAIRFLD_DR2.TRAIRFLD_DR2
        AnimationMode      = MANUAL
        Flags              = START_FRAME_FIRST
      End
      AliasConditionState  = REALLYDAMAGED
      ConditionState       = DOOR_2_OPENING
        Model              = TRAIRFLD_DR2
        Animation          = TRAIRFLD_DR2.TRAIRFLD_DR2
        AnimationMode      = ONCE
        Flags              = START_FRAME_FIRST
      End
      AliasConditionState  = DOOR_2_OPENING DAMAGED
      AliasConditionState  = DOOR_2_OPENING REALLYDAMAGED
      ConditionState       = DOOR_2_WAITING_OPEN
        Model              = TRAIRFLD_DR2
        Animation          = TRAIRFLD_DR2.TRAIRFLD_DR2
        AnimationMode      = MANUAL
        Flags              = START_FRAME_LAST
      End
      AliasConditionState  = DOOR_2_WAITING_OPEN DAMAGED
      AliasConditionState  = DOOR_2_WAITING_OPEN REALLYDAMAGED
      ConditionState       = DOOR_2_CLOSING
        Model              = TRAIRFLD_DR2
        Animation          = TRAIRFLD_DR2.TRAIRFLD_DR2
        AnimationMode      = ONCE_BACKWARDS
        Flags              = START_FRAME_LAST
      End
      AliasConditionState  = DOOR_2_CLOSING DAMAGED
      AliasConditionState  = DOOR_2_CLOSING REALLYDAMAGED
      ConditionState       = RUBBLE
        Model              = NONE
      End
      AliasConditionState  = REALLYDAMAGED RUBBLE
      AliasConditionState  = RUBBLE DOOR_2_OPENING
      AliasConditionState  = RUBBLE DOOR_2_WAITING_OPEN
      AliasConditionState  = RUBBLE DOOR_2_CLOSING
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED
        Model              = NONE
      End
      AliasConditionState  = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED
      AliasConditionState  = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED
      AliasConditionState  = AWAITING_CONSTRUCTION
      AliasConditionState  = AWAITING_CONSTRUCTION DAMAGED
      AliasConditionState  = AWAITING_CONSTRUCTION REALLYDAMAGED
      AliasConditionState  = SOLD
      AliasConditionState  = SOLD DAMAGED
      AliasConditionState  = SOLD REALLYDAMAGED
    End
  End
  ReplaceModule ModuleTag_05
    Draw = W3DModelDraw ModuleTag_05_Turkiye
      OkToChangeModelColor = Yes
      DefaultConditionState
        Model              = TRAIRFLD_DR3
        Animation          = TRAIRFLD_DR3.TRAIRFLD_DR3
        AnimationMode      = MANUAL
        Flags              = START_FRAME_FIRST
      End
      ConditionState       = DAMAGED
        Model              = TRAIRFLD_DR3
        Animation          = TRAIRFLD_DR3.TRAIRFLD_DR3
        AnimationMode      = MANUAL
        Flags              = START_FRAME_FIRST
      End
      AliasConditionState  = REALLYDAMAGED
      ConditionState       = DOOR_3_OPENING
        Model              = TRAIRFLD_DR3
        Animation          = TRAIRFLD_DR3.TRAIRFLD_DR3
        AnimationMode      = ONCE
        Flags              = START_FRAME_FIRST
      End
      AliasConditionState  = DOOR_3_OPENING DAMAGED
      AliasConditionState  = DOOR_3_OPENING REALLYDAMAGED
      ConditionState       = DOOR_3_WAITING_OPEN
        Model              = TRAIRFLD_DR3
        Animation          = TRAIRFLD_DR3.TRAIRFLD_DR3
        AnimationMode      = MANUAL
        Flags              = START_FRAME_LAST
      End
      AliasConditionState  = DOOR_3_WAITING_OPEN DAMAGED
      AliasConditionState  = DOOR_3_WAITING_OPEN REALLYDAMAGED
      ConditionState       = DOOR_3_CLOSING
        Model              = TRAIRFLD_DR3
        Animation          = TRAIRFLD_DR3.TRAIRFLD_DR3
        AnimationMode      = ONCE_BACKWARDS
        Flags              = START_FRAME_LAST
      End
      AliasConditionState  = DOOR_3_CLOSING DAMAGED
      AliasConditionState  = DOOR_3_CLOSING REALLYDAMAGED
      ConditionState       = RUBBLE
        Model              = NONE
      End
      AliasConditionState  = REALLYDAMAGED RUBBLE
      AliasConditionState  = RUBBLE DOOR_3_OPENING
      AliasConditionState  = RUBBLE DOOR_3_WAITING_OPEN
      AliasConditionState  = RUBBLE DOOR_3_CLOSING
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED
        Model              = NONE
      End
      AliasConditionState  = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED
      AliasConditionState  = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED
      AliasConditionState  = AWAITING_CONSTRUCTION
      AliasConditionState  = AWAITING_CONSTRUCTION DAMAGED
      AliasConditionState  = AWAITING_CONSTRUCTION REALLYDAMAGED
      AliasConditionState  = SOLD
      AliasConditionState  = SOLD DAMAGED
      AliasConditionState  = SOLD REALLYDAMAGED
    End
  End
  ReplaceModule ModuleTag_06
    Draw = W3DModelDraw ModuleTag_06_Turkiye
      OkToChangeModelColor = Yes
      DefaultConditionState
        Model              = TRAIRFLD_DR4
        Animation          = TRAIRFLD_DR4.TRAIRFLD_DR4
        AnimationMode      = MANUAL
        Flags              = START_FRAME_FIRST
      End
      ConditionState       = DAMAGED
        Model              = TRAIRFLD_DR4
        Animation          = TRAIRFLD_DR4.TRAIRFLD_DR4
        AnimationMode      = MANUAL
        Flags              = START_FRAME_FIRST
      End
      AliasConditionState  = REALLYDAMAGED
      ConditionState       = DOOR_4_OPENING
        Model              = TRAIRFLD_DR4
        Animation          = TRAIRFLD_DR4.TRAIRFLD_DR4
        AnimationMode      = ONCE
        Flags              = START_FRAME_FIRST
      End
      AliasConditionState  = DOOR_4_OPENING DAMAGED
      AliasConditionState  = DOOR_4_OPENING REALLYDAMAGED
      ConditionState       = DOOR_4_WAITING_OPEN
        Model              = TRAIRFLD_DR4
        Animation          = TRAIRFLD_DR4.TRAIRFLD_DR4
        AnimationMode      = MANUAL
        Flags              = START_FRAME_LAST
      End
      AliasConditionState  = DOOR_4_WAITING_OPEN DAMAGED
      AliasConditionState  = DOOR_4_WAITING_OPEN REALLYDAMAGED
      ConditionState       = DOOR_4_CLOSING
        Model              = TRAIRFLD_DR4
        Animation          = TRAIRFLD_DR4.TRAIRFLD_DR4
        AnimationMode      = ONCE_BACKWARDS
        Flags              = START_FRAME_LAST
      End
      AliasConditionState  = DOOR_4_CLOSING DAMAGED
      AliasConditionState  = DOOR_4_CLOSING REALLYDAMAGED
      ConditionState       = RUBBLE
        Model              = NONE
      End
      AliasConditionState  = REALLYDAMAGED RUBBLE
      AliasConditionState  = RUBBLE DOOR_4_OPENING
      AliasConditionState  = RUBBLE DOOR_4_WAITING_OPEN
      AliasConditionState  = RUBBLE DOOR_4_CLOSING
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED
        Model              = NONE
      End
      AliasConditionState  = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED
      AliasConditionState  = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED
      AliasConditionState  = AWAITING_CONSTRUCTION
      AliasConditionState  = AWAITING_CONSTRUCTION DAMAGED
      AliasConditionState  = AWAITING_CONSTRUCTION REALLYDAMAGED
      AliasConditionState  = SOLD
      AliasConditionState  = SOLD DAMAGED
      AliasConditionState  = SOLD REALLYDAMAGED
    End
  End
  ; the scaffold: only while the field goes up or comes down for a sale, never height-adjusted
  ReplaceModule ModuleTag_08
    Draw = W3DModelDraw ModuleTag_08_Turkiye
      DefaultConditionState
        Model              = NONE
      End
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED
        Model              = TRAIRFLD_SC
      End
    End
  End
  RemoveModule ModuleTag_02
  RemoveModule ModuleTag_07
  RemoveModule ModuleTag_09
End

; The Hisar battery, Turkiye's one fixed air defense: the Patriot under a Turkish name.

ObjectReskin TurkiyePatriotBattery AmericaPatriotBattery
End

Object TurkiyePatriotBattery
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyePatriotBattery
  ; EA's three missiles, radar-guided (TurkiyeWeaponReforged.ini)
  WeaponSet
    Conditions          = None
    Weapon              = PRIMARY     TurkiyePatriotMissileWeapon
    Weapon              = SECONDARY   TurkiyePatriotMissileAssistWeapon
    Weapon              = TERTIARY    TurkiyePatriotMissileWeaponAir
    AutoChooseSources   = PRIMARY     FROM_PLAYER FROM_AI FROM_SCRIPT
    AutoChooseSources   = SECONDARY   NONE
    AutoChooseSources   = TERTIARY    FROM_PLAYER FROM_AI FROM_SCRIPT
    PreferredAgainst    = PRIMARY     VEHICLE INFANTRY
    PreferredAgainst    = SECONDARY   BALLISTIC_MISSILE AIRCRAFT
    PreferredAgainst    = TERTIARY    BALLISTIC_MISSILE AIRCRAFT
    ShareWeaponReloadTime = Yes
  End
  ; Inertial Guidance's mark: the upgrade is this battery's, for the computer player (Weapon.cpp
  ; reads the upgrade itself)
  AddModule
    Behavior = StatusBitsUpgrade ModuleTag_TurkiyeGuidance
      TriggeredBy = Upgrade_TurkiyePrecisionGuidance
    End
  End
  ; Its own model: the hisar, a low round bastion of battered stone after Rumeli Hisari under a
  ; cordon and a team coping, an arched door to the camera; the turntable turns on TURRET01 with its
  ; radar face, and the four-canister launcher rests level on TURRETEL until the natural pitch
  ; raises it, its muzzles WEAPONA01-04. TRPATRIOT, its damaged and burning states TRPATRIOT_D and
  ; _E and the scaffold TRPATRIOT_SC in Code/Data/Art/W3D, made by
  ; experiments/proofs/2026-11-04/defenses in the workspace. The logic is retail
  ; AmericaPatriotBattery's: footprint, height, turret and weapons. Night and snow draw the day models.
  ReplaceModule ModuleTag_01
    Draw = W3DModelDraw ModuleTag_01_Turkiye
      OkToChangeModelColor = Yes
      DefaultConditionState
        Model              = TRPATRIOT
        Turret             = TURRET01
        TurretPitch        = TURRETEL
        WeaponLaunchBone   = PRIMARY WeaponA
        WeaponLaunchBone   = SECONDARY WeaponA
        WeaponLaunchBone   = TERTIARY WeaponA
        WeaponFireFXBone   = PRIMARY WeaponA
        WeaponFireFXBone   = SECONDARY WeaponA
        WeaponFireFXBone   = TERTIARY WeaponA
      End
      ConditionState       = DAMAGED
        Model              = TRPATRIOT_D
      End
      ConditionState       = REALLYDAMAGED RUBBLE
        Model              = TRPATRIOT_E
      End
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED
        Model              = TRPATRIOT
        Flags              = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
      End
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED
        Model              = TRPATRIOT_D
        Flags              = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
      End
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED
        Model              = TRPATRIOT_E
        Flags              = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
      End
      ConditionState       = AWAITING_CONSTRUCTION
        Model              = NONE
      End
      AliasConditionState  = AWAITING_CONSTRUCTION DAMAGED
      AliasConditionState  = AWAITING_CONSTRUCTION REALLYDAMAGED
      AliasConditionState  = SOLD
      AliasConditionState  = SOLD DAMAGED
      AliasConditionState  = SOLD REALLYDAMAGED
    End
  End
  ; the scaffold: only while the battery goes up, never height-adjusted
  ReplaceModule ModuleTag_02
    Draw = W3DModelDraw ModuleTag_02_Turkiye
      DefaultConditionState
        Model              = NONE
      End
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED
        Model              = TRPATRIOT_SC
      End
    End
  End
  RemoveModule ModuleTag_03
End

; The Siper: a trench bunker five infantry fire out of, China's Bunker under a Turkish name. The
; engineers put it up wherever they stand, so the army advances, digs in, spots and shells. It is
; Turkiye's answer to the ground: Mehmetcik in it hold off infantry, Sungur gunners hold off tanks.

ObjectReskin TurkiyeSiper ChinaBunker
End

Object TurkiyeSiper
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyeSiper
  BuildCost  = 500
  BuildTime  = 8.0
  VisionRange         = 200
  ShroudClearingRange = 200
  CommandSet = TurkiyeSiperCommandSet
  Prerequisites
    Object = TurkiyeBarracks
  End
  ; the Barracks' Reinforced Siper: half as much again, 1500 to 2250
  AddModule
    Behavior = MaxHealthUpgrade ModuleTag_TurkiyeSiperReinforced
      TriggeredBy  = Upgrade_TurkiyeSiperReinforced
      AddMaxHealth = 750.0
      ChangeType   = ADD_CURRENT_HEALTH_TOO
    End
  End
  ; Its own model: the tabya, a kite-shaped Ottoman stone battery whose salient points at the
  ; camera, battered cut stone under a team cordon and a grassed parapet, embrasures in the two
  ; faces the camera sees, four sandbagged firing pits where the garrison's fire points are, a
  ; lead-roofed magazine, an arched gorge entrance. TRSIPER, its damaged and breached states
  ; TRSIPER_D and _E, the garrisoned looks _G, _DG and _EG (gun barrels in the pits, ammunition
  ; boxes) and the scaffold TRSIPER_SC in Code/Data/Art/W3D, made by
  ; experiments/proofs/2026-11-04/defenses in the workspace. The logic is retail ChinaBunker's:
  ; footprint, height, FIREPOINT01-04. Night and snow draw the day models.
  ReplaceModule ModuleTag_01
    Draw = W3DModelDraw ModuleTag_01_Turkiye
      OkToChangeModelColor = Yes
      ConditionState       = NONE
        Model              = TRSIPER
      End
      ConditionState       = DAMAGED
        Model              = TRSIPER_D
        ParticleSysBone    = Fire01 SmolderingFire
        ParticleSysBone    = Smoke01 SmolderingSmoke
        ParticleSysBone    = Fire01 SmolderingFlameCore
        ParticleSysBone    = Fire02 SmolderingFire
        ParticleSysBone    = Smoke02 SmolderingSmoke
        ParticleSysBone    = Fire02 SmolderingFlameCore
      End
      ConditionState       = REALLYDAMAGED RUBBLE
        Model              = TRSIPER_E
        ParticleSysBone    = Fire01 SmolderingFire
        ParticleSysBone    = Fire01 SmolderingFlameCore
        ParticleSysBone    = Fire02 SmolderingFire
        ParticleSysBone    = Fire02 SmolderingFlameCore
        ParticleSysBone    = Fire03 SmolderingFire
        ParticleSysBone    = Fire04 SmolderingFire
        ParticleSysBone    = Fire05 SmolderingFire
        ParticleSysBone    = Smoke01 SmolderingSmoke
        ParticleSysBone    = Smoke02 SmolderingSmoke
        ParticleSysBone    = Smoke03 SmolderingSmoke
        ParticleSysBone    = Smoke04 SmolderingSmoke
        ParticleSysBone    = Smoke05 SmolderingSmoke
      End
      ConditionState       = GARRISONED
        Model              = TRSIPER_G
      End
      ConditionState       = DAMAGED GARRISONED
        Model              = TRSIPER_DG
        ParticleSysBone    = Fire01 SmolderingFire
        ParticleSysBone    = Smoke01 SmolderingSmoke
        ParticleSysBone    = Fire02 SmolderingFire
        ParticleSysBone    = Smoke02 SmolderingSmoke
      End
      ConditionState       = REALLYDAMAGED RUBBLE GARRISONED
        Model              = TRSIPER_EG
        ParticleSysBone    = Fire01 SmolderingFire
        ParticleSysBone    = Fire02 SmolderingFire
        ParticleSysBone    = Fire03 SmolderingFire
        ParticleSysBone    = Smoke01 SmolderingSmoke
        ParticleSysBone    = Smoke02 SmolderingSmoke
        ParticleSysBone    = Smoke05 SmolderingSmoke
      End
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED
        Model              = TRSIPER
        Flags              = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
      End
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED
        Model              = TRSIPER_D
        Flags              = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
      End
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED
        Model              = TRSIPER_E
        Flags              = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
      End
      ConditionState       = AWAITING_CONSTRUCTION
        Model              = NONE
      End
      AliasConditionState  = AWAITING_CONSTRUCTION DAMAGED
      AliasConditionState  = AWAITING_CONSTRUCTION REALLYDAMAGED
      AliasConditionState  = SOLD
      AliasConditionState  = SOLD DAMAGED
      AliasConditionState  = SOLD REALLYDAMAGED
      AliasConditionState  = SOLD GARRISONED
      AliasConditionState  = SOLD DAMAGED GARRISONED
      AliasConditionState  = SOLD REALLYDAMAGED GARRISONED
    End
  End
  ; the scaffold: only while the Siper goes up, never height-adjusted
  ReplaceModule ModuleTag_02
    Draw = W3DModelDraw ModuleTag_02_Turkiye
      DefaultConditionState
        Model              = NONE
      End
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED
        Model              = TRSIPER_SC
      End
    End
  End
  RemoveModule ModuleTag_03
  RemoveModule ModuleTag_04
End

; The Radar Kulesi is the fixed eye the artillery fires through: 500 vision, no weapon, no
; speaker. The China Speaker Tower lends it a body and nothing else. Sight is what Turkiye pays
; for, so it costs 800 and draws power.

ObjectReskin TurkiyeRadarTower ChinaSpeakerTower
End

Object TurkiyeRadarTower
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyeRadarTower
  BuildCost  = 800
  BuildTime  = 15.0
  EnergyProduction    = -3
  VisionRange         = 500
  ShroudClearingRange = 500
  ; it researches Hedef Siniflandirma with the Speaker Tower's ProductionUpdate (ModuleTag_10)
  CommandSet = TurkiyeRadarTowerCommandSet
  KindOf     = -FS_BASE_DEFENSE
  RemoveModule ModuleTag_06
  RemoveModule ModuleTag_11
  RemoveModule ModuleTag_25
  RemoveModule ModuleTag_26
  Prerequisites
    Object = TurkiyePowerPlant
  End
  ; the widest radar circle, while it has power
  AddModule
    Behavior = RadarCoverageBehavior ModuleTag_TurkiyeRadarCoverage
      Radius          = 1000
      RadiusUpgrade   = Upgrade_TurkiyeEarlyWarning 1.25
      ClassifyUpgrade = Upgrade_TurkiyeTargetClassification
    End
  End
  ReplaceModule ModuleTag_05
    Body = StructureBody ModuleTag_05_Turkiye
    MaxHealth              = 500.0
    InitialHealth          = 500.0
    SubdualDamageCap = 500
    SubdualDamageHealRate = 500
    SubdualDamageHealAmount = 100
    End
  End
  ; Its own model: the kule, a stout square stone tower after Selimiye's corner towers, a watch room
  ; on stone brackets under a low lead hipped cap, the radar bar turning on top. TRRADAR, its damaged
  ; and broken states TRRADAR_D and _E and the scaffold TRRADAR_SC in Code/Data/Art/W3D, made by
  ; experiments/proofs/2026-11-04/defenses in the workspace. The logic is untouched. Night and snow
  ; draw the day models.
  ReplaceModule ModuleTag_01
    Draw = W3DModelDraw ModuleTag_01_Turkiye
      OkToChangeModelColor = Yes
      ConditionState       = NONE
        Model              = TRRADAR
        Animation          = TRRADAR.TRRADAR
        AnimationMode      = LOOP
      End
      ConditionState       = DAMAGED
        Model              = TRRADAR_D
        Animation          = TRRADAR_D.TRRADAR_D
        AnimationMode      = LOOP
        ParticleSysBone    = Smoke01 SmolderingSmoke
      End
      ConditionState       = REALLYDAMAGED RUBBLE
        Model              = TRRADAR_E
        ParticleSysBone    = Smoke01 SmolderingSmoke
        ParticleSysBone    = Smoke02 SmolderingSmoke
        ParticleSysBone    = Flame01 SmolderingFire
        ParticleSysBone    = Flame01 SmolderingFlameCore
        ParticleSysBone    = Spark01 LiveWireSparks
      End
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED
        Model              = TRRADAR
        Animation          = TRRADAR.TRRADAR
        AnimationMode      = LOOP
        Flags              = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
      End
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED
        Model              = TRRADAR_D
        Animation          = TRRADAR_D.TRRADAR_D
        AnimationMode      = LOOP
        Flags              = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
      End
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED
        Model              = TRRADAR_E
        Flags              = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
      End
      ConditionState       = AWAITING_CONSTRUCTION
        Model              = NONE
      End
      AliasConditionState  = AWAITING_CONSTRUCTION DAMAGED
      AliasConditionState  = AWAITING_CONSTRUCTION REALLYDAMAGED
      AliasConditionState  = SOLD
      AliasConditionState  = SOLD DAMAGED
      AliasConditionState  = SOLD REALLYDAMAGED
    End
  End
  ; the scaffold: only while the tower goes up, never height-adjusted
  ReplaceModule ModuleTag_02
    Draw = W3DModelDraw ModuleTag_02_Turkiye
      DefaultConditionState
        Model              = NONE
      End
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED
        Model              = TRRADAR_SC
      End
    End
  End
  RemoveModule ModuleTag_03
  RemoveModule ModuleTag_04
End

; The Harekat Merkezi, Turkiye's technology building: the Strategy Center under a Turkish name, its
; gun, its three battle plans and its 2500 price, and what opens the Kargu base, the way the
; Strategy Center opens the Particle Cannon. Being that reskin, it is what the engineer puts up
; where America's scripts ask for a Strategy Center, and the tech building AIPlayer::doSuperweapons
; raises before the superweapon. It researches the two American upgrades the Turkish units carry
; unchanged from their sources, Advanced Training and Chemical Suits. Composite Armor stays off its
; bar because the Factory's Reinforced Hull already covers the tanks, and Supply Lines because
; nothing Turkish gathers by Chinook. CIA Intelligence needs an American science.

ObjectReskin TurkiyeHarekatMerkezi AmericaStrategyCenter
End

Object TurkiyeHarekatMerkezi
  Side        = Turkiye
  DisplayName = OBJECT:TurkiyeHarekatMerkezi
  CommandSet  = TurkiyeHarekatMerkeziCommandSet
  Prerequisites
    Object = TurkiyeWarFactory TurkiyeAirfield
  End
  ; CIA Intelligence, which no Turkiye button fires: its enum is Uydu Gudum's now, and the shortcut
  ; bar finds a power's source by enum
  RemoveModule SpyTag_1
  RemoveModule SpyTag_2
End

; The Kapalicarsi, Turkiye's black market: GLA's under a Turkish name, 2500, paying 20 every 2
; seconds as it does for GLA, open once a Factory stands. It sells the two bought upgrades whose
; modules the Turkish units carry from their sources: Countermeasures for the Bayraktar, the Akinci
; and the Kizilelma (the Comanche's, Aurora's and Raptor's flares and armour), and Worker Shoes for
; the engineers, who are the GLA Worker. GLA's other black market upgrades reach no Turkish unit.
; Its rebuild hole goes (ModuleTag_08): the hole sends a GLA Worker to put it back up, and Turkiye's
; engineers are no free gift. Nothing in America's scripts asks for one, so the build list puts it
; up by itself (AIDataReforged.ini).

ObjectReskin TurkiyeKapalicarsi GLABlackMarket
End

Object TurkiyeKapalicarsi
  Side        = Turkiye
  DisplayName = OBJECT:TurkiyeKapalicarsi
  CommandSet  = TurkiyeKapalicarsiCommandSet
  Prerequisites
    Object = TurkiyeWarFactory
  End
  RemoveModule ModuleTag_08
End

; The Kargu base, Turkiye's superweapon: a drone airfield whose swarm of sixteen kamikaze drones
; flies out to the sixteen dearest targets in a wide circle and dives into them. With fewer than
; sixteen targets in the circle the spare drones go round them again, dearest first. The drones are
; jets (TurkiyeKarguDrone): each one starts on the threshold of one of the two runways, rolls down
; it and climbs away, the runways in turn, one drone every quarter second, so the last is rolling
; under four seconds after the call (ParkingPlaceBehavior::scramble). It is China's airfield, so it looks nothing like Turkiye's own,
; the American one, and it carries what the Particle Cannon lent it before: price, build time,
; power draw, health and armour, the superweapon limit and the public countdown. The Harekat
; Merkezi opens it, as the Strategy Center opens the cannon. It is no FS_AIRFIELD: with it the computer held the base back as an
; extra airfield its jets did not need yet and never built it, no jet lands here and the
; select-airfields key leaves it out. A jet takes off from a superweapon's parking as from an
; airfield's (JetAIUpdate's getPP). The power's enum is the Scud Storm's, the nearest EVA has: the
; announcements say Scud Storm until Turkiye has voices of its own.

ObjectReskin TurkiyeKarguBase ChinaAirfield
End

Object TurkiyeKarguBase
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyeKarguBase
  CommandSet = TurkiyeKarguBaseCommandSet
  Prerequisites
    Object = TurkiyeHarekatMerkezi
  End
  BuildCost        = 5000
  BuildTime        = 60.0
  EnergyProduction = -10
  ShroudRevealToAllRange = 60
  ArmorSet
    Conditions = None
    Armor      = StructureArmorTough
    DamageFX   = StructureDamageFXNoShake
  End
  ExperienceValue       = 400 400 400 400
  MaxSimultaneousOfType = DeterminedBySuperweaponRestriction
  MaxSimultaneousLinkKey = Superweapon
  VoiceSelect = AirfieldUSASelect
  KindOf = PRELOAD STRUCTURE SELECTABLE IMMOBILE SCORE CAPTURABLE FS_TECHNOLOGY POWERED MP_COUNT_FOR_VICTORY FS_SUPERWEAPON
  ReplaceModule ModuleTag_09
    Body = StructureBody ModuleTag_09_Turkiye
      MaxHealth       = 4000.0
      InitialHealth   = 4000.0
      SubdualDamageCap = 4200
      SubdualDamageHealRate = 500
      SubdualDamageHealAmount = 100
    End
  End
  ; China's airfield, but a drone's climb out ends at 30 rather than 50, and a space for each of the
  ; sixteen drones: they start on the runways, eight to a runway, so only the runway of a space counts
  ReplaceModule ModuleTag_10
    Behavior = ParkingPlaceBehavior ModuleTag_10_Turkiye
      HealAmountPerSecond = 10
      NumRows             = 8
      NumCols             = 2
      HasRunways          = Yes
      ApproachHeight      = 30
      ParkInHangars       = Yes
    End
  End
  AddModule
    Behavior = BaseRegenerateUpdate ModuleTag_TurkiyeKarguRegenerate
    End
  End
  AddModule
    Behavior = SpecialPowerCreate ModuleTag_TurkiyeKarguPowerCreate
    End
  End
  AddModule
    Behavior = SwarmStrikeSpecialPower ModuleTag_TurkiyeKarguSwarm
      SpecialPowerTemplate = SuperweaponTurkiyeKarguSwarm
      Radius               = 350
      TargetCount          = 16
      RepeatTargets        = Yes
      Drone                = TurkiyeKarguDrone
    End
  End
End

; The engineers' mine, open once the Barracks has researched the Mine Kit.

ObjectReskin TurkiyeLandMine GLADemoTrap
End

Object TurkiyeLandMine
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyeLandMine
  BuildCost  = 200
  BuildTime  = 5.0
  VisionRange         = 150
  ShroudClearingRange = 150
  Prerequisites
  End
  ReplaceModule ModuleTag_02
    Body = StructureBody ModuleTag_02_Turkiye
    MaxHealth              = 100.0
    InitialHealth          = 100.0
    End
  End
  ; Its own model: an anti-tank mine half dug into a mound of turned earth with a team triangle on a
  ; stake beside it, low and mostly buried. TRMINE in Code/Data/Art/W3D, made by
  ; experiments/proofs/2026-11-04/defenses in the workspace, one model for every state as retail
  ; GLADemoTrap's. The logic is untouched.
  ReplaceModule ModuleTag_01
    Draw = W3DModelDraw ModuleTag_01_Turkiye
      OkToChangeModelColor = Yes
      DefaultConditionState
        Model              = TRMINE
      End
      AliasConditionState  = DAMAGED
      AliasConditionState  = REALLYDAMAGED
      AliasConditionState  = RUBBLE
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED
        Model              = TRMINE
        Flags              = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
      End
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED
        Model              = TRMINE
        Flags              = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
      End
      ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED
        Model              = TRMINE
        Flags              = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
      End
      ConditionState       = AWAITING_CONSTRUCTION
        Model              = NONE
      End
      AliasConditionState  = AWAITING_CONSTRUCTION DAMAGED
      AliasConditionState  = AWAITING_CONSTRUCTION REALLYDAMAGED
      AliasConditionState  = SOLD DAMAGED
      AliasConditionState  = SOLD REALLYDAMAGED
    End
  End
End

; ==== Barracks ====================================================================================

ObjectReskin TurkiyeInfantryMehmetcik AmericaInfantryRanger
End

Object TurkiyeInfantryMehmetcik
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyeInfantryMehmetcik
  SpeedScale = 0.9
  BuildCost  = 240
  BuildTime  = 5.0
  VisionRange         = 150
  ShroudClearingRange = 150
  CommandSet = TurkiyeMehmetcikCommandSet
  Prerequisites
    Object = TurkiyeBarracks
  End
  ; the Ranger's flash-bang set too, which Turkiye never buys, so neither set throws a grenade
  WeaponSet
    Conditions = None
    Weapon = PRIMARY TurkiyeMehmetcikRifle
  End
  WeaponSet
    Conditions = PLAYER_UPGRADE
    Weapon = PRIMARY TurkiyeMehmetcikRifle
  End
  ReplaceModule ModuleTag_03
    Body = ActiveBody ModuleTag_03_Turkiye
    MaxHealth              = 200.0
    InitialHealth          = 200.0
    End
  End
  ; His own model, TRMEHM_SKN, and his own animations, TRMEHM_*, all in Code/Data/Art/W3D and made
  ; by experiments/proofs/2026-10-26/mehmetcik in the workspace. Both sit on the Red Guard's skeleton,
  ; so the parachute still plays the Red Guard's drop and capturing a building still swaps in his flag
  ; carrier, NICNSC_F_SKN. Idle is a low ready with three fidgets (sector scan, press check, a salute
  ; at attention); hurt, he hunches with a hand on his side and fires from one knee. The fire loop is one
  ; burst of TurkiyeMehmetcikRifle, three kicks 100 ms apart in 900 ms. The run carries the rifle
  ; across the chest, the walk while closing on a target keeps it in the shoulder, and each gait's
  ; distance is the ground one cycle covers, so his feet do not slide. The Ranger's flash-bang and
  ; rappel states went with the Ranger's draw: Turkiye never buys the grenade, and rappelling falls
  ; back to standing.
  ReplaceModule ModuleTag_01
    Draw = W3DModelDraw ModuleTag_01_Turkiye
      OkToChangeModelColor = Yes
      IgnoreConditionStates = PREATTACK_A FIRING_A BETWEEN_FIRING_SHOTS_A RELOADING_A
      DefaultConditionState
        Model             = TRMEHM_SKN
        IdleAnimation     = NICNSC_SKL.TRMEHM_STA 0 6
        IdleAnimation     = NICNSC_SKL.TRMEHM_IDA
        IdleAnimation     = NICNSC_SKL.TRMEHM_IDB
        IdleAnimation     = NICNSC_SKL.TRMEHM_IDC
        AnimationMode     = ONCE
        WeaponFireFXBone  = PRIMARY Muzzle
        WeaponMuzzleFlash = PRIMARY MuzzleFX
        TransitionKey     = TRANS_Stand
      End
      ConditionState      = REALLYDAMAGED
        IdleAnimation     = NICNSC_SKL.TRMEHM_STB
        AnimationMode     = ONCE
        TransitionKey     = TRANS_StandDamaged
      End
      ConditionState      = USING_WEAPON_A
        Animation         = NICNSC_SKL.TRMEHM_ATA
        AnimationMode     = LOOP
        TransitionKey     = TRANS_Firing
      End
      ConditionState      = USING_WEAPON_A REALLYDAMAGED
        Animation         = NICNSC_SKL.TRMEHM_ATC
        AnimationMode     = LOOP
        TransitionKey     = TRANS_FiringDamaged
      End
      TransitionState     = TRANS_Firing TRANS_FiringDamaged
        Animation         = NICNSC_SKL.TRMEHM_AA2AC
        AnimationMode     = ONCE
      End
      TransitionState     = TRANS_Stand TRANS_Firing
        Animation         = NICNSC_SKL.TRMEHM_SA2AA
        AnimationMode     = ONCE
      End
      TransitionState     = TRANS_Firing TRANS_Stand
        Animation         = NICNSC_SKL.TRMEHM_AA2SA
        AnimationMode     = ONCE
      End
      TransitionState     = TRANS_StandDamaged TRANS_FiringDamaged
        Animation         = NICNSC_SKL.TRMEHM_ATCST
        AnimationMode     = ONCE
      End
      TransitionState     = TRANS_FiringDamaged TRANS_StandDamaged
        Animation         = NICNSC_SKL.TRMEHM_ATCED
        AnimationMode     = ONCE
      End
      TransitionState     = TRANS_Stand TRANS_StandDamaged
        Animation         = NICNSC_SKL.TRMEHM_S2SB
        AnimationMode     = ONCE
      End
      ConditionState      = FREEFALL
        Animation         = NICNSC_SKL.NICNSC_POP
        AnimationMode     = MANUAL
        Flags             = START_FRAME_FIRST
        TransitionKey     = TRANS_Falling
      End
      AliasConditionState = FREEFALL REALLYDAMAGED
      AliasConditionState = FREEFALL DYING
      ConditionState      = PARACHUTING
        Animation         = NICNSC_SKL.NICNSC_PHG
        AnimationMode     = LOOP
        Flags             = PRISTINE_BONE_POS_IN_FINAL_FRAME
        TransitionKey     = TRANS_Chute
      End
      AliasConditionState = PARACHUTING REALLYDAMAGED
      AliasConditionState = PARACHUTING DYING
      TransitionState     = TRANS_Falling TRANS_Chute
        Animation         = NICNSC_SKL.NICNSC_POP
        AnimationMode     = ONCE
        Flags             = PRISTINE_BONE_POS_IN_FINAL_FRAME
      End
      TransitionState     = TRANS_Chute TRANS_Stand
        Animation         = NICNSC_SKL.NICNSC_PTD
        AnimationMode     = ONCE
      End
      ConditionState      = MOVING
        Animation         = NICNSC_SKL.TRMEHM_RNA 14
        AnimationMode     = LOOP
        Flags             = RANDOMSTART
        TransitionKey     = None
        ParticleSysBone   = None InfantryDustTrails
      End
      ConditionState      = MOVING ATTACKING
        Animation         = NICNSC_SKL.TRMEHM_WKA 15.5
        AnimationMode     = LOOP
        Flags             = RANDOMSTART
        TransitionKey     = None
        ParticleSysBone   = None InfantryDustTrails
      End
      ConditionState      = MOVING REALLYDAMAGED
        Animation         = NICNSC_SKL.TRMEHM_RNB 10.5
        AnimationMode     = LOOP
        Flags             = RANDOMSTART
        TransitionKey     = None
      End
      AliasConditionState = MOVING ATTACKING REALLYDAMAGED
      ConditionState      = UNPACKING
        Model             = NICNSC_F_SKN
        Animation         = NICNSC_F_SKL.NICNSC_F_FDP1
        AnimationMode     = ONCE
      End
      AliasConditionState = UNPACKING REALLYDAMAGED
      ConditionState      = RAISING_FLAG
        Model             = NICNSC_F_SKN
        Animation         = NICNSC_F_SKL.NICNSC_F_FDP2
        AnimationMode     = ONCE
        TransitionKey     = TRANS_Raising
      End
      AliasConditionState = RAISING_FLAG REALLYDAMAGED
      ConditionState      = PACKING
        Model             = NICNSC_F_SKN
        Animation         = NICNSC_F_SKL.NICNSC_F_FDP1
        AnimationMode     = ONCE_BACKWARDS
        Flags             = START_FRAME_LAST
        TransitionKey     = TRANS_Packing
      End
      AliasConditionState = PACKING REALLYDAMAGED
      TransitionState     = TRANS_Raising TRANS_Packing
        Model             = NICNSC_F_SKN
        Animation         = NICNSC_F_SKL.NICNSC_F_FDP2
        AnimationMode     = ONCE_BACKWARDS
        Flags             = START_FRAME_LAST
      End
      ConditionState      = DYING
        Animation         = NICNSC_SKL.TRMEHM_DTA
        Animation         = NICNSC_SKL.TRMEHM_DTB
        AnimationMode     = ONCE
        TransitionKey     = TRANS_Dying
      End
      TransitionState     = TRANS_Dying TRANS_Flailing
        Animation         = NICNSC_SKL.TRMEHM_DTE1
        AnimationMode     = ONCE
      End
      ConditionState      = DYING EXPLODED_FLAILING
        Animation         = NICNSC_SKL.TRMEHM_DTE2
        AnimationMode     = LOOP
        TransitionKey     = TRANS_Flailing
      End
      ConditionState      = DYING EXPLODED_BOUNCING
        Animation         = NICNSC_SKL.TRMEHM_DTE3
        AnimationMode     = ONCE
        TransitionKey     = None
      End
      ConditionState      = SPECIAL_CHEERING
        Animation         = NICNSC_SKL.TRMEHM_CHA
        AnimationMode     = LOOP
      End
    End
  End
End

; The Istihkam takimi builds in place of a dozer. It is the GLA Worker's body and dozer AI without
; the supply gathering and without GLA's two worker command sets.

ObjectReskin TurkiyeInfantryEngineer GLAInfantryWorker
End

Object TurkiyeInfantryEngineer
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyeInfantryEngineer
  SpeedScale = 0.66
  CooperativeBuilder = Yes
  BuildCost  = 500
  BuildTime  = 9.0
  VisionRange         = 150
  ShroudClearingRange = 150
  KindOf     = -HARVESTER -SALVAGER
  CommandSet = TurkiyeDozerCommandSet
  RemoveModule ModuleTag_14
  RemoveModule ModuleTag_15
  Prerequisites
  End
  ReplaceModule ModuleTag_02
    Body = ActiveBody ModuleTag_02_Turkiye
    MaxHealth              = 260.0
    InitialHealth          = 260.0
    End
  End
  AddModule
    Behavior = CommandSetUpgrade ModuleTag_TurkiyeMines
      CommandSet  = TurkiyeDozerCommandSetMines
      TriggeredBy = Upgrade_TurkiyeMineKit
    End
  End
  ; His own model, TRENGR_SKN, a Turkish combat engineer in Mehmetcik's uniform with a pack, a shovel,
  ; knee pads and the rifle slung on his back, made by experiments/proofs/2026-11-02/engineer in the
  ; workspace. It sits on the GLA Worker's skeleton, so every state below plays the Worker's own
  ; animation: the pickaxe of the build loop rides BONE-GUN, the mine detector is MINED_SKIN and the
  ; crate BOX, and each animation parks the bones it does not use under the ground, as the Worker's
  ; does. The carry states stay although he gathers no supplies, so a stray CARRYING still draws.
  ReplaceModule ModuleTag_01
    Draw = W3DModelDraw ModuleTag_01_Turkiye
      OkToChangeModelColor = Yes
      DefaultConditionState
        Model         = TRENGR_SKN
        IdleAnimation = UIWRKR_SKL.UIWRKR_STA 0 9
        IdleAnimation = UIWRKR_SKL.UIWRKR_IDA
        AnimationMode = ONCE
        TransitionKey = TRANS_Stand
      End
      ConditionState  = MOVING
        Animation     = UIWRKR_SKL.UIWRKR_RNA 16
        AnimationMode = LOOP
        Flags         = RANDOMSTART
        TransitionKey = TRANS_Moving
        ParticleSysBone = None InfantryDustTrails
      End
      AliasConditionState = ACTIVELY_CONSTRUCTING MOVING
      ConditionState  = ATTACKING
        ShowSubObject = MINED_SKIN
        Animation     = UIWRKR_SKL.UIWRKR_MS
        AnimationMode = LOOP
        Flags         = RANDOMSTART
        TransitionKey = TRANS_MetalDetector_Standing
      End
      ConditionState  = MOVING ATTACKING
        ShowSubObject = MINED_SKIN
        Animation     = UIWRKR_SKL.UIWRKR_MSW 50
        AnimationMode = LOOP
        Flags         = RANDOMSTART
        TransitionKey = TRANS_MetalDetector_Moving
        ParticleSysBone = None InfantryDustTrails
      End
      AliasConditionState = MOVING ATTACKING CARRYING
      TransitionState = TRANS_Stand TRANS_MetalDetector_Standing
        ShowSubObject = MINED_SKIN
        Animation     = UIWRKR_SKL.UIWRKR_TRB1
        AnimationMode = ONCE
      End
      TransitionState = TRANS_MetalDetector_Standing TRANS_Stand
        ShowSubObject = MINED_SKIN
        Animation     = UIWRKR_SKL.UIWRKR_TRB2
        AnimationMode = ONCE
      End
      TransitionState = TRANS_Carry TRANS_MetalDetector_Standing
        ShowSubObject = MINED_SKIN
        Animation     = UIWRKR_SKL.UIWRKR_TRB1
        AnimationMode = ONCE
      End
      TransitionState = TRANS_MetalDetector_Standing TRANS_Carry
        ShowSubObject = MINED_SKIN
        Animation     = UIWRKR_SKL.UIWRKR_TRB2
        AnimationMode = ONCE
      End
      TransitionState = TRANS_Carry TRANS_MetalDetector_Moving
        ShowSubObject = MINED_SKIN
        Animation     = UIWRKR_SKL.UIWRKR_TRC1
        AnimationMode = ONCE
        AnimationSpeedFactorRange = 2.0 2.0
      End
      TransitionState = TRANS_MetalDetector_Moving TRANS_Stand
        ShowSubObject = MINED_SKIN
        Animation     = UIWRKR_SKL.UIWRKR_TRB2
        AnimationMode = ONCE
      End
      TransitionState = TRANS_Stand TRANS_MetalDetector_Moving
        ShowSubObject = MINED_SKIN
        Animation     = UIWRKR_SKL.UIWRKR_TRC1
        AnimationMode = ONCE
        AnimationSpeedFactorRange = 2.0 2.0
      End
      TransitionState = TRANS_Moving TRANS_MetalDetector_Standing
        ShowSubObject = MINED_SKIN
        Animation     = UIWRKR_SKL.UIWRKR_TRB1
        AnimationMode = ONCE
      End
      TransitionState = TRANS_MetalDetector_Standing TRANS_Moving
        ShowSubObject = MINED_SKIN
        Animation     = UIWRKR_SKL.UIWRKR_TRC2
        AnimationMode = ONCE
        AnimationSpeedFactorRange = 2.0 2.0
      End
      TransitionState = TRANS_Moving TRANS_MetalDetector_Moving
        ShowSubObject = MINED_SKIN
        Animation     = UIWRKR_SKL.UIWRKR_TRC1
        AnimationMode = ONCE
        AnimationSpeedFactorRange = 2.0 2.0
      End
      TransitionState = TRANS_MetalDetector_Moving TRANS_Moving
        ShowSubObject = MINED_SKIN
        Animation     = UIWRKR_SKL.UIWRKR_TRC2
        AnimationMode = ONCE
        AnimationSpeedFactorRange = 2.0 2.0
      End
      ConditionState  = MOVING CARRYING
        ShowSubObject = BOX
        Animation     = UIWRKR_SKL.UIWRKR_CARY 12
        AnimationMode = LOOP
        Flags         = RANDOMSTART
        TransitionKey = TRANS_Carry
        ParticleSysBone = None InfantryDustTrails
      End
      AliasConditionState = ACTIVELY_CONSTRUCTING MOVING CARRYING
      ConditionState  = CARRYING
        ShowSubObject = BOX
        Animation     = UIWRKR_SKL.UIWRKR_CARST 30
        AnimationMode = LOOP
        Flags         = RANDOMSTART
        TransitionKey = TRANS_Carry
      End
      ConditionState  = DYING
        Animation     = UIWRKR_SKL.UIWRKR_DTA
        AnimationMode = ONCE
        TransitionKey = TRANS_Dying
      End
      AliasConditionState = DYING CARRYING
      TransitionState = TRANS_Dying TRANS_Flailing
        Animation     = UIWRKR_SKL.UIWRKR_ADTE1
        AnimationMode = ONCE
      End
      ConditionState  = DYING EXPLODED_FLAILING
        Animation     = UIWRKR_SKL.UIWRKR_ADTE2
        AnimationMode = LOOP
        TransitionKey = TRANS_Flailing
      End
      ConditionState  = DYING EXPLODED_BOUNCING
        Animation     = UIWRKR_SKL.UIWRKR_ADTE3
        AnimationMode = ONCE
        TransitionKey = None
      End
      ConditionState  = SPECIAL_CHEERING
        Animation     = UIWRKR_SKL.UIWRKR_CHA
        AnimationMode = ONCE
      End
      ConditionState  = ACTIVELY_CONSTRUCTING
        Animation     = UIWRKR_SKL.UIWRKR_BDA
        AnimationMode = LOOP
        TransitionKey = TRANS_Constructing
      End
      AliasConditionState = ACTIVELY_CONSTRUCTING CARRYING
      TransitionState = TRANS_Stand TRANS_Carry
        ShowSubObject = BOX
        Animation     = UIWRKR_SKL.UIWRKR_PIK
        AnimationMode = ONCE
      End
      TransitionState = TRANS_Carry TRANS_Stand
        ShowSubObject = BOX
        Animation     = UIWRKR_SKL.UIWRKR_PIK
        AnimationMode = ONCE_BACKWARDS
        Flags         = START_FRAME_LAST
      End
      TransitionState = TRANS_Stand TRANS_Constructing
        Animation     = UIWRKR_SKL.UIWRKR_TRA1
        AnimationMode = ONCE
      End
      TransitionState = TRANS_Constructing TRANS_Stand
        Animation     = UIWRKR_SKL.UIWRKR_TRA2
        AnimationMode = ONCE
      End
    End
  End
End

ObjectReskin TurkiyeInfantrySungur AmericaInfantryMissileDefender
End

Object TurkiyeInfantrySungur
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyeInfantrySungur
  SpeedScale = 0.825
  BuildCost  = 400
  BuildTime  = 7.0
  VisionRange         = 200
  ShroudClearingRange = 200
  Prerequisites
    Object = TurkiyeBarracks
  End
  WeaponSet
    Conditions = None
    Weapon = PRIMARY TurkiyeSungurMissile
    Weapon = SECONDARY TurkiyeSungurLaserMissile
    AutoChooseSources = PRIMARY FROM_PLAYER FROM_SCRIPT FROM_AI
    AutoChooseSources = SECONDARY NONE
  End
  ReplaceModule ModuleTag_02
    Body = ActiveBody ModuleTag_02_Turkiye
    MaxHealth              = 160.0
    InitialHealth          = 160.0
    End
  End
  ; Inertial Guidance's mark, as on the Firtina
  AddModule
    Behavior = StatusBitsUpgrade ModuleTag_TurkiyeGuidance
      TriggeredBy = Upgrade_TurkiyePrecisionGuidance
    End
  End
End

; The Gozcu timi: 500 vision and a carbine that is for show. It is the eye on the ground that the
; Cobra no longer is: the best sight a 700 buys. The Pathfinder's camouflage is gone (ModuleTag_09):
; a hidden eye for guns that hit at 600 left the enemy nothing to shoot back at but the guns, so the
; spotter is a target now. The Maroon Beret, one at a time, is the camouflaged eye.
; A unit's sight is capped at half as far again as its weapon reaches (Object::look), which would
; leave this one 90; SpotterSight lifts the cap, and the Cobra, the Bayraktar and the Beret carry it.

ObjectReskin TurkiyeInfantrySpotter AmericaInfantryPathfinder
End

Object TurkiyeInfantrySpotter
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyeInfantrySpotter
  SpeedScale = 0.7
  BuildCost  = 700
  BuildTime  = 10.0
  VisionRange         = 500
  ShroudClearingRange = 500
  SpotterSight        = Yes
  Prerequisites
    Object = TurkiyeBarracks
  End
  WeaponSet
    Conditions = None
    Weapon = PRIMARY TurkiyeSpotterCarbine
  End
  ReplaceModule ModuleTag_02
    Body = ActiveBody ModuleTag_02_Turkiye
    MaxHealth              = 200.0
    InitialHealth          = 200.0
    End
  End
  RemoveModule ModuleTag_09
  ; the Pathfinder's camouflage detector, off until the Barracks' Thermal Sights
  ReplaceModule ModuleTag_08
    Behavior = StealthDetectorUpdate ModuleTag_08_Turkiye
      DetectionRate             = 500
      InitiallyDisabled         = Yes
      CanDetectWhileGarrisoned  = No
      CanDetectWhileContained   = No
    End
  End
  AddModule
    Behavior = SightUpgrade ModuleTag_TurkiyeThermal
      TriggeredBy            = Upgrade_TurkiyeThermal
      VisionRange            = 650
      ShroudClearingRange    = 650
      EnablesStealthDetector = Yes
    End
  End
  ; Lazer Isaretleme: what the team attacks, out to its thermal sight, counts as radar coverage
  AddModule
    Behavior = RadarCoverageBehavior ModuleTag_TurkiyeLaserDesignation
      Radius           = 650
      PaintsTargetOnly = Yes
      RequiredUpgrade  = Upgrade_TurkiyeLaserDesignation
      ClassifyUpgrade  = Upgrade_TurkiyeTargetClassification
    End
  End
End

ObjectReskin TurkiyeInfantryMaroonBeret AmericaInfantryColonelBurton
End

Object TurkiyeInfantryMaroonBeret
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyeInfantryMaroonBeret
  SpeedScale = 0.75
  BuildCost  = 1200
  BuildTime  = 20.0
  VisionRange         = 350
  ShroudClearingRange = 350
  SpotterSight        = Yes
  CommandSet = TurkiyeMaroonBeretCommandSet
  ; as Burton: the Barracks and the Strategy Center's
  Prerequisites
    Object = TurkiyeBarracks
    Object = TurkiyeHarekatMerkezi
  End
  WeaponSet
    Conditions = None
    Weapon = PRIMARY TurkiyeBeretRifle
    Weapon = SECONDARY ColonelBurtonKnifeWeapon
    AutoChooseSources = PRIMARY FROM_PLAYER FROM_SCRIPT FROM_AI
    AutoChooseSources = SECONDARY NONE
  End
  ReplaceModule ModuleTag_02
    Body = ActiveBody ModuleTag_02_Turkiye
    MaxHealth              = 340.0
    InitialHealth          = 340.0
    End
  End
  ; Burton's camouflage, knife and timed and remote charges come with the body; the supply truck
  ; hijack is gone, since it spent the Beret for good and America has no truck to take. He sees
  ; 350 from inside the camouflage, so behind the lines he is the artillery's eye as well.
End

; ==== Factory =====================================================================================

ObjectReskin TurkiyeVehicleSupplyTruck ChinaVehicleSupplyTruck
End

Object TurkiyeVehicleSupplyTruck
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyeVehicleSupplyTruck
  BuildCost  = 600
  BuildTime  = 12.0
  VisionRange         = 200
  ShroudClearingRange = 200
  Prerequisites
    Object = TurkiyeSupplyCenter
  End
  ReplaceModule ModuleTag_02
    Body = ActiveBody ModuleTag_02_Turkiye
    MaxHealth              = 300.0
    InitialHealth          = 300.0
    SubdualDamageCap = 600
    SubdualDamageHealRate = 500
    SubdualDamageHealAmount = 50
    End
  End
End

ObjectReskin TurkiyeVehicleCobra AmericaVehicleHumvee
End

Object TurkiyeVehicleCobra
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyeVehicleCobra
  SpeedScale = 0.9
  BuildCost  = 450
  BuildTime  = 8.0
  VisionRange         = 250
  ShroudClearingRange = 250
  SpotterSight        = Yes
  CommandSet = TurkiyeCobraCommandSet
  Prerequisites
    Object = TurkiyeWarFactory
  End
  ; a fast car and no more an eye: 250 sight, where 400 made the 450 Cobra the cheapest spotter and
  ; the chain meaningless. The Humvee's TOW set goes with it.
  WeaponSet
    Conditions = None
    Weapon = PRIMARY TurkiyeCobraGun
  End
  WeaponSet
    Conditions = PLAYER_UPGRADE
    Weapon = PRIMARY TurkiyeCobraGun
  End
  ReplaceModule ModuleTag_02
    Body = ActiveBody ModuleTag_02_Turkiye
    MaxHealth              = 220.0
    InitialHealth          = 220.0
    SubdualDamageCap = 480
    SubdualDamageHealRate = 500
    SubdualDamageHealAmount = 50
    End
  End
  AddModule
    Behavior = StealthDetectorUpdate ModuleTag_TurkiyeThermalDetector
      DetectionRate             = 500
      InitiallyDisabled         = Yes
      CanDetectWhileGarrisoned  = No
      CanDetectWhileContained   = No
    End
  End
  AddModule
    Behavior = SightUpgrade ModuleTag_TurkiyeThermal
      TriggeredBy            = Upgrade_TurkiyeThermal
      VisionRange            = 320
      ShroudClearingRange    = 320
      EnablesStealthDetector = Yes
    End
  End
End

ObjectReskin TurkiyeVehicleKirpi AmericaVehicleMedic
End

Object TurkiyeVehicleKirpi
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyeVehicleKirpi
  SpeedScale = 0.55
  BuildCost  = 650
  BuildTime  = 12.0
  VisionRange         = 200
  ShroudClearingRange = 200
  CommandSet = TurkiyeKirpiCommandSet
  Prerequisites
    Object = TurkiyeWarFactory
  End
  ReplaceModule ModuleTag_02
    Body = ActiveBody ModuleTag_02_Turkiye
    MaxHealth              = 440.0
    InitialHealth          = 440.0
    SubdualDamageCap = 480
    SubdualDamageHealRate = 500
    SubdualDamageHealAmount = 50
    End
  End
  ReplaceModule ModuleTag_06
    Behavior = TransportContain ModuleTag_06_Turkiye
    Slots                  = 5
    HealthRegen%PerSec  = 25
    DamagePercentToUnits = 10%
    AllowInsideKindOf   = INFANTRY
    AllowAlliesInside   = Yes
    AllowNeutralInside  = No
    AllowEnemiesInside  = No
    ExitDelay = 250
    NumberOfExitPaths = 3
    GoAggressiveOnExit = Yes
    End
  End
  AddModule
    Behavior = MaxHealthUpgrade ModuleTag_TurkiyeArmor
      TriggeredBy  = Upgrade_TurkiyeArmorPack
      AddMaxHealth = 88.0
      ChangeType   = ADD_CURRENT_HEALTH_TOO
    End
  End
End

ObjectReskin TurkiyeTankAltay AmericaTankCrusader
End

Object TurkiyeTankAltay
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyeTankAltay
  BuildCost  = 1150
  BuildTime  = 18.0
  VisionRange         = 180
  ShroudClearingRange = 180
  CommandSet = TurkiyeVehicleCommandSet
  Prerequisites
    Object = TurkiyeWarFactory
  End
  WeaponSet
    Conditions = None
    Weapon = PRIMARY TurkiyeAltayGun
  End
  ReplaceModule ModuleTag_02
    Body = ActiveBody ModuleTag_02_Turkiye
    MaxHealth              = 620.0
    InitialHealth          = 620.0
    SubdualDamageCap = 960
    SubdualDamageHealRate = 500
    SubdualDamageHealAmount = 50
    End
  End
  AddModule
    Behavior = MaxHealthUpgrade ModuleTag_TurkiyeArmor
      TriggeredBy  = Upgrade_TurkiyeArmorPack
      AddMaxHealth = 124.0
      ChangeType   = ADD_CURRENT_HEALTH_TOO
    End
  End
  ; AKKOR, the War Factory's active protection: once the player has it, every Altay bursts one
  ; incoming missile or rocket every three seconds with TurkiyeAkkorCharge (TurkiyeWeaponReforged.ini).
  ; The Paladin's point defense, scanning out to 120 and firing inside 65, idle until the upgrade.
  AddModule
    Behavior = PointDefenseLaserUpdate ModuleTag_TurkiyeAkkor
      WeaponTemplate              = TurkiyeAkkorCharge
      PrimaryTargetTypes          = BALLISTIC_MISSILE SMALL_MISSILE
      ScanRate                    = 500
      ScanRange                   = 120.0
      PredictTargetVelocityFactor = 3.0
      RequiredUpgrade             = Upgrade_TurkiyeAkkor
    End
  End
  ; Its own model: a long low hull on seven road wheels under full side skirts, a low welded turret
  ; with flat add-on blocks on its front and cheeks and armour panels on its sides, a long bustle with
  ; a stowage basket, the 120 mm gun with its thermal sleeve and fume extractor, a remote weapon
  ; station and the commander's sight on the roof. TRALTAY and its damaged state TRALTAY_D, the hulk
  ; TRALTAY_D1 and the turret and gun it throws, TRALTAY_D2 and _D3, in Code/Data/Art/W3D; the
  ; ZHCA_TRAltay*.tga and TRAltay_*.tga textures in Code/Data/Art/Textures; all made by
  ; experiments/proofs/2026-11-02/tank in the workspace. The bones keep the Crusader's names, so the
  ; draw is the Crusader's with the models swapped; the gun is modelled level, so BarrelArtPitch is 0.
  ; It dies into its own wreck: the hulk, its turret and its gun (ObjectCreationListReforged.ini);
  ; all three are hulk objects (below) that sink into the ground before they go.
  ReplaceModule ModuleTag_01_Reforged
    Draw = W3DTankDraw ModuleTag_01_Turkiye
      StabilizedTurretPitch = Yes
      BarrelArtPitch        = 0.0
      DefaultConditionState
        Model               = TRALTAY
        Turret              = Turret
        TurretPitch         = Barrel01
        WeaponFireFXBone    = PRIMARY TurretMS
        WeaponRecoilBone    = PRIMARY Barrel
        WeaponMuzzleFlash   = PRIMARY TurretFX
        WeaponLaunchBone    = PRIMARY TurretMS
      End
      ConditionState        = REALLYDAMAGED
        Model               = TRALTAY_D
        Turret              = Turret
        TurretPitch         = Barrel01
        WeaponFireFXBone    = PRIMARY TurretMS
        WeaponRecoilBone    = PRIMARY Barrel
        WeaponMuzzleFlash   = PRIMARY TurretFX
        WeaponLaunchBone    = PRIMARY TurretMS
      End
      ConditionState        = RUBBLE
        Model               = TRALTAY_D
        Turret              = Turret
        TurretPitch         = Barrel01
      End
      TrackMarks              = EXTnkTrack.tga
      TreadAnimationRate      = 2.0
      TreadDriveSpeedFraction = 0.3
      TreadPivotSpeedFraction = 0.6
      OkToChangeModelColor    = Yes
    End
  End
  ReplaceModule ModuleTag_10
    Behavior = SlowDeathBehavior ModuleTag_10_Turkiye
      DeathTypes               = ALL -CRUSHED -SPLATTED
      ProbabilityModifier      = 50
      DestructionDelay         = 500
      DestructionDelayVariance = 100
      FX                       = INITIAL FX_GenericTankDeathEffect
      OCL                      = MIDPOINT OCL_TurkiyeAltayDeathEffect
      FX                       = FINAL FX_GenericTankDeathExplosion
    End
  End
  ReplaceModule ModuleTag_11
    Behavior = SlowDeathBehavior ModuleTag_11_Turkiye
      DeathTypes               = ALL -CRUSHED -SPLATTED
      ProbabilityModifier      = 50
      DestructionDelay         = 2000
      DestructionDelayVariance = 300
      FX                       = INITIAL FX_CrusaderCatchFire
      OCL                      = FINAL OCL_TurkiyeAltayDeathEffect
      FX                       = FINAL FX_GenericTankDeathExplosion
    End
  End
  ReplaceModule ModuleTag_15
    Behavior = CreateObjectDie ModuleTag_15_Turkiye
      DeathTypes   = NONE +CRUSHED +SPLATTED
      CreationList = OCL_TurkiyeAltayCrushEffect
    End
  End
End

; The Altay's burnt-out hull. No Side, as EA's hulks have none, so ThingFactory::newObject never
; swaps it in for another side's hulk. It keeps DeadCrusaderHulk's modules and timing unchanged:
; killed 1.5 s after it appears, sinking 2 a second from 3 s, removed at 9.5 s. The model sits nose
; down and on its torn side, so its deck goes under a corner first as the Crusader's ragged hulk does.

ObjectReskin TurkiyeAltayHulk DeadCrusaderHulk
End

Object TurkiyeAltayHulk
  ReplaceModule ModuleTag_01
    Draw = W3DModelDraw ModuleTag_01_Turkiye
      ConditionState = NONE
        Model = TRALTAY_D1
      End
    End
  End
End

; The Altay's turret and gun, thrown off the hulk. The Crusader throws both as plain debris, which
; lies three seconds, sinks two and is gone at five (GenericDebris in FixesReforged.ini). That suits
; the Crusader's small pieces; the Altay's turret is 22 long and 6 high and its gun 21 long, and both
; vanished whole while still standing proud of the ground. Each is a hulk object now. The hulk's
; LifetimeUpdate is dropped, so a piece dies only when it comes to rest and its sink never starts in
; the air: it lies 1.5 s, sinks 3 a second for 6 s, 18 in all, and is removed under the ground
; 7.5 s after landing, however it fell (the turret's farthest corner is 16 from its pivot, the
; gun's 10.4).

ObjectReskin TurkiyeAltayTurretHulk DeadCrusaderHulk
End

Object TurkiyeAltayTurretHulk
  ReplaceModule ModuleTag_01
    Draw = W3DModelDraw ModuleTag_01_Turkiye
      ConditionState = NONE
        Model = TRALTAY_D2
      End
    End
  End
  RemoveModule ModuleTag_04
  ReplaceModule ModuleTag_05
    Behavior = SlowDeathBehavior ModuleTag_05_Turkiye
      SinkDelay        = 1500
      SinkRate         = 3     ; in Dist/Sec
      DestructionDelay = 7500
    End
  End
End

ObjectReskin TurkiyeAltayGunHulk DeadCrusaderHulk
End

Object TurkiyeAltayGunHulk
  ReplaceModule ModuleTag_01
    Draw = W3DModelDraw ModuleTag_01_Turkiye
      ConditionState = NONE
        Model = TRALTAY_D3
      End
    End
  End
  RemoveModule ModuleTag_04
  ReplaceModule ModuleTag_05
    Behavior = SlowDeathBehavior ModuleTag_05_Turkiye
      SinkDelay        = 1500
      SinkRate         = 3     ; in Dist/Sec
      DestructionDelay = 7500
    End
  End
End

; Korkut is the Avenger's hull; the Avenger makes its turret by name, and newObject hands a Turkiye
; player the Korkut turret below. It is air defense and nothing else: the hull loses the Avenger's
; target designator and the turret fires only at aircraft, out to 350.

ObjectReskin TurkiyeVehicleKorkut AmericaTankAvenger
End

Object TurkiyeVehicleKorkut
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyeVehicleKorkut
  SpeedScale = 1.05
  BuildCost  = 900
  BuildTime  = 14.0
  VisionRange         = 250
  ShroudClearingRange = 250
  CommandSet = TurkiyeVehicleCommandSet
  Prerequisites
    Object = TurkiyeWarFactory
  End
  WeaponSet
    Conditions = None
    Weapon = PRIMARY NONE
    Weapon = SECONDARY AvengerAirLaserDummy
  End
  ReplaceModule ModuleTag_02
    Body = ActiveBody ModuleTag_02_Turkiye
    MaxHealth              = 380.0
    InitialHealth          = 380.0
    SubdualDamageCap = 1000
    SubdualDamageHealRate = 500
    SubdualDamageHealAmount = 50
    End
  End
End

ObjectReskin TurkiyeVehicleKorkutTurret AmericaTankAvengerLaserTurret
End

Object TurkiyeVehicleKorkutTurret
  Side       = Turkiye
  WeaponSet
    Conditions = None
    Weapon = PRIMARY TurkiyeKorkutGunAir
  End
End

; The artillery sees 100 and shoots 600. AcquiresBeyondVision lets it pick its own targets out to
; its range from whatever the team sees (AIUpdate::getNextMoodTarget). Extended Range raises
; PLAYER_UPGRADE, Precision Guidance raises CRATEUPGRADE_ONE, and the four sets cover each mix.

ObjectReskin TurkiyeVehicleFirtina AmericaVehicleTomahawk
End

Object TurkiyeVehicleFirtina
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyeVehicleFirtina
  SpeedScale = 0.6
  BuildCost  = 1400
  BuildTime  = 22.0
  VisionRange         = 100
  ShroudClearingRange = 100
  AcquiresBeyondVision = Yes
  CommandSet = TurkiyeVehicleCommandSet
  Prerequisites
    Object = TurkiyeWarFactory
  End
  WeaponSet
    Conditions = None
    Weapon = PRIMARY TurkiyeFirtinaShell
  End
  WeaponSet
    Conditions = PLAYER_UPGRADE
    Weapon = PRIMARY TurkiyeFirtinaShellLong
  End
  ReplaceModule ModuleTag_02
    Body = ActiveBody ModuleTag_02_Turkiye
    MaxHealth              = 340.0
    InitialHealth          = 340.0
    SubdualDamageCap = 360
    SubdualDamageHealRate = 500
    SubdualDamageHealAmount = 50
    End
  End
  ; The Tomahawk never picks a target by itself; artillery that waits for a spotter has to.
  ReplaceModule ModuleTag_03
    Behavior = AIUpdateInterface ModuleTag_03_Turkiye
      Turret
        TurretTurnRate = 60
        TurretPitchRate = 60
        FirePitch = 70
        AllowsPitch = Yes
        ControlledWeaponSlots = PRIMARY
      End
      AutoAcquireEnemiesWhenIdle = Yes NotWhileAttacking
    End
  End
  AddModule
    Behavior = WeaponSetUpgrade ModuleTag_TurkiyeRange
      TriggeredBy = Upgrade_TurkiyeExtendedRange
    End
  End
  ; Inertial Guidance's mark: the upgrade is this unit's, for the computer player (Weapon.cpp reads
  ; the upgrade itself)
  AddModule
    Behavior = StatusBitsUpgrade ModuleTag_TurkiyeGuidance
      TriggeredBy = Upgrade_TurkiyePrecisionGuidance
    End
  End
End

ObjectReskin TurkiyeVehicleSakarya AmericaTankPaladin
End

Object TurkiyeVehicleSakarya
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyeVehicleSakarya
  SpeedScale = 0.7
  BuildCost  = 1200
  BuildTime  = 20.0
  VisionRange         = 100
  ShroudClearingRange = 100
  AcquiresBeyondVision = Yes
  CommandSet = TurkiyeVehicleCommandSet
  KindOf     = -ATTACK_NEEDS_LINE_OF_SIGHT
  ; the heavy guns, late: the Harekat Merkezi opens them as the Strategy Center opens the Aurora
  Prerequisites
    Object = TurkiyeWarFactory
    Object = TurkiyeHarekatMerkezi
  End
  WeaponSet
    Conditions = None
    Weapon = PRIMARY TurkiyeSakaryaSalvo
  End
  WeaponSet
    Conditions = PLAYER_UPGRADE
    Weapon = PRIMARY TurkiyeSakaryaSalvoLong
  End
  ReplaceModule ModuleTag_02
    Body = ActiveBody ModuleTag_02_Turkiye
    MaxHealth              = 300.0
    InitialHealth          = 300.0
    SubdualDamageCap = 1000
    SubdualDamageHealRate = 500
    SubdualDamageHealAmount = 50
    End
  End
  ; The Paladin's turret fires level, and a rocket leaving it level never reached a target: the
  ; salvo went off and nothing was hit. It pitches up the way the Firtina's launcher does, and since
  ; the Paladin's barrel pitches (BalanceReforged.ini, whose AI module this replaces) the drawn
  ; launcher stands at the 45 degrees the rockets leave at.
  ReplaceModule ModuleTag_03_Reforged
    Behavior = AIUpdateInterface ModuleTag_03_Turkiye
      Turret
        TurretTurnRate = 180
        TurretPitchRate = 60
        FirePitch = 45
        AllowsPitch = Yes
        ControlledWeaponSlots = PRIMARY
      End
      AutoAcquireEnemiesWhenIdle = Yes
    End
  End
  AddModule
    Behavior = WeaponSetUpgrade ModuleTag_TurkiyeRange
      TriggeredBy = Upgrade_TurkiyeExtendedRange
    End
  End
  ; Inertial Guidance's mark, as on the Firtina
  AddModule
    Behavior = StatusBitsUpgrade ModuleTag_TurkiyeGuidance
      TriggeredBy = Upgrade_TurkiyePrecisionGuidance
    End
  End
End

ObjectReskin TurkiyeTankKoral AmericaTankMicrowave
End

Object TurkiyeTankKoral
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyeTankKoral
  SpeedScale = 0.85
  BuildCost  = 1600
  BuildTime  = 24.0
  VisionRange         = 250
  ShroudClearingRange = 250
  CommandSet = TurkiyeVehicleCommandSet
  ; as the Microwave Tank it is: the Strategy Center's
  Prerequisites
    Object = TurkiyeWarFactory
    Object = TurkiyeHarekatMerkezi
  End
  WeaponSet
    Conditions = None
    Weapon = PRIMARY TurkiyeKoralDisabler
    Weapon = SECONDARY TurkiyeKoralClearer
  End
  ReplaceModule ModuleTag_02
    Body = ActiveBody ModuleTag_02_Turkiye
    MaxHealth              = 320.0
    InitialHealth          = 320.0
    SubdualDamageCap = 960
    SubdualDamageHealRate = 500
    SubdualDamageHealAmount = 50
    End
  End
  ; the jamming field: enemy drones and spotters inside 400 see only their own feet, and an enemy
  ; guided missile that crosses it loses its lock
  AddModule
    Behavior = JammerUpdate ModuleTag_TurkiyeJammer
      Radius   = 400
      ScanRate = 166
    End
  End
  ; and a radar that drives with the army
  AddModule
    Behavior = RadarCoverageBehavior ModuleTag_TurkiyeRadarCoverage
      Radius          = 650
      RadiusUpgrade   = Upgrade_TurkiyeEarlyWarning 1.25
      ClassifyUpgrade = Upgrade_TurkiyeTargetClassification
    End
  End
End

; The Mobil Radar, Rank 3's unlock: a radar of 900 that covers only while it stands still. GLA's
; Radar Van lends the truck and its dish until the modeler's own model comes; nothing else of
; Turkiye's is a Radar Van reskin. It goes without the van's minimap radar (03, 05), its scan power
; and the scan's upgrade (06, 07) and GLA's Junk Repair (08); it keeps the van's stealth detector.

ObjectReskin TurkiyeVehicleMobileRadar GLAVehicleRadarVan
End

Object TurkiyeVehicleMobileRadar
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyeVehicleMobileRadar
  BuildCost  = 800
  BuildTime  = 12.0
  VisionRange         = 150
  ShroudClearingRange = 150
  CommandSet = TurkiyeVehicleCommandSet
  Prerequisites
    Object  = TurkiyeWarFactory
    Science = SCIENCE_TurkiyeMobileRadar
  End
  RemoveModule ModuleTag_03
  RemoveModule ModuleTag_05
  RemoveModule ModuleTag_06
  RemoveModule ModuleTag_07
  RemoveModule ModuleTag_08
  AddModule
    Behavior = RadarCoverageBehavior ModuleTag_TurkiyeRadarCoverage
      Radius             = 900
      OnlyWhenStationary = Yes
      RadiusUpgrade      = Upgrade_TurkiyeEarlyWarning 1.25
      ClassifyUpgrade    = Upgrade_TurkiyeTargetClassification
    End
  End
End

; ==== Airfield ====================================================================================

; The Bayraktar is the artillery's real eye: 550 from the air over whatever it is sent to, for 900.
; It drops the Comanche's rocket pod button, which it has no pods for.

ObjectReskin TurkiyeVehicleBayraktar AmericaVehicleComanche
End

Object TurkiyeVehicleBayraktar
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyeVehicleBayraktar
  BuildCost  = 900
  BuildTime  = 14.0
  VisionRange         = 550
  ShroudClearingRange = 550
  SpotterSight        = Yes
  CommandSet = TurkiyeAircraftCommandSet
  Prerequisites
    Object = TurkiyeAirfield
  End
  ; Fuel Cell raises CRATEUPGRADE_ONE, more munitions per sortie; Swarm Software raises
  ; PLAYER_UPGRADE, munitions that pick the dearest target in reach. A helicopter has no fuel, so its
  ; time over the target is its rack.
  WeaponSet
    Conditions = None
    Weapon = PRIMARY TurkiyeBayraktarGun
    PreferredAgainst = PRIMARY INFANTRY
    Weapon = SECONDARY TurkiyeBayraktarMunition
    PreferredAgainst = SECONDARY VEHICLE STRUCTURE
  End
  WeaponSet
    Conditions = CRATEUPGRADE_ONE
    Weapon = PRIMARY TurkiyeBayraktarGun
    PreferredAgainst = PRIMARY INFANTRY
    Weapon = SECONDARY TurkiyeBayraktarMunitionFuel
    PreferredAgainst = SECONDARY VEHICLE STRUCTURE
  End
  WeaponSet
    Conditions = PLAYER_UPGRADE
    Weapon = PRIMARY TurkiyeBayraktarGun
    PreferredAgainst = PRIMARY INFANTRY
    Weapon = SECONDARY TurkiyeBayraktarSwarm
    PreferredAgainst = SECONDARY VEHICLE STRUCTURE
  End
  WeaponSet
    Conditions = PLAYER_UPGRADE CRATEUPGRADE_ONE
    Weapon = PRIMARY TurkiyeBayraktarGun
    PreferredAgainst = PRIMARY INFANTRY
    Weapon = SECONDARY TurkiyeBayraktarSwarmFuel
    PreferredAgainst = SECONDARY VEHICLE STRUCTURE
  End
  ReplaceModule ModuleTag_04
    Body = ActiveBody ModuleTag_04_Turkiye
    MaxHealth              = 180.0
    InitialHealth          = 180.0
    End
  End
  AddModule
    Behavior = WeaponSetUpgrade ModuleTag_TurkiyeFuelCell
      TriggeredBy   = Upgrade_TurkiyeFuelCell
      WeaponSetFlag = CRATEUPGRADE_ONE
    End
  End
  AddModule
    Behavior = WeaponSetUpgrade ModuleTag_TurkiyeSwarmSoftware
      TriggeredBy   = Upgrade_TurkiyeSwarmSoftware
      WeaponSetFlag = PLAYER_UPGRADE
    End
  End
  ; Inertial Guidance's mark, as on the Firtina
  AddModule
    Behavior = StatusBitsUpgrade ModuleTag_TurkiyeGuidance
      TriggeredBy = Upgrade_TurkiyePrecisionGuidance
    End
  End
  ; Lazer Isaretleme: what the drone attacks, out to its sight, counts as radar coverage
  AddModule
    Behavior = RadarCoverageBehavior ModuleTag_TurkiyeLaserDesignation
      Radius           = 550
      PaintsTargetOnly = Yes
      RequiredUpgrade  = Upgrade_TurkiyeLaserDesignation
      ClassifyUpgrade  = Upgrade_TurkiyeTargetClassification
    End
  End
End

ObjectReskin TurkiyeVehicleGokbey AmericaVehicleChinook
End

Object TurkiyeVehicleGokbey
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyeVehicleGokbey
  BuildCost  = 1100
  BuildTime  = 16.0
  VisionRange         = 300
  ShroudClearingRange = 300
  KindOf     = -HARVESTER
  Prerequisites
    Object = TurkiyeAirfield
  End
  ReplaceModule ModuleTag_03
    Body = ActiveBody ModuleTag_03_Turkiye
    MaxHealth              = 500.0
    InitialHealth          = 500.0
    End
  End
  ReplaceModule ModuleTag_08
    Behavior = TransportContain ModuleTag_08_Turkiye
    Slots                  = 5
    DamagePercentToUnits  = 100%
    AllowInsideKindOf     = INFANTRY VEHICLE
    ForbidInsideKindOf    = AIRCRAFT HUGE_VEHICLE
    ExitDelay             = 100
    NumberOfExitPaths     = 1
    End
  End
End

ObjectReskin TurkiyeJetAkinci AmericaJetAurora
End

Object TurkiyeJetAkinci
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyeJetAkinci
  BuildCost  = 1800
  BuildTime  = 26.0
  VisionRange         = 400
  ShroudClearingRange = 400
  ; as the Aurora it is: the Strategy Center's
  Prerequisites
    Object = TurkiyeAirfield
    Object = TurkiyeHarekatMerkezi
  End
  ; one bomb a sortie, the Aurora's, whatever the Fuel Cell: racks of two and four let one jet level
  ; a base
  WeaponSet
    Conditions = None
    Weapon = PRIMARY TurkiyeAkinciBomb
  End
  ReplaceModule ModuleTag_02
    Body = ActiveBody ModuleTag_02_Turkiye
    MaxHealth              = 200.0
    InitialHealth          = 200.0
    End
  End
  ; a radar in the air over the fight, 1000 with Akinci AESA (the scales multiply)
  AddModule
    Behavior = RadarCoverageBehavior ModuleTag_TurkiyeRadarCoverage
      Radius          = 750
      RadiusUpgrade   = Upgrade_TurkiyeEarlyWarning 1.25
      RadiusUpgrade   = Upgrade_TurkiyeAkinciAesa 1.3333
      ClassifyUpgrade = Upgrade_TurkiyeTargetClassification
    End
  End
End

ObjectReskin TurkiyeJetKizilelma AmericaJetRaptor
End

Object TurkiyeJetKizilelma
  Side       = Turkiye
  DisplayName = OBJECT:TurkiyeJetKizilelma
  BuildCost  = 1800
  BuildTime  = 26.0
  VisionRange         = 350
  ShroudClearingRange = 350
  Prerequisites
    Object = TurkiyeAirfield
  End
  WeaponSet
    Conditions = None
    Weapon = PRIMARY TurkiyeKizilelmaMissile
  End
  WeaponSet
    Conditions = PLAYER_UPGRADE
    Weapon = PRIMARY TurkiyeKizilelmaMissileGokdogan
  End
  ReplaceModule ModuleTag_02
    Body = ActiveBody ModuleTag_02_Turkiye
    MaxHealth              = 160.0
    InitialHealth          = 160.0
    End
  End
  ; the Airfield's Gokdogan missile
  AddModule
    Behavior = WeaponSetUpgrade ModuleTag_TurkiyeGokdogan
      TriggeredBy   = Upgrade_TurkiyeGokdogan
      WeaponSetFlag = PLAYER_UPGRADE
    End
  End
  ; Its own model, shaped after photos of the real jet: a long drooping nose and a hump spine with no
  ; canopy, small canards behind the nose, side intakes under the chine, a big low cranked delta,
  ; flat tail booms either side of one nozzle and two fins leaning out hard. TRKIZILELMA and its
  ; damaged state TRKIZILELMA_D, the falling jet TRKIZILELMA_D1B, the
  ; hulk TRKIZILELMA_D1 and the pieces it throws, TRKIZILELMA_D2 to _D4, in Code/Data/Art/W3D; the
  ; ZHCA_TRKizilelma*.tga and TRKizilelma_*.tga textures in Code/Data/Art/Textures; all made by
  ; experiments/proofs/2026-11-02/kizilelma in the workspace. The bones keep the Raptor's names, so
  ; this is the Raptor's draw with the models swapped, plus GEAR01: the wheels show while the jet
  ; is parked or taxiing, and on air locomotion while it is less than LandingGearUpHeight above the
  ; terrain: the takeoff roll and the climb out, the last of the final and the landing rollout. No
  ; condition state names the gear: JETEXHAUST comes on as the takeoff roll starts, and the jet slid
  ; down the runway on its belly. A state's
  ; Show/HideSubObject also shows or hides every mesh on a bone under that mesh's bone, and GEAR01
  ; sits on CHASSIS01, the flames' parent, so a state that named the gear lit the flames on the
  ; parked jet and put them out under the afterburner. The flame: none on the ground (no
  ; JETEXHAUST while parked or taxiing), the hot core BURNERFX02 in flight, the whole plume under
  ; the afterburner (takeoff roll, attack runs), with a glow 8 across at the nozzle
  ; (KizilelmaLenzflare) where the Raptor's 20-wide one dipped into the runway on the takeoff roll.
  ReplaceModule ModuleTag_01
    Draw = W3DModelDraw ModuleTag_01_Turkiye
      LandingGearSubObject  = Gear01
      LandingGearUpHeight   = 30.0
      DefaultConditionState
        Model               = TRKIZILELMA
        HideSubObject       = BurnerFX01 BurnerFX02
        WeaponLaunchBone    = PRIMARY WeaponA
      End
      ConditionState        = JETEXHAUST
        ShowSubObject       = BurnerFX02
        ParticleSysBone     = Wingtip01 JetContrail
        ParticleSysBone     = Wingtip02 JetContrail
      End
      ConditionState        = JETEXHAUST JETAFTERBURNER
        ShowSubObject       = BurnerFX01 BurnerFX02
        ParticleSysBone     = Wingtip01 JetContrail
        ParticleSysBone     = Wingtip02 JetContrail
        ParticleSysBone     = Engine01 KizilelmaLenzflare
        ParticleSysBone     = Engine02 KizilelmaLenzflare
      End
      ConditionState        = REALLYDAMAGED
        Model               = TRKIZILELMA_D
        ParticleSysBone     = Smoke01 JetSmoke
        ParticleSysBone     = Engine01 JetEngineDamagedSmoke
      End
      ConditionState        = REALLYDAMAGED JETEXHAUST
        Model               = TRKIZILELMA_D
        ShowSubObject       = BurnerFX02
        ParticleSysBone     = Smoke01 JetSmoke
        ParticleSysBone     = Engine01 JetEngineDamagedSmoke
        ParticleSysBone     = Wingtip01 JetContrail
        ParticleSysBone     = Wingtip02 JetContrail
      End
      ConditionState        = REALLYDAMAGED JETEXHAUST JETAFTERBURNER
        Model               = TRKIZILELMA_D
        ShowSubObject       = BurnerFX01 BurnerFX02
        ParticleSysBone     = Smoke01 JetSmoke
        ParticleSysBone     = Engine01 JetEngineDamagedSmoke
        ParticleSysBone     = Engine01 KizilelmaLenzflare
        ParticleSysBone     = Engine02 KizilelmaLenzflare
        ParticleSysBone     = Wingtip01 JetContrail
        ParticleSysBone     = Wingtip02 JetContrail
      End
      ConditionState        = RUBBLE
        Model               = TRKIZILELMA_D1B
        HideSubObject       = None
        ShowSubObject       = None
      End
      ConditionState        = RUBBLE JETEXHAUST JETAFTERBURNER
        Model               = TRKIZILELMA_D1B
        HideSubObject       = None
        ShowSubObject       = None
        ParticleSysBone     = Engine01 JetExhaust
        ParticleSysBone     = Engine02 JetExhaust
        ParticleSysBone     = Wingtip01 JetContrail
        ParticleSysBone     = Wingtip02 JetContrail
      End
      OkToChangeModelColor  = Yes
    End
  End
  ; It dies into its own pieces: the left wing shot off in the air, then the fin, the canard and the
  ; wing again where it hits the ground, and its own burnt-out hulk. The Raptor's values otherwise.
  ReplaceModule ModuleTag_05
    Behavior = JetSlowDeathBehavior ModuleTag_05_Turkiye
      FXOnGroundDeath                = FX_JetOnGroundDeath
      OCLOnGroundDeath               = OCL_TurkiyeKizilelmaDeathFinalBlowUp
      DestructionDelay               = 99999999
      RollRate                       = 0.2
      RollRateDelta                  = 100%
      PitchRate                      = 0.0
      FallHowFast                    = 110.0%
      FXInitialDeath                 = FX_RaptorDeathInitial
      OCLInitialDeath                = OCL_TurkiyeKizilelmaDeathInitial
      DelaySecondaryFromInitialDeath = 500
      FXSecondary                    = FX_JetDeathSecondary
      OCLSecondary                   = OCL_RaptorDeathSecondary
      FXHitGround                    = FX_JetDeathHitGround
      OCLHitGround                   = OCL_TurkiyeKizilelmaDeathHitGround
      DelayFinalBlowUpFromHitGround  = 200
      FXFinalBlowUp                  = FX_JetDeathFinalBlowUp
      OCLFinalBlowUp                 = OCL_TurkiyeKizilelmaDeathFinalBlowUp
    End
  End
  ; Inertial Guidance's mark, as on the Firtina
  AddModule
    Behavior = StatusBitsUpgrade ModuleTag_TurkiyeGuidance
      TriggeredBy = Upgrade_TurkiyePrecisionGuidance
    End
  End
End

; The Kizilelma's burnt-out hulk. No Side, as EA's hulks have none, so ThingFactory::newObject never
; swaps it in for another side's hulk.

ObjectReskin TurkiyeKizilelmaHulk AmericaJetRaptorHulk
End

Object TurkiyeKizilelmaHulk
  ReplaceModule ModuleTag_01
    Draw = W3DModelDraw ModuleTag_01_Turkiye
      DefaultConditionState
        Model = TRKIZILELMA_D1
      End
    End
  End
End

; ==== Spawned by name =============================================================================

; Nothing builds the ones below from a button. The American data spawns them by name: a pilot
; out of a dead vehicle, the cargo plane of the drops, and the chutes. ThingFactory::newObject
; makes the Turkiye copy whenever one of them is made for a Turkiye player. The battle, scout,
; hellfire and spy drones, the A-10, the Spectre, the B-3, the B-52 and the minefield's bomb and
; mines had copies here too; no Turkish button, power or science reaches them any more.

ObjectReskin TurkiyeInfantryPilot AmericaInfantryPilot
End

Object TurkiyeInfantryPilot
  Side       = Turkiye
End

ObjectReskin TurkiyeJetCargoPlane AmericaJetCargoPlane
End

Object TurkiyeJetCargoPlane
  Side       = Turkiye
End

ObjectReskin TurkiyeParachute AmericaParachute
End

Object TurkiyeParachute
  Side       = Turkiye
End

ObjectReskin TurkiyeCrateParachute AmericaCrateParachute
End

Object TurkiyeCrateParachute
  Side       = Turkiye
End

ObjectReskin TurkiyeVehicleHumveeDeadHull AmericaVehicleHumveeDeadHull
End

Object TurkiyeVehicleHumveeDeadHull
  Side       = Turkiye
End

; The radar powers' markers (ObjectCreationListReforged.ini): the spy satellite's ping, which is
; owned by the firing player and can neither be hit nor die, stripped of everything that sees. No
; vision, no shroud clearing, no stealth detector, so the fog stays as it was; what they bring is
; their RadarCoverageBehavior, and the DeletionUpdate that ends it (the HUD tray counts down to it).
; No Side, so ThingFactory::newObject never hands one out in place of an American ping.

; SIHA Kesfi: 300 around the point for 30 seconds, parked enemies too and every contact classified
ObjectReskin TurkiyeUavReconMarker SpySatellitePing
End

Object TurkiyeUavReconMarker
  VisionRange         = 0
  ShroudClearingRange = 0
  RemoveModule ModuleTag_02
  RemoveModule ModuleTag_04
  ReplaceModule ModuleTag_03
    Behavior = DeletionUpdate ModuleTag_03_Turkiye
      MinLifetime = 30000
      MaxLifetime = 30000
    End
  End
  AddModule
    Behavior = RadarCoverageBehavior ModuleTag_TurkiyeRadarCoverage
      Radius         = 300
      SeesStationary = Yes
    End
  End
End

; Uydu Gudum: the whole map for 45 seconds, a radius past any map's diagonal
ObjectReskin TurkiyeSatelliteGuidanceMarker SpySatellitePing
End

Object TurkiyeSatelliteGuidanceMarker
  VisionRange         = 0
  ShroudClearingRange = 0
  RemoveModule ModuleTag_02
  RemoveModule ModuleTag_04
  ReplaceModule ModuleTag_03
    Behavior = DeletionUpdate ModuleTag_03_Turkiye
      MinLifetime = 45000
      MaxLifetime = 45000
    End
  End
  AddModule
    Behavior = RadarCoverageBehavior ModuleTag_TurkiyeRadarCoverage
      Radius          = 99999
      ClassifyUpgrade = Upgrade_TurkiyeTargetClassification
    End
  End
End

; Elektronik Harp's field: the Koral's jammer at 300 for 30 seconds, an enemy guided missile that
; crosses it loses its lock. The Command Center's RadarJamSpecialPower puts it down through
; SUPERWEAPON_TurkiyeElectronicWarfare.
ObjectReskin TurkiyeElectronicWarfareMarker SpySatellitePing
End

Object TurkiyeElectronicWarfareMarker
  VisionRange         = 0
  ShroudClearingRange = 0
  RemoveModule ModuleTag_02
  RemoveModule ModuleTag_04
  ReplaceModule ModuleTag_03
    Behavior = DeletionUpdate ModuleTag_03_Turkiye
      MinLifetime = 30000
      MaxLifetime = 30000
    End
  End
  AddModule
    Behavior = JammerUpdate ModuleTag_TurkiyeJammer
      Radius   = 300
      ScanRate = 166
    End
  End
End

; Tayfun's missile: the Superweapon General's cruise missile (EA's neutron missile flight, up 200,
; over, and straight down) with its own warhead in place of the MOAB's and its own power for the
; script completion. The delivery decal is the warhead's reach. No Side, as the cruise missile has
; none.
ObjectReskin TurkiyeTayfunMissile CruiseMissile
End

Object TurkiyeTayfunMissile
  ReplaceModule ModuleTag_03
    Behavior = NeutronMissileUpdate ModuleTag_03_Turkiye
      DistanceToTravelBeforeTurning = 200
      MaxTurnRate = 7200
      ForwardDamping = 0.1
      RelativeSpeed = 2.0
      LaunchFX = FX_NeutronMissileLaunch
      IgnitionFX = FX_NeutronMissileIgnition
      TargetFromDirectlyAbove = 10
      SpecialAccelFactor = 1
      SpecialSpeedTime = 1500
      SpecialSpeedHeight = 160
      SpecialJitterDistance = 0.4
      DeliveryDecalRadius = 90
      DeliveryDecal
        Texture           = SCCNuclearMissile_China
        Style             = SHADOW_ALPHA_DECAL
        OpacityMin        = 25%
        OpacityMax        = 50%
        OpacityThrobTime  = 500
        Color             = R:255 G:0 B:0 A:255
        OnlyVisibleToOwningPlayer = Yes
      End
    End
  End
  ReplaceModule ModuleTag_05
    Behavior = SpecialPowerCompletionDie ModuleTag_05_Turkiye
      SpecialPowerTemplate = SuperweaponTurkiyeTayfun
    End
  End
  ReplaceModule ModuleTag_09
    Behavior = FireWeaponWhenDeadBehavior ModuleTag_09_Turkiye
      DeathWeapon  = TurkiyeTayfunWarhead
      StartsActive = Yes
    End
  End
End

; The Kargu base's drone, drawn as the Hellfire drone. It is a jet on the MiG's frame (no other
; Turkiye object is a MiG, and ThingFactory::newObject wants one Turkiye reskin per source), so it
; rolls out of its hangar and down the runway, lifts off and climbs (JetAIUpdate's takeoff) to 300,
; the camera's ceiling (GameData MaxCameraHeight 310), and flies at its target up there on a jet's
; banked turns. Its one weapon lets go of the diving drone below 250 short of the target and the jet
; is gone the same frame (KamikazeRange); with its target dead on the way it takes the dearest enemy
; within 350 of where it was sent instead. Nobody can select it, so nobody can call it home, and it
; is UNATTACKABLE, like the Scud Storm's missiles: no weapon can aim at it on the way in.
; Should anything still kill it, it falls and bursts like a scout drone, without its warhead.

Locomotor TurkiyeKarguDroneLocomotor
  Surfaces = AIR
  Speed = 160
  SpeedDamaged = 120
  MinSpeed = 60
  TurnRate = 120
  TurnRateDamaged = 90
  Acceleration = 120
  AccelerationDamaged = 60
  Lift = 200
  LiftDamaged = 80
  Braking = 10
  MinTurnSpeed = 100
  PreferredHeight = 300
  AllowAirborneMotiveForce = Yes
  ZAxisBehavior = SURFACE_RELATIVE_HEIGHT
  CirclingRadius = 80
  Appearance = WINGS
  PitchInDirectionOfZVelFactor = 1.0
  PitchStiffness = 0.5
  RollStiffness = 0.4
  PitchDamping = 0.9
  RollDamping = 0.8
  ForwardVelocityPitchFactor = 0
  LateralVelocityRollFactor = 0.2
  Apply2DFrictionWhenAirborne = Yes
  AirborneTargetingHeight = 30
  LocomotorWorksWhenDead = Yes
End

; on its wheels a light drone rolls out half as fast again as a jet (BasicJetTaxiLocomotor, 50)
Locomotor TurkiyeKarguDroneTaxiLocomotor
  Surfaces            = GROUND
  Speed               = 80
  SpeedDamaged        = 80
  TurnRate            = 180
  TurnRateDamaged     = 180
  Acceleration        = 160
  AccelerationDamaged = 160
  Braking             = 160
  MinTurnSpeed        = 0
  ZAxisBehavior       = NO_Z_MOTIVE_FORCE
  Appearance          = FOUR_WHEELS
End

ObjectReskin TurkiyeKarguDrone ChinaJetMIG
End

Object TurkiyeKarguDrone
  Side        = Turkiye
  DisplayName = GUI:SuperweaponTurkiyeKarguSwarm
  SelectPortrait = SAHellfire_L
  ButtonImage    = SAHellfire
  VisionRange         = 150
  ShroudClearingRange = 150
  KindOf = PRELOAD CAN_CAST_REFLECTIONS CAN_ATTACK VEHICLE AIRCRAFT UNATTACKABLE
  WeaponSet
    Conditions = None
    Weapon     = PRIMARY TurkiyeKarguDroneWeapon
  End
  ReplaceModule ModuleTag_01
    Draw = W3DModelDraw ModuleTag_01_Turkiye
      OkToChangeModelColor = Yes
      DefaultConditionState
        Model = AVHellDrone
        WeaponLaunchBone = PRIMARY WeaponA
      End
      ConditionState = REALLYDAMAGED
        Model = AVHellDrone_d
      End
    End
  End
  ReplaceModule ModuleTag_02
    Body = ActiveBody ModuleTag_02_Turkiye
      MaxHealth     = 100.0
      InitialHealth = 100.0
    End
  End
  ReplaceModule ModuleTag_03
    Behavior = JetSlowDeathBehavior ModuleTag_03_Turkiye
      DestructionDelay              = 99999999
      RollRate                      = 0.4
      RollRateDelta                 = 100%
      PitchRate                     = 0.0
      FallHowFast                   = 150.0%
      FXInitialDeath                = FX_BattleDroneDamageTransitionSmall
      FXOnGroundDeath               = FX_AmericaScoutDroneExplode
      FXHitGround                   = FX_AmericaScoutDroneExplode
      OCLHitGround                  = OCL_AmericaScoutDroneExplode
      DelayFinalBlowUpFromHitGround = 0
    End
  End
  ReplaceModule ModuleTag_06
    Behavior = JetAIUpdate ModuleTag_06_Turkiye
      TakeoffDistForMaxLift         = 0%
      TakeoffPause                  = 200
      MinHeight                     = 3
      KeepsParkingSpaceWhenAirborne = No
      KamikazeRange                 = 350
    End
    Locomotor = SET_NORMAL TurkiyeKarguDroneLocomotor
    Locomotor = SET_TAXIING TurkiyeKarguDroneTaxiLocomotor
  End
End

; The drone's dive: the Tomahawk missile drawn as the drone, let go at the drone's height and speed
; and pointed at the target, so the swap from the jet does not show. It is let go 250 out and 300 up
; and comes down the Scud Storm missile's way: no dive distance short of its lock, so Locomotor's
; cruise curve takes it from level flight into a sixty degree dive, then 80 out the lock's straight
; run onto the target, which follows it as it drives. A lock at 10 skimmed in at tank height and
; missed a moving Crusader by a tank length. The Scud's thrust angle lets it bend that hard. It is
; UNATTACKABLE as the jet is, and no BALLISTIC_MISSILE: point defense lasers (PointDefenseLaserUpdate,
; the Avenger's and the Paladin's) pick their targets by that kind and never ask UNATTACKABLE, and
; one shot a dive down over the Avengers it was going for. No ignition flash, no smoke trail. The
; Tomahawk names no side, so a Firtina's missile stays a missile (ThingFactory::newObject).

Locomotor TurkiyeKarguDroneDiveLocomotor
  Surfaces = AIR
  Speed = 200
  MinSpeed = 120
  Acceleration = 300
  Braking = 0
  TurnRate = 540
  MaxThrustAngle = 45
  AllowAirborneMotiveForce = Yes
  Appearance = THRUST
  PreferredHeight = 300
  AirborneTargetingHeight = 30
  PreferredHeightDamping = 0.7
End

ObjectReskin TurkiyeKarguDroneDive TomahawkMissile
End

Object TurkiyeKarguDroneDive
  KindOf = PROJECTILE UNATTACKABLE
  ReplaceModule ModuleTag_01
    Draw = W3DModelDraw ModuleTag_01_Turkiye
      OkToChangeModelColor = Yes
      DefaultConditionState
        Model = AVHellDrone
      End
      ConditionState = JAMMED
        ParticleSysBone = None SparksMedium
      End
    End
  End
  ReplaceModule ModuleTag_07
    Behavior = MissileAIUpdate ModuleTag_07_Turkiye
      TryToFollowTarget = Yes
      FuelLifetime = 6000
      IgnitionDelay = 0
      InitialVelocity = 160
      DistanceToTravelBeforeTurning = 10
      DistanceToTargetForLock = 80
    End
    Locomotor = SET_NORMAL TurkiyeKarguDroneDiveLocomotor
  End
End

; The Reinforcement Pad picks its convoy by the owner's side and had none for Turkiye. It sends
; Turkiye the plain American one, which arrives as Turkiye units through newObject.

Object TechReinforcementPad
  ReplaceModule ModuleTag_05
    Behavior       = OCLUpdate ModuleTag_05_Turkiye ; Context window is a reaction to this, no CommandSet
      MinDelay     = 120000
      MaxDelay     = 120000
      CreateAtEdge = Yes ; as opposed to just creating on self

      FactionTriggered = Yes ; This requires a controlling player before it works
      FactionOCL   = Faction:America                   OCL:OCL_ReinforcementPadUSAVehicle
      FactionOCL   = Faction:AmericaSuperWeaponGeneral OCL:OCL_SWGen_ReinforcementPadUSAVehicle
      FactionOCL   = Faction:AmericaLaserGeneral       OCL:OCL_LGen_ReinforcementPadUSAVehicle
      FactionOCL   = Faction:AmericaAirForceGeneral    OCL:OCL_AFGen_ReinforcementPadUSAVehicle
      FactionOCL   = Faction:Turkiye                    OCL:OCL_ReinforcementPadUSAVehicle

      FactionOCL   = Faction:China                     OCL:OCL_ReinforcementPadCHIVehicle
      FactionOCL   = Faction:ChinaTankGeneral          OCL:OCL_TnkGen_ReinforcementPadCHIVehicle
      FactionOCL   = Faction:ChinaInfantryGeneral      OCL:OCL_InfGen_ReinforcementPadCHIVehicle
      FactionOCL   = Faction:ChinaNukeGeneral          OCL:OCL_NukeGen_ReinforcementPadCHIVehicle

      FactionOCL   = Faction:GLA                       OCL:OCL_ReinforcementPadGLAVehicle
      FactionOCL   = Faction:GLAToxinGeneral           OCL:OCL_ToxGen_ReinforcementPadGLAVehicle
      FactionOCL   = Faction:GLADemolitionGeneral      OCL:OCL_DemoGen_ReinforcementPadGLAVehicle
      FactionOCL   = Faction:GLAStealthGeneral         OCL:OCL_StlthGen_ReinforcementPadGLAVehicle
    End
  End
End