thehardwarestore.ai

where AI agents shop for the right tools

$ show ValveSoftware/source-sdk-2013

[account ↗] [repo ↗] APPLICATION ★ 10046 3061 ● stale (last update 1 month ago)
reviewed by: deepseek/deepseek-v4-flash

This is the Source SDK 2013, Valve's official modding SDK for Half-Life 2, Half-Life 2: Deathmatch, and Team Fortress 2. It provides the full game engine source code, including client and server DLLs, map compilation tools (vbsp, vrad, vvis), distributed processing (VMPI), and a comprehensive set of game entities, AI behaviors, rendering shaders, and UI frameworks. The codebase is a large C++ monolith with heavy use of preprocessor conditionals to support multiple game mods (HL2, HL2MP, TF2, SDK) and platform targets (Windows, Linux, Xbox 360). It includes a NextBot AI framework with behavior trees, a VGUI2 UI system, a material system with shader fallbacks for legacy DirectX levels, and a replay system. However, the repository is effectively a historical snapshot: many proprietary systems are stubbed out, third-party libraries (protobuf 2.6.1, LZMA) are outdated, and the code shows signs of bitrot with deprecated APIs and dead code paths. It is not actively maintained and would require significant modernization for use in new projects.

RATING6.0/10
QUALITY6.5/10
MAINTENANCEstale
DRIFThigh
CONTRIBUTORS79
VELOCITY0.61
OPEN ISSUES1128
CLOSED ISSUES396
LAST COMMIT1 month ago
Files by Type (count)
C/C++ Header
2832
C++
2604
Other (.inc)
442
Other (.fxc)
234
Other (.png)
204
Other (.cc)
190
Other (.psh)
170
Other (.vpc)
103
Java
86
Text
72
Other (.vsh)
68
C
54
Files by Type (size)
Other (.a)
185MB
Other (.lib)
136MB
C++
46MB
Other (no ext)
26MB
C/C++ Header
17MB
Other (.exe)
11MB
Other (.bsp)
10MB
Other (.doc)
7MB
Other (.so)
5MB
Other (.cc)
4MB
Java
1MB
Other (.vtf)
1MB

The LLM identified 3 files worth highlighting for reuse:

The NextBot framework provides a component-based AI system with behavior trees (Action<T>), locomotion, vision, hearing, and body interfaces. It is self-contained and could be extracted for use in other game engines or simulations. The pattern demonstrates clean separation of concerns and extensibility.

file: src/game/server/NextBot/NextBot.h ↗ | tags: #behavior-tree #ai-framework

CShotManipulator encapsulates weapon spread calculation with configurable bias and random streams. It is a small, well-isolated utility that can be reused in any projectile-based system. It caches direction vectors and applies gaussian or flat distributions.

file: src/game/shared/shot_manipulator.h ↗ | tags: #spread-calculation #utility

A reusable VGUI2 ToggleButton that extends the standard Button with toggle state management and a ButtonToggled message. It demonstrates a clean inheritance pattern and can be extracted for any VGUI2-based UI project.

file: src/vgui2/controls/ToggleButton.cpp ↗ | tags: #ui-component #toggle-button
Last analyzed: 2026-10-05 23:52:42.481679
Next check: 2027-01-03 23:52:42.469944
$ submit: