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.

feat(w3ddevice): kizilelma jet with landing gear that folds once airborne

Olcay Seygan6e7034989f7e
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9f5c8982d..9a5d90061 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -366,11 +366,12 @@ found and fixed, EA's own, not port damage.**
- A Turkish computer player fires its powers, the Minefield included, as soon as they are ready, and pulls its spotter teams back out of the enemy's reach while keeping the enemy in sight.
- Turkish units climb the Turkish Land Forces' own ladder: 21 promotions from Er through Onbaşı, Çavuş, Uzman Çavuş and six astsubay grades to Teğmen, Yüzbaşı, Albay, the four generals and Mareşal at the top. The names read in Turkish in every language, and each grade wears its own insignia: chevrons for the enlisted men, gold bars for the astsubays, stars for the officers, the oak wreath under a field officer's stars and the crescent and star over a general's. The climb costs what it costs everyone else, a unit turns Veteran at Uzman Çavuş, Elite at Teğmen and Heroic at Albay. Its bonuses lean on health: at Mareşal a unit has 42% more of it, fires 25% faster, hits 19% harder and reaches 12% further. The Maroon Beret starts as an Albay, as Burton starts as a Colonel. Before this a Turkish unit wore EA's three chevrons.
- Turkish ranks carry more than numbers. A Çavuş sees 10% further, an Uzman Çavuş takes 10% less damage standing still, and from the sixth grade a unit patches itself up out of a fight at 1% a second. Sight grows to 20% and 30% further at the astsubay and general ranks. A Teğmen spots for the Firtina and the Sakarya the way the spotter team does, a Binbaşı's own guns spread 15% less, and a Tümgeneral finds stealthed enemies within 100 of it. Officers lead: the Astsubay Kıdemli Başçavuş makes every friendly unit within 150 fire 5% faster and the Albay 10%, the Yüzbaşı lets them see 10% further, the Korgeneral cuts the damage they take by 10% and the Orgeneral puts 5% on the artillery's range. A Tuğgeneral who falls leaves the men around him taking 15% less damage for ten seconds, and a Mareşal's leadership reaches 300. Two officers of the same kind never add up: a tank between an Albay and a Başçavuş fires 10% faster, the Albay's figure alone. Select or hover a leader and what it gives the men around it shows on the ground as one quiet dial at the edge of its reach, each gift in its own band and its own pattern: short ticks round the rim for fire, a dotted line for sight, a notched line for armour, a graduated scale for the guns' reach and a faint wash inside for the last stand, so an Albay draws two bands and a Mareşal the whole dial; the portrait's tooltip lists what the rank carries. Only you and your allies see the rings. Making those colours work fixed a mistake in how the game tints glowing ground marks, which had drawn every one of them in pure blue. The grid a spy satellite or a radar scan lays over what it reveals is now the dim grey-blue EA's data asks for, and about half as bright as before.
-- The units still borrow American and other sides' models, voices and cameos, except the Mehmetcik, the engineers, the Command Center, the Airfield and the Altay. He has a model of his own: a rifleman in digital camouflage with a sleeve patch, a plate carrier and a helmet band in his side's colour. He moves like a Turkish soldier carrying a heavy rifle. At rest he stands at low ready, feet a shoulder's width apart and stock in the shoulder, and now and then sweeps his sector with head and rifle turning together or eases the cocking handle back to check the chamber. Sometimes he grounds the rifle at his left side, brings his heels together and salutes: right hand flat at the helmet's edge, elbow out at shoulder height, held, then cut down. He fires with his cheek on the stock and his weight forward, and each round of the burst rocks his shoulders back before he settles. He runs leaning into it with the rifle at low ready, both feet off the ground between steps and the knee taking each landing, his legs following the joint angles measured on real joggers, and closes on a target at a crouched walk with the rifle shouldered and level. Hurt, he keeps hold of the rifle, presses his free hand to his side and fires from the textbook kneeling position, sitting on his right heel with his left elbow on his left knee. Shot dead, he either goes over backwards or folds onto his knees and falls on his face, and the rifle drops beside him. A blast throws him and he lands on his back. A boot carrying his weight stays where it was put down: the run, the walk and the limp were checked frame by frame, and no planted foot moves over the ground. The parachute drop and the flag he raises over a captured building are still the Red Guard's. Anyone joining a game needs the same copy of the model and animations, so they ship with the game.
+- The units still borrow American and other sides' models, voices and cameos, except the Mehmetcik, the engineers, the Command Center, the Airfield, the Altay and the Kizilelma. He has a model of his own: a rifleman in digital camouflage with a sleeve patch, a plate carrier and a helmet band in his side's colour. He moves like a Turkish soldier carrying a heavy rifle. At rest he stands at low ready, feet a shoulder's width apart and stock in the shoulder, and now and then sweeps his sector with head and rifle turning together or eases the cocking handle back to check the chamber. Sometimes he grounds the rifle at his left side, brings his heels together and salutes: right hand flat at the helmet's edge, elbow out at shoulder height, held, then cut down. He fires with his cheek on the stock and his weight forward, and each round of the burst rocks his shoulders back before he settles. He runs leaning into it with the rifle at low ready, both feet off the ground between steps and the knee taking each landing, his legs following the joint angles measured on real joggers, and closes on a target at a crouched walk with the rifle shouldered and level. Hurt, he keeps hold of the rifle, presses his free hand to his side and fires from the textbook kneeling position, sitting on his right heel with his left elbow on his left knee. Shot dead, he either goes over backwards or folds onto his knees and falls on his face, and the rifle drops beside him. A blast throws him and he lands on his back. A boot carrying his weight stays where it was put down: the run, the walk and the limp were checked frame by frame, and no planted foot moves over the ground. The parachute drop and the flag he raises over a captured building are still the Red Guard's. Anyone joining a game needs the same copy of the model and animations, so they ship with the game.
- The Combat Engineers stopped being GLA Workers in a Turkish name. The engineer is cut from the Mehmetcik's cloth, so the two read as one army: the same digital camouflage, with the plate carrier, helmet band and a patch on the left sleeve in his side's colour, under a plain olive helmet with a night-vision mount. Over that he carries a sapper's load: a big pack with a bedroll across the top and a folding shovel whose blade stands above his helmet, tool pouches on the belt, knee pads, and his rifle slung on his back, because his hands are busy. He builds by swinging a pickaxe and sweeps for mines with a loop-headed detector. Underneath he still has the Worker's skeleton, so he runs and falls exactly as the Worker did, and his model ships with the game like the Mehmetcik's.
- The Turkish Command Center is a building of its own now, and it looks Turkish. The first version was a stack of concrete terraces that players kept calling an embassy; this one is a command palace in the style of the 1920s and 30s government buildings of Ankara. The block is whitewashed over a pale stone foot, with pilasters, a warm stone string course and two storeys of pointed windows, and bay windows stand out on carved corbels along the walls. Its long front is symmetric: a slim tower at each corner under a lead-grey pyramid cap, a pavilion beside each tower, and in the middle the portal tower with its tall arched entrance. A big drone ground-control dish sits on the portal tower's roof, on the building's centre line, and turns every few seconds to re-aim its link. Red tile covers only the raised central wing; the rest of the roof is flat terraces behind parapets capped in your side's colour, carrying air conditioning and vent stacks, and a thin turquoise band runs round the towers. One pavilion holds the vehicle gate, the other a matching gate kept shut, so the front reads the same from either end. New units are made in a garage deep behind the open gate and walk out with a good head's height to spare over the tallest of them, so nobody pops into the yard out of thin air. The pad steps down in two chamfered tiers with an apron along the exit lane and a yard for the flag, which flies in your side's colour at the same size as the other sides' flags, and a steel plate carrying Turkiye's badge, the wreath and crossed swords from the army screen. Damage blackens the windows and scorches the tiles. Heavy damage brings down the left front corner with its tower and pavilion and tears the dish off its mount to hang over the portal, and in the rubble the dish lies face up in front of the broken walls while the flag still flies, so you can tell whose ruin it is. While it goes up, the palace rises inside a pipe scaffold hung with green netting that stands well clear of its tower caps, and the flag, the mast, the dish, the guard post and the badge sign appear only when it is finished.
- The Turkish Airfield is a building of its own now instead of the American one. Its four hangars are hardened shelters under grassed earth mounds, each closed by a steel door in your side's colour that swings up into the roof when a jet rolls out, and the stand in front of every door is painted in your colour too. In the far corner stands a whitewashed stone keep on a sloping stone foot, with a tall arched entrance, battlements along its roof and a square stone control tower whose glass cab sits under a lead-grey pyramid; an approach radar turns on a mast on the keep's roof, and a small crew house with a red tile roof waits by the helipad. The runways, apron and helipad keep their old places, so jets and helicopters park, taxi and take off exactly as before. Damage blackens the walls and earth; heavy damage brings down the keep's front corner, breaks the tower under its cab, throws the radar onto the roof and burns the crew house's roof off; in the rubble the shelters have caved in. While it goes up, the keep rises inside a pipe scaffold with green netting and a tall cage round the tower.
- The Altay stopped being a Crusader in a Turkish name and is a modern Turkish main battle tank of its own. Its hull is long and low, riding on seven road wheels behind full side skirts. The flat welded turret is faced with bolt-on armour blocks at the front and armour panels down the sides, runs back into a long bustle with a stowage basket, and carries a remote machine gun on the right of the roof and the commander's sight on the left. The 120 mm gun is long, with a thermal sleeve and a fume extractor halfway out. Your side's colour runs along the skirts and the turret's side armour and rings the muzzle. It stands on the Crusader's footprint, so it fits where a Crusader fits. The gun rises and dips onto its target and kicks back with every shot, and the tracks run over exactly the ground the tank covers. Badly hurt it goes black with soot and loses its antennas. Killed, it leaves its own burnt-out hull with the turret and gun thrown clear of it, where it used to leave a dead Crusader. The model ships with the game, like the Mehmetcik's.
+- The Kizilelma stopped being a Raptor in a Turkish name and looks like the real Bayraktar Kizilelma. Nobody sits in it, so there is no canopy: a long nose droops to its point ahead of a smooth hump along the spine, and a sharp edge runs back along each side with the air intakes tucked under it. Small canards sit just behind the nose, the big low delta wing grows out of that edge, and one round nozzle sits between two flat tail booms under fins that lean hard outward. It is the real jet's flat grey. Your side's colour covers the canards, runs behind the wings' leading edges and caps the fins. Its wheels stay down on the runway, parked, taxiing, through the takeoff roll and the landing rollout, and fold away only once it is airborne. Badly hurt it goes black with soot. Shot down, it loses its left wing in the air, throws a fin and a canard where it hits the ground and leaves its own burnt-out wreck. The model ships with the game, like the Altay's.
- The computer plays Turkiye too. A Turkish AI puts up a full base with radar towers, Hisar batteries and Siper bunkers it fills with its own infantry, sends supply trucks, fields the new army, artillery included, fires its own powers and attacks.
- The Turkish computer brings its guns and the eyes to aim them. A Firtina or Sakarya that comes out for one of its attack groups now sends for spotter teams, one on Easy and Medium and two on Hard, and the group waits for them before it leaves; until now the guns walked out blind and the spotters it did buy sat in its bunkers. The American battle plans it plays never put a Firtina in an Easy attack and only reach one after a quarter of an hour on Medium, so it adds a gun of its own to every Easy attack group, every second Medium one and every fourth on Hard. In three fifteen-minute matches a difficulty on Twilight Flame against America, Easy fielded 21 guns, Medium 48 and Hard 27, and all 41 that came out for an attack group sent for their spotters. The computer pays the Turkish price for them now. A Firtina used to cost it the American 1200 whenever that was all it had in the bank. A spotter team killed in the field is replaced for any group that still has a gun and none left to see for it, the men it trains for the seats of a Humvee or a bunker are no longer spotter teams, and a group whose spotters are late leaves without them instead of breaking up when its build time runs out.
diff --git a/GeneralsMD/Code/BuildFingerprint.manifest b/GeneralsMD/Code/BuildFingerprint.manifest
index 3d13a8cfa..f320c4c64 100644
--- a/GeneralsMD/Code/BuildFingerprint.manifest
+++ b/GeneralsMD/Code/BuildFingerprint.manifest
@@ -80,11 +80,15 @@ Data/Art/Textures/TRCmdHQ_Tile.tga
Data/Art/Textures/TRCmdHQ_TileD.tga
Data/Art/Textures/TRCmdHQ_Wall.tga
Data/Art/Textures/TRCmdHQ_WallD.tga
+Data/Art/Textures/TRKizilelma_Debris.tga
+Data/Art/Textures/TRKizilelma_Wreck.tga
Data/Art/Textures/ZHCA_TRAirfld.tga
Data/Art/Textures/ZHCA_TRAltay.tga
Data/Art/Textures/ZHCA_TRAltayD.tga
Data/Art/Textures/ZHCA_TRCmdHQ.tga
Data/Art/Textures/ZHCA_TREngr.tga
+Data/Art/Textures/ZHCA_TRKizilelma.tga
+Data/Art/Textures/ZHCA_TRKizilelmaD.tga
Data/Art/Textures/ZHCA_TRMehmet.tga
Data/Art/W3D/TRAIRFLD.W3D
Data/Art/W3D/TRAIRFLD_D.W3D
@@ -107,6 +111,13 @@ Data/Art/W3D/TRCMDHQ_E.W3D
Data/Art/W3D/TRCMDHQ_R.W3D
Data/Art/W3D/TRCMDHQ_SC.W3D
Data/Art/W3D/TRENGR_SKN.W3D
+Data/Art/W3D/TRKIZILELMA.W3D
+Data/Art/W3D/TRKIZILELMA_D.W3D
+Data/Art/W3D/TRKIZILELMA_D1.W3D
+Data/Art/W3D/TRKIZILELMA_D1B.W3D
+Data/Art/W3D/TRKIZILELMA_D2.W3D
+Data/Art/W3D/TRKIZILELMA_D3.W3D
+Data/Art/W3D/TRKIZILELMA_D4.W3D
Data/Art/W3D/TRMEHM_AA2AC.W3D
Data/Art/W3D/TRMEHM_AA2SA.W3D
Data/Art/W3D/TRMEHM_ATA.W3D
diff --git a/GeneralsMD/Code/Data/Art/Textures/TRKizilelma_Debris.tga b/GeneralsMD/Code/Data/Art/Textures/TRKizilelma_Debris.tga
new file mode 100644
index 000000000..bc7c20339
Binary files /dev/null and b/GeneralsMD/Code/Data/Art/Textures/TRKizilelma_Debris.tga differ
diff --git a/GeneralsMD/Code/Data/Art/Textures/TRKizilelma_Wreck.tga b/GeneralsMD/Code/Data/Art/Textures/TRKizilelma_Wreck.tga
new file mode 100644
index 000000000..cb76b42b6
Binary files /dev/null and b/GeneralsMD/Code/Data/Art/Textures/TRKizilelma_Wreck.tga differ
diff --git a/GeneralsMD/Code/Data/Art/Textures/ZHCA_TRKizilelma.tga b/GeneralsMD/Code/Data/Art/Textures/ZHCA_TRKizilelma.tga
new file mode 100644
index 000000000..8a6d66665
Binary files /dev/null and b/GeneralsMD/Code/Data/Art/Textures/ZHCA_TRKizilelma.tga differ
diff --git a/GeneralsMD/Code/Data/Art/Textures/ZHCA_TRKizilelmaD.tga b/GeneralsMD/Code/Data/Art/Textures/ZHCA_TRKizilelmaD.tga
new file mode 100644
index 000000000..74428d16d
Binary files /dev/null and b/GeneralsMD/Code/Data/Art/Textures/ZHCA_TRKizilelmaD.tga differ
diff --git a/GeneralsMD/Code/Data/Art/W3D/TRKIZILELMA.W3D b/GeneralsMD/Code/Data/Art/W3D/TRKIZILELMA.W3D
new file mode 100644
index 000000000..7ae268aa2
Binary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRKIZILELMA.W3D differ
diff --git a/GeneralsMD/Code/Data/Art/W3D/TRKIZILELMA_D.W3D b/GeneralsMD/Code/Data/Art/W3D/TRKIZILELMA_D.W3D
new file mode 100644
index 000000000..6613301c8
Binary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRKIZILELMA_D.W3D differ
diff --git a/GeneralsMD/Code/Data/Art/W3D/TRKIZILELMA_D1.W3D b/GeneralsMD/Code/Data/Art/W3D/TRKIZILELMA_D1.W3D
new file mode 100644
index 000000000..488c195ae
Binary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRKIZILELMA_D1.W3D differ
diff --git a/GeneralsMD/Code/Data/Art/W3D/TRKIZILELMA_D1B.W3D b/GeneralsMD/Code/Data/Art/W3D/TRKIZILELMA_D1B.W3D
new file mode 100644
index 000000000..69d066cc8
Binary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRKIZILELMA_D1B.W3D differ
diff --git a/GeneralsMD/Code/Data/Art/W3D/TRKIZILELMA_D2.W3D b/GeneralsMD/Code/Data/Art/W3D/TRKIZILELMA_D2.W3D
new file mode 100644
index 000000000..c18477932
Binary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRKIZILELMA_D2.W3D differ
diff --git a/GeneralsMD/Code/Data/Art/W3D/TRKIZILELMA_D3.W3D b/GeneralsMD/Code/Data/Art/W3D/TRKIZILELMA_D3.W3D
new file mode 100644
index 000000000..7385fddaf
Binary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRKIZILELMA_D3.W3D differ
diff --git a/GeneralsMD/Code/Data/Art/W3D/TRKIZILELMA_D4.W3D b/GeneralsMD/Code/Data/Art/W3D/TRKIZILELMA_D4.W3D
new file mode 100644
index 000000000..94fbe64be
Binary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRKIZILELMA_D4.W3D differ
diff --git a/GeneralsMD/Code/Data/INI/ObjectCreationListReforged.ini b/GeneralsMD/Code/Data/INI/ObjectCreationListReforged.ini
index d5b8ed2bc..ba0d6d8ed 100644
--- a/GeneralsMD/Code/Data/INI/ObjectCreationListReforged.ini
+++ b/GeneralsMD/Code/Data/INI/ObjectCreationListReforged.ini
@@ -2282,6 +2282,87 @@ ObjectCreationList OCL_RaptorDeathHitGround
End
End
+; The Kizilelma's death, the Raptor's with its own pieces: the left wing torn off the moment it dies
+; in the air (the falling model has lost it), then the left fin, the left canard and that wing again
+; where it hits the ground with the fork's crash flash and fire, and its own hulk last. Each offset
+; is the centre of the piece in the jet's model space, so it starts where the piece was.
+
+ObjectCreationList OCL_TurkiyeKizilelmaDeathInitial
+ CreateDebris
+ ModelNames = TRKIZILELMA_D4
+ Offset = X:-2.400 Y:7.300 Z:0.650
+ Mass = 3
+ Count = 1
+ Disposition = SEND_IT_FLYING INHERIT_VELOCITY RANDOM_FORCE
+ DispositionIntensity = 0.5
+ MinForcePitch = 0.0
+ MaxForcePitch = 40.0
+ SpinRate = 20.0
+ End
+End
+
+ObjectCreationList OCL_TurkiyeKizilelmaDeathHitGround
+ ; the left fin that rips off
+ CreateDebris
+ ModelNames = TRKIZILELMA_D2
+ Offset = X:-12.050 Y:3.993 Z:3.175
+ Mass = 3
+ Count = 1
+ Disposition = SEND_IT_FLYING INHERIT_VELOCITY RANDOM_FORCE
+ DispositionIntensity = 0.5
+ MinForcePitch = 0.0
+ MaxForcePitch = 20.0
+ SpinRate = 50.0
+ End
+ ; the left canard broken off
+ CreateDebris
+ ModelNames = TRKIZILELMA_D3
+ Offset = X:8.200 Y:4.400 Z:0.800
+ Mass = 3
+ Count = 1
+ Disposition = SEND_IT_FLYING INHERIT_VELOCITY RANDOM_FORCE
+ DispositionIntensity = 0.5
+ MinForcePitch = 0.0
+ MaxForcePitch = 30.0
+ SpinRate = 30.0
+ End
+ ; the left wing
+ CreateDebris
+ ModelNames = TRKIZILELMA_D4
+ Offset = X:-2.400 Y:7.300 Z:0.650
+ Mass = 3
+ Count = 1
+ Disposition = SEND_IT_FLYING INHERIT_VELOCITY RANDOM_FORCE
+ DispositionIntensity = 0.5
+ MinForcePitch = 0.0
+ MaxForcePitch = 40.0
+ SpinRate = 20.0
+ End
+ CreateObject
+ ObjectNames = Reforged_JetCrashImpact
+ Disposition = ON_GROUND_ALIGNED
+ End
+ CreateObject
+ ObjectNames = Reforged_JetCrashFire
+ Disposition = ON_GROUND_ALIGNED
+ End
+End
+
+ObjectCreationList OCL_TurkiyeKizilelmaDeathFinalBlowUp
+ CreateObject
+ ObjectNames = TurkiyeKizilelmaHulk
+ Offset = X:0.0 Y:0.0 Z:0.0
+ Count = 1
+ Disposition = SEND_IT_FLYING INHERIT_VELOCITY RANDOM_FORCE
+ DispositionIntensity = 0.4
+ MinForcePitch = 0.0
+ MaxForcePitch = 10.0
+ RollRate = 0.0
+ PitchRate = 0.0
+ YawRate = 0.0
+ End
+End
+
ObjectCreationList OCL_MIGDeathHitGround
; the vertical stabilizer that rips off
CreateDebris
diff --git a/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini b/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini
index 1edcf3d49..799c1d821 100644
--- a/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini
+++ b/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini
@@ -5734,6 +5734,131 @@ ParticleSystem ReforgedShrapnelFlame
WindPingPongEndAngleMax = 6.283185
End
+; The Kizilelma's afterburner, on its Engine01 and Engine02 bones. It wore the Raptor's JetLenzflare,
+; a white card 20 across lit for three frames at the bone and rising 0.25 a frame, with a cloud left
+; behind for every card (JetLenzflareExhaust) growing to as much as 29 across. The bones sit about
+; 6 above the runway on the takeoff roll, so the card's lower half went into the ground and its
+; sides showed past the fins as two glows leaning off the tail, and the clouds lay on the runway.
+; The card here is 8 across and does not rise, still thrown aft along the bone's heading, and each
+; cloud is lighter, grows to about 12 and is gone in two thirds of a second instead of over one.
+; Retail 30 Hz units.
+
+ParticleSystem KizilelmaLenzflare
+ Priority = WEAPON_EXPLOSION
+ IsOneShot = No
+ Shader = ADDITIVE
+ Type = PARTICLE
+ ParticleName = EXLnzFlar2.tga
+ AngleZ = 0.00 0.00
+ AngularRateZ = 0.00 0.00
+ AngularDamping = 1.00 1.00
+ VelocityDamping = 1.00 1.00
+ Gravity = 0.00
+ SlaveSystem = KizilelmaLenzflareExhaust
+ SlavePosOffset = X:0.00 Y:0.00 Z:0.00
+ Lifetime = 3.00 3.00
+ SystemLifetime = 0
+ Size = 8.00 8.00
+ StartSizeRate = 0.00 0.00
+ SizeRate = 0.10 0.10
+ SizeRateDamping = 1.00 1.00
+ Alpha1 = 1.00 1.00 0
+ Alpha2 = 0.00 0.00 2
+ Alpha3 = 0.00 0.00 0
+ Alpha4 = 0.00 0.00 0
+ Alpha5 = 0.00 0.00 0
+ Alpha6 = 0.00 0.00 0
+ Alpha7 = 0.00 0.00 0
+ Alpha8 = 0.00 0.00 0
+ Color1 = R:0 G:0 B:0 0
+ Color2 = R:255 G:255 B:255 1
+ Color3 = R:0 G:0 B:0 3
+ Color4 = R:0 G:0 B:0 0
+ Color5 = R:0 G:0 B:0 0
+ Color6 = R:0 G:0 B:0 0
+ Color7 = R:0 G:0 B:0 0
+ Color8 = R:0 G:0 B:0 0
+ ColorScale = 0.00 0.00
+ BurstDelay = 0.00 0.00
+ BurstCount = 1.00 1.00
+ InitialDelay = 0.00 0.00
+ DriftVelocity = X:0.00 Y:0.00 Z:0.00
+ VelocityType = ORTHO
+ VelOrthoX = -1.00 0.00
+ VelOrthoY = 0.00 0.00
+ VelOrthoZ = 0.00 0.00
+ VolumeType = LINE
+ VolLineStart = X:0.00 Y:0.00 Z:0.00
+ VolLineEnd = X:0.00 Y:0.00 Z:0.00
+ IsHollow = Yes
+ IsGroundAligned = No
+ IsEmitAboveGroundOnly = No
+ IsParticleUpTowardsEmitter = No
+ WindMotion = Unused
+ WindAngleChangeMin = 0.149924
+ WindAngleChangeMax = 0.449946
+ WindPingPongStartAngleMin = 0.000000
+ WindPingPongStartAngleMax = 0.785398
+ WindPingPongEndAngleMin = 5.497787
+ WindPingPongEndAngleMax = 6.283185
+End
+
+ParticleSystem KizilelmaLenzflareExhaust
+ Priority = WEAPON_EXPLOSION
+ IsOneShot = No
+ Shader = ALPHA
+ Type = PARTICLE
+ ParticleName = EXCloud01.tga
+ AngleZ = 0.00 1.00
+ AngularRateZ = 0.00 0.00
+ AngularDamping = 1.00 1.00
+ VelocityDamping = 0.00 0.00
+ Gravity = 0.00
+ Lifetime = 20.00 20.00
+ SystemLifetime = 0
+ Size = 0.50 0.50
+ StartSizeRate = 0.00 0.00
+ SizeRate = 0.30 0.80
+ SizeRateDamping = 0.93 0.94
+ Alpha1 = 0.30 0.30 0
+ Alpha2 = 0.00 0.30 14
+ Alpha3 = 0.00 0.00 20
+ Alpha4 = 0.00 0.00 0
+ Alpha5 = 0.00 0.00 0
+ Alpha6 = 0.00 0.00 0
+ Alpha7 = 0.00 0.00 0
+ Alpha8 = 0.00 0.00 0
+ Color1 = R:245 G:204 B:141 0
+ Color2 = R:160 G:160 B:160 8
+ Color3 = R:0 G:0 B:0 0
+ Color4 = R:0 G:0 B:0 0
+ Color5 = R:0 G:0 B:0 0
+ Color6 = R:0 G:0 B:0 0
+ Color7 = R:0 G:0 B:0 0
+ Color8 = R:0 G:0 B:0 0
+ ColorScale = 0.00 0.00
+ BurstDelay = 2.00 2.00
+ BurstCount = 1.00 1.00
+ InitialDelay = 0.00 0.00
+ DriftVelocity = X:0.00 Y:0.00 Z:0.00
+ VelocityType = ORTHO
+ VelOrthoX = 0.00 0.00
+ VelOrthoY = 0.00 0.00
+ VelOrthoZ = 0.00 0.00
+ VolumeType = POINT
+ IsHollow = No
+ IsGroundAligned = No
+ IsEmitAboveGroundOnly = No
+ IsParticleUpTowardsEmitter = No
+ WindMotion = Unused
+ WindAngleChangeMin = 0.149924
+ WindAngleChangeMax = 0.449946
+ WindPingPongStartAngleMin = 0.000000
+ WindPingPongStartAngleMax = 0.785398
+ WindPingPongEndAngleMin = 5.497787
+ WindPingPongEndAngleMax = 6.283185
+End
+
; ----------------------------------------------------------------------------------------------
; The fire look. Under Direct3D 11 the billboards of these systems run a temperature ramp over each
; particle's life, white through yellow, orange and red to soot, burn away from their thin edges in
diff --git a/GeneralsMD/Code/Data/INI/TurkiyeReforged.ini b/GeneralsMD/Code/Data/INI/TurkiyeReforged.ini
index ca5ef9a68..fdc38e52f 100644
--- a/GeneralsMD/Code/Data/INI/TurkiyeReforged.ini
+++ b/GeneralsMD/Code/Data/INI/TurkiyeReforged.ini
@@ -2123,6 +2123,124 @@ Object TurkiyeJetKizilelma
InitialHealth = 160.0
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
+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 =============================================================================
diff --git a/GeneralsMD/Code/GameEngine/Source/Common/System/FileSystem.cpp b/GeneralsMD/Code/GameEngine/Source/Common/System/FileSystem.cpp
index 7b0d06e75..3a3a8f2eb 100644
--- a/GeneralsMD/Code/GameEngine/Source/Common/System/FileSystem.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/Common/System/FileSystem.cpp
@@ -575,6 +575,8 @@ Bool FileSystem::isForkOwnedPath(const AsciiString& filename)
|| starts("art\\w3d\\traltay") || starts("art\\textures\\traltay_") || starts("art\\textures\\zhca_traltay")
// the Airfield's own fortress field, its four shelter doors and its scaffold
|| starts("art\\w3d\\trairfld") || starts("art\\textures\\trairfld") || starts("art\\textures\\zhca_trairfld")
+ // the Kizilelma's own model, its damaged and falling states, the hulk and the pieces it throws
+ || starts("art\\w3d\\trkizilelma") || starts("art\\textures\\trkizilelma") || starts("art\\textures\\zhca_trkizilelma")
|| starts("window\\")
|| p == "install_final.bmp";
}
diff --git a/GeneralsMD/Code/GameEngineDevice/Include/W3DDevice/GameClient/Module/W3DModelDraw.h b/GeneralsMD/Code/GameEngineDevice/Include/W3DDevice/GameClient/Module/W3DModelDraw.h
index 25869ce55..686a032bc 100644
--- a/GeneralsMD/Code/GameEngineDevice/Include/W3DDevice/GameClient/Module/W3DModelDraw.h
+++ b/GeneralsMD/Code/GameEngineDevice/Include/W3DDevice/GameClient/Module/W3DModelDraw.h
@@ -310,6 +310,8 @@ public:
Bool m_animationsRequirePower;///< Should UnderPowered disable type pause animations in this draw module?
Bool m_stabilizedTurretPitch; ///< draw a pitch bone at the logic's pitch against level ground, whatever the drawn hull's tilt
Real m_barrelArtPitch; ///< with that: how far the barrel's mesh is modelled above level at rest, taken off the drawn pitch
+ AsciiString m_landingGearSubObject; ///< a sub-object shown on the ground and hidden once the object is m_landingGearUpHeight above it
+ Real m_landingGearUpHeight;
#ifdef CACHE_ATTACH_BONE
mutable Bool m_attachToDrawableBoneOffsetValid;
#endif
diff --git a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/Drawable/Draw/W3DModelDraw.cpp b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/Drawable/Draw/W3DModelDraw.cpp
index 6ce031281..5c1f0a8a0 100644
--- a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/Drawable/Draw/W3DModelDraw.cpp
+++ b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/Drawable/Draw/W3DModelDraw.cpp
@@ -1071,6 +1071,7 @@ W3DModelDrawModuleData::W3DModelDrawModuleData() :
m_animationsRequirePower(true),
m_stabilizedTurretPitch(false),
m_barrelArtPitch(0.0f),
+ m_landingGearUpHeight(0.0f),
#ifdef CACHE_ATTACH_BONE
m_attachToDrawableBoneOffsetValid(false),
#endif
@@ -1268,6 +1269,8 @@ void W3DModelDrawModuleData::buildFieldParse(MultiIniFieldParse& p)
{ "AnimationsRequirePower", INI::parseBool, NULL, offsetof(W3DModelDrawModuleData, m_animationsRequirePower) },
{ "StabilizedTurretPitch", INI::parseBool, NULL, offsetof(W3DModelDrawModuleData, m_stabilizedTurretPitch) },
{ "BarrelArtPitch", INI::parseAngleReal, NULL, offsetof(W3DModelDrawModuleData, m_barrelArtPitch) },
+ { "LandingGearSubObject", INI::parseAsciiString, NULL, offsetof(W3DModelDrawModuleData, m_landingGearSubObject) },
+ { "LandingGearUpHeight", INI::parseReal, NULL, offsetof(W3DModelDrawModuleData, m_landingGearUpHeight) },
{ "ParticlesAttachedToAnimatedBones", INI::parseBool, NULL, offsetof(W3DModelDrawModuleData, m_particlesAttachedToAnimatedBones) },
{ "MinLODRequired", INI::parseStaticGameLODLevel, NULL, offsetof(W3DModelDrawModuleData, m_minLODRequired) },
{ "ProjectileBoneFeedbackEnabledSlots", INI::parseBitString32, TheWeaponSlotTypeNames, offsetof(W3DModelDrawModuleData, m_projectileBoneFeedbackEnabledSlots) },
@@ -2474,6 +2477,28 @@ void W3DModelDraw::doDrawModule(const Matrix3D* transformMtx)
handleClientRecoil();
+ // A jet's wheels are down while it is off air locomotion (parked or taxiing: a state without
+ // JETEXHAUST), and on air locomotion while it is less than LandingGearUpHeight over the ground.
+ // JETEXHAUST alone cannot say so: the logic sets it as the takeoff roll starts and keeps it through the
+ // landing rollout. This runs inside the logic thread's window, so it reads only what the sync point
+ // fixed: the state this module last applied, the drawable's position taken for the draw, and the drawn
+ // terrain, never the object, whose altitude cache the tick is rewriting. A model without the
+ // sub-object (the falling jet) has no gear to show.
+ if (modData->m_landingGearSubObject.isNotEmpty() && m_renderObject && m_curState)
+ {
+ RenderObjClass* gear = m_renderObject->Get_Sub_Object_By_Name(modData->m_landingGearSubObject.str());
+ if (gear)
+ {
+ Bool airLoco = FALSE;
+ for (size_t i = 0; i < m_curState->m_conditionsYesVec.size(); ++i)
+ airLoco = airLoco || m_curState->m_conditionsYesVec[i].test(MODELCONDITION_JETEXHAUST);
+ const Coord3D* pos = getDrawable()->getPositionForDraw();
+ gear->Set_Hidden(airLoco &&
+ pos->z - TheTerrainRenderObject->getHeightMapHeight(pos->x, pos->y, NULL) > modData->m_landingGearUpHeight);
+ gear->Release_Ref();
+ }
+ }
+
// A vehicle on a night map lights what is in front of it (lightHeadlights). Drawable::draw has
// already returned for anything hidden, stealthed or under the shroud, so an enemy's lamps never
// show where the enemy does not. Rooftop lamps on buildings and aircraft lights stay beams only.