Skip to content
/SLASHPLAY

How to stop AI infected using abilities in L4D2

Type sv_cheats 1, then z_allow_ai_to_use_abilities 0 in the Console tab of the server page.

z_allow_ai_to_use_abilities

With 0, AI special infected don't use their abilities: Hunters don't pounce, Tanks don't throw rocks. On by default.

z_allow_ai_to_use_abilities <0|1>

Examples

z_allow_ai_to_use_abilities 0

AI infected stop using abilities.

Values

ValueWhat it does
0 Off
1Default On

Arguments

0|1Required
1 turns it on, 0 off.

What it does

Useful for practice, or to make bot-controlled special infected harmless.

Good to know

  • Needs sv_cheats 1 on the server. Turning sv_cheats off resets it to its default, so a server.cfg line only sticks below sv_cheats 1, which opens every cheat to every player.

Run it on your server

On a SLASHPLAY server, type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to left4dead2/cfg/server.cfg. New to this? Start a L4D2 server first.

Your own
L4D2 server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.