How 3kh0/left-4-dead-2 works
This is an archival Left 4 Dead 2 / Source engine development tree, not a standalone service. Its main product workflow is gameplay running across client, server, and shared game code, supported by engine networking, rendering, audio, and scripting. The README names the gameplay capabilities but does not document their runtime call sequence, so those links are shown as unverified. Sampled source confirms specific ragdoll, voice-audio, post-processing shader, and texture-management responsibilities; other subsystem boundaries are inferred from the README and tree rather than inspected implementation.
Main entry points: client.cpp Client runtime · baseserver.cpp Server runtime · terrorragdollmanager.cpp Ragdoll lifecycle · voice_sound_engine_interface.cpp Audio and voice
Components 18
L4D2 gameplay
- Players and survivors
game - Survivor bots
game - Infected and Witch
game - Game modes and HUD
game - Ragdoll lifecycle
game/shared/terror/terrorragdollmanager.cpp
Source engine
- Client runtime
engine/client.cpp - Server runtime
engine/baseserver.cpp - Engine networking
engine/net_chan.cpp - Engine scripting
engine
Rendering and audio
- Rendering engine
engine/gl_rmain.cpp - Post-processing shader
materialsystem/stdshaders/engine_post_dx9.cpp - Texture manager
materialsystem/texturemanager.cpp - Audio and voice
engine/audio/private/voice_sound_engine_interface.cpp
Shared interfaces
- Filesystem interface
public/filesystem.h - Sound interface
engine/audio/public/sound.h - Material configuration
public/materialsystem/materialsystem_config.h - Math library
public/mathlib/mathlib.h - Runtime profiling
public/tier0/vprof.h
Connections 19
- Players and survivors → Client runtime: runs in
- Survivor bots → Server runtime: runs in
- Infected and Witch → Server runtime: runs in
- Game modes and HUD → Players and survivors: supports
- Ragdoll lifecycle → Client runtime: updates
- Ragdoll lifecycle → Server runtime: updates
- Client runtime → Engine networking: uses
- Server runtime → Engine networking: uses
- Audio and voice → Sound interface: implements
engine/audio/private/voice_sound_engine_interface.cpp - Audio and voice → Filesystem interface: uses
- Post-processing shader → Rendering engine: draws
- Texture manager → Filesystem interface: reads assets
materialsystem/texturemanager.cpp - Rendering engine → Material configuration: uses settings
- Ragdoll lifecycle → Runtime profiling: profiles
game/shared/terror/terrorragdollmanager.cpp - Ragdoll lifecycle → Players and survivors: manages entities
game/shared/terror/terrorragdollmanager.cpp - Client runtime → Audio and voice: uses
- Client runtime → Rendering engine: uses
- Client runtime → Engine scripting: hosts
- Server runtime → Engine scripting: hosts