Server commands



Direct server commands

Can be used without a prefix.

csay <message>

Prints a message to the screens's center for all players in the game.

ban <client id>

Kicks and bans the specified client from the game.

xmap <mapname>

Loads a new map.

addmap [<mapname>] changed in v1.2

Adds the current map to the maplist (maplist.cfg) or the specified map.

removemap [<mapname>] changed in v1.2

Removes the current map from the maplist (maplist.cfg) or the specified one.

next

Ends current level and loads the next one depending on maplist configuration.

restart ["later"] changed in v1.3

Restarts the server. If the parameter "later" is specified, the server will restart on level end.

rset <variable> [<value>]

This command sets and clears server variables. If no value is specified, the variable is cleared or a new empty one is created. All following arguments will be combined and used for the value of the variable.

Usage:

rcon rset password: clears a set password

rcon rset hostname Blade Server: sets the hostname to "Blade Server"

tc <command> [<parameter(s)>] new in v1.2

Team Control. This command controls all settings for the new advanced team mode. Available commands and their parameters:

switch <"on"/"off">

Enables or disables the advanced team mode.

mode <"skin"/"model"/"both">

This defines teamplay by skin or model. "skin" means players can wear any model but must wear their team's skin. "model" means players can wear any skin but must use their team's model. "both" means players can only use the exact model/skin combination of their team.

add

This creates a new team. The maximum number of teams is 16.

remove <team-id/name>

This deletes an existing team.

flush <team-id/name>

This will remove all players from the specified team.

autoselect <balance/force/none> [<team-id/name>]

This controls what happens to players without a team. "balance" means they will go into the team with the least number of members. "force" means the go into the specified team. "none" means they will stay without a team until they join one or are moved into one.

match <team-id/name> [<string>]

Sets the match pattern of a team. If a player's name does match the pattern, he/she will join this team regardless of the autoselect setting. This is intended for clan matches. Set the match pattern to the clan's tag.

list [<team-id/name>]

Gives a list of all teams and the important settings. Specifying a team will give more information about a single team (not implemented yet).

name <team-id/name> <newname>

Changes the teamname of an existing team.

skin <team-id/name> <skinname>

Sets the teamskin (and model). Example: "whiteforce" or "male/whiteforce".

maxplayers <team-id/name> <value>

Sets a limit of maximum team members. If this number is reached, no more players can join it.

color <team-id/name> <value>

This is the color in which players will show up on the scoreboard. <value> is a number from 0-31.

invite <team-id/name> <"yes"/"no">

This enables or disables invitation mode. If it is enabled, players can not freely join this team. A team member has to invite them first or an admin can move them in.

humanonly <team-id/name> <"yes"/"no">

If this is enabled, only human players (no bots) can join the team.

botsonly <team-id/name> <"yes"/"no">

The opposite of humanonly.

move <client-id/name> <team-id/name>

Move a certain player into a team.

ffire <"no"/"yes"/"bounce">

Controls friendly fire. "no" means team members can't hurt each other. "yes" means they can hurt each other. "bounce" means that the damage done to team members will be received by the attacker instead of the victim.

ffratio <value>

Sets the amount of friendly fire damage in percent. 100 means full damage to team members, 50 means half damage etc.

uptime new in v1.3

This will show how long the server has been running and will also give some other infos.

history new in v1.3

Shows a list of recent players and the time that has passed since they left.

pg <name> <message> new in v1.3

Send a private message to all players in the game whose name contain <name>. The message can be send to one or more players. It will not be visible to other players.

<name> can be a part of the player's name or the whole name.

<name> may also match special ascii characters if they can be
converted to regular letters.

Note: Your name will appear as "console".

 

SV server commands

These commands need the prefix "sv"

sv checklist

Checks the current maplist.cfg for missing maps.

sv maplist changed in v1.2

This command prints out the current maplist. The mapnames can be used with the votemap command.

The server command version of maplist will always print out the whole list in one go.

sv nextmap

Ends current level and loads the next one depending on maplist configuration.

sv migrate <IP[:port]>

This command will send all connected clients to another Heretic II server running at <IP>. If the destination server does not run on the standard port, a port must be specified.

sv moveover <client-id> <IP[:port]>

Like the migrate command, but for a single client only.

sv sky <name> [<rotation>] [<axis x> <axis y> <axis z >] removed in v1.3

Changes the current sky to another sky. <rotation> is the speed the sky will rotate at. <axis x> <axis y> <axis z > are the axis to rotate around.

sv mute <client-id>

Locks out a client from talking for the rest of this round.

sv unmute <client-id>

Makes muted clients be able to talk again.

sv mutelist

Shows a list of muted players.

sv restart

Restarts the server.

sv showalias <client-id>

Polls the alias.log for known aliases and playtimes of the specified client.

sv supdate

For soccer mode. If you changed the teamskins, use this command to make changes work imminent without restarting the map.

sv unspawn

Removes all spawned entities of all players.

sv edictlist

Prints a list of all entities to "edictlist.txt". This will also happen when the server crashes with "spawning more than ... edicts"

sv lightlevel removed in v1.3

Changes the brightness of the current map. Negative numbers mean darker, positive numbers mean brighter.

sv modellist

Prints out the server's idea of the current modelindex. The modelindex lists all server side models (i.e. brush model / tris.fm / sprite). It is limited to 255 by the game engine. Usually Heretic II crashes if this number is exceeded. The T-Mod tries to keep the server alive by not giving away any new modelindices.

sv brixsave <name>

Saves the positions of all brush models. The name of the current map will be added to the filename. Use this to save constructions made with hackmove.

Important: a directory named "brix" must exist in the current mod dir.

sv brixload <name>

Restore brush positions from an earlier brixsave.

sv bot spawn [<name>] [<skin>]

If you specify <name> and <skin>, a bot with random abilities and the name <name> and the skin <skin> will be added.

If you specify <name> only, a predefined bot will be loaded from the /bots subdirectory.

If you don't specify <skin> and <name>, a predefined bot with random abilities will be added.

See the documenation of Grinbots MK II for more information.

sv bot kick [<name>]

This will remove the bot named <name> from the game. If <name> is not specified, all bots are removed.

sv reshuffle new in v1.2

This will make the server create a new "shufflelist" of the current maplist. If you are running the server in shuffle mode (maplist 3) and did major changes to the maplist, you may want (or need) to update the shuffle list.