Comments (2)
Hello,
I see that this issue is pretty old, but better late than never, right?
It seems like there is no built in function to do this for now. I think the easiest way for you (without coding) is to wipe the file manage_plugins.sh and build the container from the Dockerfile
If you want to be able to toggle this in the environment variables, I would do something like this in manage_plugins.sh and then set environment variable MODS_ENABLED=0:
export MODS_ENABLED="${MODS_ENABLED:-1}"
if [ "$MODS_ENABLED" = "1" ]; then
echo "Installing plugins..."
mkdir -p "$CSGO_DIR/csgo"
IFS=' ' read -ra PLUGIN_URLS <<< "$(echo "$INSTALL_PLUGINS" | tr "\n" " ")"
for URL in "${PLUGIN_URLS[@]}"; do
install_plugin "$URL"
done
echo "Finished installing plugins."
# Add steam ids to sourcemod admin file
mkdir -p "$CSGO_DIR/csgo/addons/sourcemod/configs"
IFS=',' read -ra STEAMIDS <<< "$SOURCEMOD_ADMINS"
for id in "${STEAMIDS[@]}"; do
echo "\"$id\" \"99:z\"" >> "$CSGO_DIR/csgo/addons/sourcemod/configs/admins_simple.ini"
done
PLUGINS_ENABLED_DIR="$CSGO_DIR/csgo/addons/sourcemod/plugins"
PLUGINS_DISABLED_DIR="$CSGO_DIR/csgo/addons/sourcemod/plugins/disabled"
RETAKES_PLUGINS="retakes.smx retakes-instadefuse.smx retakes_autoplant.smx retakes-hud.smx retakes_standardallocator.smx"
PUGSETUP_PLUGINS="pugsetup.smx pugsetup_teamnames.smx pugsetup_damageprint.smx"
# Disable Retakes by default so that we have a working and predictable state without plugins conflict
if [[ -f "$PLUGINS_ENABLED_DIR"/retakes.smx ]]; then
mv "$PLUGINS_ENABLED_DIR"/retakes*.smx "$PLUGINS_DISABLED_DIR"/
fi
if [ "$RETAKES" = "1" ]; then
if [[ -f "$PLUGINS_ENABLED_DIR"/pugsetup.smx ]]; then
(cd "$PLUGINS_ENABLED_DIR" && mv pugsetup*.smx "$PLUGINS_DISABLED_DIR")
echo "Disabled PugSetup plugins"
fi
# shellcheck disable=SC2086
(cd "$PLUGINS_DISABLED_DIR" && mv $RETAKES_PLUGINS "$PLUGINS_ENABLED_DIR")
echo "Enabled Retakes plugins"
else
if [[ -f "$PLUGINS_DISABLED_DIR"/pugsetup.smx ]]; then
# shellcheck disable=SC2086
(cd "$PLUGINS_DISABLED_DIR" && mv $PUGSETUP_PLUGINS "$PLUGINS_ENABLED_DIR")
echo "Enabled PugSetup plugins"
fi
fi
fi
Please note that I haven't tested this code. But that is how I would start :)
from csgo.
I just noticed that I created a pull request long ago to fix exactly this. But it never got implemented. This might be something you could use?
from csgo.
Related Issues (20)
- 128 Tick not working HOT 6
- autoexec env feature HOT 2
- Unable to connect to server
- Add ability to hide server from the master serverlist HOT 1
- mkdir: cannot create directory ‘/home/steam/csgo/csgo’: Permission denied HOT 2
- Not able to connect to local server - Server is not responding HOT 1
- .setup command not working HOT 2
- Cant connect to server created with docker-compose HOT 9
- Add support for github links in install_plugin() HOT 1
- Error install HOT 1
- IPv6 Support?
- server and autoexec.cfg are just replaced with empty files HOT 3
- Still empty config files after #51 was merged HOT 5
- Password set after restarting
- MySQL support ? HOT 1
- libz.so.1 missing although lib32z1 should be installed
- can u install on arm cpu? HOT 1
- Server refuses to start HOT 5
- Metamod/Sourcemod broken HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csgo.