I'm not aware of such a function in Spring so I'll suggest it here:
Give units the ability to morph, i.e have the unit replaced with another unit.
The exact implementation could be something like this: The morphs are added to the build menu (should be possible to have both morphs and build options on the same unit so we can e.g. allow our factories to lift off the ground by turning them into planes), when the user clicks one of them the unit script will run the StartMorph() function, if it returns true the morph starts (unit consumes metal and energy for a set period of time, not sure how this would be handled, I'd say entry in the .fbi but that would require multiple entries if the unit has multiple morphs). Once the morph is finished, the unit runs the EndMorph function, once it returns the unit is replaced with the morph target. Should be possible to have a morph create multiple units so units could clone themselves like the aliens in Earth 2160 or spawn a swarm of smaller units.
Maybe the spawned unit(s) should get some sort of signal that it was created by morphing instead of building so it could have a different animation for that (and people won't have to create a build-only and a morph-only version of units that need such a differentiation).
Metamorphosis
Moderator: Moderators
Command & Conquer MCV? That would also solve the "commander can't be a factory" problem and the issue of not being able to change your base starting point if the com is immobile in a mod. It would also allow for transformers and siege weapons that have to be installed before use. Perhaps it could also be used to allow upgrading mexes to mohos and getting L2 factories in some mods.
- Guessmyname
- Posts: 3301
- Joined: 28 Apr 2005, 21:07