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

Rezzed units with initial states set to Inherit, start with unwanted states

Open CarabusX opened this issue 11 years ago • 2 comments

Imagine the following situation: Raven has initial states of Fire State and Fly/Land set to Inherit (from factory). Airplane factory has these initial states set to Hold Fire and Fly.

This means that without touching the states all your Ravens will be Hold Fire and Fly. But if you rezz yours or enemy Raven from wreck its states will be Fire At Will and Land, which are the engine defaults. These are kinda unwanted.

CarabusX avatar Aug 13 '15 02:08 CarabusX

For units that got rezzed and not produced by factory I would suggest iterating the buildoption tree upwards and finding the first unit whose state is not set to Inherit and using that value. Or at least checking the factory initial states before using engine defaults.

The Athena could possibly be ignored because all units from Athena buildoptions are buildable by factories/striderhub too, and in Initial States settings there are already grouped by their real factories.

CarabusX avatar Aug 13 '15 02:08 CarabusX

Fixed in https://github.com/ZeroK-RTS/Zero-K/commit/94a497712fab0cd2da2b6bcfd5b3a740963944f8

Thanks for the proposal on how to fix, was helpful!

Histidine91 avatar May 28 '17 01:05 Histidine91