Zero-K icon indicating copy to clipboard operation
Zero-K copied to clipboard

Death animation doesn't drop targets

Open sprunk opened this issue 10 months ago • 3 comments

Units with lengthy death animation (eg battleship, strike comm) are kept as targets for e.g. attack or repair commands until they finish dying. Perhaps other units should retarget (finish the command) immediately when they reach 0 health? Would probably need some engine interface to get all units targeting given unit to be efficient either way.

sprunk avatar Feb 18 '25 00:02 sprunk

This would want engine support. Getting the targets of a unit is not something lua is set up to do efficiently. A related ticket would be about dropping targets when a unit changes allyTeam.

GoogleFrog avatar Feb 18 '25 09:02 GoogleFrog

Part of the question is whether this would even be desirable. There is the visual consistency of the attackers only moving on when the victim turns into wreck, and the animations are short enough (and the units with death animations rare enough) the gameplay isn't really that much affected.

sprunk avatar Feb 18 '25 10:02 sprunk

I think it would be desirable. At least to have the option. Sitting around while the Shogun explodes looks rather silly. We could also use such de-target tech to improve underground Outlaw hax, if it requires improvement. Perhaps check out whatever the engine does for crashing aircraft, I think there was some fix to make them not be chased forever at some point. If not, then that is another thing to fix.

GoogleFrog avatar Feb 18 '25 13:02 GoogleFrog