GeneralsGamePatch icon indicating copy to clipboard operation
GeneralsGamePatch copied to clipboard

USA Humvee TOW Missile can time out before hitting its ground target

Open xezon opened this issue 1 year ago • 3 comments

USA Humvee TOW Missile can time out before hitting its ground target.

Appears to happen when shooting on allies only, because the missile does not collide with the structure.

Does not happen when shooting on neutrals or enemies.

Happens with and without Search and Destroy.

https://github.com/TheSuperHackers/GeneralsGamePatch/assets/4720891/19d784c4-029e-4136-9921-7bc99ad7959d

xezon avatar Jun 12 '24 19:06 xezon

I compared HumveeMissileWeapon with MissileDefenderMissileWeapon.

Both have

RadiusDamageAffects = ALLIES ENEMIES NEUTRALS
ProjectileCollidesWith = STRUCTURES

The only major difference between their projectiles is

Object HumveeMissile
  Behavior = MissileAIUpdate ModuleTag_07
    TryToFollowTarget = No

Object MissileDefenderMissile
  Behavior = MissileAIUpdate ModuleTag_07
    TryToFollowTarget = Yes

Setting TryToFollowTarget = Yes for HumveeMissile makes it collide with Allies structures. Unclear to me how to fix it another way.

xezon avatar Jun 13 '24 19:06 xezon

Enabling TryToFollowTarget = Yes is quite a buff, especially when chasing other fast units. I've enabled it in my project but for different reasons.

makes it collide with Allies structures.

If it becomes the same behavior as MD, then I'd say there's no problem with it. But you have to consider the buff from what I've described above, that's much more important.

Float1ngFree avatar Jun 13 '24 20:06 Float1ngFree

I am aware of the buff, and that is why TryToFollowTarget = Yes is no option. We need another method of fixing it.

xezon avatar Jun 14 '24 04:06 xezon