diff --git a/readme.md b/readme.md index 6233652..b2dcd7b 100644 --- a/readme.md +++ b/readme.md @@ -7,3 +7,37 @@ https://github.com/alliedmodders/hl2sdk/ https://github.com/Source2ZE/CS2Fixes/ https://github.com/bruhmoment21/cs2-sdk/ https://github.com/neverlosecc/source2sdk +### Usage +1. use vs2019 compile csgo2.dll and loader.exe +2. 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" + } + ] +} + +``` +3. run loader.exe as administrator, cs2 server will start +4. create `huoji_scripts` in cs2.exe dirctory +5. create plugin dirctory name ,like `funny_trash` is my plugin name +6. put your own plugin script in you plugin dircory name +### Test Plugin +api,plugin example: +https://github.com/huoji120/cs2_funny_trash_plugin