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): one continuous shell streak, tight orange tank muzzle blast
Olcay Seygan9f3d76321f16
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 8224c9ea0..fb9e6f8c3 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1373,7 +1373,7 @@ The whole HUD is on the hardware. Four colours carry it, and they mean the same- An explosion lights everything around it, smoothly. On the default renderer the light of a blast reaches every tank, soldier, building and patch of ground it can see, fading out with distance, where the ground used to brighten in blocky squares and a model took only four lights at once, so in a big fight half the tanks next to a burning wreck stayed dark. The 32 blasts nearest the camera light at the same time, and a wall with its back to the fire stays in shadow. The light brightens what it falls on by three quarters at most: a nuke's took the ground to white within a few frames until it was held there.- A bright cloud no longer shows what is behind it as a line drawing. Inside a nuke's white cloud, or a falling War Factory's fireball, every tree and wreck under it used to come out as a thin grey outline, and the picture's sharpening ringed each dark piece in white. Both stop where the frame is bright.- Smoke and fire no longer end on a straight line where they meet the ground or a building. A puff that sinks into a hillside or drifts against a wall thins out over its last few metres, softly enough that a nuke's haze and a Scud's grey smoke no longer come out as stacked, stair-stepped terraces, and a toxin cloud lying low over the ground keeps its body instead of breaking into hard-edged green islands. A China mine field blinks where you can see it again: its lights hang just off the ground, and the fade had eaten all but a thirtieth of their bright middle. No effect fades over more than its own size now, so a small spark close to the ground keeps its light. This is the default renderer; Classic and the old renderer keep the hard edge they had in 2003.-- Gunfire shows at the zoom you play at. A rifle's tracer was a third of a unit wide, about one pixel from the default camera, and a bullet hit nothing you could see. Tracers from rifles, Gattlings, Humvees, Technicals and Quad Cannons are now twice as wide and half again as long, the muzzle flash is half as big again, and every hit kicks up sparks and a puff of dirt where it lands. A tank shell burns a short hot streak behind it all the way to the target, where it used to be a grey sliver you could not pick out between the flash and the blast. A Crusader's, Battlemaster's, Scorpion's, Paladin's or Overlord's muzzle flame and smoke are about half as big again, and a shell landing throws dirt and sparks around its blast. The colours are the ones the game always used, and no weapon does anything different.+- Gunfire shows at the zoom you play at. A rifle's tracer was a third of a unit wide, about one pixel from the default camera, and a bullet hit nothing you could see. Tracers from rifles, Gattlings, Humvees, Technicals and Quad Cannons are now twice as wide and half again as long, the muzzle flash is half as big again, and every hit kicks up sparks and a puff of dirt where it lands. A tank shell burns a short hot streak behind it all the way to the target, where it used to be a grey sliver you could not pick out between the flash and the blast. A Crusader's, Battlemaster's, Scorpion's, Paladin's or Overlord's shot used to be a soft white glow drifting out in front of the gun, wider than the tank; it is now a short orange blast at the barrel tip, with a bigger flame and smoke puff behind it. A shell landing throws dirt and sparks around its blast. The colours are the ones the game always used, and no weapon does anything different.- A China mine field has mines in it. EA's field had no model at all, only a white glint blinking on each of its eight spots, so your own minefield looked like a patch of fireflies. Each spot is now a round steel mine pressed into a ring of dug earth, at a random turn, with an arming LED over its fuse that flicks on for a fifth of a second every second and a half, red on standard and cluster mines and a cold blue on EMP mines. You and your allies see them a little see-through, the way you see your own stealthed units. The enemy still sees nothing until he detects the field, and then he sees the same mines. A mine going off under a tank now throws a column of dark earth twice the tank's height, scatters clods round it and leaves a low black smoke and a scorch, with a short jolt of the screen; it used to puff a pale spray of specks that looked like dust kicked up. An EMP mine adds a blue ring across the ground and a crackle of blue sparks. What a mine does is unchanged.- A base out of power looks out of power. A building short of power, or one a hacker shut down, drains to a cold grey and sags darker, and its windows and lamps go out. Every few seconds it blinks dark for an instant or its lights catch again for a moment, and blue sparks jump on its walls where something shorts. A tank or building hit by an EMP crawls with thin blue arcs for as long as it stays dead, where it used to just turn dark grey.- Your own stealthed units look cloaked instead of faded. What stands behind a Pathfinder, Colonel Burton or a stealthed GLA unit bends through its body in a slow ripple, under a cold edge you can still read the unit by. When an enemy detector has found him, that edge pulses amber. An enemy stealth unit your detector finds used to turn into a flat orange shape with no paint; now it keeps its own paint, drained of colour, under a burning red-orange outline with scan lines running up it, and all of it flares on every sweep of the detector. This is the default renderer; Classic and the old renderer keep the 2003 look for all of these.diff --git a/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini b/GeneralsMD/Code/Data/INI/ParticleSystemReforged.iniindex 83d1a220e..c13b1ca64 100644--- a/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini+++ b/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini@@ -3935,9 +3935,12 @@ End; and the tank's flame started half a unit across; at the default camera both were a few pixels.; These are EA's muzzle systems at about one and a half times the size, the machine gun flare held; one frame longer and the tank flame thrown further with more puffs. Every weapon that names one-; of them gets it bigger, the Gattling building and the Quad Cannon included. The tank's white-; flare (TankMuzzleFlare) stays EA's: at one and a half times it blew the barrel and the ground in-; front of it out to a white blob on film.+; of them gets it bigger, the Gattling building and the Quad Cannon included. The tank's flare+; (TankMuzzleFlare) goes the other way. EA's was a white glow 40 across, growing 15 a frame and+; drifting 4 a frame ahead of the barrel, which at the default camera is a white blob 200 pixels+; wide in front of the gun at 720p, and at one and a half times it blew the barrel out entirely.+; Now it is a third the size, holds at the barrel tip, starts orange-white and burns down to+; orange in a quarter of a second: a muzzle blast rather than a light.ParticleSystem GattlingCannonLenzflarePriority = WEAPON_EXPLOSION@@ -4103,6 +4106,88 @@ ParticleSystem TankMuzzleFlashFlameIsParticleUpTowardsEmitter = NoEnd+ParticleSystem TankMuzzleFlare+ Priority = CRITICAL+ IsOneShot = No+ Shader = ADDITIVE+ Type = PARTICLE+ ParticleName = EXLnzFlar2.tga+ AngleZ = 0.00 0.00+ AngularRateZ = 0.00 0.00+ AngularDamping = 1.00 1.00+ VelocityDamping = 0.70 0.70+ Gravity = 0.00+ Lifetime = 8.00 8.00+ SystemLifetime = 1+ Size = 14.00 14.00+ StartSizeRate = 0.00 0.00+ SizeRate = 3.00 3.00+ SizeRateDamping = 0.60 0.60+ Alpha1 = 0.00 0.00 0+ Alpha2 = 0.00 0.00 0+ Alpha3 = 0.00 0.00 0+ Color1 = R:255 G:225 B:170 0+ Color2 = R:255 G:130 B:40 3+ Color3 = R:0 G:0 B:0 8+ ColorScale = 0.00 0.00+ BurstDelay = 1.00 1.00+ BurstCount = 1.00 1.00+ InitialDelay = 0.00 0.00+ DriftVelocity = X:0.00 Y:0.00 Z:0.00+ VelocityType = ORTHO+ VelOrthoX = 0.00 0.00+ VelOrthoY = 0.00 0.00+ VelOrthoZ = 0.00 0.00+ VolumeType = CYLINDER+ VolCylinderRadius = 0.00+ VolCylinderLength = 0.00+ IsHollow = No+ IsGroundAligned = No+ IsEmitAboveGroundOnly = No+ IsParticleUpTowardsEmitter = No+End++ParticleSystem TankSmallMuzzleFlare+ Priority = CRITICAL+ IsOneShot = No+ Shader = ADDITIVE+ Type = PARTICLE+ ParticleName = EXLnzFlar2.tga+ AngleZ = 0.00 0.00+ AngularRateZ = 0.00 0.00+ AngularDamping = 1.00 1.00+ VelocityDamping = 0.70 0.70+ Gravity = 0.00+ Lifetime = 7.00 7.00+ SystemLifetime = 1+ Size = 9.00 9.00+ StartSizeRate = 0.00 0.00+ SizeRate = 2.00 2.00+ SizeRateDamping = 0.60 0.60+ Alpha1 = 0.00 0.00 0+ Alpha2 = 0.00 0.00 0+ Alpha3 = 0.00 0.00 0+ Color1 = R:255 G:225 B:170 0+ Color2 = R:255 G:130 B:40 3+ Color3 = R:0 G:0 B:0 7+ ColorScale = 0.00 0.00+ BurstDelay = 1.00 1.00+ BurstCount = 1.00 1.00+ InitialDelay = 0.00 0.00+ DriftVelocity = X:0.00 Y:0.00 Z:0.00+ VelocityType = ORTHO+ VelOrthoX = 0.00 0.00+ VelOrthoY = 0.00 0.00+ VelOrthoZ = 0.00 0.00+ VolumeType = CYLINDER+ VolCylinderRadius = 0.00+ VolCylinderLength = 0.00+ IsHollow = No+ IsGroundAligned = No+ IsEmitAboveGroundOnly = No+ IsParticleUpTowardsEmitter = No+End+ParticleSystem TankMuzzleFlashSmokePriority = WEAPON_EXPLOSIONIsOneShot = No@@ -4309,9 +4394,14 @@ ParticleSystem ReforgedBulletImpactDustEnd; A tank shell's tracer, hung on the shell itself (BalanceReforged.ini gives every cannon shell-; that draws EA's AVTankShel model this system). A shell covers about 13 a frame, so each frame-; lays four glowing beads along the stretch behind it, and they burn out in five frames: a short-; hot streak that rides the shell's own arc.+; that draws EA's AVTankShel model this system). A shell covers 10 to 13 a frame. An attached+; system spreads one frame's burst evenly over the path from where the shell was to where it is+; (ParticleSystem::generateParticleInfo's emission adjustment), so eight glow dots a frame from a+; point join into one line; the first try put a 13-long line behind the shell as well, which+; doubled the spacing and left separate beads. Each dot is thrown forward at about the shell's own+; speed and slows at once, so the newest dots catch up the frame the system lags behind its+; drawable and the head of the streak sits on the shell. The first frame is skipped: the shell is+; still being placed at the muzzle then, and dots laid there dropped below the barrel.ParticleSystem ReforgedTankShellTracerPriority = WEAPON_TRAIL@@ -4322,32 +4412,30 @@ ParticleSystem ReforgedTankShellTracerAngleZ = 0.00 0.00AngularRateZ = 0.00 0.00AngularDamping = 1.00 1.00- VelocityDamping = 1.00 1.00+ VelocityDamping = 0.50 0.50Gravity = 0.00Lifetime = 5.00 5.00SystemLifetime = 0- Size = 3.00 3.00+ Size = 2.50 2.50StartSizeRate = 0.00 0.00- SizeRate = -0.30 -0.30+ SizeRate = -0.25 -0.25SizeRateDamping = 1.00 1.00Alpha1 = 0.00 0.00 0Alpha2 = 0.00 0.00 0Alpha3 = 0.00 0.00 0- Color1 = R:255 G:220 B:150 0+ Color1 = R:255 G:225 B:160 0Color2 = R:255 G:140 B:60 2Color3 = R:0 G:0 B:0 5ColorScale = 0.00 0.00BurstDelay = 0.00 0.00- BurstCount = 4.00 4.00- InitialDelay = 0.00 0.00+ BurstCount = 8.00 8.00+ InitialDelay = 1.00 1.00DriftVelocity = X:0.00 Y:0.00 Z:0.00VelocityType = ORTHO- VelOrthoX = 0.00 0.00+ VelOrthoX = 10.00 10.00VelOrthoY = 0.00 0.00VelOrthoZ = 0.00 0.00- VolumeType = LINE- VolLineStart = X:0.00 Y:0.00 Z:0.00- VolLineEnd = X:-13.00 Y:0.00 Z:0.00+ VolumeType = POINTIsHollow = NoIsGroundAligned = NoIsEmitAboveGroundOnly = No