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(turkey): rank tree with a minefield power of its own
Olcay Seygan2b2725c9537d
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 5bdcb1276..c6b529f4d 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -13,7 +13,8 @@ found and fixed — EA's own, not port damage.**- Turkey is a fourth side in the skirmish and multiplayer lobbies, with an army of its own: Mehmetcik riflemen, Sungur missile teams and Maroon Berets from the Barracks; the Altay tank, the Kirpi carrier, Korkut air defense, Firtina howitzers and Sakarya rocket launchers from the Factory; Bayraktar and Akinci drones, the Gokbey helicopter and the Kizilelma fighter from the Airfield. Every name and tooltip reads in English and in Turkish.- Turkey kills from range and cannot see for itself. The Firtina throws a shell 600 and sees 100, so it waits until a spotter team, a Cobra scout, a drone or a cheap Radar Tower finds the target, then fires on its own. Force it to shell ground nobody can see and the shots go wide, about half of them off a barracks-sized target. Extended Range and Precision Guidance at the Factory push the guns further and tighten the blind spread.- Combat Engineers build the base in place of a dozer. They are infantry, so they can be shot and run over. The Barracks' Mine Kit lets them bury mines, and the Factory's Armor Pack toughens the Kirpi and the Altay.-- The units still borrow American and other sides' models, voices and cameos, and Turkey still buys the American generals' powers with its ranks.+- Turkey's first rank buys its own power, a Minefield a cargo plane sows wherever you point, beside the Spy Drone. Rank 3 offers paratroopers and the A-10 strike, and rank 8 the American powers for now.+- The units still borrow American and other sides' models, voices and cameos.- The computer plays Turkey too. A Turkish AI puts up a full base with radar towers and air defense sites, sends supply trucks, fields the new army, artillery included, and attacks.## Zero Hour on a Mac, on Linux and on the Steam Deckdiff --git a/GeneralsMD/Code/Data/INI/AIDataReforged.ini b/GeneralsMD/Code/Data/INI/AIDataReforged.iniindex a405ef5ba..982829c4b 100644--- a/GeneralsMD/Code/Data/INI/AIDataReforged.ini+++ b/GeneralsMD/Code/Data/INI/AIDataReforged.ini@@ -23,8 +23,8 @@ AIDataBaseDefenseStructure1 = AmericaPatriotBatterySkillSet1- Science = SCIENCE_PaladinTank- Science = SCIENCE_StealthFighter+ Science = SCIENCE_TurkeyMinefield+ Science = SCIENCE_SpyDroneScience = SCIENCE_A10ThunderboltMissileStrike1Science = SCIENCE_A10ThunderboltMissileStrike2Science = SCIENCE_A10ThunderboltMissileStrike3@@ -33,9 +33,8 @@ AIDataEndSkillSet2- Science = SCIENCE_PaladinTank- Science = SCIENCE_StealthFighter- Science = SCIENCE_Pathfinder+ Science = SCIENCE_TurkeyMinefield+ Science = SCIENCE_SpyDroneScience = SCIENCE_Paradrop1Science = SCIENCE_Paradrop2Science = SCIENCE_Paradrop3diff --git a/GeneralsMD/Code/Data/INI/CommandSetReforged.ini b/GeneralsMD/Code/Data/INI/CommandSetReforged.iniindex 1ac59a218..42b7cd624 100644--- a/GeneralsMD/Code/Data/INI/CommandSetReforged.ini+++ b/GeneralsMD/Code/Data/INI/CommandSetReforged.ini@@ -655,6 +655,36 @@ CommandButton Command_UpgradeTurkeyMineKitDescriptLabel = CONTROLBAR:ToolTipUpgradeTurkeyMineKitEnd+CommandButton Command_PurchaseScienceTurkeyMinefield+ Command = PURCHASE_SCIENCE+ Science = SCIENCE_TurkeyMinefield+ ButtonImage = SSClusterMines+ ButtonBorderType = UPGRADE+End++CommandButton Command_TurkeyMinefield+ Command = SPECIAL_POWER+ SpecialPower = SuperweaponTurkeyMinefield+ Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND+ TextLabel = CONTROLBAR:TurkeyMinefield+ ButtonImage = SSClusterMines+ ButtonBorderType = ACTION+ DescriptLabel = CONTROLBAR:TooltipTurkeyMinefield+ RadiusCursorType = CLUSTERMINES+ InvalidCursorName = GenericInvalid+End++CommandButton Command_TurkeyMinefieldFromShortcut+ Command = SPECIAL_POWER_FROM_SHORTCUT+ SpecialPower = SuperweaponTurkeyMinefield+ Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND+ TextLabel = CONTROLBAR:TurkeyMinefield+ ButtonImage = SSClusterMines+ DescriptLabel = CONTROLBAR:TooltipTurkeyMinefield+ RadiusCursorType = CLUSTERMINES+ InvalidCursorName = GenericInvalid+End+CommandSet TurkeyDozerCommandSet1 = Command_ConstructTurkeyPowerPlant2 = Command_ConstructTurkeyBarracks@@ -697,11 +727,11 @@ EndCommandSet TurkeyCommandCenterCommandSet1 = Command_ConstructTurkeyInfantryEngineer2 = Command_SpectreGunship+ 3 = Command_TurkeyMinefield4 = Command_LeafletDrop5 = Command_A10ThunderboltMissileStrike6 = Command_Paradrop7 = Command_SpyDrone- 8 = Command_EmergencyRepair9 = Command_DaisyCutter10 = Command_SpySatelliteScan13 = Command_SetRallyPoint@@ -750,23 +780,23 @@ CommandSet TurkeyAirfieldCommandSet14 = Command_SellEnd+; The rank tree follows the plan's section 7 as far as existing powers carry it. Rank 1: the+; minefield and the Spy Drone as the recon flight; the UAV fuel option has nothing to work on yet.+; Rank 3: the paradrop as rapid deployment and the A-10 strike standing in for the swarm munition;+; the radar blackout needs engine work. Rank 8 stays American until the swarm strike exists.+CommandSet SCIENCE_Turkey_CommandSetRank1- 1 = Command_PurchaseSciencePaladinTank- 2 = Command_PurchaseScienceStealthFighter+ 1 = Command_PurchaseScienceTurkeyMinefield3 = Command_PurchaseScienceSpyDroneEndCommandSet SCIENCE_Turkey_CommandSetRank3- 1 = Command_PurchaseSciencePathfinder4 = Command_PurchaseScienceParadrop15 = Command_PurchaseScienceParadrop26 = Command_PurchaseScienceParadrop37 = Command_PurchaseScienceA10ThunderboltMissileStrike18 = Command_PurchaseScienceA10ThunderboltMissileStrike29 = Command_PurchaseScienceA10ThunderboltMissileStrike3- 10 = Command_PurchaseScienceEmergencyRepair1- 11 = Command_PurchaseScienceEmergencyRepair2- 12 = Command_PurchaseScienceEmergencyRepair3EndCommandSet SCIENCE_Turkey_CommandSetRank8@@ -780,9 +810,8 @@ CommandSet SpecialPowerShortcutTurkey1 = Command_SpyDroneFromShortcut2 = Command_ParadropFromShortcut3 = Command_A10ThunderboltMissileStrikeFromShortcut- 4 = Command_EmergencyRepairFromShortcut+ 4 = Command_TurkeyMinefieldFromShortcut5 = Command_DaisyCutterFromShortcut- 6 = Command_FireParticleUplinkCannonFromShortcut7 = Command_SpySatelliteScanFromShortcut8 = Command_CIAIntelligenceFromShortcut9 = Command_SpectreGunshipFromShortcutdiff --git a/GeneralsMD/Code/Data/INI/ObjectCreationListReforged.ini b/GeneralsMD/Code/Data/INI/ObjectCreationListReforged.iniindex adf473cf7..f54283dfc 100644--- a/GeneralsMD/Code/Data/INI/ObjectCreationListReforged.ini+++ b/GeneralsMD/Code/Data/INI/ObjectCreationListReforged.ini@@ -2,6 +2,34 @@; ObjectCreationList.ini with INI_LOAD_OVERWRITE, so a list named here is cleared and replaced; whole and a new name is added. It lands in the multiplayer INI CRC.+; ==== Turkey minefield ============================================================================++; China's Cluster Mines drop from the American cargo plane. ThingFactory::newObject turns the plane,+; the bomb and the mines it sows into Turkey's copies (TurkeyReforged.ini).++ObjectCreationList SUPERWEAPON_TurkeyMinefield+ DeliverPayload+ Transport = AmericaJetCargoPlane+ StartAtPreferredHeight = Yes+ StartAtMaxSpeed = Yes+ MaxAttempts = 4+ DropOffset = X:0 Y:0 Z:-2+ DropVariance = X:20 Y:20 Z:0+ Payload = ClusterMinesBomb 1+ DeliveryDistance = 140+ DeliveryDecalRadius = 100+ DeliveryDecal+ Texture = SCCClusterMines_China+ Style = SHADOW_ALPHA_DECAL+ OpacityMin = 25%+ OpacityMax = 50%+ OpacityThrobTime = 500+ Color = R:255 G:156 B:0 A:255+ OnlyVisibleToOwningPlayer = Yes+ End+ End+End+; ==== Battlemaster Paradrop =======================================================================; The Tank General's Battlemasters were dropped with the infantry paradrop's timing: the planediff --git a/GeneralsMD/Code/Data/INI/ScienceReforged.ini b/GeneralsMD/Code/Data/INI/ScienceReforged.iniindex c5ba677f0..63103f51b 100644--- a/GeneralsMD/Code/Data/INI/ScienceReforged.ini+++ b/GeneralsMD/Code/Data/INI/ScienceReforged.ini@@ -41,3 +41,14 @@ Science SCIENCE_TurkeySciencePurchasePointCost = 0 ; not purchasable, as for SCIENCE_AMERICAIsGrantable = NoEnd++; Turkey's first rank power of its own: a cargo plane sows a minefield (the plan's Rank 1 mayin+; tarlasi). China's Cluster Mines asks for SCIENCE_CHINA, so Turkey gets its own science for it.++Science SCIENCE_TurkeyMinefield+ PrerequisiteSciences = SCIENCE_Turkey SCIENCE_Rank1+ SciencePurchasePointCost = 1+ IsGrantable = Yes+ DisplayName = SCIENCE:TurkeyMinefield+ Description = CONTROLBAR:ToolTipTurkeyScienceMinefield+Enddiff --git a/GeneralsMD/Code/Data/INI/SpecialPowerReforged.ini b/GeneralsMD/Code/Data/INI/SpecialPowerReforged.iniindex f4da65f41..4fa4a3031 100644--- a/GeneralsMD/Code/Data/INI/SpecialPowerReforged.ini+++ b/GeneralsMD/Code/Data/INI/SpecialPowerReforged.ini@@ -31,3 +31,18 @@ SpecialPower Demo_SuperweaponRebelAmbushShortcutPower = YesAcademyClassify = ACT_SUPERPOWEREnd++; Turkey's minefield: China's Cluster Mines behind Turkey's own science (ScienceReforged.ini).++SpecialPower SuperweaponTurkeyMinefield+ Enum = SPECIAL_CLUSTER_MINES+ ReloadTime = 240000+ RequiredScience = SCIENCE_TurkeyMinefield+ PublicTimer = No+ SharedSyncedTimer = Yes+ ViewObjectDuration = 30000+ ViewObjectRange = 250+ RadiusCursorRadius = 100+ ShortcutPower = Yes+ AcademyClassify = ACT_SUPERPOWER+Enddiff --git a/GeneralsMD/Code/Data/INI/TurkeyReforged.ini b/GeneralsMD/Code/Data/INI/TurkeyReforged.iniindex 072575b14..070cf6093 100644--- a/GeneralsMD/Code/Data/INI/TurkeyReforged.ini+++ b/GeneralsMD/Code/Data/INI/TurkeyReforged.ini@@ -31,6 +31,14 @@ Object TurkeyCommandCenterSide = TurkeyDisplayName = OBJECT:TurkeyCommandCenterCommandSet = TurkeyCommandCenterCommandSet+ ; the Rank 1 minefield (ScienceReforged.ini, SpecialPowerReforged.ini)+ AddModule+ Behavior = OCLSpecialPower ModuleTag_TurkeyMinefield+ SpecialPowerTemplate = SuperweaponTurkeyMinefield+ OCL = SUPERWEAPON_TurkeyMinefield+ CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE+ End+ EndEndObjectReskin TurkeyPowerPlant AmericaPowerPlant@@ -861,6 +869,22 @@ Object TurkeyVehicleHumveeDeadHullSide = TurkeyEnd+; the minefield power's bomb and the mines it sows, China's Cluster Mines++ObjectReskin TurkeyClusterMinesBomb ClusterMinesBomb+End++Object TurkeyClusterMinesBomb+ Side = Turkey+End++ObjectReskin TurkeyClusterMine ChinaClusterMine+End++Object TurkeyClusterMine+ Side = Turkey+End+; The Reinforcement Pad picks its convoy by the owner's side and had none for Turkey. It sends; Turkey the plain American one, which arrives as Turkey units through newObject.diff --git a/GeneralsMD/Code/Data/Patch.str b/GeneralsMD/Code/Data/Patch.strindex 75ab0bc4c..6aac65834 100644--- a/GeneralsMD/Code/Data/Patch.str+++ b/GeneralsMD/Code/Data/Patch.str@@ -2112,3 +2112,19 @@ ENDCONTROLBAR:ConstructTurkeyPatriotBattery"S&iper Battery"END++SCIENCE:TurkeyMinefield+"Minefield"+END++CONTROLBAR:ToolTipTurkeyScienceMinefield+"A cargo plane sows a minefield wherever you point. \n \n Deploy from: Headquarters"+END++CONTROLBAR:TurkeyMinefield+"Mine&field"+END++CONTROLBAR:TooltipTurkeyMinefield+"Minefield \n Recharge: 4:00"+ENDdiff --git a/GeneralsMD/Code/Data/Turkish/Generals.str b/GeneralsMD/Code/Data/Turkish/Generals.strindex 7930945b9..fdc882c82 100644--- a/GeneralsMD/Code/Data/Turkish/Generals.str+++ b/GeneralsMD/Code/Data/Turkish/Generals.str@@ -16484,3 +16484,19 @@ ENDCONTROLBAR:ConstructTurkeyPatriotBattery"Si&per Bataryası"END++SCIENCE:TurkeyMinefield+"Mayın Tarlası"+END++CONTROLBAR:ToolTipTurkeyScienceMinefield+"Bir kargo uçağı gösterdiğiniz yere mayın döşer. \n \n Çağrıldığı yer: Karargah"+END++CONTROLBAR:TurkeyMinefield+"Mayın Ta&rlası"+END++CONTROLBAR:TooltipTurkeyMinefield+"Mayın Tarlası \n Geri Sayım: 4:00"+END