Skip to content

Instantly share code, notes, and snippets.

@ozh
Last active August 22, 2022 00:00
Show Gist options
  • Select an option

  • Save ozh/d63e8d98fb71fd0987f6 to your computer and use it in GitHub Desktop.

Select an option

Save ozh/d63e8d98fb71fd0987f6 to your computer and use it in GitHub Desktop.

Revisions

  1. ozh revised this gist Dec 30, 2015. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions server.cfg
    Original file line number Diff line number Diff line change
    @@ -126,6 +126,8 @@ set qlx_motdSound "sound/vo_evil/holy_shit.ogg"
    set qlx_votepass 1
    set qlx_enforceMappool 1
    //
    set fraglimit 0
    set timelimit 0
  2. ozh revised this gist Dec 30, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions server.cfg
    Original file line number Diff line number Diff line change
    @@ -43,7 +43,7 @@ set g_floodprot_decay "1000" // Decrease the userinfo flood counter by 1 this
    // end-game voting 2048
    // ammo (global) 4096
    // timers (item) 8192
    set g_voteFlags "13934" // 2 + 4 + 8 + 32 + 64 + 256 + 512 + 1024 + 4096 + 8192
    set g_voteFlags "14190" // 2 + 4 + 8 + 32 + 64 + 256 + 512 + 1024 + 4096 + 8192
    set g_allowVote "1" // Turn off all votes
    set g_voteDelay "5000" // Delay allowing votes for x milliseconds after map load.
    set g_voteLimit "0" // Limit users to x votes per map.
    @@ -106,7 +106,7 @@ set serverstartup "startRandomMap"
    set qlx_owner 76561198018464470
    set qlx_plugins "balance, plugin_manager, essentials, motd, permission, ban, silence, clan, log"
    set qlx_plugins "balance, plugin_manager, essentials, motd, permission, ban, silence, clan, log, fun, names"
    set qlx_leaverBan 1
    set qlx_leaverBanThreshold 0.75
  3. ozh revised this gist Dec 26, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion server.cfg
    Original file line number Diff line number Diff line change
    @@ -43,7 +43,7 @@ set g_floodprot_decay "1000" // Decrease the userinfo flood counter by 1 this
    // end-game voting 2048
    // ammo (global) 4096
    // timers (item) 8192
    set g_voteFlags "16238" // 2 + 4 + 8 + 32 + 64 + 256 + 512 + 1024 + 2048 + 4096 + 8192
    set g_voteFlags "13934" // 2 + 4 + 8 + 32 + 64 + 256 + 512 + 1024 + 4096 + 8192
    set g_allowVote "1" // Turn off all votes
    set g_voteDelay "5000" // Delay allowing votes for x milliseconds after map load.
    set g_voteLimit "0" // Limit users to x votes per map.
  4. ozh revised this gist Dec 25, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion server.cfg
    Original file line number Diff line number Diff line change
    @@ -91,7 +91,7 @@ set sv_idleExit "120"
    // Enable ZeroMQ stats socket. This will not be much use without a client listening.
    // See zmq_stats_verbose.py for example connect and stats printing.
    // If not specified, the stats socket will default to the same IP and port as the game server, but on TCP.
    // Don't forget to add the server on http://qlstats.net:8081/servers.html ! :)
    // Don't forget to add the server on http://qlstats.net:8084/servers.html ! :)
    // Uncomment and set below to use (server.cfg will override commandline!)
    set zmq_stats_enable "1"
  5. ozh revised this gist Dec 25, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions server.cfg
    Original file line number Diff line number Diff line change
    @@ -91,6 +91,7 @@ set sv_idleExit "120"
    // Enable ZeroMQ stats socket. This will not be much use without a client listening.
    // See zmq_stats_verbose.py for example connect and stats printing.
    // If not specified, the stats socket will default to the same IP and port as the game server, but on TCP.
    // Don't forget to add the server on http://qlstats.net:8081/servers.html ! :)
    // Uncomment and set below to use (server.cfg will override commandline!)
    set zmq_stats_enable "1"
  6. ozh created this gist Dec 25, 2015.
    132 changes: 132 additions & 0 deletions server.cfg
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,132 @@
    // Servers have the ability to run multiple gametypes, known as "factories." You should not add gameplay related
    // cvars in the server config: they may get overwritten by the factory. For creating your own sets of gameplay rules,
    // create a file ending in ".factories" inside baseq3/scripts, and refer to "Creating custom gametypes" in the
    // server_readme.txt file.

    // Be aware that factories can override any cvar, including ones specified in this config file.

    set sv_hostname "SARL | CA | elo+stats | GLHF"

    set sv_tags "clanarena, qlstats.net, ELO, SARL, no-whiners, glhf" // Comma delimited field of server tags to show in server browser.
    // Will automatically include gametype and some gameplay modifications.
    // ex. "crouch slide, classic, space"

    set sv_mapPoolFile "mappool_ca.txt" // Map pool that the server will use. See default mapcycle.txt for format.
    // Built in map pools: mappool.txt, mappool_ca.txt, mappool_ctf.txt, mappool_duel.txt,
    // mappool_ffa.txt, mappool_race.txt, mappool_tdm.txt
    set g_accessFile "access.txt" // Used to determine which 64-bit Steam IDs have admin access, or are banned.

    set sv_maxClients "22" // How many players can connect at once.
    set g_password "" // Set a server-wide password, and stop all users from connecting without it.
    set sv_privateClients "0" // Reserve slots that can be used with sv_privatePassword.
    set sv_privatePassword "" // Password to use in conjunction with sv_privateClients.
    set com_hunkMegs "90" // May need to be increased for additional players.

    // Flood protection will increment everytime the user sends a client command, ex. dropweapon, changing name, color
    // model, or chatting. Set g_floodprot_maxcount to 0 to disable completely, but this will allow uncontrolled spam.
    set sv_floodprotect "10" // Kick the player when they reach x commands, decreases by 1 every second
    set g_floodprot_maxcount "10" // Kick the player when their userinfo flood counter reaches this level.
    set g_floodprot_decay "1000" // Decrease the userinfo flood counter by 1 this often, in milliseconds.

    // Add the below values for which callvotes should be DISABLED:
    // map 1
    // map_restart 2
    // nextmap 4
    // gametype 8 (ex: "/callvote map campgrounds" will be allowed, but "/callvote map campgrounds ca" will fail)
    // kick 16
    // timelimit 32
    // fraglimit 64
    // shuffle 128
    // teamsize 256
    // cointoss/random 512
    // loadouts 1024
    // end-game voting 2048
    // ammo (global) 4096
    // timers (item) 8192
    set g_voteFlags "16238" // 2 + 4 + 8 + 32 + 64 + 256 + 512 + 1024 + 2048 + 4096 + 8192
    set g_allowVote "1" // Turn off all votes
    set g_voteDelay "5000" // Delay allowing votes for x milliseconds after map load.
    set g_voteLimit "0" // Limit users to x votes per map.
    set g_allowVoteMidGame "0" // Don't allow callvotes once the map has started
    set g_allowSpecVote "0" // Allow spectators to call votes
    set sv_warmupReadyPercentage "0.5" // Ratio of players that must be ready before the match starts.
    set g_warmupDelay "15" // Wait x seconds before allowing match to start to allow all players to connect.
    set g_warmupReadyDelay "0" // Force the game to start after x seconds after someone readies up.
    set g_warmupReadyDelayAction "1" // Set to 1 to force players to spectator after g_warmupReady Delay, 2 to force ready up.
    set g_inactivity "120" // Kick players who are inactive for x amount of seconds.
    set g_alltalk "0" // 0: Limit voice comms to teams during match
    // 1: Allow all players to talk to each other always
    // 2: 1+ send back your own voice to yourself for testing
    // System settings
    // Uncomment and set below to use (server.cfg will override commandline!)
    // set net_strict "1" // Quit out immediately if we can't bind the IP and port.
    // set net_ip "" // Which IP to bind to. Blank will bind to all interfaces.
    // set net_port "55555" // Which UDP port to bind to. Blank will start at 27960 and keep going up, if net_strict is 0.
    set sv_serverType "2" // 0 = Offline, 1 = LAN, 2 = Internet
    set sv_master "1" // Whether the server should respond to queries. Disable this to stop server from appearing in browser.
    // (This will affect the LAN browser!)

    set sv_fps "20" // Change how many frames the server runs per second. WARNING: Has not been tested extensively, and
    // will have a direct impact on CPU and network usage!

    // Exit the server if idle (not running a map) for a specified time. This will allow it to automatically restart
    // in the case of a game error or other problem. A value of "1" is recommended, but not default, when you are running
    // the server detached from the terminal.

    set sv_idleExit "120"

    // Enable remote console, provided through ZeroMQ. See zmq_rcon.py for simple client.
    // ZMQ rcon binds on a separate port from the game server, and uses TCP. It must differ from the stats port if used.
    // Rcon can not be enabled or disabled after launch, nor can the IP and port change. Password can, however.

    // Uncomment and set below to use (server.cfg will override commandline!)
    // set zmq_rcon_enable "1"
    // set zmq_rcon_ip ""
    // set zmq_rcon_port "28960"
    // set zmq_rcon_password ""

    // Enable ZeroMQ stats socket. This will not be much use without a client listening.
    // See zmq_stats_verbose.py for example connect and stats printing.
    // If not specified, the stats socket will default to the same IP and port as the game server, but on TCP.

    // Uncomment and set below to use (server.cfg will override commandline!)
    set zmq_stats_enable "1"
    // set zmq_stats_ip ""
    // set zmq_stats_port ""
    set zmq_stats_password "password"

    // The server will run serverstartup when it finishes initializing, so start a random map from the map pool.
    set serverstartup "startRandomMap"
    // Or, start a map of your choosing (factory is required)
    // set serverstartup "map campgrounds ffa"

    set qlx_owner 76561198018464470

    set qlx_plugins "balance, plugin_manager, essentials, motd, permission, ban, silence, clan, log"

    set qlx_leaverBan 1
    set qlx_leaverBanThreshold 0.75
    set qlx_leaverBanWarnThreshold 0.80
    set qlx_leaverBanMinimumGames 15

    set qlx_balanceAuto 1
    set qlx_balanceUseLocal 0
    set qlx_balanceMinimumSuggestionDiff 30

    set qlx_motdHeader "^7==^2 ^1SARL ^7==^2 CLAN ARENA ^7==^3 ELO + STATS ^7==^4 GL HF ^7==^2"
    set qlx_motdSound "sound/vo_evil/holy_shit.ogg"

    // set qlx_serverBrandName "^1SARL^7 Clan Arena"
    // set qlx_serverBrandTopField "^7Running ^2minqlx^7 and ^2qlstats.net^7"
    // set qlx_serverBrandBottomField "^7Have ^1fun^7, play well, don't ^3whine^7"

    set qlx_votepass 1

    //
    set fraglimit 0
    set timelimit 0
    set teamsize 8
    set roundlimit 10