diff --git a/README.md b/README.md index 23cee5e..41af56e 100644 --- a/README.md +++ b/README.md @@ -11,4 +11,7 @@ following: - Disables crosshairs - Enables forced weapon switching on pickup +Enable item (including weapons) respawning by setting the $ITEM_RESPAWN env +var to true + See WIP/ for other nearly finished attempts of other servers diff --git a/entrypoint.sh b/entrypoint.sh index 65ea590..f7acb0e 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -19,6 +19,10 @@ if [ -n "$RETRO_MODE" ]; then echo "set SV_NoJump true" >> /srv/server.cfg fi +if [ -n "$ITEM_RESPAWN" ]; then + echo "set SV_ItemRespawn true" >> /srv/server.cfg +fi + if [ -n "$SV_HOSTNAME" ]; then echo "set sv_hostname $SV_HOSTNAME" >> /srv/server.cfg fi