Browse Source

added gamemode variable for gmodserver

allows people to easily set their garry's mod server gamemode (default sandbox)
pull/315/head
smt 10 years ago
parent
commit
304a130d1b
  1. 3
      GarrysMod/gmodserver

3
GarrysMod/gmodserver

@ -23,6 +23,7 @@ workshopcollectionid=""
# Start Variables
defaultmap="gm_construct"
gamemode="sandbox"
maxplayers="16"
port="27015"
sourcetvport="27020"
@ -31,7 +32,7 @@ ip="0.0.0.0"
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
fn_parms(){
parms="-game garrysmod -strictportbind -ip ${ip} -port ${port} +host_workshop_collection ${workshopcollectionid} -authkey ${workshopauth} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
parms="-game garrysmod -strictportbind -ip ${ip} -port ${port} +host_workshop_collection ${workshopcollectionid} -authkey ${workshopauth} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +gamemode ${gamemode} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
}
#### Advanced Variables ####

Loading…
Cancel
Save