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.

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 running in the demo: http://www.youtube.com/watch?v=_SlXeiRH8VI. This was made by using an exploit of the demo, even before the full game was released.

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.