spacer.png, 0 kB
Console PDF Print E-mail

As well as the user interface, there is a console which can be used to type various commands. You will not normally need to use this, however some control freaks may find these useful. In order to bring down the console press the ~ key.

For a full list of console commands available type "help" in the console. There is a handy auto-complete feature which allows you to simply type the first part of a console command and pressing tab will complete the rest for you. If there is more than 1 possible match for the console command it will complete up to the point where matches are the same. Pressing tab again will list the matches found.

Some console commands have a help option where the usage is not obvious. For example "connect help" will give you a list of parameters that are accepted by the connect command.

A few commands that may be useful are listed below:

Client-side commands

  • connect - Allows you to connect to a multiplayer game directly given the IP address and optionally port and password. This is useful if the game doesn't show up in the list of games in the GUI. Example: "connect 192.168.0.1:5454 pass=secret", note that the port and password can be omitted if the default port is used and no password is required.
  • name - Change your name. Example: "name McLovin"
  • show_fps - Show the FPS on-screen. Example: "show_fps 1"
  • version - See what version of Kong is running
  • auto_switch - Automatically select the weapon when picked up. Example: "auto_switch 1"

Server-side commands

  • add_bot - Add a bot to a specific team or to the team with least players if none specified. Example: "add_bot blue"
  • remove_bot - Remove a bot, similar to add_bot. Example: "remove_bot red"
  • restart_round - Reset score/frags back to 0 and respawn all players
  • friendly_fire - Switch friendly-fire on/off. Example "friendly_fire 1"
  • time_limit - Set the amount of time before changing map (in minutes)
  • capture_limit - Set the number of times a team needs to capture the flag to win
  • map - Change map. Example "map dm-tikra"
  • game_mode - Change between game modes (deathmatch, capture the flag, etc...). Example "game_mode ctf"
  • list_players - Get a list of the player numbers associated with each player to be used in conjunction with the kick and ban commands
  • kick - Kick a player from the game, this takes the player number from the list_players command. Example "kick 4"
  • ban - Ban a player by IP address, same as the kick command except the player will be unable to re-connect again (this applies until the game is restarted). Example "ban 5".

Remote console

It is also possible to issue server-side console commands from the client provided access is granted. To prevent malicious use a password must be set, this is known as the rcon password. There are two ways to set this password, typically the client will set it with the "rcon_password" console command while the server's rcon password will be set in the server.cfg file (look for "RconPassword=" under section [General]). Provided the client and server rcon passwords match the client can issue commands on the server by typing "rcon" followed by the command. e.g. typing "rcon friendly_fire 0" from the client will switch friendly fire off on the server. If the rcon password is left blank on the server then this feature will be disabled.

 
< Prev   Next >
spacer.png, 0 kB
spacer.png, 0 kB
   
Joomla Template by Joomlashack
free joomla templates Joomla tutorials joomla themes