-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When cheating is enabled, a button appears on the global bar which brings up the menu. The menu allows to spawn most units (can choose type, receiving team and count) and do some other common cheats (/nocost, /atm, /globallos, /godmode). There's quite a bit of room for improvement: * layout. I suck at designing good-looking interfaces so likely it could be better. * commander modules. You can spawn a naked comm and morph him with /nocost but people seem to like insanely powerful units so possibly the UI could allow spawning illegal comms (eg 9001 damage modules). * UI polish. The buttons could be disabled when cheating disabled, requires #2555. The /cheat button could be disabled when not the room boss, requires infra changes to mark the boss. * robust state detection. No string parsing, requires the engine to expose interfaces (`Spring.GetNocost`, `widget:NocostChanged` etc) * possibly the unit roster could be modified. The way I split the "hidden" units into Wacky and Campaign is patterned, yet nebulous. I also didn't include technical stuff like terraunit or the 9001 commander defs (just the former Hub ones), possibly they could be a separate "Uninteresting Crap" category.
- Loading branch information
Showing
7 changed files
with
744 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
04ee88e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could add some of the luarules commands too such as '/luarules clear' which destroys all units and features on the map and '/luarules gk' which gently kills all units.