Cvar list
Cvars(console variables) are commands you can manipulate via the console or .cfg files to change gameplay and other aspects of MB.
Server Cvars
Basic Settings
sv_hostname
This sets the name of the server that displays in the server browser. Color codes are allowed.
Usage: sv_hostname "MovieBattles Server"
g_motd
This sets the block of text that players see when they enter the server. Color codes are allowed. You can go to the next line by inserting \n after a line of text.
Usage: g_motd "Welcome to MovieBattles Server\n Rules:\n Don't Worry\n Be Happy"
Will display as:
- Welcome to MovieBattles Server
- Rules:
- Don't Worry
- Be Happy
sv_master[1,2,3,4,5]
These commands tell the server the addresses of master servers.
Usage:
sv_master1 "masterjk3.ravensoft.com" sv_master2 "master0.gamespy.com" sv_master3 "master.qtracker.com"
And so on.
sv_maxclients
Sets the maximum amount of players that can connect to the server. Range is 1-32.
Usage: sv_maxclients 4
sv_privateclients
Reserves a specified amount of player slots. Cannot be higher than the value of sv_maxclients.
Usage: sv_privateclients 4
sv_privatepassword
Password for enabling access to private slots reserved by sv_privateclients.
Usage: sv_privatepassword "privateslot"
g_password
Sets the password for the server.
Usage: g_password "privateserver"
g_needpass
Enables or disables server password.
Values:
- 0 Password disabled
- 1 Password enabled
Usage: g_needpass 1
sv_pure
When enabled, forces clients to use only files that are present on the server(Example: no custom skins, etc)
Values:
- 0 Disabled
- 1 Enabled
Usage: sv_pure 0
g_log
Indicates the text file that the server will log actions too. Leave blank to disable logging.
Usage: g_log "serverlog.txt"
g_logClientInfo
If enabled, the server logs data in more detail. Useful for matching IPs with clients.
Values:
- 0 Disabled
- 1 Enabled
Usage: g_logClientInfo 1
g_logSync
Use synchronous appending in log writes. May impact server performance if enabled(Not generally recommended), but may provide more detailed logs if a crash occurs.
Values:
- 0 Disabled
- 1 Enabled
Usage: g_logSync 0
sv_allowdownload
Allows clients to automatically download custom files(such as maps) that they may not have when they connect to the server. It's slow, buggy and a security risk, so it's generally wise to leave it off.
Values:
- 0 Disabled
- 1 Enabled
Usage: sv_allowdownload 0
Connection Settings
sv_minRate
Will not allow clients that have their /rate set lower than this value to connect.
Values:
- 0 Disabled
- 1-25000 Value range
Usage: sv_minRate 4000
sv_maxRate
Limits clients to this rate value or lower, even if they have it set higher. Does not prevent clients from connecting like sv_minRate does.
Values:
- 0 Disabled
- 1-25000 Value range
Usage: sv_maxRate 15000
sv_maxPing
Will not allow clients with a higher ping than this connect.
Values:
- 0 Disabled
- 1-999 Value range
Usage: sv_maxPing 150
sv_minSnaps
Will not allow clients that have their /snaps set lower than this value to connect.
Values:
- 0 Disabled
- 1-Infinity Value range
Usage: sv_minSnaps 20
sv_maxConnections
Maximum number of connections from one IP. Prevents some crash scripts.
Values:
- 0 Disabled
- 1-Infinity Value range
Usage: sv_maxConnections 3
sv_reconnectlimit
Limits how many times a client can reconnect within a short period.
Values:
- 0 Diabled
- 1-Infinity Value range
Usage: sv_reconnectlimit 0
sv_floodprotect
Prevents server flooding crash bugs. Always leave on.
Values:
- 0 Disabled
- 1 Enabled
Usage: sv_floodprotect 1
sv_timeout
How long in seconds clients can stay in the "connecting" state before timing out and being dropped. Not to be confused with g_inactivity.
Values:
- 0 Disabled
- 1-Infinity Value range
Usage: sv_timeout 600
Administration Settings
rconpassword
Sets the RCON password.
Usage: rconpassword "rconpass"
g_smodAdminPassword
Sets the SMOD Admin password.
Usage: g_smodAdminPassword "adminpass"
g_smodSubAdminPassword
Sets the SMOD SubAdmin password.
Usage: g_smodSubAdminPassword "subadminpass"
g_smodConfig
This cvar sets the availible powers for admins and subadmins. To set it, you need to add up the numbers of the powers you want and then set the total sum as the cvar value.
Values:
- 1 Enable auto-renaming
- 2 Log SMOD commands
- 4 Allow admins to use "kick"
- 8 Allow subadmins to use "kick"
- 16 Allow admins to use "nextmap"
- 32 Allow subadmins to use "nextmap"
- 64 Allow admins to use "map"
- 128 Allow subadmins to use "map"
- 256 Allow admins to use "maprestart"
- 512 Allow subadmins to use "maprestart"
- 1024 Allow admins to use "gametype"
- 2048 Allow subadmins to use "gametype"
- 4096 Allow admins to use "mbmode"
- 8192 Allow subadmins to use "mbmode"
- 16384 Allow admins to use "ban" & "removeban"
- 32768 Allow subadmins to use "ban" & "removeban"
- 65536 Allow admins to use "tempban", "removetempban" & "tempbanlist"
- 131072 Allow subadmins to use "tempban", "removetempban" & "tempbanlist"
- 262144 Allow admins to use "forceteam"
- 524288 Allow subadmins to use "forceteam"
- 1048576 Allow admins to use "vstr"
- 2097152 Allow subadmins to use "vstr"
Usage: g_smodConfig 1398100
g_filterban
Sets the use of the server's banlist file.
Values:
- 0 Only players who are on the banlist may join
- 1 People on the banlist may not join
Usage: g_filterban 1
Gameplay Settings
g_allowVote
Determine which vote types are allowed on the server. To configure, add up the values of the vote types you want to enable, then use the sum as the cvar value.
Values:
- 0 Voting Disabled
- 1 Gametype
- 2 Map
- 4 Restart map
- 8 Next map
- 16 Kick player
- 32 MB Mode
- 64 Vote limit(limits vote calls to 3 per round)
Usage: g_allowvote 127
g_FullSpecTalkToPlayers
Determines whether spectators(People on the actual spectator team, not dead players) are allowed to talk to non-spectator players.
Values:
- 0 Spectators cannot talk to non-spectators
- 1 Spectators can talk to non-spectators
Usage: g_FullSpecTalkToPlayers 1
g_minMBPoints
The amount of class points players start with on joining the server. Range is 1-80.
Usage: g_minMBPoints 80
g_MBPointsPerRound
How many additional class points players are awarded no matter if they won or lost the round. A player will stop gaining point when their total reaches 80. range is 0-80.
Usage: g_MBPointsPerRound 5
g_AllowedHeroClasses
Allows you to limit the classes available on the hero team. To configure, add up the values of the classes you want to enable, then use the sum as the cvar value.
Values:
- 0 All classes allowed
- 1 Soldier
- 2 Commander
- 4 Jedi
- 8 Hero
- 16 Wookiee
- 32 Clonetrooper
- 64 ARC Trooper
Usage: g_AllowedHeroClasses 0
g_AllowedVillainClasses
Allows you to limit the classes available on the villain team. To configure, add up the values of the classes you want to enable, then use the sum as the cvar value.
Values:
- 0 All classes allowed
- 1 Soldier
- 2 Commander
- 4 Sith
- 8 Bounty Hunter
- 16 Droideka
- 32 Mandalorian
- 64 Super Battle Droid
Usage: g_AllowedVillainClasses 0
g_TimePeriod
Allows you to choose what time period your server will play in. Models and classes will be limited appropriately (i.e. you won't see Qui-Gon Jinn in the Empire Strikes Back time period, or Lando in the AOTC time period...)
Values:
- 0 All time periods enabled
- 1 Ancient times
- 2 Pre-Prequel
- 3 The Phantom Menace (Ep.I)
- 4 Attack of The Clones (Ep.II)
- 5 Revenge Of The Sith (Ep.III)
- 6 A New Hope (Ep.IV)
- 7 The Empire Strikes Back (Ep.V)
- 8 Han-Frozen
- 9 Return Of The Jedi (Ep.VI)
- 10 Post-Original Trilogy
Usage: g_TimePeriod 0
g_EUAllowed
Allows you to determine whether to enable models that were not in the movies.
Values:
- 0 All models enabled
- 1 Only models of characters appearing in Star Wars Movies enabled
Usage: g_EUAllowed 0
g_Authenticity
This controls what MB mode(Open, Semi-Authentic or Full Authentic) your server runs in.
Values:
- 0 Open Mode
- 1 Semi-Authentic Mode
- 2 Full Authentic Mode
Usage: g_Authenticity 0
g_ChatProtectTime
Time in milliseconds that a client has to wait before chatting again after sending a line of chat. Prevents chat spam.
Values:
- 0 Disabled
- 1-Infinity Value range
Usage: g_ChatProtectTime 1000
g_gametype
Sets the gametype that the server runs in.
Values:
- 3 Duel
- 4 Power Duel
- 7 Moviebattles
Usage: g_gametype 7
g_dismember
Dismemberment probability. This is a percentage, i.e. 100 is the maximum setting. Clients have to adjust the cg_dismember cvar accordingly in order to see the dismemberment. Range: 0-100
Usage: g_dismember 100
g_noSpecMove
Determines whether spectators are allowed to move.
Values:
- 0 Spectators can move
- 1 Spectators cannot move
Usage: g_noSpecMove 0
g_inactivity
Time in seconds after which an inactive player will be auto-kicked from the server.
Values:
- 0 Inactive players will never be kicked
- 1-Infinity Inactive players will be kicked after this many seconds of inactivity
Usage: g_inactivity 240
g_HideHUDFromSpecs
Determines whether the HUD is shown for spectators while they follow someone.
Value:
- 0 HUD is shown to spectators
- 1 HUD is not shown to spectators
Usage: g_HideHUDFromSpecs 0
fraglimit
If a team wins this many rounds, they win the map.
Values:
- 0 Disabled
- 1-Infinity Number of wins to win the map
Usage: fraglimit 10
roundlimit
The map will end after this many rounds pass.
Values:
- 0 Disabled
- 1-Infinity Map will end after this many rounds
Usage: roundlimit 20
Anti-TK Settings
g_TKPointsSpecCount
Players will be forced to spectate if they have accrued this many TK points for teamkills or hurting teammates.
Values:
- 0 Disabled
- 1-Infinity Number of TK points to autospec a player
Usage: g_TKPointsSpecCount 500
g_TKPointsKickCount
Player will be kicked and tempbanned from the server if a player has gotten this many TK points for teamkills or hurting teammates.
Values:
- 0 Disabled
- 1-Infinity Number of TK points to autokick a player
Usage: g_TKPointsKickCount 700
g_TKPointsMinorFriendly
Players will not get TK points for damage amounts below 5 if enabled.
Values:
- 0 Disabled
- 1 Enabled
Usage: g_TKPointsMinorFriendly 1
g_TKPointsForgiveAfterRounds
How many rounds must pass without any TKing by the player before g_TKPointsRemovedPerRound applies. Range is 0-Infinity.
Usage: g_TKPointsForgiveAfterRounds 2
g_TKPointsRemovedPerRound
Each round that passes without the player having done any TKing, this many TKPoints will be removed from their total.
Values:
- 0 TK points will never be removed
- 1-Infinity Points removed per round
Usage: g_TKPointsRemovedPerRound 200
g_TKPointsTempBanForRounds
Number of rounds players get tempbanned for after exceeding the amount of TK points specified by g_TKPointsKickCount. Range: is 0-99.
Usage: g_TKPointsTempBanForRounds 10
Client Cvars
Connection Settings
cl_maxpackets
Sets the number of packets sent to the server per frame. Range is 1-100
Usage: cl_maxpackets 30
rate
Sets your data rate to servers. Range is 1-90000
Usage: rate 10000
snaps
Controls how often client data snapshots are sent to the server. Will not exceed the number that the server's sv_fps is set to, even if the client's is higher. Range is 1-Infinity.
Usage: snaps 20
Graphical Settings
r_customwidth
Sets a custom resolution width. r_mode must be set to -1 for this to work. Use vid_restart to apply.
Usage: r_customwidth 1366
r_customheight
Sets a custom resolution height. r_mode must be set to -1 for this to work. Use vid_restart to apply.
Usage: r_customheight 768
r_mode
Enables you to set custom resolutions via r_customwidth and r_customheight when set to -1.
Usage: r_mode -1
vid_restart
Restarts the game and applies new video settings.
Usage: vid_restart
HUD Settings
cg_drawfps
Displays a realtime readout of your FPS in the upper right corner of the screen.
Values:
- 0 Hide FPS readout
- 1 Show FPS readout
Usage: cg_drawfps 1
cg_lagometer
Displays a realtime connection monitor on the right side of the screen. The upper blue/yellow bar on the lagometer is how in sync your FPS is with the server. The thinner it is, the better. The lower bar is your latency and connection quality. The thicker the bar is, the more ping you have. Green means all packets are getting to the server, yellow means some data is getting lost or not arriving on time and red indicates packet loss.
Values:
- 0 Hide Lagometer
- 1 Show Lagometer
Usage: cg_lagometer 1
Shortcut Commands
connect
Connects you to a server.
Usage: connect <ip>
reconnect
Disconnects then reconnects to the server you are connected to.
Usage: reconnect
disconnect
Disconnects you from the server you are connected to.
Usage: disconnect
quit
Exits the game and returns you to your desktop.
Usage: quit