Silent Server Console Commands

From MyGamingTalk
Jump to navigation Jump to search

Server Console Commands

The following server console commands (for use in the server console or through rcon) commands have been added in the silEnT. Additionally, all of the shrubbot commands can be used on the server console as well, the leading "!" is optional.

bot [arguments]

Passes commands to the Omni-bot library. See the omni-bot documentation for full details.

chat [message]

Display a message to all users in the chat area

chatclient [slot#|name] [message]

Display a message to a specific user in the chat area. A partial name match can be used, and in this case the message will be sent to all users that match the partial name.

clearxp

Clears the XP of all users.

bp [message]

Display a message to all users in the top of the screen.

cp [message]

Display a message to all users in the center of the screen.

cpmsay [message]

Display a message to all users in the popup message area of the screen.

forcecvar [cvar] [value]

Forces a client cvar to have a certain value for all clients.

krinfo

List KillRating info by team, sorted.

m [slot#|name] [message]

Send a private message to a player. A partial name match can be used, and in this case the private message will be sent to all users that match the partial name.

playsound [slot#|name] [filename]

Plays the specified sound file. The slot number/player name parameter is optional. If the slot number or playername is specified, only that player hears the sound, otherwise all players hear the sound. g_tyranny must be enabled in order to play a sound to a specific player.

playsound_env [slot#|name] [filename]

Plays the specified sound file, but the sound can be heard by everyone near the specified player. In contrast to playsound, both parameters are required for playsound_env. If playsound_env is used with one parameter (only the the filename is specified), then it is treated exactly as playsound [filename]. The further away nearby players are, the less they hear the sound. g_tyranny must be enabled in order to use this command.

prinfo

List PlayerRating info by team, sorted.

prreseteverything

Completely reset the PlayerRating system.

prresetplayers

Reset only the player ratings part of the PlayerRating system.

prresetstats

Resets the total kills and deaths made by SMG weapons from all the players in the database.

Requires silEnT version 0.3.0

readsettings

Reloads the g_banners file. This is done by the server automatically, but if you decide to change the banners ingame, you can load the new settings with this command.

readxp

(Requires that g_tyranny be enabled) Loads the XPSave file from disk. There is no reason to call this function, silEnT loads the saved XP automatically as needed.

winprob

Prints information about the win probability model.

writexp

Commits the in-memory XPSave info to disk. Normally, silEnT does this automatically every time a map ends or the server is shut down.

clearspreerecords

Clears all the spreerecords stored in map statistics file (doesn't work during warmup or intermission).

lua_status

Shows information about the scripts currently loaded by the Lua API engine.

makeshoutcaster [slot#|name]

makeshoutcast [slot#|name]

makesc [slot#|name]

Promotes the player to be a shoutcaster. Shoutcasters can see floating player names, dynamite counter, truck and tank health and all mines.

removeshoutcaster [slot#|name]

removeshoutcast [slot#|name]

removesc [slot#|name]

Removes players shoutcaster status.

dboptimize

When this command is issued, the server database is optimized during the next user database closing. This command is resource intensive and should not be used often. The target of usefullness is player databases that are very large and have lot of players who have not played on the server for a long time. Do note that it is more effective to keep the player amount in the database smaller then using this command. So be sure to check the g_dbUserMaxAge setting.

Requires silEnT version 0.5.0

dbcleanup (Since: 0.7.0)

When this command is issued, the server database is cleaned during the next intermission and saved when the database closes next time. Usually during map change. This clean up checks that all the records can be searched and these records have properly formed GUIDs. All duplicated records are deleted from the main database so that the last used record is left. All player alias records, if aliases database is enabled, are checked that they have an associated record in the main database. Alias records without associated records in the main database are deleted. This command is resource intensive and for that reason it is executed during intermission. The command can be issued at any time during the map.

silent_version

Shows information about the running silEnT server version.