From Valve Developer Community
Jump to: navigation, search

god is a cheat that makes you take no damage.
To enable God Mode, make sure you have the Console Enabled, and sv_cheats 1
Then enter god into the console.

Warning:God Mode will NOT work in multiplayer, even if sv_cheats is enabled.