The Director

The artificial intelligence of Left 4 Dead features a dynamic system for game dramatics, pacing, and difficulty called the Director, sometimes referred to as AI Director, simply Director, or AID. Instead of set spawn points for enemies, the Director places enemies in varying positions and numbers based upon each player's current situation, status, skill and location, creating a new experience each playthrough. The Director also creates mood and tension with emotional cues such as visual effects, dynamic music and character communication. Additionally, the director is responsible for spawning additional health, ammo, weapons, and special infected like the witch or the tank.

Adaptation
The Director can adapt to any existing map, including those initially developed without Left 4 Dead's event markers, as seen in this video of the Counter-Strike: Source map de_dust in the demo.

Controlling The Director
Using the console command sv_cheats 1, it is possible to take on the role of the Director, spawning infected, forcing panic events and the like. When running a dedicated server, the administrator of that server can create a controlled environment by completely turning the Director off.

Reading the AI Director
With a bit of practice, it is possible to anticipate moves by the AI Director. For example, if an area is full of common infected, you can expect the director to spawn some special infected to harass you while you deal with the horde. If you pass multiple areas with very few infected, it is likely you will be dealing with a witch or tank soon. The AID is also easy to read in Versus mode because the director tries to be somewhat fair to each team. If one team fought a tank, you can expect the next team to also fight a tank and plan accordingly. This does not hold true if one team is dominating the other, as the director will give the dominating team a harder time and may spawn multiple tanks or may give the lesser team none at all.