name: "cs2 server plugin system"
author: "huoji"
description: "a server plugin system for cs2 server,power by lua"
note:
This is only experimental, with the aim of filling in the gap before the release of source2mod. Please do not treat it as a long-term plugin, and I will not provide support
https://github.com/alliedmodders/hl2sdk/
https://github.com/Source2ZE/CS2Fixes/
https://github.com/bruhmoment21/cs2-sdk/
https://github.com/neverlosecc/source2sdk
- lua plugin system
- metamod compatible
- vscript patch, support vscript plugin and vscript compatible
- http/https request method
The loader has injection behavior, and I cannot guarantee whether it will be marked by VAC (I am not sure if the server has VAC protection). I am not responsible for this
also, the loader will be recognized as a malicious program by antivirus software because injection behavior
- 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_scripts
in cs2.exe dirctory - create plugin dirctory name ,like
funny_trash
is my plugin name - put your own plugin script in you plugin dircory name
api and plugin example: https://github.com/huoji120/cs2_funny_trash_plugin
Summarize some common issues:
- Q: why not use metamod?
A: At the time of writing this project, there was no metamod yet. - Q: Why is there no skin changer?
A: no such content will be considered because harm the interests of the game company - Q: Why not continue updating like add linux support && more api && convar?
A: I have my own job in real-life and I do not have much time to maintain this project. I will only maintain it when I am free. If you want to continue to maintain it, you can fork it and continue to maintain it. - Q: I would like to hire you for a fee
A: It is impossible for accept. I am very satisfied with my real-life job and doing it is just a hobby - Q: THIS PROJECT HAVE BUG! A: Yes i Know it and i fix it, BUT I WOULD NOT BE PUBLIC.Because everyone enters the tavern without paying, they only copy and paste the code and sell it.