init commit
This commit is contained in:
13
scripts/addons/admingod.sh
Normal file
13
scripts/addons/admingod.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
SRCD_URL=https://gitea.nonszy.space/nomi-nonsz/left4dead2-admingod.git
|
||||
|
||||
echo "Installing AdminGOD"
|
||||
|
||||
cd $DIR_SOURCEMOD
|
||||
|
||||
git clone -b main --single-branch $SRCD_URL
|
||||
|
||||
rm -rvf $DIR_SOURCEMOD/left4dead2-admingod/.git
|
||||
cp -rv $DIR_SOURCEMOD/left4dead2-admingod/* $DIR_SOURCEMOD
|
||||
rm -rv $DIR_SOURCEMOD/left4dead2-admingod
|
||||
7
scripts/addons/l4dhooks.sh
Normal file
7
scripts/addons/l4dhooks.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
SRCD_URL="https://forums.alliedmods.net/attachment.php?attachmentid=195507&d=1751361366"
|
||||
|
||||
echo "Installing Left 4 DHooks"
|
||||
|
||||
curl -sL "$SRCD_URL" | bsdtar -xf - -C $DIR_ADDONS
|
||||
9
scripts/addons/l4downtown.sh
Normal file
9
scripts/addons/l4downtown.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
SRCD_URL="https://forums.alliedmods.net/attachment.php?attachmentid=111241&d=1350927414"
|
||||
|
||||
echo "Installing Left 4 Downtown 2"
|
||||
|
||||
curl -sL "$SRCD_URL" | bsdtar -xf - -C $DIR_SOURCEMOD
|
||||
|
||||
rm -v $DIR_SOURCEMOD/README.txt
|
||||
13
scripts/addons/points-system.sh
Normal file
13
scripts/addons/points-system.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
SRCD_URL=https://github.com/nomi-nonsz/PointsSystem.git
|
||||
|
||||
echo "Installing Points System"
|
||||
|
||||
cd $DIR_SOURCEMOD
|
||||
|
||||
git clone -b fix/sourcemod-1.10-enum --single-branch $SRCD_URL
|
||||
|
||||
rm -rvf $DIR_SOURCEMOD/PointsSystem/.git
|
||||
cp -rv $DIR_SOURCEMOD/PointsSystem/* $DIR_SOURCEMOD
|
||||
rm -rv $DIR_SOURCEMOD/PointsSystem
|
||||
7
scripts/addons/respawning.sh
Normal file
7
scripts/addons/respawning.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
SRCD_URL="https://www.sourcemod.net/vbcompiler.php?file_id=130314"
|
||||
|
||||
echo "Installing Survivor Respawning"
|
||||
|
||||
wget -O $DIR_SOURCEMOD/plugins/survivor-respawning.smx "$SRCD_URL"
|
||||
16
scripts/checkwine.sh
Normal file
16
scripts/checkwine.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ! -f $HOME/.game.env ]; then
|
||||
echo "Error: .game.env not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
source $HOME/.game.env
|
||||
|
||||
if [ -d "$DIR_WINE" ] && [ "$(stat -c '%U' "$DIR_WINE")" = "$USER" ] && command -v wine >/dev/null 2>&1; then
|
||||
wine --version
|
||||
echo "Wine seems installed correctly"
|
||||
else
|
||||
echo "Wine is not installed correctly"
|
||||
exit 1
|
||||
fi
|
||||
9
scripts/cleantools.sh
Normal file
9
scripts/cleantools.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
mkdir $DIR_SOURCEMOD/plugins
|
||||
mv -v $DIR_SCRIPTING/compiled/*.smx $DIR_SOURCEMOD/plugins
|
||||
rm -v addons/sourcemod/scripting/spcomp \
|
||||
addons/sourcemod/scripting/spcomp64 \
|
||||
addons/sourcemod/scripting/compile.sh
|
||||
cp -rv $DIR_SOURCEMOD "$WORKSPACE/app/left4dead2/addons"
|
||||
rm -rfv $DIR_WORKDIR
|
||||
14
scripts/getbuildtools.sh
Normal file
14
scripts/getbuildtools.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
SOURCEMOD_DOWNLOAD_URL="https://sm.alliedmods.net/smdrop/1.12/sourcemod-1.12.0-git7210-linux.tar.gz"
|
||||
SOURCEMOD_FILENAME="sourcemod.tar.gz"
|
||||
|
||||
wget -q -O $DIR_WORKDIR/$SOURCEMOD_FILENAME $SOURCEMOD_DOWNLOAD_URL
|
||||
|
||||
tar -zxvf $DIR_WORKDIR/$SOURCEMOD_FILENAME \
|
||||
addons/sourcemod/scripting/include \
|
||||
addons/sourcemod/scripting/spcomp \
|
||||
addons/sourcemod/scripting/spcomp64 \
|
||||
addons/sourcemod/scripting/compile.sh
|
||||
|
||||
mv -v addons $DIR_WORKDIR
|
||||
21
scripts/getgame.sh
Normal file
21
scripts/getgame.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
source $HOME/.game.env
|
||||
|
||||
PM_APP_NAME="l4d2server"
|
||||
|
||||
if [ ! -f $DIR_STEAMCMD/steamcmd.exe ]; then
|
||||
mkdir -p $DIR_STEAMCMD || true
|
||||
cd $DIR_STEAMCMD
|
||||
wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip
|
||||
unzip steamcmd.zip
|
||||
rm steamcmd.zip
|
||||
fi
|
||||
|
||||
if [ ! -d $DIR_SERVER ]; then
|
||||
mkdir -p $DIR_SERVER
|
||||
fi
|
||||
|
||||
pm2 delete all
|
||||
|
||||
wine $DIR_STEAMCMD/steamcmd.exe +force_install_dir C:\\l4d2server +login anonymous +app_update 222860 validate +quit
|
||||
Reference in New Issue
Block a user