Useful Server Cvars

This is not a list of all of the possible admin cvars available to you, there are of course more ways for hosts customize a server if you edit the server.cfg. However, this is a list of the most used commands and a simple explanation of each. If you want to see a list of all the possible cvars available to a host, take a look at the server\_config\_default.cfg found in your MBII folder.

Relevant links: Hosting a Linux Server / Hosting a Windows server

## SMOD / RCON Commands

Relevant links: Full SMOD guide

```
/smod login # password
/rconpassword passwordhere
```

(this logs you in, however it is advised to put this into a .cfg (which is a .txt file renamed) and put this into your MBII folder, typing /exec nameofcfg instead of typing password into console. This helps prevent an accidental typo which leaks the pass)

```
smod
```

Pulls up list of the smod commands your smod role has been granted! This does not include RCON commands, but luckily you have this guide for the most useful ones. If you are a server admin, check out the MBII Readme.html file to edit your ranks cvars in your MBII folder (useful for generator to set tier ranks of these in your own Server.cfg).

```
smod say
```

Shows big red admin text. used when warning people

```
smod smsay
```

Sends a message to admin chat ingame, other admins online and logged into the server will see this chat. useful when discussing how to handle a situation

```
smod kick
```

kicks the client (you can use some, not all of their name, or their client id) from the round, they can rejoin right after being kicked.

```
smod tempban
```

(name/client ID here) # of rounds = tempbans people for a certain number of rounds. for first time offenders who rejoin after a kick, start with 5-15 round tempbans. for repeat offenders, escalate as needed.

```
smod who
```

Shows whos logged into smod at the time, including you

```
smod status
```

Shows IPs, client IDs and admin IDs of players ingame, as well as IPs of recently disconnected users

```
smod tempbanlist
```

Displays a list of recent tempbans

```
rcon g_password "none"
```

Sets a password to the server (default is 'none')

```
rcon g_teamswap "0"
```

Swaps blue/red teams, default is 0

```
rcon roundlimit or rcon fraglimit
```

I use these commands to see what the current frag/roundlimit is. I adjust if people are loving the map or if they are antsy and want a new map.

```
smod nextmap
```

This is the same general command as doing rcon vstr <nameofvstr>, only it goes to the next VSTR!

```
smod gametype nameofteam1 nameofteam2
```

so, example: smod gametype mb2\_lunarbase tmnt sle\_slender would give you ninja turtles vs slenderman

```
rcon devmap  <nameofmap>
```

Turns on cheats. You may need to use the vstr 'cheatson' with this also.

```
Rcon nextmap
```

pulls up what is coming up on the rotation, or will say map\_restart if the rotation is broken.

It should say something like 'vstr FA2' or 'vstr o2'

   - if it is broken at map\_restart, please set the rotation back! Type 'rcon nextmap vstr <nameofvstrhere>'

```
rcon nameofvstr
```

I use this to figure out what vstr commands what map.

For example, if I type /rcon o1, it would probably say the string of commands which switches to LunarBase on Open, sets frag/roundlimit and sets the next map.

```
g_spin "0"
```

Enable/Disable !spin! \*Note: Is only available as an event each Sunday, or if the server has a password set.

```
g_SpinCooldown "20"
```
Sets the cool down of the !spin command. Minimum of 10 seconds, default value is 20.

## Competitive commands

```
 g_competitive "26"
```

Add the values below together for the settings you want enabled, the unofficial 'default' for scrims is 26:

1              Hide HUD from spectators.

2              Restrict free spectator movement.

4              Spectators cannot chat with living players.

8              Spectators may only spectate players from their own team.

16             Hide enemy team's class icons on the scoreboard.

32             Disable friendly player indicators.

Examples:

0: Nothing enabled, fully casual.

15: Enable all spectator related restrictions.

17: Hide HUD from spectators and enemy team's class icons on scoreboard.

63: All competitive settings enabled. Cvar value should not exceed this.

## Duel Mode Settings:

```
g_DuelRespawnTimer
```

sets respawn time (range 1-60)

```
g_DuelRefillStatsOnKill "1"
```

If set to 0, HP/FP/BP will no longer be refilled after killing an enemy (no effect on private duels).

```
g_DuelTimeLimit "900"
```

Custom time limit for a duel mode round in seconds. Valid range is 300-900 (5-15 minutes).

```
g_DuelFriendlyTeam "0"
```

If set to 1, players on your team will be treated as friendlies (same as other non-duel MB modes).

```
set g_PrivateDuels "1"
```

Set to 0 to disable private duels in duel mode.

## Teamkill cvars

```
set g_TKPointsSpecCount "450"
```

Player will be forced to spectate if they have accrued this many TKPoints for team kills. 0 = disabled.

```
set g_TKPointsKickCount "750"
```

Player will be kicked and temp-banned from the server if a player has gotten this many TKPoints for team kills or hurting teammates. 0 = disabled.

```
set g_TKPointsForgiveAfterRounds "2"
```

How many rounds must pass without any TKing by the player before g\_TKPointsRemovedPerRound applies. 0 = always.

```
set g_TKPointsRemovedPerRound "75"
```

Each round that passes without the player having done any TKing, this many TKPoints will be removed from their total. 0 = disabled.

```
set g_TKPointsTempBanForRounds "20"
```

Number of rounds player gets banned for after exceeding g\_TKPointsKickCount count. (edited)

## !rtv commands

SMOD commands are being read by RTV, you can trigger it to cast votes using these commands!

```
smod say !description description
```

Use this command to add a description for an admin voting.

The description will be displayed everytime the voting list is displayed.

```
smod say !vote option
```

Use this command to add an option for an admin voting.

Options cannot be repeated and a minimum of two options must be added.

A maximum of ten options can be added.

```
smod say !erase
```

Use this command to remove all admin voting options that you or another admin have previously added.

It's recommended to always call this command first, before deciding to initiate an admin voting.

```
smod say !force rtv
```

forces rtv to begin

```
smod say !force admin
```

Use this command to initiate an admin voting.

Admin voting is an automatic poll that will do nothing once it's completed. Its purpose is to provide an automatic and organized mechanism for admins to make decisions based on players' opinions.

Commands from the Voting commands section are applied to an admin voting.

A voting description and at least 2 voting options must be added before starting the voting

```
smod say !disable rtv/rtm
```

Turns off / on RTV / RTE / RTM

```
smod say !rehash
```

restarts RTV