riperiperi / Simitone

Re-implementation of The Sims 1, based off of FreeSO.
http://freeso.org
335 stars 25 forks source link

Implement Cheat Command System into VM for Simitone #26

Closed JDrocks450 closed 4 years ago

JDrocks450 commented 4 years ago

There is a UICheatTextbox that opens with Ctrl+Shift+C and interacts with the VM by sending a cheat command with cheat context that defines the cheat and how it should be executed. The cheat platform supports parameters like on/off and numbers, repetitions for rosebud (;!;!;!) and custom behavior per-cheat. The benefits of this are that we know the sender Avatar and this preserved for every cheat submitted meaning that certain avatars can be marked to have access to specific cheats or all of them altogether.