LeakNet is a patch for the leaked Half-Life 2 beta build in 2003.
  • C++ 62.7%
  • C 24.9%
  • Rich Text Format 11.4%
  • CMake 0.5%
  • GLSL 0.2%
  • Other 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
SanyaSho c1650a89c8 vphysics: Fix a saverestore crash after touching barnacle tongue
This probably was marked as a TEMPHACK on VSS/P4 but after a long time it became a non-temp hack which exists to this days
2026-06-27 09:27:45 +03:00
appframework Remove/gitignore obsolete VS solutions and projects 2024-11-27 13:58:39 +02:00
cl_dll cl_dll, dlls, ...: Add physics inertia bounds check from Source2013 2026-06-19 19:28:47 +03:00
cmake cmake: Fix an error when trying to launch the game from Visual Studio 2026-06-18 17:21:21 +03:00
common all: Convert all non-UTF-8 files to UTF-8 2026-06-16 13:26:39 +03:00
dedicated all: Convert all non-UTF-8 files to UTF-8 2026-06-16 13:26:39 +03:00
devtools Properly format fxc temp shader file name 2024-11-27 15:09:17 +02:00
dlls cl_dll, dlls, ...: Add physics inertia bounds check from Source2013 2026-06-19 19:28:47 +03:00
dx8sdk Initial commit 2019-07-25 08:56:29 +03:00
dx9sdk dx9sdk: use Microsoft.DXSDK.D3DX instead of ancient one from 2003 2024-11-07 15:59:37 +03:00
engine engine: Fix a unsequenced modification and access to 'j' warning 2026-06-16 17:20:13 +03:00
filesystem all: Convert all non-UTF-8 files to UTF-8 2026-06-16 13:26:39 +03:00
game_shared cl_dll, dlls, ...: Add physics inertia bounds check from Source2013 2026-06-19 19:28:47 +03:00
gameui all: Convert all non-UTF-8 files to UTF-8 2026-06-16 13:26:39 +03:00
ivp ivp: Fix stack overflow crash because of recursive hk_Math::fabs call on Linux 2026-06-16 17:00:33 +03:00
launcher Remove/gitignore obsolete VS solutions and projects 2024-11-27 13:58:39 +02:00
launcher_main Remove/gitignore obsolete VS solutions and projects 2024-11-27 13:58:39 +02:00
lib Add mss32.lib back 2023-09-20 14:59:07 +03:00
master Remove/gitignore obsolete VS solutions and projects 2024-11-27 13:58:39 +02:00
materialsystem all: Convert all non-UTF-8 files to UTF-8 2026-06-16 13:26:39 +03:00
maxsdk Initial commit 2019-07-25 08:56:29 +03:00
public cl_dll, dlls, ...: Add physics inertia bounds check from Source2013 2026-06-19 19:28:47 +03:00
shaderlib all: Convert all non-UTF-8 files to UTF-8 2026-06-16 13:26:39 +03:00
shell stricmp to _stricmp conversion 2019-07-26 18:50:48 +03:00
solutions Remove/gitignore obsolete VS solutions and projects 2024-11-27 13:58:39 +02:00
status all: Convert all non-UTF-8 files to UTF-8 2026-06-16 13:26:39 +03:00
studiorender all: Convert all non-UTF-8 files to UTF-8 2026-06-16 13:26:39 +03:00
tier0 tier0: Fix heap buffer overflow in CVProfile::AddBudgetGroupName 2026-06-17 18:59:39 +03:00
Tracker all: Convert all non-UTF-8 files to UTF-8 2026-06-16 13:26:39 +03:00
unitlib Remove/gitignore obsolete VS solutions and projects 2024-11-27 13:58:39 +02:00
utils all: Convert all non-UTF-8 files to UTF-8 2026-06-16 13:26:39 +03:00
vgui2 all: Convert all non-UTF-8 files to UTF-8 2026-06-16 13:26:39 +03:00
vguimatsurface all: Convert all non-UTF-8 files to UTF-8 2026-06-16 13:26:39 +03:00
vphysics vphysics: Fix a saverestore crash after touching barnacle tongue 2026-06-27 09:27:45 +03:00
vstdlib all: Convert all non-UTF-8 files to UTF-8 2026-06-16 13:26:39 +03:00
vtf all: Convert all non-UTF-8 files to UTF-8 2026-06-16 13:26:39 +03:00
worldcraft all: Convert all non-UTF-8 files to UTF-8 2026-06-16 13:26:39 +03:00
.gitignore cmake: Make CMake update Git Commit and Git Branch everytime each project starts building 2026-02-08 23:40:40 +03:00
.gitlab-ci.yml Adjust pipeline for VS Build Tools 2026-04-30 13:50:15 +03:00
CMakeLists.txt cmake: Make CMake update Git Commit and Git Branch everytime each project starts building 2026-02-08 23:40:40 +03:00
creatededicatedprojects.bat root: Allow to pass command-line arguments to .bat and .sh files 2024-11-18 16:29:03 +03:00
creatededicatedprojects.sh root: Allow to pass command-line arguments to .bat and .sh files 2024-11-18 16:29:03 +03:00
createeverything.bat root: Allow to pass command-line arguments to .bat and .sh files 2024-11-18 16:29:03 +03:00
createeverything.sh root: Allow to pass command-line arguments to .bat and .sh files 2024-11-18 16:29:03 +03:00
creategameprojects.bat cmake: Switch to "game" buildgroup in creategameprojects.{bat,sh} 2025-04-25 19:17:28 +03:00
creategameprojects.sh cmake: Switch to "game" buildgroup in creategameprojects.{bat,sh} 2025-04-25 19:17:28 +03:00
README.md root: Update README.md, add more info about features and compiling 2024-11-17 22:28:32 +03:00

LeakNet

The engine patch for the leaked Half-Life 2 beta sources from 2003.

Features

  • Various bug/security fixes
  • Linux dedicated server support
  • CMake build system
  • Working MasterServer functionality
  • Replaced miles with minimp3 (for mp3 only, miles is still used as voice codec)

Compiling

Windows

  • Choose what you need: createeverything.bat - for building all available projects (everything.sln) or creategameprojects.bat - if you need to build basic game without utils and tools.
  • To build windows client run:
./createeverything.bat or ./creategameprojects.bat
open the `LeakNet.sln` inside the `build` folder
compile target `INSTALL`

you also can use cmake from command line if you want:

./createeverything.bat or ./creategameprojects.bat
cmake --build build --config "Release" or "Debug"
cmake --install build --config "Release" or "Debug"

Linux

  • To build dedicated server run:
./creatededicated.sh
cd build_dedicated
make -j$(nproc --all) install
  • All installed libs will be stored in (srcrepo)/leaknet-install (can be changed through command-line argument -DGAMEDIR="dir").