Browse Source

Merge pull request #315 from smt923/patch-1

Added gamemode variable for gmodserver
pull/322/head
Scarsz 10 years ago
parent
commit
aaa233cc06
  1. 6
      GarrysMod/cfg/lgsm-default.cfg
  2. 3
      GarrysMod/gmodserver

6
GarrysMod/cfg/lgsm-default.cfg

@ -65,7 +65,7 @@ sv_allowdownload 0
sbox_noclip 0
sbox_godmode 0
sbox_weapons 0
sbox_plpldamage 0
sbox_playershurtplayers 0
sbox_maxprops 100
sbox_maxragdolls 50
sbox_maxnpcs 10
@ -79,10 +79,8 @@ sbox_maxhoverballs 20
sbox_maxvehicles 1
sbox_maxbuttons 20
sbox_maxemitters 0
sbox_maxspawners 0
sbox_maxturrets 0
// Misc Config
exec banned_user.cfg
exec banned_ip.cfg
heartbeat
heartbeat

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