Left 4 Dead 2 Cheat Codes

13 cheat codes for Left 4 Dead 2 on PC.

Enable cheats (Misc)

The prerequisite for every command below. Single-player or your own hosted server only — official VAC servers reject it.

sv_cheats 1

Enable the developer console in Options > Keyboard/Mouse > Allow Developer Console, press ~ to open it, type sv_cheats 1 and press Enter, then enter the commands. Host your own single-player or local server — VAC-secured official servers block cheats.

God Mode (God Mode)

Full invincibility for all human players (god 0 to disable).

god 1

Enable the developer console in Options > Keyboard/Mouse > Allow Developer Console, press ~ to open it, type sv_cheats 1 and press Enter, then enter the commands. Host your own single-player or local server — VAC-secured official servers block cheats.

Infinite Ammo / no reload (Unlimited Ammo)

Weapons never run out and never need reloading.

sv_infinite_ammo 1

Enable the developer console in Options > Keyboard/Mouse > Allow Developer Console, press ~ to open it, type sv_cheats 1 and press Enter, then enter the commands. Host your own single-player or local server — VAC-secured official servers block cheats.

Noclip (Misc)

Fly through walls and the map (works with sv_cheats).

noclip

Enable the developer console in Options > Keyboard/Mouse > Allow Developer Console, press ~ to open it, type sv_cheats 1 and press Enter, then enter the commands. Host your own single-player or local server — VAC-secured official servers block cheats.

Spawn special infected (Vehicles)

Spawns any special infected at your crosshair, e.g. z_spawn tank.

z_spawn hunter|smoker|boomer|tank|witch|charger|jockey|spitter

Enable the developer console in Options > Keyboard/Mouse > Allow Developer Console, press ~ to open it, type sv_cheats 1 and press Enter, then enter the commands. Host your own single-player or local server — VAC-secured official servers block cheats.

Give weapons/items (Weapons)

Grants any weapon/item: give rifle_desert, give shotgun_spas, give chainsaw, give first_aid_kit, give molotov, give pipe_bomb, etc.

give [item]

Enable the developer console in Options > Keyboard/Mouse > Allow Developer Console, press ~ to open it, type sv_cheats 1 and press Enter, then enter the commands. Host your own single-player or local server — VAC-secured official servers block cheats.

Full health (Misc)

Restores the whole health bar instantly.

give health

Enable the developer console in Options > Keyboard/Mouse > Allow Developer Console, press ~ to open it, type sv_cheats 1 and press Enter, then enter the commands. Host your own single-player or local server — VAC-secured official servers block cheats.

Infinite pills/add-ons (Unlimited Ammo)

Alternative infinite-ammo variable kept from L4D1 legacy builds.

sv_infinite_primary_ammo 1

Enable the developer console in Options > Keyboard/Mouse > Allow Developer Console, press ~ to open it, type sv_cheats 1 and press Enter, then enter the commands. Host your own single-player or local server — VAC-secured official servers block cheats.

Zombie horde on demand (Misc)

Triggers a panic-event style horde wherever you are.

z_spawn mob

Enable the developer console in Options > Keyboard/Mouse > Allow Developer Console, press ~ to open it, type sv_cheats 1 and press Enter, then enter the commands. Host your own single-player or local server — VAC-secured official servers block cheats.

Director: force finale (Level Skip)

Forces the map's finale event to start immediately.

director_force_finale 1

Enable the developer console in Options > Keyboard/Mouse > Allow Developer Console, press ~ to open it, type sv_cheats 1 and press Enter, then enter the commands. Host your own single-player or local server — VAC-secured official servers block cheats.

Warp to next map (Level Skip)

Loads any campaign map directly, e.g. changelevel c1m1_hotel.

changelevel [map]

Enable the developer console in Options > Keyboard/Mouse > Allow Developer Console, press ~ to open it, type sv_cheats 1 and press Enter, then enter the commands. Host your own single-player or local server — VAC-secured official servers block cheats.

Kill all infected (Weapons)

Removes all spawned special infected instantly.

z_killall

Enable the developer console in Options > Keyboard/Mouse > Allow Developer Console, press ~ to open it, type sv_cheats 1 and press Enter, then enter the commands. Host your own single-player or local server — VAC-secured official servers block cheats.

Melee-only mode (Misc)

Community classic: absurd melee reach for comedy runs (any sv_cheats session).

melee_range 9999

Enable the developer console in Options > Keyboard/Mouse > Allow Developer Console, press ~ to open it, type sv_cheats 1 and press Enter, then enter the commands. Host your own single-player or local server — VAC-secured official servers block cheats.