Skip to content

CS2ModServer/mms2-sample

 
 

Repository files navigation

Sample plugin

Requirements (included)

How to build

1. Install dependencies

Windows

Linux (Ubuntu/Debian)

sudo apt-get install cmake ninja-build

2. Clone the repository

git clone --recursive https://github.com/Wend4r/mms2-sample.git Sample

3. Intialize the environment

Windows

Important

To configure your system for development, you need to add the following path to the Path environment variable: %PROGRAMFILES%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build

cd .\Sample

REM C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat
vcvarsall x64

Linux

cd Sample

4. Configure

cmake --preset Debug

4.1. Build (hot)

cmake --build --preset Debug --parallel
  • Once the plugin is compiled the files would be packaged and placed in build/{OS}/{PRESET} folder.
  • Be aware that plugins get loaded either by corresponding .vdf files in the metamod folder, or by listing them in addons/metamod/metaplugins.ini file.
  • Copy the following folders into the plugin folder: configs, gamedata and translations.

About

Metamod:Source sample plugin for Menus and such

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 93.6%
  • CMake 6.4%