Start game as usual, open up the console with ~ key and enter following commands as desired. 0 instead of 1 disables the cheat and vice versa. Entering the command without any values will show the value, it is currently set to. Disable the console (press ~ again) to continue playing the game.