Command thay may be used in console of BJS
all server commands start with /
You may write them to dropdown console - use ` to activate it

----------- Client commands ------------------

activatechat
  activate chat window and move focus to it - the command is usefull
  in key binding

alias name command
  create alias for command

bind key high_priority command
  maps some command on key. Key may be one character key or
  keyname as is in SDL or for mouse buttons use mouse_XX (XX is number of button)
  Priority has sense only for commands different from [left, right, up, down, fire]
  Low priority is for normal in game. High priority is good if you want to
  define keys for console - those keys will not lose its binding if the console
  is turned on

camera z distance refpoint_z refpoint_distance
  Set position camera and reference point for camera relatively to the tank.
  All parameters are real number values. It may be needed to use also negative
  values to get nice view of tank. You need to specifi position of camera and
  position of reference point. Reference point is point where camera is looking.
  z - Change in z direction (up/down) of camera position. Usually you want
      z to be some positove value. bigger z means camera is higher.
  distance - Distance of camera from tank in x,y coordinates. You probably
      want this to be some negative value - negative means behind tank, 
	  positive means in front of tank
  refpoint_z - same as z but for reference point. Usuallu you want refpoint_z
      to be smaller than z or even negative
  refpoint_distance - distance of reference point in direction of tank. Same
      as 'distance' but you will probably want some bigger positive value
  Please see data/defaultkeybind.txt for some examples of good values

chatmessage message
  Write message into chat message window. Don't send
  it to server or any other players. It is used internally.
  Not for user.

clear
  clear console

connect address [port]
  Connect to the server. Address may be IP or hostname. You may also
  specify port on server machine.  Default port 32101 is used if not
  specified.

console
  show/hide console

consolemessage message
  Write message in console. It is used internally.
  Not for user.

coords
  Write coordinates of tank

disconnect
  Disconnect from server.

exec filename
  open file and use every line as command and put them to line of commands for
  processing

expiredbonus bonus_type_id
  message from server that bonus with type bonus_id expired.
  It will be removed from screen

fovx angle
  change angle of view of camera

fs on|off
  change fullscreen

getvar variable
  get variable from setting

grab on|off
  all input (key and mouse) go to the game. For example moving cursor
  has no effect for other windows.

help
  print some brief help to console

ingamemenu 
  Show/hide ingame menu.

key button value
  enable controling player form the keyboard. Button may be number
  of button or name like "left", "rught",... Value is boolean if
  the button is up or down.

loginconsole on|off
  turn on/off logging in console

mousesensitivity yaw(x) pich(y)
  mouse sensitivity used if use_mouse_change (see cmd targeting)
  yaw change isn't linear so it is possile to target
  precisely and turn fastly - but it also requre different constant
  for targeting (don't give large values!)

music on|off
  turn on/off music

musicvolume volume
  Change volume of music. Range of volume is 0..128

newtank
  Ask server to create new tank according to player preferences.

observer
  Change camera between observer mode and tank following mode.

observerspeed speed
  Set observer speed. You may also use 0 for stop or negative value
  for going backwards. Good value is something around 2.0

pause on|off
  server sends if pause status changes

pickedbonus bonus_type_id
  sended by server if player's tank pick bonus. There will be message written
  about the bonus and some sound...

players
  print some info about all players in game

quit
  quit the appliaction

resettargeting
  moves canon and turret to forward position with yaw == 0 and pitch == 0

resolution X*Y
  change resolution of BJS window

setpreferedname name
  Set prefered name for our player. It is also delivered to the server
  if connected.

setvar variable value
  set setting variable to some value
  It doesn't mean that the value is applyed!

showstats on|off
  show small side window with players score

sleep ms
  stop the execution for a little while. (number ms of miliseconds).
  It is good if you want to for example send something to server and
  then do something on client. The only usage so far is for quit.txt

sound on|off
  turn on / off sound (samples)

soundvolume volume
  Change volume for sound samples. Range of volume is 0..128

targeting floating_yaw
  set behavior for tracer wich may follow turret or whole tank
  floating_yaw yaw if turret is indepedent on body of tank - means if tank is turning
 
theme file
  set sound/music theme to file

unalias
  clear all aliases

unbindall
  clear all key bindings. If you call it with closed
  console you will have problems since it won't apear or ` :)

  

----------- Server commands -----------------

/addai  [Admin rights required]
  Add one ai to game

/changename new_name
  change name to player that sended this command

/chat some_message
  send some_message to all players as chat message

/fraglimit limit  [Admin rights required]
  Sets the fraglimit for this map. Limit of 0 means to cancel the fraglimit

/gamespeed speed_multiplicator   [Admin rights required]
  change game by speed_multiplicator

/kick playerID   [Admin rights required]
  Kick player from server. You may see player's ID using
  command 'players' on client.

/newmap map_file  [Admin rights required]
  server will load new map

/newtank id
  player demand creating new tank - only works if the player
  has no tank at the moment

/nextmap
  end current map and load next map from list

/nextweapon
  select next available weapon in players tank

/pause
  change pause state

/previousweapon
  select previous available weapon in players tank

/quit   [Admin rights required]
  stop server - quit server program

/ready
  Player notify server that he is ready to play by this command.

/restart   [Admin rights required]
  restarts the current map (without loading)

/newmap map_file  [Admin rights required]
  server will load new map

/suicide
  Kills tank for player who called this.

/timelimit limit  [Admin rights required]
  Sets the timelimit in minutes for this map. Limit of 0 means to cancel the timelimit

/weapon id
  set weapon in players tank to id

/wannabeadmin password
  Way how user prove that he is an admin.
