God Mode: Half-Life 2 cheat code
Enables God mode, making you invincible so you cannot take damage.
Console commands
PCgodEnable the developer console in Keyboard options, open it with the tilde key, type sv_cheats 1, then type the command.
To get the God Mode cheat in Half-Life 2 on PC, type god.