This was resulting in non-intuitive and surprising behaviour when queuing
commands. Removing this system results in Megaglest behaving more like
other RTS games.
For instance, the following are now possible and weren't previously:
- Queuing multiple attack ground commands to move along a specific path
attacking all enemies on the way.
- Queuing attack ground followed by hold position, which is a sensible
thing to do if you want a unit to guard a specific area.
- Queuing a move command followed by a produce command, if you want to
have your summoner summon a daemon at a specific location.
The behaviour of queuing the stop command is unchanged, and commands that
must be the last in the queue, such as morphing, are still properly replaced when something
else is queued.
* Allow a selected group to have the attack command even if some units don't have it
* Add getUnitFromCC function
* return NULL if getFirstCtOfClass founds no unit
* Search for the unit containing the attack command in a non uniform selection
Co-authored-by: Rampoina <Rampoina@protonmail.com>
Text colours where the colour wasn't explicitly set was rendering as the
previous (incorrect) colour instead of white. Now text colour is
explicitly set.
doublesided switch in blender 2.9x did not work before, it was always
rendered single sided in MG.
I added a new switch only-selectable which allows to create unvisible
but selectable meshes. This helps with selection of small units which
can now have an unvisible hand craftet select object around them for
example..
maxHP cannot been boosted anymore( just upgrades!). this has too many
side effects.
maxHP upgrades were calculated based on units current HP which doesn't
make sense.
maxEP cannot been boosted anymore( just upgrades!). this has too many
side effects.
Code is much cleaner and smaller now
saving and using custum menus layouts ( used for mods ) is disabled now
by default becasue it made trouble with new layout. There are two new
switches for user.ini to control it:
CustomPropertiesUsageAllowed ( default = false )
CustomPropertiesSaveAllowed ( default=false )
in big games accidently pressing this games made users drop out of the
game and its a developer option anyway. From now it only works If debug
is enabled.