6 changed files with 396 additions and 0 deletions
@ -0,0 +1,35 @@ |
|||
// Server Name |
|||
hostname "hostname" |
|||
|
|||
// RCON Password |
|||
rcon_password "rconpassword" |
|||
|
|||
// Server Password |
|||
sv_password "" |
|||
|
|||
// Server Logging |
|||
log on |
|||
sv_logbans 1 |
|||
sv_logecho 1 |
|||
sv_logfile 1 |
|||
sv_log_onefile 0 |
|||
|
|||
// disable autoaim |
|||
sv_aim 0 |
|||
|
|||
// disable clients' ability to pause the server |
|||
pausable 0 |
|||
|
|||
// maximum client movement speed |
|||
sv_maxspeed 320 |
|||
|
|||
// 20 minute timelimit |
|||
mp_timelimit 20 |
|||
|
|||
// cheats off |
|||
sv_cheats 0 |
|||
|
|||
// load ban files |
|||
exec listip.cfg |
|||
exec banned.cfg |
|||
|
@ -0,0 +1,97 @@ |
|||
#!/bin/bash |
|||
# Half-Life: Deathmatch Classic |
|||
# Server Management Script |
|||
# Author: Daniel Gibbs |
|||
# Website: http://danielgibbs.co.uk |
|||
# Version: 210115 |
|||
|
|||
#### Variables #### |
|||
|
|||
# Notification Email |
|||
# (on|off) |
|||
emailnotification="off" |
|||
email="[email protected]" |
|||
|
|||
# Steam login |
|||
steamuser="anonymous" |
|||
steampass="" |
|||
|
|||
# Start Variables |
|||
defaultmap="dcdm5" |
|||
maxplayers="16" |
|||
port="27015" |
|||
clientport="27005" |
|||
ip="0.0.0.0" |
|||
|
|||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2 |
|||
fn_parms(){ |
|||
parms="-game dmc -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} -maxplayers ${maxplayers}" |
|||
} |
|||
|
|||
#### Advanced Variables #### |
|||
|
|||
# Steam |
|||
appid="90 +app_set_config 90 mod dmc" |
|||
|
|||
# Server Details |
|||
servicename="dmc-server" |
|||
gamename="Half-Life: Deathmatch Classic" |
|||
engine="goldsource" |
|||
|
|||
# Directories |
|||
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" |
|||
selfname="$(basename $0)" |
|||
lockselfname=".${servicename}.lock" |
|||
filesdir="${rootdir}/serverfiles" |
|||
systemdir="${filesdir}/dmc" |
|||
executabledir="${filesdir}" |
|||
executable="./hlds_run" |
|||
servercfgdir="${systemdir}" |
|||
servercfg="${servicename}.cfg" |
|||
servercfgfullpath="${servercfgdir}/${servercfg}" |
|||
defaultcfg="${servercfgdir}/server.cfg" |
|||
backupdir="${rootdir}/backups" |
|||
|
|||
# Logging |
|||
logdays="7" |
|||
gamelogdir="${systemdir}/logs" |
|||
scriptlogdir="${rootdir}/log/script" |
|||
consolelogdir="${rootdir}/log/console" |
|||
|
|||
scriptlog="${scriptlogdir}/${servicename}-script.log" |
|||
consolelog="${consolelogdir}/${servicename}-console.log" |
|||
emaillog="${scriptlogdir}/${servicename}-email.log" |
|||
|
|||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log" |
|||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log" |
|||
|
|||
##### Script ##### |
|||
# Do not edit |
|||
|
|||
fn_runfunction(){ |
|||
# Functions are downloaded and run with this function |
|||
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then |
|||
cd "${rootdir}" |
|||
if [ ! -d "functions" ]; then |
|||
mkdir functions |
|||
fi |
|||
cd functions |
|||
echo -e "loading ${functionfile}...\c" |
|||
wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- |
|||
chmod +x "${functionfile}" |
|||
cd "${rootdir}" |
|||
sleep 1 |
|||
fi |
|||
source "${rootdir}/functions/${functionfile}" |
|||
} |
|||
|
|||
fn_functions(){ |
|||
# Functions are defined in fn_functions. |
|||
functionfile="${FUNCNAME}" |
|||
fn_runfunction |
|||
} |
|||
|
|||
fn_functions |
|||
|
|||
getopt=$1 |
|||
fn_getopt |
@ -0,0 +1,35 @@ |
|||
// Server Name |
|||
hostname "hostname" |
|||
|
|||
// RCON Password |
|||
rcon_password "rconpassword" |
|||
|
|||
// Server Password |
|||
sv_password "" |
|||
|
|||
// Server Logging |
|||
log on |
|||
sv_logbans 1 |
|||
sv_logecho 1 |
|||
sv_logfile 1 |
|||
sv_log_onefile 0 |
|||
|
|||
// disable autoaim |
|||
sv_aim 0 |
|||
|
|||
// disable clients' ability to pause the server |
|||
pausable 0 |
|||
|
|||
// maximum client movement speed |
|||
sv_maxspeed 320 |
|||
|
|||
// 20 minute timelimit |
|||
mp_timelimit 20 |
|||
|
|||
// cheats off |
|||
sv_cheats 0 |
|||
|
|||
// load ban files |
|||
exec listip.cfg |
|||
exec banned.cfg |
|||
|
@ -0,0 +1,97 @@ |
|||
#!/bin/bash |
|||
# Half-Life: Opposing Force |
|||
# Server Management Script |
|||
# Author: Daniel Gibbs |
|||
# Website: http://danielgibbs.co.uk |
|||
# Version: 210115 |
|||
|
|||
#### Variables #### |
|||
|
|||
# Notification Email |
|||
# (on|off) |
|||
emailnotification="off" |
|||
email="[email protected]" |
|||
|
|||
# Steam login |
|||
steamuser="anonymous" |
|||
steampass="" |
|||
|
|||
# Start Variables |
|||
defaultmap="op4_bootcamp" |
|||
maxplayers="16" |
|||
port="27015" |
|||
clientport="27005" |
|||
ip="0.0.0.0" |
|||
|
|||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2 |
|||
fn_parms(){ |
|||
parms="-game gearbox -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} -maxplayers ${maxplayers}" |
|||
} |
|||
|
|||
#### Advanced Variables #### |
|||
|
|||
# Steam |
|||
appid="90 +app_set_config 90 mod gearbox" |
|||
|
|||
# Server Details |
|||
servicename="op4-server" |
|||
gamename="Half-Life: Opposing Force" |
|||
engine="goldsource" |
|||
|
|||
# Directories |
|||
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" |
|||
selfname="$(basename $0)" |
|||
lockselfname=".${servicename}.lock" |
|||
filesdir="${rootdir}/serverfiles" |
|||
systemdir="${filesdir}/gearbox" |
|||
executabledir="${filesdir}" |
|||
executable="./hlds_run" |
|||
servercfgdir="${systemdir}" |
|||
servercfg="${servicename}.cfg" |
|||
servercfgfullpath="${servercfgdir}/${servercfg}" |
|||
defaultcfg="${servercfgdir}/server.cfg" |
|||
backupdir="${rootdir}/backups" |
|||
|
|||
# Logging |
|||
logdays="7" |
|||
gamelogdir="${systemdir}/logs" |
|||
scriptlogdir="${rootdir}/log/script" |
|||
consolelogdir="${rootdir}/log/console" |
|||
|
|||
scriptlog="${scriptlogdir}/${servicename}-script.log" |
|||
consolelog="${consolelogdir}/${servicename}-console.log" |
|||
emaillog="${scriptlogdir}/${servicename}-email.log" |
|||
|
|||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log" |
|||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log" |
|||
|
|||
##### Script ##### |
|||
# Do not edit |
|||
|
|||
fn_runfunction(){ |
|||
# Functions are downloaded and run with this function |
|||
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then |
|||
cd "${rootdir}" |
|||
if [ ! -d "functions" ]; then |
|||
mkdir functions |
|||
fi |
|||
cd functions |
|||
echo -e "loading ${functionfile}...\c" |
|||
wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- |
|||
chmod +x "${functionfile}" |
|||
cd "${rootdir}" |
|||
sleep 1 |
|||
fi |
|||
source "${rootdir}/functions/${functionfile}" |
|||
} |
|||
|
|||
fn_functions(){ |
|||
# Functions are defined in fn_functions. |
|||
functionfile="${FUNCNAME}" |
|||
fn_runfunction |
|||
} |
|||
|
|||
fn_functions |
|||
|
|||
getopt=$1 |
|||
fn_getopt |
@ -0,0 +1,35 @@ |
|||
// Server Name |
|||
hostname "hostname" |
|||
|
|||
// RCON Password |
|||
rcon_password "rconpassword" |
|||
|
|||
// Server Password |
|||
sv_password "" |
|||
|
|||
// Server Logging |
|||
log on |
|||
sv_logbans 1 |
|||
sv_logecho 1 |
|||
sv_logfile 1 |
|||
sv_log_onefile 0 |
|||
|
|||
// disable autoaim |
|||
sv_aim 0 |
|||
|
|||
// disable clients' ability to pause the server |
|||
pausable 0 |
|||
|
|||
// maximum client movement speed |
|||
sv_maxspeed 320 |
|||
|
|||
// 20 minute timelimit |
|||
mp_timelimit 20 |
|||
|
|||
// cheats off |
|||
sv_cheats 0 |
|||
|
|||
// load ban files |
|||
exec listip.cfg |
|||
exec banned.cfg |
|||
|
@ -0,0 +1,97 @@ |
|||
#!/bin/bash |
|||
# Ricochet |
|||
# Server Management Script |
|||
# Author: Daniel Gibbs |
|||
# Website: http://danielgibbs.co.uk |
|||
# Version: 210115 |
|||
|
|||
#### Variables #### |
|||
|
|||
# Notification Email |
|||
# (on|off) |
|||
emailnotification="off" |
|||
email="[email protected]" |
|||
|
|||
# Steam login |
|||
steamuser="anonymous" |
|||
steampass="" |
|||
|
|||
# Start Variables |
|||
defaultmap="rc_arena" |
|||
maxplayers="16" |
|||
port="27015" |
|||
clientport="27005" |
|||
ip="0.0.0.0" |
|||
|
|||
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2 |
|||
fn_parms(){ |
|||
parms="-game ricochet -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} -maxplayers ${maxplayers}" |
|||
} |
|||
|
|||
#### Advanced Variables #### |
|||
|
|||
# Steam |
|||
appid="90 +app_set_config 90 mod ricochet" |
|||
|
|||
# Server Details |
|||
servicename="ricochet-server" |
|||
gamename="Ricochet" |
|||
engine="goldsource" |
|||
|
|||
# Directories |
|||
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" |
|||
selfname="$(basename $0)" |
|||
lockselfname=".${servicename}.lock" |
|||
filesdir="${rootdir}/serverfiles" |
|||
systemdir="${filesdir}/ricochet" |
|||
executabledir="${filesdir}" |
|||
executable="./hlds_run" |
|||
servercfgdir="${systemdir}" |
|||
servercfg="${servicename}.cfg" |
|||
servercfgfullpath="${servercfgdir}/${servercfg}" |
|||
defaultcfg="${servercfgdir}/server.cfg" |
|||
backupdir="${rootdir}/backups" |
|||
|
|||
# Logging |
|||
logdays="7" |
|||
gamelogdir="${systemdir}/logs" |
|||
scriptlogdir="${rootdir}/log/script" |
|||
consolelogdir="${rootdir}/log/console" |
|||
|
|||
scriptlog="${scriptlogdir}/${servicename}-script.log" |
|||
consolelog="${consolelogdir}/${servicename}-console.log" |
|||
emaillog="${scriptlogdir}/${servicename}-email.log" |
|||
|
|||
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log" |
|||
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log" |
|||
|
|||
##### Script ##### |
|||
# Do not edit |
|||
|
|||
fn_runfunction(){ |
|||
# Functions are downloaded and run with this function |
|||
if [ ! -f "${rootdir}/functions/${functionfile}" ]; then |
|||
cd "${rootdir}" |
|||
if [ ! -d "functions" ]; then |
|||
mkdir functions |
|||
fi |
|||
cd functions |
|||
echo -e "loading ${functionfile}...\c" |
|||
wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/functions/${functionfile} 2>&1 | grep -F HTTP | cut -c45- |
|||
chmod +x "${functionfile}" |
|||
cd "${rootdir}" |
|||
sleep 1 |
|||
fi |
|||
source "${rootdir}/functions/${functionfile}" |
|||
} |
|||
|
|||
fn_functions(){ |
|||
# Functions are defined in fn_functions. |
|||
functionfile="${FUNCNAME}" |
|||
fn_runfunction |
|||
} |
|||
|
|||
fn_functions |
|||
|
|||
getopt=$1 |
|||
fn_getopt |
Loading…
Reference in new issue