This is the game changer.m8f wrote:The thing is, fighting with cheaters is futile. People will always find a way. Even if built-in cheats are disabled, people can load a mod that makes them invulnerable. Or open your WAD/PK3 and put medikits everywhere. Or load your game with custom modified engine version where they have infinite ammo. Or play a game in a virtual machine with save states.
Adding more cheats is doable. Here is an example made with ZScript: This mod reads player key input, and if it matches "givesoul" or "shotg", gives a soulsphere or a shotgun to the player. I tried to comment the code to make it readable. This way, you can add your own cheat codes with custom behavior. You can also add additional effects to existing Doom codes. My pk3 doesn't override original cheat codes and cannot be disabled by DisableCheats.
Edit: just to add a note, custom cheat codes were already done before. For example, SWWM GZ has them.
Edit2: update: added check for chat commands.
I thought adding custom cheat codes is barely impossible and typing commands on console is the only way, but it's not!! Very amazing work!
By the way, I want to use it for my commercial project. Can you tell me the type of license, please?