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
fix(balance): tank shells do 30 percent to infantry, not the full shot
Olcay Seygan38d96aaaa4ea
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 23cea3e7e..20bff9fc1 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -196,11 +196,12 @@ found and fixed, EA's own, not port damage.**- The blast and the fire spare the plane's owner and allies, and still hurt enemies and neutral buildings. A Supply Drop plane shot down over your own base used to wreck it; in a test the same crash that cost your own side 10 men and 136 health off two power plants now leaves them untouched, while the enemy beside them loses the same 10 men.- Bombers and cargo planes no longer vanish silently when they hit the ground. A jet destroyed while it sits parked is unchanged.-## A tank shell kills the man it hits+## A tank shell hurts the man it hits-- A cannon shell did 6 damage to a soldier. A Ranger has 180 health, so thirty shells that actually hit him left him standing, a full minute of fire from a Crusader, while the same shell does 60 to another tank. It now does that 60 to him as well. Three hits kill a Ranger. Two kill a Red Guard or a Rebel.+- A cannon shell did 6 damage to a soldier. A Ranger has 180 health, so thirty shells that actually hit him left him standing, a full minute of fire from a Crusader, while the same shell does 60 to another tank. It now does 18 to him. Ten hits kill a Ranger, seven a Red Guard or a Rebel.+- 3.4.0 let the whole 60 through, and players were right that it went too far: an Overlord cut a Red Guard down in under a second and a tank column no longer had to care what infantry stood in front of it. Tanks keep three times the damage Zero Hour gave them and lose the rest. In staged fights for equal money, Red Guards beat every tank at Zero Hour's 6 and lost to Crusaders every time at 3.4.0's 60. Now the two split, and the side of the field each starts on decides it.- The gun still throws the shot wide of infantry, and the blast is small, so a shell that bursts beside a man still misses. A Gattling Tank does not throw wide, and it is still the gun that cuts a whole squad down.-- A chemical suit still stops toxin, radiation and microwaves, and a cannon shell goes through it the same as through a bare uniform. The Infantry General's men, the Toxin Rebel, the biohazard suit and the Demolitions terrorist each had their own copy of that shrug, and a shell goes through those too. The men on a Stinger Site keep theirs: that armor belongs to the site. The Missile Defender's laser-guided missile is the same kind of round, so it does its 40 to a soldier, and he fires that one at them. An ordinary rocket still barely scratches a man.+- A chemical suit still stops toxin, radiation and microwaves, and a cannon shell goes through it the same as through a bare uniform. The Infantry General's men, the Toxin Rebel, the biohazard suit and the Demolitions terrorist each had their own copy of that shrug, and a shell goes through those too. The men on a Stinger Site keep theirs: that armor belongs to the site. The Missile Defender's laser-guided missile is the same kind of round, so it does 12 of its 40 to a soldier, and he fires that one at them. An ordinary rocket still barely scratches a man.- A replay recorded before this change plays out differently.## The battle runs at 60 steps a seconddiff --git a/GeneralsMD/Code/Data/INI/BalanceReforged.ini b/GeneralsMD/Code/Data/INI/BalanceReforged.iniindex babc760a1..621ae09ea 100644--- a/GeneralsMD/Code/Data/INI/BalanceReforged.ini+++ b/GeneralsMD/Code/Data/INI/BalanceReforged.ini@@ -1745,17 +1745,20 @@ End;; HumanArmor took armor-piercing at 10%, so a Crusader's 60 did 6 to a Ranger with 180 health:; thirty connecting hits. The gun already scatters up to 10 against infantry and the blast is 5-; across, which is what keeps a tank from mowing a squad. A shell that lands now does the full 60.-; ChemSuitHumanArmor is that armor plus the toxin resists, and a Ranger wears it after Chemical-; Suits, so it takes the same shells. The Infantry General, the Toxin Rebel, the biohazard suit-; and the Demolitions terrorist each have their own copy of the 10%, and those open too.+; across, which is what keeps a tank from mowing a squad. 3.4.0 let a landed shell do the full 60,+; and an Overlord then cut a Red Guard down in 0.6 s: players called it a different game. 30% is+; 18 a shell, ten hits on a Ranger and seven on a Red Guard, three times EA's and well short of+; a tank's whole gun. ChemSuitHumanArmor is that armor plus the toxin resists, and a Ranger wears+; it after Chemical Suits, so it takes the same shells. The Infantry General, the Toxin Rebel, the+; biohazard suit and the Demolitions terrorist each have their own copy of the 10%, and those take+; the 30% too.; StingerSoldierArmor stays: its whole table is the site's crew, and gattling already does; nothing to them. Infantry rockets stay at 10% on the plain uniform. An Armor block replaces; the template, so every other line is EA's.Armor HumanArmorArmor = CRUSH 200%- Armor = ARMOR_PIERCING 100% ; EA: 10%+ Armor = ARMOR_PIERCING 30% ; EA: 10%, 3.4.0: 100%Armor = INFANTRY_MISSILE 10%Armor = FLAME 150%Armor = PARTICLE_BEAM 150%@@ -1771,7 +1774,7 @@ EndArmor ChemSuitHumanArmorArmor = CRUSH 200%- Armor = ARMOR_PIERCING 100% ; EA: 10%+ Armor = ARMOR_PIERCING 30% ; EA: 10%, 3.4.0: 100%Armor = INFANTRY_MISSILE 10%Armor = FLAME 150%Armor = POISON 20%@@ -1790,7 +1793,7 @@ EndArmor InfGen_HumanArmorArmor = CRUSH 200%- Armor = ARMOR_PIERCING 100% ; EA: 10%+ Armor = ARMOR_PIERCING 30% ; EA: 10%, 3.4.0: 100%Armor = INFANTRY_MISSILE 10%Armor = FLAME 150%Armor = POISON 60%@@ -1809,7 +1812,7 @@ EndArmor ChemReb_HumanArmorArmor = CRUSH 200%- Armor = ARMOR_PIERCING 100% ; EA: 10%+ Armor = ARMOR_PIERCING 30% ; EA: 10%, 3.4.0: 100%Armor = INFANTRY_MISSILE 10%Armor = SNIPER 200%Armor = FLAME 150%@@ -1826,7 +1829,7 @@ EndArmor HazMatHumanArmorArmor = CRUSH 200%- Armor = ARMOR_PIERCING 100% ; EA: 10%+ Armor = ARMOR_PIERCING 30% ; EA: 10%, 3.4.0: 100%Armor = SNIPER 200%Armor = FLAME 25%Armor = LASER 25%@@ -1844,7 +1847,7 @@ EndArmor DemoGenTerroristArmorArmor = CRUSH 200%- Armor = ARMOR_PIERCING 100% ; EA: 10%+ Armor = ARMOR_PIERCING 30% ; EA: 10%, 3.4.0: 100%Armor = INFANTRY_MISSILE 10%Armor = FLAME 100%Armor = PARTICLE_BEAM 150%diff --git a/GeneralsMD/Code/Tests/test_gameengine.cpp b/GeneralsMD/Code/Tests/test_gameengine.cppindex 2b2f2ca2f..45542c62e 100644--- a/GeneralsMD/Code/Tests/test_gameengine.cpp+++ b/GeneralsMD/Code/Tests/test_gameengine.cpp@@ -13259,8 +13259,8 @@ TEST(frames_to_kill_counts_shots_delays_and_reloads)crusaderGun.m_delayFrames = 60.0f;CHECK_NEAR( 480.0f, aiFramesToKill( 480.0f, crusaderGun ), 0.001f );- // the same shell through HumanArmor on a 120-health Rebel. Armor-piercing lands in full- // now, so two shells. At the old 10% it was 6 a shell and twenty of them.+ // the whole shell on a 120-health Rebel: two shells. HumanArmor takes armor-piercing at 30%,+ // so in the game it is 18 a shell and seven of them; at EA's 10% it was 6 and twenty.AIShotPattern crusaderOnInfantry = crusaderGun;crusaderOnInfantry.m_damagePerShot = 60.0f;CHECK_NEAR( 120.0f, aiFramesToKill( 120.0f, crusaderOnInfantry ), 0.001f );