Merge pull request #127 from joedwards32/readme-update-hooks

Example of overriding the pre-hook using Docker Volumes
This commit is contained in:
John Edwards 2024-08-29 21:49:08 +01:00 committed by GitHub
commit 1e3c0268be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -129,6 +129,12 @@ The container includes two scripts for executing custom actions:
When using a persient volume mounted at `/home/steam/cs2-dedicated/` you may edit these scripts to perform custom actions, such as enabling metamod. When using a persient volume mounted at `/home/steam/cs2-dedicated/` you may edit these scripts to perform custom actions, such as enabling metamod.
Alternatively, you may have docker mount files from outside the container to override these files. E.g.:
```
-v /path/to/pre.sh:/home/steam/cs2-dedicated/pre.sh
```
## Overriding Game Mode Defaults ## Overriding Game Mode Defaults
The default configurations for each game mode are stored in `/home/steam/cs2-dedicated/game/csgo/cfg/`. For example, the Competitive mode defaults are set by `gamemode_competitive.cfg`. The default configurations for each game mode are stored in `/home/steam/cs2-dedicated/game/csgo/cfg/`. For example, the Competitive mode defaults are set by `gamemode_competitive.cfg`.