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(data): quad cannon 800, dragon 400 health, laser and buggy range
Olcay Seygan7f9afc03dbde
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 166223c64..3adf9455b 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -362,7 +362,11 @@ found and fixed — EA's own, not port damage.**- A tower used to be cheaper to kill than to build. We put every stock defence against 22 kinds of attacker, 528 fights a round, and in Zero Hour as shipped two Battlemasters took a Gattling Cannon and lost nothing, and tanks paid 89 cents in wrecks for every dollar of Patriot they destroyed. Tank shells now do half damage to the Patriot, the Gattling Cannon, the Stinger Site and the Fire Base. Taking one with tanks now costs you more than the tower cost them: a Patriot $1.23 in tanks per dollar, a Stinger Site $1.09, a Fire Base $1.26.- The Gattling Cannon costs 1000, the same as a Patriot. It is still the tower for infantry and aircraft, and it makes a rifle rush pay $1.72 for every dollar of it.- Bunkers and Tunnel Networks stand half as long again, 1500 instead of 1000. One of them in a game saved before this change comes back at full health when you load it.-- Artillery is untouched. A Tomahawk, an Inferno Cannon, a Nuke Cannon, a Scud Launcher or a Rocket Buggy outranges every tower in the game and still takes one without losing a thing. Bring them when a player digs in.+- Heavy artillery is untouched. A Tomahawk, an Inferno Cannon, a Nuke Cannon or a Scud Launcher outranges every tower in the game and still takes one without losing a thing. Bring them when a player digs in.+- The Rocket Buggy fires from 235 instead of 300. Its rockets used to outreach every tower by 75, so a pack of buggies took a Patriot or a Bunker without a scratch. They still take it most of the time, and now leave wrecks worth a fifth to four fifths of what the tower cost.+- A Paladin's laser fires every two seconds instead of every second. It used to shoot down every missile a Patriot sent at it, so four Paladins killed a Patriot every time and lost a quarter of its price doing it, while Crusaders for the same money never broke one. The Patriot now stands half the time.+- The Quad Cannon costs 800, up from 700 (850 for the Toxin and Demolitions generals). For the same money seven of them were an even fight for five Crusaders; now tanks beat them, and they still shred every kind of infantry.+- The Dragon Tank has 400 health instead of 280. It was the worst unit in the game for its price and lost to every armored target; now it trades evenly with Paladins and Quad Cannons and still loses to main battle tanks.- Replays recorded before this change play out differently.## Weapons and units that were quietly wrongdiff --git a/GeneralsMD/Code/Data/INI/BalanceReforged.ini b/GeneralsMD/Code/Data/INI/BalanceReforged.iniindex 6812ba8b7..cbdba1d1c 100644--- a/GeneralsMD/Code/Data/INI/BalanceReforged.ini+++ b/GeneralsMD/Code/Data/INI/BalanceReforged.ini@@ -11,7 +11,8 @@; EA's numbers let a main battle tank take a defence for less than the defence cost:; tanks lost 0.27 of a Gattling Cannon's price killing it, 0.75 of a Stinger Site's, 0.89 of a; Patriot's. Tank shells now do half damage to the three defence armors, which puts every one of-; them at 1.1 to 1.3 against tanks. Artillery is untouched and still takes any defence for nothing.+; them at 1.1 to 1.3 against tanks. Long-range artillery still takes any defence for nothing; the+; Rocket Buggy's reach is cut at the end of this file.; ---- tank shells do half damage to base defences ------------------------------------------------@@ -216,3 +217,101 @@ Object Slth_GLATunnelNetworkEndEndEnd++; ---- units, measured with equal-money duels (Tools/Balance/duel.py) --------------------------------+; A unit's share is the money its side has left out of both sides' leftovers, averaged over every+; cross-faction opponent and both start points. 0.50 is even.++; The Quad Cannon had the best share in the game at 0.68: seven of them for five Crusaders was a+; coin flip. At 800 it is 0.50, still wins against every infantry type and now loses to Paladins+; and Battlemasters. A missile armor change was tried first and moved nothing.++Object GLAVehicleQuadCannon+ BuildCost = 800 ; EA: 700+End++Object Chem_GLAVehicleQuadCannon+ BuildCost = 850 ; EA: 750+End++Object Demo_GLAVehicleQuadCannon+ BuildCost = 850 ; EA: 750+End++; The Dragon had the worst share at 0.26 to 0.32 and lost to every armored unit. At 400 health it+; is 0.51: it now trades evenly with Paladins and Quad Cannons and still loses to main battle tanks.+; A longer flame (100 against 75) put it at 0.58 and beating Tunnel Defenders, which is too far.++Object ChinaTankDragon+ ReplaceModule ModuleTag_02+ Body = ActiveBody ModuleTag_02_Reforged+ MaxHealth = 400.0 ; EA: 280+ InitialHealth = 400.0+ SubdualDamageCap = 800+ SubdualDamageHealRate = 500+ SubdualDamageHealAmount = 50+ End+ End+End++Object Infa_ChinaTankDragon+ ReplaceModule ModuleTag_02+ Body = ActiveBody ModuleTag_02_Reforged+ MaxHealth = 400.0+ InitialHealth = 400.0+ SubdualDamageCap = 800+ SubdualDamageHealRate = 500+ SubdualDamageHealAmount = 50+ End+ End+End++Object Nuke_ChinaTankDragon+ ReplaceModule ModuleTag_02+ Body = ActiveBody ModuleTag_02_Reforged+ MaxHealth = 400.0+ InitialHealth = 400.0+ SubdualDamageCap = 800+ SubdualDamageHealRate = 500+ SubdualDamageHealAmount = 50+ End+ End+End++Object Tank_ChinaTankDragon+ ReplaceModule ModuleTag_02+ Body = ActiveBody ModuleTag_02_Reforged+ MaxHealth = 400.0+ InitialHealth = 400.0+ SubdualDamageCap = 800+ SubdualDamageHealRate = 500+ SubdualDamageHealAmount = 50+ End+ End+End++; The Paladin's point defense laser shot down every Patriot missile: Paladins killed a Patriot four+; times of four and lost 0.28 of its price, where Crusaders lost 1.35 and never killed it. Firing+; every two seconds it still thins a volley, and the Patriot stands two times of four at 0.55.+; Its duels do not move, the laser only meets missiles.++Weapon PaladinPointDefenseLaser+ DelayBetweenShots = 2000 ; EA: 1000+End++; The Rocket Buggy reached 300 and every defence but the Fire Base reaches 225, so buggies took any+; tower and lost nothing. At 250 and 275 that stayed true. At 225 the tower always won. At 235 the+; buggies still take a Patriot, a Gattling Cannon or a Bunker most of the time and lose 0.2 to 0.8+; of its price doing it.++Weapon BuggyRocketWeapon+ AttackRange = 235.0 ; EA: 300+End++Weapon BuggyRocketWeaponUpgraded+ AttackRange = 235.0 ; EA: 300+End++Weapon BuggyRocketREDWeapon+ AttackRange = 235.0 ; EA: 300+Enddiff --git a/Tools/Balance/duel.py b/Tools/Balance/duel.pyindex 3d8dad7c9..db3528ec2 100644--- a/Tools/Balance/duel.py+++ b/Tools/Balance/duel.py@@ -32,7 +32,7 @@ UNITS = {"ChinaTankBattleMaster": 800, "ChinaTankOverlord": 2000, "ChinaTankGattling": 800, "ChinaTankDragon": 800,"ChinaInfantryRedguard": 300, "ChinaInfantryTankHunter": 300,"GLATankScorpion": 600, "GLATankMarauder": 800, "GLAVehicleTechnical": 500, "GLAInfantryRebel": 150,- "GLAInfantryTunnelDefender": 300, "GLAVehicleQuadCannon": 700,+ "GLAInfantryTunnelDefender": 300, "GLAVehicleQuadCannon": 800, "GLAVehicleRocketBuggy": 900,}