One-command setup (SteamCMD + pinned, checksum-verified ReHLDS / ReGameDLL / Metamod-R / AMXX / ReAPI / ReUnion / CSDM-ReAPI / YaPB / GunGame), .env settings, ./cs menu (map, DM/GunGame mode, bots, kill counter, restart, update), own plugins (extras, rtv, mode switch), all-time kill counter, watchdog + nightly backup, docs for admins and players. Co-Authored-By: Claude Opus 5.5 <[email protected]>
6 lines
282 B
Bash
Executable File
6 lines
282 B
Bash
Executable File
# Sourced by the scripts: D = repo folder, NAME = container, PORT = game port (from .env).
|
|
D=$(cd "$(dirname "$0")/.." && pwd)
|
|
getenv() { sed -n "s/^$1=//p" "$D/.env" 2>/dev/null | tr -d '\r'; }
|
|
NAME=$(getenv CS_NAME); NAME=${NAME:-cs16}
|
|
PORT=$(getenv CS_PORT); PORT=${PORT:-27015}
|