Debugging cheat codes


Author: Christian Knight

Issue-

needed a faster way to test aspects of the game. without ruining/changing other scripts like how they where previously added

Fixes- 

I added a cheat controller that allows the user to get a input box/command console using the grave key ` which is the same key as the Tilde ~. I also removed the use of numpad for cheats to not accidently hit a cheat code key or hit the wrong key. I also removed the hard coding that the cheats previously had in them to not permanently change a script we don't want to change.

Added/Updated items below- 


  • Debug Command
    • creates a base for cheats 
      • ID
      • Description
      • format
  • Debug Controller
    • uses the Debug Command to create and store cheats 
  • Cheats
    • tgm - toggle god mode
      • allows player to have unimitated health and sprint
    • ow - damage
      • deals 10 damage to player character
    • keys - inventory keys
      • adds a key card to inventory
    • tmb - to many bullets
      • gives unimitated ammo but still requires reload
    • spawn -spawn enemy
      • spawns basic enemy
    • win - insta win
      • instantly beats the level
    • insta - insta kill
      • allows player to kill enemies in one hit
    • bottomless - bottomless mag
      • gives unimitated ammo no reload 
    • help - cheat list
      • gives a list of cheats that you can use
      • can input cheats after use

known issues working on -

  • win command pops up menu but will either freeze the game or allow player to move with the win menu popped up and un able to select any options
  • have to click command box to type and have to click off of it to enter 


Posted on 04/07/2023

Get 731

Leave a comment

Log in with itch.io to leave a comment.