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(turkiye): harekat merkezi tech building opens the kargu base
Olcay Seygan93698b639cc1
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex ab3d2a9e2..76453f12d 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -210,7 +210,8 @@ found and fixed — EA's own, not port damage.**- The Korkut is air defense and nothing else. Its cannons reach 350 into the air and no longer fire at the ground, where they used to outrange the Altay; three Korkut that cut down eight Rangers without a scratch now lose to them, and still shoot down three Comanches untouched. The Kizilelma's missiles hit the ground as well as the air, and it costs 1800 instead of 2200. It carried 380 health on a Raptor's frame and shot a Raptor down in 29 seconds while the Raptor needed 86 for it; at the Raptor's 160 the duel is even and the dearer jet loses on price. The Akinci drops its own bomb, one a sortie; it had been dropping the Aurora's. With 420 health no ground air defense paid for itself against it. At 200 a Gattling Tank or a Missile Defender beats it for the money and a Quad Cannon breaks even.- Every Turkish unit has its own command bar with only buttons that work: no drone buttons on the Altay and the Cobra, no TOW on the Cobra, no rocket pods on the Bayraktar, no flash-bang switch on the Mehmetcik. The Barracks sells Capture Building, so the Mehmetcik's capture button works.- Turkiye's first rank buys its own power, a Minefield a cargo plane sows wherever you point, beside the Spy Drone and Fuel Resupply, which keeps the drones over the target longer. Rank 3 offers a loitering munition that dives on whatever it is pointed at, Electronic Blinding, which shuts every enemy radar in the area off for 30 seconds, and Rapid Deployment, six Mehmetcik and two Sungur gunners by parachute. The top rank buys the Swarm Strike: ten munitions over a wide circle, each on a different target and the most expensive first, so a column of tanks loses its tanks and the riflemen walking beside them are left standing. Beside it sit the Fire Mission, 36 heavy shells from off the map, and the Commando Raid, a Maroon Beret and two spotter teams dropped behind the enemy's lines. The American Paradrop, Leaflet Drop, Spectre gunship and CIA intelligence are gone from the Headquarters and the power bar.-- Turkiye has a superweapon: the Kargu Drone Base. It costs 5000, draws 10 power, opens once you have a Factory and a Radar Tower, counts against the lobby's superweapon limit like the Particle Cannon, the nuke and the Scud Storm, and every player watches its five-minute countdown. The base is an airfield with two runways and four hangars, and you tell it from Turkiye's own airfield at a glance because it wears China's. Fire it and the hangar doors roll up, and a second later sixteen kamikaze drones roll out of the three doored hangars that face the runways, never out of the open side shed, one down each runway in turn every quarter of a second, and lift off and climb; all sixteen are in the air seven seconds after you fire. Then they fly straight across the map at 150, high enough that everyone sees them coming. Each goes for one of the sixteen most expensive things inside the target circle, noses over 60 short of it into a steep dive from straight above, steers onto it all the way down so a tank driving away still takes the hit, and hits for 700, 11,200 for the whole swarm. Every target in the circle gets one drone before any gets a second, and the spares go round again dearest first. A drone whose target died on the way takes the dearest enemy in the circle that no other drone is already after, and doubles up only when every one has a drone coming. They are aircraft, so anti-air shoots them down on the way in. The last one hits twenty seconds after you fire. Fired across Twilight Flame into an undefended American base, the swarm killed six of eight Crusaders and three of six Humvees, took 69% off the War Factory, 43% off the two power plants and 40% off the Command Center, 8500 worth of the base where the shallower dive took 3900. Into eight Crusaders and six Humvees driving across the circle it killed twelve of the fourteen; the shallow dive killed two. The Turkish computer builds and fires it on every difficulty: Hard as soon as it can pay, about fifteen minutes in on that map, Medium after seventeen minutes and Easy after thirty, the same clock America's plans keep for their Particle Cannon. China's airfield and the Hellfire drone are on loan, and the announcer calls it a Scud Storm until Turkiye has art and voices of its own.+- Turkiye has a superweapon: the Kargu Drone Base. It costs 5000, draws 10 power, opens once you have an Operations Center, counts against the lobby's superweapon limit like the Particle Cannon, the nuke and the Scud Storm, and every player watches its five-minute countdown. The base is an airfield with two runways and four hangars, and you tell it from Turkiye's own airfield at a glance because it wears China's. Fire it and the hangar doors roll up, and a second later sixteen kamikaze drones roll out of the three doored hangars that face the runways, never out of the open side shed, one down each runway in turn every quarter of a second, and lift off and climb; all sixteen are in the air seven seconds after you fire. Then they fly straight across the map at 150, high enough that everyone sees them coming. Each goes for one of the sixteen most expensive things inside the target circle, noses over 60 short of it into a steep dive from straight above, steers onto it all the way down so a tank driving away still takes the hit, and hits for 700, 11,200 for the whole swarm. Every target in the circle gets one drone before any gets a second, and the spares go round again dearest first. A drone whose target died on the way takes the dearest enemy in the circle that no other drone is already after, and doubles up only when every one has a drone coming. They are aircraft, so anti-air shoots them down on the way in. The last one hits twenty seconds after you fire. Fired across Twilight Flame into an undefended American base, the swarm killed six of eight Crusaders and three of six Humvees, took 69% off the War Factory, 43% off the two power plants and 40% off the Command Center, 8500 worth of the base where the shallower dive took 3900. Into eight Crusaders and six Humvees driving across the circle it killed twelve of the fourteen; the shallow dive killed two. The Turkish computer builds and fires it on every difficulty: Hard as soon as it can pay, about fifteen minutes in on that map, Medium after seventeen minutes and Easy after thirty, the same clock America's plans keep for their Particle Cannon. China's airfield and the Hellfire drone are on loan, and the announcer calls it a Scud Storm until Turkiye has art and voices of its own.+- Turkiye has a technology building, the Operations Center (Harekat Merkezi in Turkish). The engineers put it up once a Factory or an Airfield stands, for 2500. It is the Strategy Center with its gun and its three battle plans, Bombardment, Search and Destroy and Hold the Line, and it researches Advanced Training and Chemical Suits, which the Turkish units take as the American ones do. The Kargu Drone Base needs it, the way the Particle Cannon needs the Strategy Center, where it used to open with a Factory and a Radar Tower. The Turkish computer builds it where America's plans put their Strategy Center.- Two engineers on one building put it up in half the time, three in a third.- The Koral electronic warfare vehicle jams everything within 400 of it. Enemy drones and spotters inside the field go nearly blind, and guided missiles fired into it lose their lock and fly wide.- The Maroon Beret is a hero against every side. He is camouflaged, sees 350 for the artillery from inside the camouflage, and carries Burton's knife and timed and remote charges. He no longer hijacks supply trucks, which used him up for good and found nothing to take from America.diff --git a/GeneralsMD/Code/Data/INI/AIDataReforged.ini b/GeneralsMD/Code/Data/INI/AIDataReforged.iniindex c174efc7e..a0e04e9e1 100644--- a/GeneralsMD/Code/Data/INI/AIDataReforged.ini+++ b/GeneralsMD/Code/Data/INI/AIDataReforged.ini@@ -10,10 +10,11 @@; reskin of the American one (TurkiyeReforged.ini), so a Turkiye engineer or factory asked for the; American name puts up its own button's Turkiye building or unit instead; (BuildAssistant::findBuildButtonTemplate), and the command center adjustBuildList rebuilds in-; place of the starting one comes out Turkish too (ThingFactory::newObject). America's uplink,-; strategy center and drop zones have no Turkiye copy; their spots hold two radar towers and two-; Siper bunkers, which no script asks for and so are AutomaticallyBuild. The AI's guards sit in-; the Sipers (AIPlayer::garrisonBuildings).+; place of the starting one comes out Turkish too (ThingFactory::newObject). The Strategy Center+; keeps its spot and comes out as the Harekat Merkezi. America's uplink and drop zones have no+; Turkiye copy; four of their spots hold two radar towers and two Siper bunkers, which no script+; asks for and so are AutomaticallyBuild. The AI's guards sit in the Sipers+; (AIPlayer::garrisonBuildings).AIData@@ -122,11 +123,18 @@ AIDataInitiallyBuilt = NoAutomaticallyBuild = YesEND- Structure TurkiyeSiper+ Structure AmericaStrategyCenterLocation = X:384.36 Y:652.24Rebuilds = 0Angle = 45.00InitiallyBuilt = No+ AutomaticallyBuild = No+ END+ Structure TurkiyeSiper+ Location = X:488.83 Y:760.27+ Rebuilds = 0+ Angle = 45.00+ InitiallyBuilt = NoAutomaticallyBuild = YesENDStructure TurkiyeRadarTowerdiff --git a/GeneralsMD/Code/Data/INI/CommandSetReforged.ini b/GeneralsMD/Code/Data/INI/CommandSetReforged.iniindex 7d5bd9e30..fdf9fd8ad 100644--- a/GeneralsMD/Code/Data/INI/CommandSetReforged.ini+++ b/GeneralsMD/Code/Data/INI/CommandSetReforged.ini@@ -916,6 +916,17 @@ CommandButton Command_TurkiyeCommandoRaidFromShortcutInvalidCursorName = GenericInvalidEnd+; The Harekat Merkezi, Turkiye's Strategy Center, keeps the American plan and upgrade buttons.++CommandButton Command_ConstructTurkiyeHarekatMerkezi+ Command = DOZER_CONSTRUCT+ Object = TurkiyeHarekatMerkezi+ TextLabel = CONTROLBAR:ConstructTurkiyeHarekatMerkezi+ ButtonImage = SAStrategyCenter+ ButtonBorderType = BUILD+ DescriptLabel = CONTROLBAR:ToolTipTurkiyeHarekatMerkezi+End+; The Kargu base, Turkiye's superweapon, and its swarm: China's airfield cameo for the building,; which is that airfield, the Hellfire drone's for the swarm.@@ -962,6 +973,7 @@ CommandSet TurkiyeDozerCommandSet8 = Command_ConstructTurkiyeCommandCenter9 = Command_ConstructTurkiyeSiper11 = Command_ConstructTurkiyeKarguBase+ 12 = Command_ConstructTurkiyeHarekatMerkezi14 = Command_DisarmMinesAtPositionEnd@@ -978,6 +990,7 @@ CommandSet TurkiyeDozerCommandSetMines9 = Command_ConstructTurkiyeSiper10 = Command_ConstructTurkiyeLandMine11 = Command_ConstructTurkiyeKarguBase+ 12 = Command_ConstructTurkiyeHarekatMerkezi14 = Command_DisarmMinesAtPositionEnd@@ -985,6 +998,18 @@ CommandSet TurkiyeStructureCommandSet14 = Command_SellEnd+; America's Strategy Center bar without CIA Intelligence, the drone armour, the MOAB, Composite+; Armor and Supply Lines (TurkiyeReforged.ini says why)+CommandSet TurkiyeHarekatMerkeziCommandSet+ 1 = Command_InitiateBattlePlanBombardment+ 3 = Command_InitiateBattlePlanHoldTheLine+ 5 = Command_InitiateBattlePlanSearchAndDestroy+ 6 = Command_UpgradeAmericaChemicalSuits+ 9 = Command_UpgradeAmericaAdvancedTraining+ 11 = Command_StrategyCenter_Stop+ 14 = Command_Sell+End+CommandSet TurkiyeKarguBaseCommandSet1 = Command_TurkiyeKarguSwarm14 = Command_Selldiff --git a/GeneralsMD/Code/Data/INI/TurkiyeReforged.ini b/GeneralsMD/Code/Data/INI/TurkiyeReforged.iniindex 03290bd5b..f6766b90c 100644--- a/GeneralsMD/Code/Data/INI/TurkiyeReforged.ini+++ b/GeneralsMD/Code/Data/INI/TurkiyeReforged.ini@@ -231,6 +231,27 @@ Object TurkiyeRadarTowerEndEnd+; 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+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@@ -238,9 +259,8 @@ End; 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. Turkiye has no-; Strategy Center, so the Factory and a Radar Tower open it: an Easy computer, on America's Easy-; plan, never builds an Airfield. It is no FS_AIRFIELD: with it the computer held the base back as an+; 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@@ -254,8 +274,7 @@ Object TurkiyeKarguBaseDisplayName = OBJECT:TurkiyeKarguBaseCommandSet = TurkiyeKarguBaseCommandSetPrerequisites- Object = TurkiyeWarFactory- Object = TurkiyeRadarTower+ Object = TurkiyeHarekatMerkeziEndBuildCost = 5000BuildTime = 60.0diff --git a/GeneralsMD/Code/Data/Patch.str b/GeneralsMD/Code/Data/Patch.strindex 07b3456b5..5c920a92d 100644--- a/GeneralsMD/Code/Data/Patch.str+++ b/GeneralsMD/Code/Data/Patch.str@@ -3294,8 +3294,20 @@ CONTROLBAR:ConstructTurkiyeKarguBase"&Kargu Drone Base"END+OBJECT:TurkiyeHarekatMerkezi+"Operations Center"+END++CONTROLBAR:ConstructTurkiyeHarekatMerkezi+"&Operations Center"+END++CONTROLBAR:ToolTipTurkiyeHarekatMerkezi+"Turkiye's technology building. The whole army fights under one battle plan at a time: Bombardment, Search and Destroy or Hold the Line. Researches Advanced Training and Chemical Suits, and opens the Kargu Drone Base. \n \n Requires: Factory or Airfield \n Energy Required: 2"+END+CONTROLBAR:ToolTipTurkiyeKarguBase-"Sends a swarm of sixteen kamikaze drones anywhere on the map. Each one hunts down one of the most valuable targets in the circle and dives into it; spread-out armies suffer most. \n \n Requires: Factory, Radar Tower \n Energy Required: 10 \n Recharge: 5:00"+"Sends a swarm of sixteen kamikaze drones anywhere on the map. Each one hunts down one of the most valuable targets in the circle and dives into it; spread-out armies suffer most. \n \n Requires: Operations Center \n Energy Required: 10 \n Recharge: 5:00"ENDCONTROLBAR:TurkiyeKarguSwarmdiff --git a/GeneralsMD/Code/Data/Russian/Generals.str b/GeneralsMD/Code/Data/Russian/Generals.strindex 82c4941b0..ebe8eb2a4 100644--- a/GeneralsMD/Code/Data/Russian/Generals.str+++ b/GeneralsMD/Code/Data/Russian/Generals.str@@ -18717,6 +18717,18 @@ CONTROLBAR:TooltipTurkiyeCommandoRaid"Рейд коммандос \n Перезарядка: 5:00"END+OBJECT:TurkiyeHarekatMerkezi+"Оперативный центр"+END++CONTROLBAR:ConstructTurkiyeHarekatMerkezi+"&Оперативный центр"+END++CONTROLBAR:ToolTipTurkiyeHarekatMerkezi+"Технологическое здание Турции. Вся армия воюет по одному боевому плану за раз: Бомбардировка, Поиск и уничтожение или Удержание рубежа. Исследует Улучшенную подготовку и Химзащиту, открывает Базу дронов Kargu. \n \n Требуется: Завод или Аэродром \n Требуется энергия: 2"+END+OBJECT:TurkiyeKarguBase"База дронов Kargu"END@@ -18726,7 +18738,7 @@ CONTROLBAR:ConstructTurkiyeKarguBaseENDCONTROLBAR:ToolTipTurkiyeKarguBase-"Посылает рой из шестнадцати дронов-камикадзе в любую точку карты. Каждый выслеживает одну из самых ценных целей в круге и пикирует на неё; сильнее всего страдают рассредоточенные армии. \n \n Требуется: Завод, Радарная вышка \n Требуется энергия: 10 \n Перезарядка: 5:00"+"Посылает рой из шестнадцати дронов-камикадзе в любую точку карты. Каждый выслеживает одну из самых ценных целей в круге и пикирует на неё; сильнее всего страдают рассредоточенные армии. \n \n Требуется: Оперативный центр \n Требуется энергия: 10 \n Перезарядка: 5:00"ENDCONTROLBAR:TurkiyeKarguSwarmdiff --git a/GeneralsMD/Code/Data/Turkish/Generals.str b/GeneralsMD/Code/Data/Turkish/Generals.strindex 6de11436b..9897ac175 100644--- a/GeneralsMD/Code/Data/Turkish/Generals.str+++ b/GeneralsMD/Code/Data/Turkish/Generals.str@@ -17583,8 +17583,20 @@ CONTROLBAR:ConstructTurkiyeKarguBase"Kar&gu İHA Üssü"END+OBJECT:TurkiyeHarekatMerkezi+"Harekat Merkezi"+END++CONTROLBAR:ConstructTurkiyeHarekatMerkezi+"Har&ekat Merkezi"+END++CONTROLBAR:ToolTipTurkiyeHarekatMerkezi+"Türkiye'nin teknoloji binası. Bütün ordu aynı anda tek bir savaş planıyla savaşır: Bombardıman, Ara ve Yok Et ya da Hattı Koru. İleri Eğitim ve Kimyasal Koruma Giysileri araştırır, Kargu İHA Üssü'nü açar. \n \n Gereken: Fabrika veya Hava Alanı \n Gereken Enerji: 2"+END+CONTROLBAR:ToolTipTurkiyeKarguBase-"Haritanın herhangi bir yerine on altı kamikaze İHA'dan oluşan bir sürü gönderir. Her biri dairedeki en değerli hedeflerden birini bulur ve üstüne dalar; dağınık ordular en çok zarar görür. \n \n Gereken: Fabrika, Radar Kulesi \n Gereken Enerji: 10 \n Geri Sayım: 5:00"+"Haritanın herhangi bir yerine on altı kamikaze İHA'dan oluşan bir sürü gönderir. Her biri dairedeki en değerli hedeflerden birini bulur ve üstüne dalar; dağınık ordular en çok zarar görür. \n \n Gereken: Harekat Merkezi \n Gereken Enerji: 10 \n Geri Sayım: 5:00"ENDCONTROLBAR:TurkiyeKarguSwarmdiff --git a/GeneralsMD/Code/Data/Ukrainian/Generals.str b/GeneralsMD/Code/Data/Ukrainian/Generals.strindex d02be8ab8..dd6b7dace 100644--- a/GeneralsMD/Code/Data/Ukrainian/Generals.str+++ b/GeneralsMD/Code/Data/Ukrainian/Generals.str@@ -18717,6 +18717,18 @@ CONTROLBAR:TooltipTurkiyeCommandoRaid"Рейд командос \n Перезарядка: 5:00"END+OBJECT:TurkiyeHarekatMerkezi+"Оперативний центр"+END++CONTROLBAR:ConstructTurkiyeHarekatMerkezi+"&Оперативний центр"+END++CONTROLBAR:ToolTipTurkiyeHarekatMerkezi+"Технологічна будівля Туреччини. Уся армія воює за одним бойовим планом за раз: Бомбардування, Знайти й знищити або Тримати лінію. Досліджує Покращену підготовку та Хімзахисні костюми, відкриває Базу дронів Kargu. \n \n Потрібно: Завод або Аеродром \n Потрібна енергія: 2"+END+OBJECT:TurkiyeKarguBase"База дронів Kargu"END@@ -18726,7 +18738,7 @@ CONTROLBAR:ConstructTurkiyeKarguBaseENDCONTROLBAR:ToolTipTurkiyeKarguBase-"Посилає рій із шістнадцяти дронів-камікадзе в будь-яку точку карти. Кожен полює на одну з найцінніших цілей у колі й пікірує на неї; найбільше страждають розпорошені армії. \n \n Потрібно: Завод, Радарна вежа \n Потрібна енергія: 10 \n Перезарядка: 5:00"+"Посилає рій із шістнадцяти дронів-камікадзе в будь-яку точку карти. Кожен полює на одну з найцінніших цілей у колі й пікірує на неї; найбільше страждають розпорошені армії. \n \n Потрібно: Оперативний центр \n Потрібна енергія: 10 \n Перезарядка: 5:00"ENDCONTROLBAR:TurkiyeKarguSwarm