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.
C++ cmakecnccommand-and-conquercppdirectx11game-enginegame-preservationgeneralsrtssage-enginex64zero-hour
feat(gameengine): give mehmetcik animations of his own
Olcay Seygan1c1c9628ce47
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 30dfe6c45..6dfb60f86 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -260,7 +260,7 @@ 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. He has a model of his own: a rifleman in digital camouflage with a Turkish flag on his left sleeve and a plate carrier and helmet band in his side's colour. He moves with the Red Guard's animations, so he walks, fires and falls like one, and he still raises a Red Guard's flag when he takes a building. Anyone joining a game needs the same copy of the model, so it ships with the game.+- The units still borrow American and other sides' models, voices and cameos, except the Mehmetcik. He has a model of his own: a rifleman in digital camouflage with a Turkish flag on his left sleeve and a plate carrier and helmet band in his side's colour. He moves his own way too. At rest he holds the rifle at low ready, stock in the shoulder, and now and then looks it over. Other times he scans left and right, or reaches up to straighten his helmet. He runs with the rifle across his chest and closes on a target at a crouched walk with it still shouldered; each round he fires kicks the muzzle up, three to a burst. Hurt, he hunches over a hand pressed to his side and fires from one knee. Shot dead, he either goes over backwards or folds onto his knees and falls on his face. A blast throws him and he lands on his back. His steps are matched to his speed, so his boots no longer slide 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 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.manifestindex b9da33ebb..c66f59d4c 100644--- a/GeneralsMD/Code/BuildFingerprint.manifest+++ b/GeneralsMD/Code/BuildFingerprint.manifest@@ -43,7 +43,29 @@ Data/Art/Textures/ReforgedSignalAttack.tgaData/Art/Textures/ReforgedSignalDefend.tgaData/Art/Textures/ReforgedSignalLook.tgaData/Art/Textures/ZHCA_TRMehmet.tga+Data/Art/W3D/TRMEHM_AA2AC.W3D+Data/Art/W3D/TRMEHM_AA2SA.W3D+Data/Art/W3D/TRMEHM_ATA.W3D+Data/Art/W3D/TRMEHM_ATC.W3D+Data/Art/W3D/TRMEHM_ATCED.W3D+Data/Art/W3D/TRMEHM_ATCST.W3D+Data/Art/W3D/TRMEHM_CHA.W3D+Data/Art/W3D/TRMEHM_DTA.W3D+Data/Art/W3D/TRMEHM_DTB.W3D+Data/Art/W3D/TRMEHM_DTE1.W3D+Data/Art/W3D/TRMEHM_DTE2.W3D+Data/Art/W3D/TRMEHM_DTE3.W3D+Data/Art/W3D/TRMEHM_IDA.W3D+Data/Art/W3D/TRMEHM_IDB.W3D+Data/Art/W3D/TRMEHM_IDC.W3D+Data/Art/W3D/TRMEHM_RNA.W3D+Data/Art/W3D/TRMEHM_RNB.W3D+Data/Art/W3D/TRMEHM_S2SB.W3D+Data/Art/W3D/TRMEHM_SA2AA.W3DData/Art/W3D/TRMEHM_SKN.W3D+Data/Art/W3D/TRMEHM_STA.W3D+Data/Art/W3D/TRMEHM_STB.W3D+Data/Art/W3D/TRMEHM_WKA.W3DData/Cinema/aurorablast.txtData/Cinema/aurorafog.txtData/Cinema/blastcheck.txtdiff --git a/GeneralsMD/Code/Data/Art/W3D/TRMEHM_AA2AC.W3D b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_AA2AC.W3Dnew file mode 100644index 000000000..4c8687b22Binary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_AA2AC.W3D differdiff --git a/GeneralsMD/Code/Data/Art/W3D/TRMEHM_AA2SA.W3D b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_AA2SA.W3Dnew file mode 100644index 000000000..12a9be375Binary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_AA2SA.W3D differdiff --git a/GeneralsMD/Code/Data/Art/W3D/TRMEHM_ATA.W3D b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_ATA.W3Dnew file mode 100644index 000000000..e70a74fd5Binary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_ATA.W3D differdiff --git a/GeneralsMD/Code/Data/Art/W3D/TRMEHM_ATC.W3D b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_ATC.W3Dnew file mode 100644index 000000000..7eb6deffdBinary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_ATC.W3D differdiff --git a/GeneralsMD/Code/Data/Art/W3D/TRMEHM_ATCED.W3D b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_ATCED.W3Dnew file mode 100644index 000000000..7441a093bBinary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_ATCED.W3D differdiff --git a/GeneralsMD/Code/Data/Art/W3D/TRMEHM_ATCST.W3D b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_ATCST.W3Dnew file mode 100644index 000000000..e6e181031Binary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_ATCST.W3D differdiff --git a/GeneralsMD/Code/Data/Art/W3D/TRMEHM_CHA.W3D b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_CHA.W3Dnew file mode 100644index 000000000..997281709Binary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_CHA.W3D differdiff --git a/GeneralsMD/Code/Data/Art/W3D/TRMEHM_DTA.W3D b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_DTA.W3Dnew file mode 100644index 000000000..b60ff584eBinary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_DTA.W3D differdiff --git a/GeneralsMD/Code/Data/Art/W3D/TRMEHM_DTB.W3D b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_DTB.W3Dnew file mode 100644index 000000000..0ec3007a6Binary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_DTB.W3D differdiff --git a/GeneralsMD/Code/Data/Art/W3D/TRMEHM_DTE1.W3D b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_DTE1.W3Dnew file mode 100644index 000000000..ae8851acbBinary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_DTE1.W3D differdiff --git a/GeneralsMD/Code/Data/Art/W3D/TRMEHM_DTE2.W3D b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_DTE2.W3Dnew file mode 100644index 000000000..77db5f750Binary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_DTE2.W3D differdiff --git a/GeneralsMD/Code/Data/Art/W3D/TRMEHM_DTE3.W3D b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_DTE3.W3Dnew file mode 100644index 000000000..360cb4963Binary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_DTE3.W3D differdiff --git a/GeneralsMD/Code/Data/Art/W3D/TRMEHM_IDA.W3D b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_IDA.W3Dnew file mode 100644index 000000000..190c84b89Binary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_IDA.W3D differdiff --git a/GeneralsMD/Code/Data/Art/W3D/TRMEHM_IDB.W3D b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_IDB.W3Dnew file mode 100644index 000000000..75500db38Binary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_IDB.W3D differdiff --git a/GeneralsMD/Code/Data/Art/W3D/TRMEHM_IDC.W3D b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_IDC.W3Dnew file mode 100644index 000000000..4f7a1811aBinary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_IDC.W3D differdiff --git a/GeneralsMD/Code/Data/Art/W3D/TRMEHM_RNA.W3D b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_RNA.W3Dnew file mode 100644index 000000000..3e7532dfbBinary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_RNA.W3D differdiff --git a/GeneralsMD/Code/Data/Art/W3D/TRMEHM_RNB.W3D b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_RNB.W3Dnew file mode 100644index 000000000..2f9e25d40Binary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_RNB.W3D differdiff --git a/GeneralsMD/Code/Data/Art/W3D/TRMEHM_S2SB.W3D b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_S2SB.W3Dnew file mode 100644index 000000000..ea329fe00Binary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_S2SB.W3D differdiff --git a/GeneralsMD/Code/Data/Art/W3D/TRMEHM_SA2AA.W3D b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_SA2AA.W3Dnew file mode 100644index 000000000..c4e32b2aaBinary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_SA2AA.W3D differdiff --git a/GeneralsMD/Code/Data/Art/W3D/TRMEHM_STA.W3D b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_STA.W3Dnew file mode 100644index 000000000..23a95016aBinary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_STA.W3D differdiff --git a/GeneralsMD/Code/Data/Art/W3D/TRMEHM_STB.W3D b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_STB.W3Dnew file mode 100644index 000000000..528a96d11Binary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_STB.W3D differdiff --git a/GeneralsMD/Code/Data/Art/W3D/TRMEHM_WKA.W3D b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_WKA.W3Dnew file mode 100644index 000000000..7e67657e9Binary files /dev/null and b/GeneralsMD/Code/Data/Art/W3D/TRMEHM_WKA.W3D differdiff --git a/GeneralsMD/Code/Data/INI/TurkiyeReforged.ini b/GeneralsMD/Code/Data/INI/TurkiyeReforged.iniindex 83467630e..9cf264c64 100644--- a/GeneralsMD/Code/Data/INI/TurkiyeReforged.ini+++ b/GeneralsMD/Code/Data/INI/TurkiyeReforged.ini@@ -406,65 +406,69 @@ Object TurkiyeInfantryMehmetcikInitialHealth = 200.0EndEnd- ; His own model, TRMEHM_SKN (Code/Data/Art/W3D, drawn by experiments/proofs/2026-10-26/mehmetcik- ; in the workspace), is skinned to the Red Guard's skeleton, so this is EA's Red Guard draw module- ; with that model and without the bayonet states. Capturing a building still swaps in the Red- ; Guard's flag carrier, NICNSC_F_SKN. The Ranger's flash-bang and rappel states are gone with the- ; Ranger's draw: Turkiye never buys the grenade, and rappelling falls back to standing.+ ; 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 (scan, check the rifle, touch the+ ; helmet); 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_01Draw = W3DModelDraw ModuleTag_01_TurkiyeOkToChangeModelColor = YesIgnoreConditionStates = PREATTACK_A FIRING_A BETWEEN_FIRING_SHOTS_A RELOADING_ADefaultConditionStateModel = TRMEHM_SKN- IdleAnimation = NICNSC_SKL.NICNSC_STA 0 35- IdleAnimation = NICNSC_SKL.NICNSC_IDA- IdleAnimation = NICNSC_SKL.NICNSC_IDB+ IdleAnimation = NICNSC_SKL.TRMEHM_STA 0 6+ IdleAnimation = NICNSC_SKL.TRMEHM_IDA+ IdleAnimation = NICNSC_SKL.TRMEHM_IDB+ IdleAnimation = NICNSC_SKL.TRMEHM_IDCAnimationMode = ONCEWeaponFireFXBone = PRIMARY MuzzleWeaponMuzzleFlash = PRIMARY MuzzleFXTransitionKey = TRANS_StandEndConditionState = REALLYDAMAGED- IdleAnimation = NICNSC_SKL.NICNSC_STB+ IdleAnimation = NICNSC_SKL.TRMEHM_STBAnimationMode = ONCETransitionKey = TRANS_StandDamagedEndConditionState = USING_WEAPON_A- Animation = NICNSC_SKL.NICNSC_ATA+ Animation = NICNSC_SKL.TRMEHM_ATAAnimationMode = LOOPTransitionKey = TRANS_FiringEndConditionState = USING_WEAPON_A REALLYDAMAGED- Animation = NICNSC_SKL.NICNSC_ATC+ Animation = NICNSC_SKL.TRMEHM_ATCAnimationMode = LOOPTransitionKey = TRANS_FiringDamagedEndTransitionState = TRANS_Firing TRANS_FiringDamaged- Animation = NICNSC_SKL.NICNSC_AA2AC+ Animation = NICNSC_SKL.TRMEHM_AA2ACAnimationMode = ONCEEndTransitionState = TRANS_Stand TRANS_Firing- Animation = NICNSC_SKL.NICNSC_SA2AA+ Animation = NICNSC_SKL.TRMEHM_SA2AAAnimationMode = ONCEEndTransitionState = TRANS_Firing TRANS_Stand- Animation = NICNSC_SKL.NICNSC_AA2SA+ Animation = NICNSC_SKL.TRMEHM_AA2SAAnimationMode = ONCEEndTransitionState = TRANS_StandDamaged TRANS_FiringDamaged- Animation = NICNSC_SKL.NICNSC_ATCST+ Animation = NICNSC_SKL.TRMEHM_ATCSTAnimationMode = ONCEEndTransitionState = TRANS_FiringDamaged TRANS_StandDamaged- Animation = NICNSC_SKL.NICNSC_ATCED+ Animation = NICNSC_SKL.TRMEHM_ATCEDAnimationMode = ONCEEndTransitionState = TRANS_Stand TRANS_StandDamaged- Animation = NICNSC_SKL.NICNSC_AA2SA- AnimationMode = ONCE_BACKWARDS- AnimationSpeedFactorRange = 4 5- Flags = START_FRAME_LAST+ Animation = NICNSC_SKL.TRMEHM_S2SB+ AnimationMode = ONCEEndConditionState = FREEFALLAnimation = NICNSC_SKL.NICNSC_POP@@ -492,15 +496,21 @@ Object TurkiyeInfantryMehmetcikAnimationMode = ONCEEndConditionState = MOVING- Animation = NICNSC_SKL.NICNSC_RNA 26+ Animation = NICNSC_SKL.TRMEHM_RNA 13+ AnimationMode = LOOP+ Flags = RANDOMSTART+ TransitionKey = None+ ParticleSysBone = None InfantryDustTrails+ End+ ConditionState = MOVING ATTACKING+ Animation = NICNSC_SKL.TRMEHM_WKA 12.5AnimationMode = LOOPFlags = RANDOMSTARTTransitionKey = NoneParticleSysBone = None InfantryDustTrailsEnd- AliasConditionState = MOVING ATTACKINGConditionState = MOVING REALLYDAMAGED- Animation = NICNSC_SKL.NICNSC_RNB 28+ Animation = NICNSC_SKL.TRMEHM_RNB 9AnimationMode = LOOPFlags = RANDOMSTARTTransitionKey = None@@ -534,27 +544,27 @@ Object TurkiyeInfantryMehmetcikFlags = START_FRAME_LASTEndConditionState = DYING- Animation = NICNSC_SKL.NICNSC_DTA- Animation = NICNSC_SKL.NICNSC_DTB+ Animation = NICNSC_SKL.TRMEHM_DTA+ Animation = NICNSC_SKL.TRMEHM_DTBAnimationMode = ONCETransitionKey = TRANS_DyingEndTransitionState = TRANS_Dying TRANS_Flailing- Animation = NICNSC_SKL.NICNSC_ATDE1+ Animation = NICNSC_SKL.TRMEHM_DTE1AnimationMode = ONCEEndConditionState = DYING EXPLODED_FLAILING- Animation = NICNSC_SKL.NICNSC_ATDE2+ Animation = NICNSC_SKL.TRMEHM_DTE2AnimationMode = LOOPTransitionKey = TRANS_FlailingEndConditionState = DYING EXPLODED_BOUNCING- Animation = NICNSC_SKL.NICNSC_ATDE3+ Animation = NICNSC_SKL.TRMEHM_DTE3AnimationMode = ONCETransitionKey = NoneEndConditionState = SPECIAL_CHEERING- Animation = NICNSC_SKL.NICNSC_CHA+ Animation = NICNSC_SKL.TRMEHM_CHAAnimationMode = LOOPEndEnddiff --git a/GeneralsMD/Code/GameEngine/Source/Common/System/FileSystem.cpp b/GeneralsMD/Code/GameEngine/Source/Common/System/FileSystem.cppindex 804cb765b..985317528 100644--- a/GeneralsMD/Code/GameEngine/Source/Common/System/FileSystem.cpp+++ b/GeneralsMD/Code/GameEngine/Source/Common/System/FileSystem.cpp@@ -563,8 +563,9 @@ Bool FileSystem::isForkOwnedPath(const AsciiString& filename)|| starts("data\\turkish\\") || starts("data\\german\\")|| starts("data\\ukrainian\\") || starts("data\\russian\\") || starts("data\\french\\")|| starts("art\\textures\\reforged")- // Mehmetcik's own model; the texture keeps EA's ZHCA_ prefix, which is what takes the house colour- || p == "art\\w3d\\trmehm_skn.w3d" || p == "art\\textures\\zhca_trmehmet.tga"+ // Mehmetcik's own model and animations; the texture keeps EA's ZHCA_ prefix, which is what takes+ // the house colour+ || starts("art\\w3d\\trmehm_") || p == "art\\textures\\zhca_trmehmet.tga"|| starts("window\\")|| p == "install_final.bmp";}