GeneralsGamePatch icon indicating copy to clipboard operation
GeneralsGamePatch copied to clipboard

The Sneak Attack has the same build hitbox as the Tunnel Network towards impassable terrain

Open DrGoldFish1 opened this issue 9 months ago • 1 comments

When placing down a Sneak attack towards buildings the build hitbox is bigger then the one of the Tunnel Network. But if you place down a Sneak Attack towards impassable terrain the build hitbox is the same as the one of the Tunnel Network, this makes it difficult to spawn proof your base against Sneak Attacks at wobbly terrain, cliffs or water.

Also the Build hitbox to impassable terrain is smaller then how big the building actually is.

Image

The darker texture is impassable terrain.

Image

Image

Image

Image

DrGoldFish1 avatar May 26 '25 16:05 DrGoldFish1

FactoryExtraBibWidth = 25.0

The calculation is not accounting for impassible terrain or cliff faces.

This affects every production building and can lead to units getting stuck on exit.

Removing FactoryExtraBibWidth from the Sneak Tunnel is not desirable, as it doubles its hitbox, making it easier to destroy. We could do some trickery, like replacing the tunnel object, but it should be handled in Code

OccultGuy avatar May 30 '25 18:05 OccultGuy