Edit the "action.cfg" file in the game folder by adding the line "bind tilde console" at the top of the file. While playing the game, press ~ and enter one of the following codes:
Enemy AI: toggleai
Lock status of all doors: toggledoors
Damage for all characters: toggledamage
No enemy detecting you: toggledetection
Enemies have less shot accuracy: badguysarelousyshots.01
Spawn indicated item: gimme [item name]