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(data): faster machine gun tracers
Olcay Seyganc26f42502113
diff --git a/GeneralsMD/Code/Data/INI/FXListReforged.ini b/GeneralsMD/Code/Data/INI/FXListReforged.iniindex 377b1542c..aadd23d55 100644--- a/GeneralsMD/Code/Data/INI/FXListReforged.ini+++ b/GeneralsMD/Code/Data/INI/FXListReforged.ini@@ -4048,9 +4048,14 @@ End; Gunfire that reads at play zoom. EA's machine gun tracers were a third of a unit wide and ten; long, about one pixel at the default camera height, and an instant-hit gun showed nothing where; it hit, because it has no projectile to carry a detonation FX there. These are EA's gun FXLists-; with the tracer twice as wide and half again as long, a stronger muzzle light, and a spark and a+; with the tracer twice as wide and three times as long, a stronger muzzle light, and a spark and a; dirt puff played AtTarget, where the tracer lands. The muzzle flares themselves are larger in-; ParticleSystemReforged.ini. Colours and speeds stay EA's.+; ParticleSystemReforged.ini. Colours stay EA's. Speeds do not: EA's 300 to 600 a second put a rifle+; tracer half a second over a 150 range, a dash crawling to the target, and a gattling's 1200 still+; took five frames over 200. Rifles and machine guns now fly 1500 a second and gattlings 1800, which+; crosses 150 to 200 in three or four frames, and the streak is 32 long so the faster round still+; reads as a line. The Comanche, Ranger, sentry drone and Spectre blocks after the Technical's are+; here only for the tracer, with no impact puffs added.FXList WeaponFX_GenericMachineGunFireLightPulseColor = R:255 G:255 B:128@@ -4070,10 +4075,10 @@ FXList WeaponFX_GenericMachineGunFireEndTracerDecayAt = 1- Length = 16+ Length = 32Width = 0.7Color = R:255 G:255 B:255- Speed = 600+ Speed = 1500Probability = 0.7EndParticleSystem@@ -4109,10 +4114,10 @@ FXList WeaponFX_GenericMachineGunFireWithRedTracersEndTracerDecayAt = 1- Length = 16+ Length = 32Width = 0.7Color = R:255 G:0 B:0- Speed = 300+ Speed = 1500Probability = 0.7EndParticleSystem@@ -4148,10 +4153,10 @@ FXList WeaponFX_GattlingTankMachineGunFireEndTracerDecayAt = 1- Length = 16+ Length = 32Width = 0.7Color = R:255 G:255 B:255- Speed = 1200+ Speed = 1800Probability = 0.7EndParticleSystem@@ -4187,10 +4192,10 @@ FXList WeaponFX_GattlingTankMachineGunFireWithRedTracersEndTracerDecayAt = 1- Length = 16+ Length = 32Width = 0.7Color = R:255 G:0 B:0- Speed = 1200+ Speed = 1800Probability = 0.7EndParticleSystem@@ -4226,10 +4231,10 @@ FXList WeaponFX_GattlingCannonMachineGunFireEndTracerDecayAt = 1- Length = 16+ Length = 32Width = 0.7Color = R:255 G:255 B:255- Speed = 1200+ Speed = 1800Probability = 0.7EndParticleSystem@@ -4265,10 +4270,10 @@ FXList WeaponFX_GattlingCannonMachineGunFireWithRedTracersEndTracerDecayAt = 1- Length = 16+ Length = 32Width = 0.7Color = R:255 G:0 B:0- Speed = 1200+ Speed = 1800Probability = 0.7EndParticleSystem@@ -4304,10 +4309,10 @@ FXList WeaponFX_QuadCannonGunFireEndTracerDecayAt = 1- Length = 16+ Length = 32Width = 0.7Color = R:255 G:255 B:255- Speed = 300+ Speed = 1500Probability = 0.5EndParticleSystem@@ -4343,10 +4348,10 @@ FXList WeaponFX_HeroicQuadCannonGunFireEndTracerDecayAt = 1- Length = 16+ Length = 32Width = 0.7Color = R:255 G:0 B:0- Speed = 300+ Speed = 1500Probability = 0.5EndParticleSystem@@ -4383,10 +4388,10 @@ FXList WeaponFX_TechnicalGunFireEndTracerDecayAt = 1- Length = 16+ Length = 32Width = 0.7Color = R:230 G:204 B:179- Speed = 300+ Speed = 1500Probability = 0.5EndParticleSystem@@ -4402,6 +4407,165 @@ FXList WeaponFX_TechnicalGunFireEndEnd+; ----------------------------------------------+; Comanche, Helix minigun and A-10 cannon.+FXList WeaponFX_Comanche20mmCannonFire+ LightPulse+ Color = R:255 G:255 B:255+ Radius = 60+ IncreaseTime = 0+ DecreaseTime = 100+ End+ ParticleSystem+ Name = GattlingCannonLenzflare+ OrientToObject = Yes+ Offset = X:0.0 Y:0.0 Z:0.0+ End+ ParticleSystem+ Name = FallingShellsComanche+ OrientToObject = Yes+ Offset = X:0.0 Y:0.0 Z:0.0+ End+ Tracer+ DecayAt = 1+ Length = 32+ Width = 0.7+ Color = R:128 G:128 B:128+ Speed = 1800+ End+End++; ----------------------------------------------+FXList WeaponFX_HeroicComanche20mmCannonFire+ LightPulse+ Color = R:255 G:128 B:128+ Radius = 60+ IncreaseTime = 0+ DecreaseTime = 100+ End+ ParticleSystem+ Name = HeroicGattlingCannonLenzflare+ OrientToObject = Yes+ Offset = X:0.0 Y:0.0 Z:0.0+ End+ ParticleSystem+ Name = FallingShellsComanche+ OrientToObject = Yes+ Offset = X:0.0 Y:0.0 Z:0.0+ End+ Tracer+ DecayAt = 1+ Length = 32+ Width = 0.7+ Color = R:196 G:0 B:0+ Speed = 1800+ End+End++; ----------------------------------------------+; The angry mob's rifles, and the heroic tracer of two veteran guns.+FXList WeaponFX_RangerAdvancedCombatRifleFire+ LightPulse+ Color = R:255 G:255 B:128+ Radius = 20+ IncreaseTime = 0+ DecreaseTime = 300+ End+ Tracer+ DecayAt = 1+ Length = 32+ Width = 0.7+ Color = R:230 G:204 B:179+ Speed = 1500+ Probability = 0.5+ End+End++; ----------------------------------------------+FXList WeaponFX_HeroicRangerAdvancedCombatRifleFire+ LightPulse+ Color = R:255 G:255 B:128+ Radius = 20+ IncreaseTime = 0+ DecreaseTime = 300+ End+ Tracer+ DecayAt = 1+ Length = 32+ Width = 0.7+ Color = R:255 G:0 B:0+ Speed = 1500+ Probability = 0.9+ End+End++; ----------------------------------------------+FXList WeaponFX_SentryDroneGunFire+ LightPulse+ Color = R:255 G:255 B:128+ Radius = 25+ IncreaseTime = 0+ DecreaseTime = 500+ End+ ParticleSystem+ Name = GattlingCannonLenzflareIntense+ OrientToObject = Yes+ Offset = X:0.0 Y:0.0 Z:0.0+ End+ ParticleSystem+ Name = SentryDroneMuzzleFlash+ OrientToObject = Yes+ Offset = X:0.0 Y:0.0 Z:0.0+ End+ ParticleSystem+ Name = InfantryStruckSmallArmsSmoke+ OrientToObject = Yes+ Offset = X:0.0 Y:0.0 Z:0.0+ End+ ParticleSystem+ Name = FallingShells+ OrientToObject = Yes+ Offset = X:0.0 Y:0.0 Z:0.0+ End+ Tracer+ DecayAt = 1+ Length = 32+ Width = 0.7+ Color = R:230 G:204 B:179+ Speed = 1500+ Probability = 0.25+ End+End++; ----------------------------------------------+; The Spectre fires from altitude, so its streak was already EA's longest and stays the longest.+FXList WeaponFX_SpectreGattlingMuzzleFlash+ LightPulse+ Color = R:255 G:255 B:128+ Radius = 10+ IncreaseTime = 0+ DecreaseTime = 100+ End+ ParticleSystem+ Name = GattlingCannonLenzflare+ OrientToObject = Yes+ Offset = X:0.0 Y:0.0 Z:0.0+ End+ ParticleSystem+ Name = FallingShellsSpectreGattling+ OrientToObject = Yes+ Offset = X:0.0 Y:0.0 Z:0.0+ End+ Tracer+ DecayAt = 1+ Length = 40+ Width = 0.7+ Color = R:255 G:255 B:255+ Speed = 1800+ Probability = 0.7+ End+End+; ----------------------------------------------; Tank cannon: EA's muzzle FXLists with the ground around the muzzle lit further. The flame and; smoke are larger in ParticleSystemReforged.ini, and the shell's glowing trail is the shell's owndiff --git a/GeneralsMD/Code/Tests/test_gameengine.cpp b/GeneralsMD/Code/Tests/test_gameengine.cppindex b1110b0fc..e40567b21 100644--- a/GeneralsMD/Code/Tests/test_gameengine.cpp+++ b/GeneralsMD/Code/Tests/test_gameengine.cpp@@ -834,7 +834,7 @@ TEST(patch_of_a_missing_object_is_skipped)The explosion pass added 22 more of EA's, from the structure deaths to the nukes, each withthe light it lacked, and the point defense lasers' missile burst one of the fork's own.The gunfire pass added 13 of EA's gun FXLists, wider tracers and AtTarget impacts, all of- which already had a muzzle light. */+ which already had a muzzle light, and the faster tracers six more, each with EA's own light. */static const char *const s_unlitReforgedFXList = "FXList SupW_FX_ParticleUplinkDeathInitial";TEST(fxlist_reforged_ini_parses_and_keeps_its_light)@@ -883,7 +883,7 @@ TEST(fxlist_reforged_ini_parses_and_keeps_its_light)}fclose( fp );- CHECK_EQ( blocks, 127 );+ CHECK_EQ( blocks, 133 );CHECK_EQ( lit, blocks );}