Skip to content

SlynxCZ/source2toolkit

Repository files navigation

Source2Toolkit

License: GPL v3 Build Status Website Discord

Source2Toolkit is the ultimate scripting layer for Source 2 games built on top of Metamod:Source.
Low-level power. High-level simplicity.

Build anything from simple plugins to advanced engine hooks with full access to Source 2 internals.

👉 Get started quickly: https://www.source2toolkit.net


Why Source2Toolkit?

Designed for both beginners and hardcore engine hackers.

  • High-Level API – Clean abstractions for rapid development
  • Low-Level Access – Full control over memory, hooks and engine internals
  • Metamod Ready – Built specifically for Metamod:Source
  • Schema System – Work with entities like native engine code
  • Zero Overhead – Near-native execution speed

Features

  • Commands – Register console & chat commands
  • ConVars – Read, modify and replicate variables
  • Entity System – Schema-based entity access
  • Events & GameEvents – Pre/Post hook support with typed data
  • Memory – Direct memory access & manipulation
  • Hooks – Inline, virtual, command and event hooks
  • Schema System – Access SDK classes, offsets and fields
  • Scheduler – Timers and next-frame execution
  • Tracing – Raycasts and collision queries
  • GameConfig – Signature & offset management
  • Dynamic Libraries – Extend functionality with external modules

Supported Games

  • Counter-Strike 2

Quick Start

👉 Full documentation: https://www.source2toolkit.net

Prerequisites

  • CMake 3.18+
  • C++20 compatible compiler
  • Installed Metamod:Source

Building Source2Toolkit

git clone --recurse-submodules https://github.com/SlynxCZ/source2toolkit.git
cd source2toolkit

docker compose -f docker/docker-compose.yml up

Documentation


License

This project is licensed under the GNU General Public License v3.0.


Everything you need to build Source2Toolkit plugins. Nothing more.

About

Source2Toolkit - Source2 Engine Scripting Layer under Metamod:Source

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages