From c18dcee06f57a553056fc5140403cc75c10e817c Mon Sep 17 00:00:00 2001 From: DeltaLima Date: Sun, 21 Aug 2022 14:00:37 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9Einstall-xash3ds.sh=E2=80=9C=20=C3=A4nd?= =?UTF-8?q?ern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install-xash3ds.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/install-xash3ds.sh b/install-xash3ds.sh index 9593be5..97ba094 100644 --- a/install-xash3ds.sh +++ b/install-xash3ds.sh @@ -9,6 +9,13 @@ metamod_url="https://github.com/mittorn/metamod-p/releases/download/1/metamod.so amxmod_url="http://www.amxmodx.org/release/amxmodx-$amxmod_version-base-linux.tar.gz" jk_botti_url="http://koti.kapsi.fi/jukivili/web/jk_botti/jk_botti-$jk_botti_version-release.tar.xz" +if [ $1 -z ] +then + XASHDS_PORT=27015 +else + XASHDS_PORT=$1 +fi + XASH3D_BASEDIR=$(pwd)/build mkdir -p $XASH3D_BASEDIR/result @@ -50,6 +57,6 @@ cp -R "hlds_build_$hlds_build/hlds"/* $XASH3D_BASEDIR/result/ touch $XASH3D_BASEDIR/result/valve/listip.cfg touch $XASH3D_BASEDIR/result/valve/banned.cfg -echo "./xash3ds +ip 0.0.0.0:27015 -pingboost 1" > $XASH3D_BASEDIR/result/start.sh +echo "./xash3ds +ip 0.0.0.0 +port $XASHDS_PORT -pingboost 1 -timeout 3" > $XASH3D_BASEDIR/result/start.sh chmod +x $XASH3D_BASEDIR/result/start.sh cd $XASH3D_BASEDIR/result \ No newline at end of file