From d872c8b15b0d04c3e2a5a67c86c762322473c3ce Mon Sep 17 00:00:00 2001 From: Sergey Shorokhov Date: Wed, 3 Apr 2024 22:15:12 +0300 Subject: [PATCH] add util getLaunchParamsByMod --- utils/getLaunchParamsByMod.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 utils/getLaunchParamsByMod.sh diff --git a/utils/getLaunchParamsByMod.sh b/utils/getLaunchParamsByMod.sh new file mode 100644 index 0000000..44772f6 --- /dev/null +++ b/utils/getLaunchParamsByMod.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +case "$1" in + "valve") + echo "-game valve -debug +ip 0.0.0.0 -port 27016 -maxplayers 10 +map crossfire" + ;; + "cstrike") + echo "-game cstrike -debug +ip 0.0.0.0 -port 27016 -maxplayers 10 +map de_dust2" + ;; + "czero") + echo "-game valve -debug +ip 0.0.0.0 -port 27016 -maxplayers 10 +map de_dust2_cz" + ;; + *) + echo "Invalid argument \"$1\"" + exit 1 + ;; +esac \ No newline at end of file