xgaming.configs
bb2
5 files

BrainBread 2 Server Config

server.cfg for BrainBread 2 dedicated servers — Source-engine zombie co-op with leveling and skill point systems.

Config files

server_core.cfg
// BrainBread 2 Base CVAR values.

// Turbo Physics
// desc: Enables simpler physics, if any. Useful for low-end systems @ server.
// default: 0
sv_turbophysics 0

// Friendly Fire
// desc: Allows team members to injure other members of their team.
// default: 0
mp_friendlyfire 0

// Roundstart Freezetime
// Desc: How long time does it take in seconds until a round starts?
// minimum: 1
// maximum: 30
// default: 8
bb2_roundstart_freezetime 8

// Mercy Value
// desc: Sets how many deaths until the players become human once again. 0 means, never allow the zombie to become a human by dying X times. (suicide doesn't count, must be death from some hostile!)
// minimum: 0
// maximum: 10
// default: 0
bb2_allow_mercy 3

// Kills Required for Zombie Players
// desc: Set how many kills a zombie player must get in order to spawn as a human again, click a button to respawn as a human when you've reached the required amount.
// 0 means, never allow a zombie to become a human by killing X hostiles.
// minimum: 0
// maximum: 10
// default: 3
bb2_zombie_kills_required 3

// Late Joining
// desc: Sets if the player will be able to spawn late.
// default 0
bb2_allow_latejoin 1

// Player Spawn Protection
// desc: Player Spawn Protection Time(sec) On Spawn!
// default 1
bb2_spawn_protection 5

// Allow NPC to score
// desc: Should friendly npcs be allowed to affect scoring? For example for quests.
// default 1
bb2_allow_npc_to_score 0

// Classic: Zombie No Team Change
// desc: When a player zombie kills a human player the human will not become a zombie on respawn.
// default 0
bb2_classic_zombie_noteamchange 1

// Story: Dynamic Respawns
// Desc: If enabled, players will respawn at the player who is furthest away from the nearest checkpoint.
// minimum: 0
// maximum: 1
// default: 0
bb2_story_dynamic_respawn 0

// Story: Respawn time
// Desc: How many seconds should a player wait until respawning in Story mode?
// minimum: 4
// maximum: 30
// default: 10
bb2_story_respawn_time 10

// Arena: Hard Mode
// desc: Disables respawns, increases all gained XP by a certain percent.
// minimum: 0
// maximum: 1
// default 0
bb2_arena_hard_mode 0

// Elimination: Limit teams, autobalancing
// desc: How many more players can a team have compared to the other team before the team becomes 'locked'? (autobalancing logic)
// minimum: 1
// default 1
mp_limitteams 1

// Elimination: Fraglimit
// desc: Set the max amount of frags a team can obtain before that team will win the game.
// minimum: 50
// default 200
bb2_elimination_fraglimit 200

// Elimination: Respawn Timer
// desc: Set the default respawn time in seconds.
// minimum: 1
// maximum: 30
// default 1.5
bb2_elimination_respawn_time "1.5"

// Elimination: Time Scale
// desc: Increase the respawn time by this many seconds for each member in the team.
// minimum: 0
// maximum: 10
// default 0.5
bb2_elimination_respawn_time_scale "0.5"

// Elimination: Extermination score
// desc: How much score should a team be awarded for exterminating the other team? (kill everyone and allow no one to respawn)
// minimum: 0
// maximum: 50
// default 10
bb2_elimination_score_from_extermination 10

// Elimination: Zombie Score
// desc: Whenever the zombie team gets a kill this is the value to add.
// minimum: 1
// maximum: 10
// default 5
bb2_elimination_score_zombies 5

// Elimination: Human Score
// desc: Whenever the human team gets a zombie player kill this is the value to add.
// minimum: 1
// maximum: 10
// default 1
bb2_elimination_score_humans 1

// Elimination: TeamPerk Duration
// desc: How many seconds does a team perk last?
// minimum: 5
// maximum: 60
// default 30
bb2_elimination_teamperk_duration 10

// Elimination: TeamPerk Required Kills for Zombies
// desc: How many kills does the zombies need to activate a team perk?
// minimum: 1
// maximum: 100
// default 2
bb2_elimination_teamperk_zombies 2

// Elimination: TeamPerk Required Kills for Humans
// desc: How many kills does the humans need to activate a team perk?
// minimum: 1
// maximum: 100
// default 4
bb2_elimination_teamperk_humans 4

// Deathmatch: Fraglimit
// minimum: 20
// maximum: 1000
// default: 60
bb2_deathmatch_fraglimit 60

// Deathmatch: Respawn time in sec
// minimum: 1
// maximum: 30
// default: 3
bb2_deathmatch_respawn_time 3

// Voting: Passing Votes
// desc: How much % of the players will be required to vote YES in order to pass a map vote?
// minimum: 0
// maximum: 100
// default 60
bb2_vote_required_percentage 60

// desc: How much % of the players will be required to vote YES in order to pass a kick or ban vote?
// minimum: 0
// maximum: 100
// default 82
bb2_vote_required_percentage_kickban 78

// Voting: Ban Time
// desc: For how many minutes will a player be banned if a ban vote passes?
// minimum: 0 (permanent)
// default 30
bb2_ban_time 30

// High Ping Kicker
// Desc: Kick players with too high ping?
// minimum: 0
// maximum: 1
// default 1
bb2_enable_high_ping_kicker 1

// High Ping Kicker
// Desc: When a player connects we check their average ping after 30 sec, if that ping is higher than this value they'll be kicked.
// minimum: 100
// maximum: 600
// default 200
bb2_high_ping_limit 400

// AFK Kicker
// Desc: Kick players who are AFK for too long?
// minimum: 0
// maximum: 1
// default 1
bb2_enable_afk_kicker 1

// AFK Kicker
// Desc: How long can a player be AFK before we kick him? (seconds)
// minimum: 10
// maximum: 500
// default 90
bb2_afk_kick_time 90

// Timelimit - Objective & Story Mode
// Desc: The time in minutes before the game ends.
// minimum: 10
// default 60
mp_timelimit_objective 90

// Timelimit - Arena Mode
// Desc: The time in minutes before the game ends.
// minimum: 10
// default 40
mp_timelimit_arena 40

// Timelimit - Deathmatch Mode
// Desc: The time in minutes before the game ends.
// minimum: 10
// default 20
mp_timelimit_deathmatch 20

// Timelimit - Elimination Mode
// Desc: The time in minutes before the game ends.
// minimum: 10
// default 30
mp_timelimit_elimination 30

// Global Ban List
// Desc: Players who've been globally banned will not be able to connect to any server with this convar enabled.
// minimum: 0
// maximum: 1
// default 1
bb2_enable_ban_list 1

// Classic BrainBread mode
// Desc: Enabling this will disable Runners, Bandits and anything else that isn't related to the classic BrainBread.
// minimum: 0
// maximum: 1
// default 0
bb2_classic_mode_enabled 0

// NPC Scaling
// Desc: Disabling NPC Scaling will make the game easier but you'll get less XP. If enabled, NPCs will get stronger depending on how many people are in the game.
// minimum: 0
// maximum: 1
// default 1
bb2_enable_scaling 1

// Extreme NPC Scaling - Challenge mode
// Desc: This scaling method takes the average level into account. If the average level is greater than 50, all npcs will multiply their scaling with a predefined factor, the factor increases as the average lvl increases.
// minimum: 0
// maximum: 1
// default 0
bb2_hard_scaling 0

// NPC Scale Value
// Desc: Increasing this value means that for every player that joins the npcs will multiply their scale by X, which means that the game will become harder but you will gain more XP.
// minimum: 1
// maximum: 100
// default 1
bb2_npc_scaling 1

// Disable Vote Ban
// Desc: Should people be able to vote ban other players?
// minimum: 0
// maximum: 1
// default 1
bb2_vote_disable_ban 1

// Disable Vote Kick
// Desc: Should people be able to vote kick other players?
// minimum: 0
// maximum: 1
// default 0
bb2_vote_disable_kick 0

// Disable Vote Map
// Desc: Should people be able to vote for new maps?
// minimum: 0
// maximum: 1
// default 0
bb2_vote_disable_map 0

// Vote Frequency
// Desc: How often can players create votes? (sec)
// minimum: 10
// maximum: 120
// default 60
bb2_vote_frequency_time 60

// Required Level to Vote
// Desc: The minimum level required to create votes in Objective, Story and Arena mode.
// minimum: 0
// maximum: 500
// default 15
bb2_vote_required_level 15

// Vote Time
// Desc: The time in seconds until a vote ends, when it ends it will either pass or fail.
// minimum: 10
// maximum: 120
// default 30
bb2_vote_time 30

// Voting: Round start delay
// desc: When the round starts, delay voting for a certain amount of seconds to prevent trolling.
// minimum: 0
// maximum: 120
// default 60
bb2_vote_roundstart_delay 60

// Voting: Kick Ban Time
// desc: If a kick vote passes successfully, ban the player for a few mins.
// minimum: 0
// maximum: 10
// default 5
bb2_vote_kick_ban_time 5

// Game Over Map Vote Time
// Desc: When the game ends the players will have this much time (sec) to vote for the next map.
// minimum: 10
// maximum: 30
// default 10
bb2_vote_time_endgame 15

// BAN SYSTEM - HANDLING
exec banned_user.cfg
exec banned_ip.cfg

writeip
writeid
server_custom.cfg
// Add custom server cvars here or overrides, etc...
server_game.cfg
// !IMPORTANT! Game Specific CVARS are usually reset here!!!

// Set how long in minutes our zombies can stay alive, this prevents dormant zombies from taking up the zombie limit.
bb2_zombie_lifespan_min "0.8"
bb2_zombie_lifespan_max "1.2"

// Set how frequent in seconds our zombies can spawn in any spawners not overriding spawn frequencies.
bb2_zombie_spawn_freq_min "0.2"
bb2_zombie_spawn_freq_max "0.4"

// Set if zombie volumes should spawn new zombie waves even if previous waves interesect with it = keep spawning all the time.
// Disable this for your map if you want more controlled spawns, leave this on for arena though, it is handy.
bb2_zombie_spawner_continuous "1"

// Enable aggressive lifetime changes for zombies when zombie spawners fail to spawn due to zombie limit, force old zombies to die sooner.
// Will only work in objective & story mode.
bb2_zombie_lifetime_advanced 1

// Set how often ammo clips can respawn.
mp_ammo_respawn_time "4.0"

// NPCs

bb2_m1a1_damage "200"
bb2_m1a1_damage_machinegun "12"
bb2_m1a1_machinegun_firerate "0.08"
bb2_m1a1_radius "500"

sk_npc_boss_fred_rage_health "30"
sk_npc_boss_fred_rage_duration "60"
sk_npc_boss_fred_rage_damage "110"

sk_npc_zombie_speed_override "0"
server.cfg
// ****************************************************************************
// Brainbread 2
// Config - server.cfg
// Date - 06/12/2023
// ****************************************************************************

// hostname - Hostname for server.
hostname "SERVERNAME"

// rcon_password - remote console password.
rcon_password "ADMINPASSWORD"

// sv_password - Server password for entry into multiplayer games.
sv_password ""

// sv_setsteamaccount - token Set game server account token to use for logging in to a persistent game server account
// https://steamcommunity.com/dev/managegameservers
sv_setsteamaccount ""

// map - Start playing on specified map.
// map "bba_barracks"

// mapcyclefile - Name of the .txt file used to cycle the maps on multiplayer servers
mapcyclefile "mapcycle.txt"

// sv_lan - Server is a lan server ( no heartbeat, no authentication, no non-class C addresses ).
sv_lan 0

// sv_logfile - Log server information in the log file.
sv_logfile 1

// sv_logbans - Log server bans in the server logs.
sv_logbans 1

// sv_voiceenable - Enable voice communications.
sv_voiceenable 1

// sv_alltalk - Players can hear all other players, no team restrictions.
sv_alltalk 1

// sv_allowupload - Allow clients to upload customizations files.
sv_allowupload 1

// sv_allowdownload - Allow clients to download files.
sv_allowdownload 1

// sv_downloadurl - Location from which clients can download missing files.
sv_downloadurl ""

// mp_allowspectators - Toggles whether the server allows spectator mode or not.
mp_allowspectators 1

// bb2_allow_profile_system - Allow players to load Global stats or local stats defined on the server. 1 = Global, 2 = Local!
bb2_allow_profile_system

exec server_core.cfg
exec server_game.cfg
exec server_custom.cfg
server.cfg.orig
// Server name
// desc: Hostname for the server.
// default: "BrainBread 2 DS"
hostname "BrainBread 2 Dedicated Server"

// Cheats
// desc: Allows cheats on the server.
// hint: This will disable stats & achievements
// default: 0
sv_cheats 0

// Password
// desc: Sets a password for the server.
// default: ""
sv_password ""

// Profile System
// desc: Sets if the player will be able to save and load their skills. (0 - Disabled | 1 - Global | 2 - Local, achievements and steam stats are disabled)
// default 1
// Profile Saving only works on dedicated servers.
bb2_allow_profile_system 1

// Misc
sv_region 255
sv_alltalk 1

sv_allowupload 1
sv_allowdownload 1

// Rates
sv_maxrate 0
sv_minrate 35000

sv_maxcmdrate 33
sv_mincmdrate 30

sv_maxupdaterate 33
sv_minupdaterate 30

sv_forcepreload 0

exec server_core.cfg
exec server_game.cfg
exec server_custom.cfg

What these settings mean

Quick reference for the 21 most important keys in this BrainBread 2 config. Hover or tap any key to see what it controls — useful when you're tuning a server for the first time and don't want to grep through the upstream wiki.

Core
2 settings
hostname
Server name shown in the in-game browser. Keep it under 64 characters and avoid colour codes if you want clean Steam listings.
sv_password
Optional join password. Empty string means a public server.
Network
11 settings
sv_lan
1 forces LAN-only mode (no Steam heartbeat). Set 0 for any internet-facing server.
sv_allowupload
1 lets clients upload custom sprays. Disable to mitigate inappropriate content / exploits.
sv_allowdownload
1 lets clients download missing maps / models from the server. Slow — better to pair with sv_downloadurl.
sv_downloadurl
Fast-DL HTTP URL for clients to fetch missing assets. Massively faster than Source's built-in trickle download.
sv_region
Geographic region for the master server browser. 255 = world, 0 = US East, 1 = US West, 3 = Europe, 4 = Asia.
sv_maxrate
Maximum allowed client bandwidth. Set 0 for unlimited; 786432 is common for 128-tick CS.
sv_minrate
Minimum bandwidth (bytes/sec) the server will accept from a client. Raise to enforce a tickrate floor.
sv_maxcmdrate
Maximum cl_cmdrate. Should equal sv_maxupdaterate.
sv_mincmdrate
Minimum cl_cmdrate. Match this to sv_minupdaterate for symmetric netcode.
sv_maxupdaterate
Maximum cl_updaterate the server will allow. 128 for competitive CS, 64 for casual.
sv_minupdaterate
Minimum cl_updaterate the server will allow. Sets the floor for how often clients receive snapshots.
Gameplay
3 settings
mp_friendlyfire
1 enables team damage. Required for competitive 5v5; usually off for community DM.
mp_limitteams
Maximum allowed team-size difference. 0 = unlimited, 2 = standard, 1 = strict balance.
sv_cheats
Enables developer cheat commands like noclip and god. Always 0 in competitive — only flip on for practice / surf / KZ servers.
Voice
2 settings
sv_voiceenable
Master switch for in-game voice chat. 1 enabled, 0 disabled server-wide.
sv_alltalk
1 lets dead players hear the living and both teams hear each other. Off by default for competitive integrity.
RCON
1 setting
rcon_password
Remote console password. Use a long random string — Source RCON is unencrypted, so anyone sniffing your wire can grab it if it's weak.
Logging
2 settings
sv_logfile
1 writes log lines to disk in addition to stdout.
sv_logbans
1 logs ban / kick events. Always on for any moderated server.

More valve / source engine configs

Skip the setup. Host BrainBread 2 with XGamingServer.

Spin up a managed BrainBread 2 server with one click. Backups, mods, control panel and DDoS protection included.