From fee6f5c0aba5f29052b0cdf205ecd5b565ba705f Mon Sep 17 00:00:00 2001 From: Frisasky Date: Fri, 13 Sep 2019 16:58:13 +0800 Subject: [PATCH 1/3] Add config file for Warfork --- Warfork/server.cfg | 161 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 161 insertions(+) create mode 100644 Warfork/server.cfg diff --git a/Warfork/server.cfg b/Warfork/server.cfg new file mode 100644 index 0000000..7e3c844 --- /dev/null +++ b/Warfork/server.cfg @@ -0,0 +1,161 @@ +// This config will be executed last at launching a dedicated server. +// It will never be written in from warfork. + +// note that configs for individual gametypes can be found inside configs/server/gametypes directory +// such configs can override cvars set inside this file + +// server settings - must be different for each server running on same machine +set sv_hostname "SERVERNAME" + +set sv_http "1" +set sv_http_ip "" // set to bind to a specific interface IP address +set sv_http_upstream_baseurl "" +set sv_http_upstream_realip_header "" +set sv_http_upstream_ip "" + +set logconsole "wfconsole.log" +set logconsole_append "1" // don't destroy the old log when restarting server + +// Warfork MatchMaker statistics +// NOTE! You need to register your server at www.forbidden.gg to obtain authkey +// set sv_mm_authkey "" // REGISTER your server at www.forbidden.gg to obtain authkey +// set sv_mm_enable "1" // To enable this, also set authkey +// set sv_mm_loginonly "0" // Allow only registered players? + +// more server settings +set sv_public "1" +set sv_maxclients "16" +set sv_skilllevel "1" // 0 = easy, 1 = normal, 2 = hard +set password "" // password required to enter the server +set rcon_password "ADMINPASSWORD" // password to remotely control the server, keep secret +set sv_pure "1" // if 1 client is forced to use same game modules and + // game data as the server +set masterservers "master1.forbidden.gg master1.icy.gg" +set masterservers_steam "" +set sv_showInfoQueries "0" // prints when a (server browser) info query is received + +// file uploading +set sv_uploads "1" // setting this to 0 will disable sending of + // server upload offers or urls to clients +set sv_uploads_from_server "1" // allow uploading directly from the server +set sv_uploads_baseurl "" // http url of a directory mirroring Warfork directory. + // Note: mod directory not to be included in this url anymore. + // Example: sv_uploads_baseurl "http://mydomain.com/warfork" where + // there is a subdirectory "basewf" or whatever mod directory your + // server is running containing the downloadable files. + +set sv_autoupdate "0" // enable automatic download of updates from www.forbidden.gg. + +set sv_iplimit "5" // limit connections per ip address (stop zombie dos/flood) + +set g_operator_password "" // game operators get their callvotes instantly passed, so + // they are users who can kick, kickban, change map, etc without + // other players agreement + +// server side demos +set g_autorecord "1" // record demos from all the matches +set g_autorecord_maxdemos "200" // if there is more than this amount of + // automatically recorded demos, the oldest ones will be deleted +set g_uploads_demos "1" // if this is enabled and server uploading is + // enabled, players can download demos from the server + +// antilag settings +set g_antilag "1" +set g_antilag_timenudge "0" + +// callvotes settings - you can add this cvar for every callvote, even if it isn't here +set g_vote_allowed "1" +set g_votable_gametypes "bomb ca ctf ctftactics da dm duel ffa headhunt tdm" // the server can only change to the gametypes in + // this cvar (space separated). Empty = All. + +// disable votes one by one +// note: this can be done to any callvote, even if we forgot to add it to this list, +// composing the cvar with "g_disable_vote_" + +set g_disable_vote_gametype "0" +set g_disable_vote_map "0" +set g_disable_vote_nextmap "0" +set g_disable_vote_restart "0" +set g_disable_vote_scorelimit "1" +set g_disable_vote_timelimit "1" +set g_disable_vote_numbots "0" +set g_disable_vote_warmup "0" +set g_disable_vote_warmup_timelimit "1" +set g_disable_vote_extended_time "1" +set g_disable_vote_maxteams "0" +set g_disable_vote_maxteamplayers "0" +set g_disable_vote_lock "1" +set g_disable_vote_unlock "1" +set g_disable_vote_allow_teamdamage "1" +set g_disable_vote_allow_selfdamage "1" +set g_disable_vote_allow_falldamage "1" +set g_disable_vote_allow_uneven "0" +set g_disable_vote_maxtimeouts "1" +set g_disable_vote_timeout "0" +set g_disable_vote_timein "0" +set g_disable_vote_challengers_queue "1" +set g_disable_vote_kick "0" +set g_disable_vote_kickban "1" +set g_disable_vote_instajump "0" +set g_disable_vote_instashield "0" +set g_disable_vote_shuffle "0" + +// disable opcalls one by one (opcall are instant-pass callvotes by power users with operator password) +// note: this can be done to any callvote, even if we forgot to add it to this list, +// composing the cvar with "g_disable_vote_" + +set g_disable_opcall_gametype "0" +set g_disable_opcall_map "0" +set g_disable_opcall_nextmap "0" +set g_disable_opcall_restart "0" +set g_disable_opcall_scorelimit "0" +set g_disable_opcall_timelimit "0" +set g_disable_opcall_numbots "0" +set g_disable_opcall_warmup "0" +set g_disable_opcall_warmup_timelimit "0" +set g_disable_opcall_extended_time "0" +set g_disable_opcall_maxteams "0" +set g_disable_opcall_maxteamplayers "0" +set g_disable_opcall_lock "0" +set g_disable_opcall_unlock "0" +set g_disable_opcall_allow_teamdamage "0" +set g_disable_opcall_allow_selfdamage "0" +set g_disable_opcall_allow_falldamage "0" +set g_disable_opcall_allow_uneven "0" +set g_disable_opcall_maxtimeouts "0" +set g_disable_opcall_timeout "0" +set g_disable_opcall_timein "0" +set g_disable_opcall_challengers_queue "0" +set g_disable_opcall_kick "0" +set g_disable_opcall_kickban "0" +set g_disable_opcall_instajump "0" +set g_disable_opcall_instashield "0" +set g_disable_opcall_shuffle "0" + +// game settings +set g_gametype "ca" +set g_teams_maxplayers "8" +set g_teams_allow_uneven "1" +set g_numbots "0" +set g_instagib "0" +set g_instajump "0" +set g_instashield "0" + +// gametype settings - Gametype cfgs can change these when the server changes gametype +set g_allow_teamdamage "0" +set g_allow_selfdamage "1" +set g_allow_falldamage "1" +set g_scorelimit "0" +set g_timelimit "10" +set g_warmup_enabled "1" +set g_warmup_timelimit "1" +set g_match_extendedtime "2" +set g_countdown_time "5" +set g_maxtimeouts "0" // -1 = unlimited +set g_challengers_queue "1" + +// map settings +set sv_defaultmap "wfdm1" +set g_maplist "wfdm1 wfdm2 wfdm4 wfdm6 wfdm7 wfdm9 wfdm10 wfdm11 wfdm12 wfdm13 wfdm14 wfdm16 wfdm17 wfdm18 wfdm19" // list of maps in automatic rotation +set g_maprotation 2 // 0 = same map, 1 = in order, 2 = random + +set g_asGC_stats "0" +set g_asGC_interval "10" From 59438ae87ce67c30805096f23d7002d961fa3851 Mon Sep 17 00:00:00 2001 From: Frisasky Date: Fri, 13 Sep 2019 17:08:01 +0800 Subject: [PATCH 2/3] Add warfork --- Warfork/server.cfg | 1 - 1 file changed, 1 deletion(-) diff --git a/Warfork/server.cfg b/Warfork/server.cfg index 7e3c844..832236d 100644 --- a/Warfork/server.cfg +++ b/Warfork/server.cfg @@ -8,7 +8,6 @@ set sv_hostname "SERVERNAME" set sv_http "1" -set sv_http_ip "" // set to bind to a specific interface IP address set sv_http_upstream_baseurl "" set sv_http_upstream_realip_header "" set sv_http_upstream_ip "" From 86e4b0a94d39afa50a9048c6a7ef1e545ba1bad8 Mon Sep 17 00:00:00 2001 From: Frisasky Date: Sat, 14 Sep 2019 22:20:56 +0800 Subject: [PATCH 3/3] Update server.cfg --- Warfork/server.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Warfork/server.cfg b/Warfork/server.cfg index 832236d..22ea8d5 100644 --- a/Warfork/server.cfg +++ b/Warfork/server.cfg @@ -24,9 +24,9 @@ set logconsole_append "1" // don't destroy the old log when restarting server // more server settings set sv_public "1" set sv_maxclients "16" +set password "" +set rcon_password "ADMINPASSWORD" set sv_skilllevel "1" // 0 = easy, 1 = normal, 2 = hard -set password "" // password required to enter the server -set rcon_password "ADMINPASSWORD" // password to remotely control the server, keep secret set sv_pure "1" // if 1 client is forced to use same game modules and // game data as the server set masterservers "master1.forbidden.gg master1.icy.gg"