Source code for Source SDK 2013.
Contains the game code for Half-Life 2, HL2: DM and TF2.
Now including Team Fortress 2! ✨
Clone the repository using the following command:
git clone https://github.com/ValveSoftware/source-sdk-2013
Requirements:
- Source SDK 2013 Multiplayer installed via Steam
 - Visual Studio 2022 with the following workload and components:
- Desktop development with C++:
- MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest)
 - Windows 11 SDK (10.0.22621.0) or Windows 10 SDK (10.0.19041.1)
 
 
 - Desktop development with C++:
 - Python 3.13 or later
 
Inside the cloned directory, navigate to src, run:
createallprojects.batThis will generate the Visual Studio project everything.sln which will be used to build your mod.
Then, on the menu bar, go to Build > Build Solution, and wait for everything to build.
You can then select the Client (Mod Name) project you wish to run, right click and select Set as Startup Project and hit the big green > Local Windows Debugger button on the tool bar in order to launch your mod.
The default launch options should be already filled in for the Release configuration.
Requirements:
- Source SDK 2013 Multiplayer installed via Steam
 - podman
 
If you are running on a system using SELinux (e.g. Fedora), run the following once at the root of the cloned directory. This will fix the permission denied error:
chcon -Rt svirt_sandbox_file_t ./Inside the cloned directory, run:
./src/buildallprojectsThis will build all the projects related to the SDK and your mods automatically against the Steam Runtime.
Then, symlink the game/wf folder into your sourcemods folder in Steam. Restart Steam and launch from there.
This is necessary to run the game in the sniper container, because I cannot be bothered right now.
Mods that are distributed on Steam MUST be built against the Steam Runtime, which the above steps will automatically do for you.
There is guidance on distributing your mod both on and off Steam available at the following link:
https://partner.steamgames.com/doc/sdk/uploading/distributing_source_engine
The SDK is licensed to users on a non-commercial basis under the SOURCE 1 SDK LICENSE, which is contained in the LICENSE file in the root of the repository.
For more information, see Distributing your Mod.