Last active
June 19, 2022 01:22
-
-
Save fizioterapia/fa2e7fff4a8651357307054eb12d147a to your computer and use it in GitHub Desktop.
Prepare SourceMod & Metamod for Open Fortress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
rm -rf src | |
mkdir src | |
cd src | |
echo "Downloading Metamod" | |
curl -sO https://mms.alliedmods.net/mmsdrop/1.11/mmsource-1.11.0-git1145-linux.tar.gz | |
echo "Downloading Sourcemod" | |
curl -sO https://sm.alliedmods.net/smdrop/1.11/sourcemod-1.11.0-git6890-linux.tar.gz | |
echo "Cloning Open Fortress Tools" | |
git clone https://github.com/brysondev/Open-Fortress-Tools/ --quiet | |
echo "Extracting Metamod" | |
tar -xzvf mmsource-1.11.0-git1145-linux.tar.gz &>/dev/null | |
echo "Extracting Sourcemod" | |
tar -xzvf sourcemod-1.11.0-git6890-linux.tar.gz &>/dev/null | |
echo "Moving Open Fortress Tools to correct directory." | |
cd Open-Fortress-Tools/ | |
cp -r * ../addons/sourcemod/ | |
cd .. | |
rm -rf Open-Fortress-Tools | |
echo "Cleaning rest of files" | |
rm *.tar.gz 2>/dev/null | |
rm *.zip 2>/dev/null | |
cd .. | |
echo "DONE!" | |
echo "Move contents of 'src' directory to your 'open_fortress' directory!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated because of random crashes with stable build of SourceMod.
Currently in testing.