Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
huoji120 authored Oct 9, 2023
1 parent e01e3ee commit 9e57953
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9e57953

Please sign in to comment.