game | ||
src | ||
.gitattributes | ||
.gitignore | ||
CONTRIBUTING | ||
LICENSE | ||
README.md | ||
thirdpartylegalnotices.txt |
Source SDK 2013
Source code for Source SDK 2013.
Contains the game code for Half-Life 2, HL2: DM and TF2.
Now including Team Fortress 2! ✨
Build instructions
Clone the repository using the following command:
git clone https://github.com/ValveSoftware/source-sdk-2013
Windows
Requirements:
- Source SDK 2013 Multiplayer installed via Steam
- Visual Studio 2022
Inside the cloned directory, navigate to src
, run:
createallprojects.bat
This 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.
Linux
Requirements:
- Source SDK 2013 Multiplayer installed via Steam
- podman
Inside the cloned directory, navigate to src
, run:
./buildallprojects
This will build all the projects related to the SDK and your mods automatically against the Steam Runtime.
You can then, in the root of the cloned directory, you can navigate to game
and run your mod by launching the build launcher for your mod project, eg:
./mod_tf
Mods that are distributed on Steam MUST be built against the Steam Runtime, which the above steps will automatically do for you.
Distributing your Mod
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
Additional Resources
License
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.