Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Software:Left 4 Dead 2

From ReverseEngineering.wiki
Software
Developer Valve
Publisher Valve
Engine Source (Left 4 Dead branch)
Platforms Windows, macOS, Linux, Xbox 360
Versions PC exe build 10097 (2026 patch)
Extensions .bsp, .nav, .vpk
On this wiki Facts · Code · Notes · Topics

Co-op zombie shooter by Valve (2009) on the Source engine. Gameplay rules (survivors, special infected, the AI Director, damage scaling) live in server.dll; maps ship as BSP plus a navigation mesh (.nav) that the Director and bots use.

Builds

Formats

Architecture overview

  • Distances are Source units (1 SU = 1 inch = 0.0254 m); speeds in SU/s.
  • Most gameplay constants are ConVars with defaults (z_, survivor_), but several difficulty tables are selected inline at the attack sites in server.dll rather than through one shared damage multiplier: the Smoker choke, Hunter pin and Jockey ride each pick their own per-difficulty factor, and Tank punch damage is already difficulty-selected in the attack path. A reimplementation that applies one global difficulty multiplier to all infected damage double-scales these.
  • Collision hulls observed at runtime (m_Collision, c1m1_hotel, exe build 10097): common infected +/-13 SU laterally, 0..68 SU high; survivors +/-16 SU laterally, 0..71 SU standing and 0..55 SU crouched (also while incapacitated); the Witch +/-13 SU, 0..72 SU. Melee and attack ranges are measured between these boxes (INextBot::IsRangeLessThan), not between origins.

Gameplay rules found in server.dll

See the facts attached to this page (exe build 10097): shove fatigue, fall damage, Witch attack range and kill hit, Tank rock radius and gravity, shotgun pellet spread, per-difficulty special infected damage, Smoker tongue line-of-sight forgiveness, fire damage factors and the mob interval presets.

How to verify

All addresses are RVAs in the build above. Each fact names the ConVar it reads; check the default with cvarlist / help <name> on a dedicated server and look for the ConVar's reference near the given RVA.