5c7a3155653558d38c4bfb1445519b80f05bf184
about this project
name: "cs2 server plugin system"
author: "huoji"
description: "a server plugin system for cs2 server,power by lua"
credit
https://github.com/alliedmodders/hl2sdk/
https://github.com/Source2ZE/CS2Fixes/
https://github.com/bruhmoment21/cs2-sdk/
https://github.com/neverlosecc/source2sdk
Usage
- use vs2019 compile csgo2.dll and loader.exe
- create a config.json in loader.exe directory:
{
"servers": [
{
"dll": "your path in csgo2.dll in vs2019 complie",
"path": "path for cs2.exe",
"command": "cs2.exe server run command"
}
]
}
example:
{
"servers": [
{
"dll": "C:\\Users\\Administrator\\Desktop\\loader\\csgo2.dll",
"path": "C:\\Program Files (x86)\\steam\\steamapps\\common\\Counter-Strike Global Offensive\\game\\bin\\win64\\cs2.exe",
"command": "-ip 0.0.0.0 -dedicated -game csgo -console -usercon +game_type 0 +game_mode 0 +mp_maxrounds 30 -maxplayers_override 64 +exec server.cfg +exec gamemode_retakecasual.cfg +map de_dust2 +mp_endmatch_votenextleveltime 20 +mp_endmatch_votenextmap 1 +hostname xxxxxx"
}
]
}
- run loader.exe as administrator, cs2 server will start
- create
huoji_scriptsin cs2.exe dirctory - create plugin dirctory name ,like
funny_trashis my plugin name - put your own plugin script in you plugin dircory name
Test Plugin
api,plugin example: https://github.com/huoji120/cs2_funny_trash_plugin
Languages
C++
62.6%
Java
11.2%
C
10.3%
Python
6.5%
Shell
5%
Other
4.3%