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(gameengine): stepped turkiye command center with a drone dish

Olcay Seygana0222d1baaaf
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0e17edf60..5d5506f30 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -366,7 +366,7 @@ found and fixed, EA's own, not port damage.**
- 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 and the Command Center. 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, the first Turkish structure that stopped borrowing America's, and it is painted to stand beside the other three sides' headquarters as part of the same game. It is one heavy block of sun-bleached concrete on a sloped stone base, two storeys of small deep-set windows, a flat roof behind a parapet capped in your side's colour, and a squat command tower rising out of the middle with a railed watch cabin and radio mast on top. The roof carries what a working headquarters needs: air conditioning plant, a plant room, vent stacks, a water tank, a dish and two whip antennas, with a sandbagged lookout at the front corner. Below, a chain-link fence runs round the concrete pad, concrete barriers line the exit lane, and crates and oil drums sit by the flag, which flies in your side's colour out front. New units are made in a garage inside the block and walk out through a covered gate with a good head's height to spare over the tallest of them, so nobody pops into the forecourt out of thin air. Damage sets the windows smoking, heavy damage brings the front corner down and folds the mast over, and the flag still flies over the rubble, so you can tell whose ruin it is. While it goes up, the block rises inside a pipe scaffold hung with green netting, the tower inside a taller cage of its own so its top never shows above the scaffold, and the flag and the mast go up only when it is finished.
+- The Turkish Command Center is a building of its own now, the first Turkish structure that stopped borrowing America's, and it has a shape you can pick out across the map the way you pick out the American radar or the Chinese pagoda roofs. Three terraces of sun-bleached concrete step up towards the back, their walls sloping in, each edge capped in your side's colour. The middle one has a long band of slanted glazing facing the field. At the rear corner a command tower climbs past them all to a glass cab that flares out under a railed roof with the radio mast on top. Over the vehicle gate sits a gatehouse, and on its roof a big drone ground-control dish turns every few seconds to re-aim its link, the way the real ones track. The roofs carry the plant a working headquarters needs: air conditioning, vent stacks, a water tank, a hatch, two whip antennas and a sandbagged lookout. 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 own badge, the wreath and crossed swords from the army screen, on a disc in your colour. A chain-link fence follows the pad's edges. New units are made in a garage behind the gate and walk out through it with a good head's height to spare over the tallest of them, so nobody pops into the yard out of thin air. Damage sets the windows smoking, heavy damage brings the front corner down, smashes the tower's cab and knocks the dish off its mount, and in the rubble the dish lies face up on the heaps while the flag still flies, so you can tell whose ruin it is. While it goes up, the terraces rise inside a pipe scaffold hung with green netting and the tower inside a taller cage of its own, so its top never shows above the scaffold; the flag, the mast and the dish go up only when it is finished.
- 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/Data/Art/W3D/TRCMDHQ.W3D b/GeneralsMD/Code/Data/Art/W3D/TRCMDHQ.W3D
index 0c8b5a8df..154809d68 100644
Binary files a/GeneralsMD/Code/Data/Art/W3D/TRCMDHQ.W3D and b/GeneralsMD/Code/Data/Art/W3D/TRCMDHQ.W3D differ
diff --git a/GeneralsMD/Code/Data/Art/W3D/TRCMDHQ_D.W3D b/GeneralsMD/Code/Data/Art/W3D/TRCMDHQ_D.W3D
index 02dd6ba4b..35bc9a41c 100644
Binary files a/GeneralsMD/Code/Data/Art/W3D/TRCMDHQ_D.W3D and b/GeneralsMD/Code/Data/Art/W3D/TRCMDHQ_D.W3D differ
diff --git a/GeneralsMD/Code/Data/Art/W3D/TRCMDHQ_DR.W3D b/GeneralsMD/Code/Data/Art/W3D/TRCMDHQ_DR.W3D
index d3946f19d..d390bfd8e 100644
Binary files a/GeneralsMD/Code/Data/Art/W3D/TRCMDHQ_DR.W3D and b/GeneralsMD/Code/Data/Art/W3D/TRCMDHQ_DR.W3D differ
diff --git a/GeneralsMD/Code/Data/Art/W3D/TRCMDHQ_E.W3D b/GeneralsMD/Code/Data/Art/W3D/TRCMDHQ_E.W3D
index fe863b205..18e6a7ac1 100644
Binary files a/GeneralsMD/Code/Data/Art/W3D/TRCMDHQ_E.W3D and b/GeneralsMD/Code/Data/Art/W3D/TRCMDHQ_E.W3D differ
diff --git a/GeneralsMD/Code/Data/Art/W3D/TRCMDHQ_R.W3D b/GeneralsMD/Code/Data/Art/W3D/TRCMDHQ_R.W3D
index 1170aeef8..1cebba0d5 100644
Binary files a/GeneralsMD/Code/Data/Art/W3D/TRCMDHQ_R.W3D and b/GeneralsMD/Code/Data/Art/W3D/TRCMDHQ_R.W3D differ
diff --git a/GeneralsMD/Code/Data/Art/W3D/TRCMDHQ_SC.W3D b/GeneralsMD/Code/Data/Art/W3D/TRCMDHQ_SC.W3D
index 01b4de5f8..4041d0ee0 100644
Binary files a/GeneralsMD/Code/Data/Art/W3D/TRCMDHQ_SC.W3D and b/GeneralsMD/Code/Data/Art/W3D/TRCMDHQ_SC.W3D differ
diff --git a/GeneralsMD/Code/Data/INI/TurkiyeReforged.ini b/GeneralsMD/Code/Data/INI/TurkiyeReforged.ini
index c5cba1944..39bf4f4c9 100644
--- a/GeneralsMD/Code/Data/INI/TurkiyeReforged.ini
+++ b/GeneralsMD/Code/Data/INI/TurkiyeReforged.ini
@@ -98,18 +98,18 @@ Object TurkiyeCommandCenter
RemoveModule ModuleTag_32
RemoveModule ModuleTag_33
RemoveModule ModuleTag_34
- ; Its own model: one heavy concrete block on a battered stone base, flat roof behind a parapet,
- ; small deep windows, a squat command tower with a watch cabin and the radio mast for the radar,
- ; the covered vehicle gate and its garage inside the block, the flag in front and a guard post on
- ; the exit lane. TRCMDHQ and its damaged, burning and rubble states TRCMDHQ_D, _E and _R,
+ ; Its own model: three battered concrete terraces stepping up to the rear, a command tower at the
+ ; rear corner with a flared glass cab and the radio mast, a gatehouse over the vehicle gate and its
+ ; garage carrying the drone ground-control dish, 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 in every state, night and snow draw the day model, and
- ; construction sinks it into the ground as retail's does, with the flag and the radio mast 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.
+ ; 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 and the dish 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
@@ -117,7 +117,7 @@ Object TurkiyeCommandCenter
Model = TRCMDHQ
Animation = TRCMDHQ.TRCMDHQ
AnimationMode = LOOP
- ShowSubObject = FLAGPOLE MAST FLAG01 FLAG02 FLAG03 FLAG04
+ ShowSubObject = FLAGPOLE MAST FLAG01 FLAG02 FLAG03 FLAG04 DISH
End
ConditionState = AWAITING_CONSTRUCTION
Model = NONE
@@ -131,13 +131,13 @@ Object TurkiyeCommandCenter
Model = TRCMDHQ_D
Animation = TRCMDHQ_D.TRCMDHQ_D
AnimationMode = LOOP
- ShowSubObject = FLAGPOLE MAST FLAG01 FLAG02 FLAG03 FLAG04
+ ShowSubObject = FLAGPOLE MAST FLAG01 FLAG02 FLAG03 FLAG04 DISH
End
ConditionState = REALLYDAMAGED
Model = TRCMDHQ_E
Animation = TRCMDHQ_E.TRCMDHQ_E
AnimationMode = LOOP
- ShowSubObject = FLAGPOLE MAST FLAG01 FLAG02 FLAG03 FLAG04
+ ShowSubObject = FLAGPOLE MAST FLAG01 FLAG02 FLAG03 FLAG04 DISH
End
ConditionState = RUBBLE
Model = TRCMDHQ_R
@@ -151,25 +151,28 @@ Object TurkiyeCommandCenter
Animation = TRCMDHQ.TRCMDHQ
AnimationMode = LOOP
Flags = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
- HideSubObject = FLAGPOLE MAST FLAG01 FLAG02 FLAG03 FLAG04
+ HideSubObject = FLAGPOLE MAST FLAG01 FLAG02 FLAG03 FLAG04 DISH
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
+ HideSubObject = FLAGPOLE MAST FLAG01 FLAG02 FLAG03 FLAG04 DISH
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
+ HideSubObject = FLAGPOLE MAST FLAG01 FLAG02 FLAG03 FLAG04 DISH
End
End
End
- ; the vehicle gate's two leaves, shut by default; damage leaves them as they are, rubble has no gate
+ ; 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
@@ -179,28 +182,44 @@ Object TurkiyeCommandCenter
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