Fac-In-A-Box
Implementation Details
- Added a new tag in morph defs, facing = bool. If true, the resultant unit faces the nearest cardinal direction.
- Spawns a fac-in-a-box for every commander whose unitname starts with "arm" or "cor".
Tweakables
- Speed -> how easy it is to get forward fac
- Hit points -> how risky it is to not morph for a while
- Resourcing -> how advantageous it is to not morph for a while in terms of resources
- Morph time -> how much time player gets to change mind about factory, do things with comm in the meantime
- Cost timing (beginning of game vs. at morph) -> how advantageous it is to share facs; early options for comm building
- Corpse/scrapping values -> if someone really doesn't want a factory at start?
- Other abilities -> kind of weird, but it's possible
Issues
- Morphing where units can't be built
- Can be solved by making the facinabox a builder, intercepting its build order, replacing it with <move to that spot>, <morph into the structure facing the direction you chose>.
- Difficulty getting a unit to face the right way in the right spot.
- Can also be solved by above solution.
Download in other formats: