Dilbert
30-09-2002, 11:25 AM
Just gathering info to try and get the server set right, but useful commands for clients also.
ACCESSING THE CONSOLE
To access the console in Battlefield 1942, you need to use the " ~ " tidle key. It is located just above your "Tab Key", this will drop down your console in game where you can enter the specific commands listed below.
SERVER/ADMIN COMMANDS
Game.listplayers
Every player has an ID number, which is used for kicking/voting off the player. This command lists those numbers.
Game.enablefreecamera *
This enables free look mode on clients who are waiting to spawn. For *, 1 turns free look on, 0 turns it off. Note that this command can only be run from the server, or by a user that has remote server access.
Game.killplayer *
* is equal to the player id number. Note that this command can only be run from the server, or by a user that has remote server access.
Admin.kickplayer *
* is equal to the player id number. Note that this command can only be run from the server, or by a user that has remote server access.
Admin.banplayer *
* is equal to the player id number. Note that this command can only be run from the server, or by a user that has remote server access.
Admin.removeaddressfrombanlist *
* is equal to the IP of a banned player. Note that this command can only be run from the server, or by a user that has remote server access.
Admin.addaddresstobanlist *
* is equal to the IP address to the client that is to be banned. Note that this command can only be run from the server, or by a user that has remote server access.
Admin.clearbanlist
This allows all users that were previously banned to once again connect to the server. Note that this command can only be run from the server, or by a user that has remote server access.
Admin.externalviews *
This command enables/disables external camera views on clients connected to the server. For *, 1 turns external views on, 0 turns it off. Note that this also disables the nose cam. Also, note that this command can only be run from the server, or by a user that has remote server access.
Admin.listbannedaddresses
Lists the IP addresses that are banned from connecting to the server. Note that this command can only be run from the server, or by a user that has remote server access.
Admin.vehicleffratio *
This command enables/disables the freindly fire vehicle damage. For *, 1 is FF on, 0 = FF off.
Admin.solderffratio *
This command enables/disables the freindly fire soldier/teammates. For *, 1 is FF on, 0 = FF off.
Admin.vehicleffratioOnSplash *
This command enables/disables the freindly fire vehicle weapons splash (tank rounds, AA guns). For *, 1 is on, 0 = off.
Admin.soldierffratioOnSplash 0>
This command enables/disables the freindly fire soldier weapons splash (bazookas, grenades). For *, 1 is on, 0 = off.
Admin.externalViews *
This command enables/disables the external view on planes. For *, 1 is on, 0= off.
Admin.toggleGamePause
This command toggles between pausing and unpausing the game.
Admin.setTicketRatio *
This command enables you to set the ticket ratio. For *, 1 - xxxx.
Admin.autoBalanceTeam *
This command enables/disables the auto team balance. For *, 1 is on, 0 = off.
Admin.delayBeforeStartingGame (time)
This command enables you to set the delay time before the game starts. For (time) set the number of seconds you would like the game to be delayed by.
Admin.timeLimit (time)
This command enables you to set the time limit for a match. For (time) set the number of minutes you would like the game to last.
Admin.scoreLimit (score)
This command enables you to set the time limit for a match. For (score) set the score you would like before the map restarts/changes.
Admin.restartMap
This command allows you to restart the map which you are currently playing.
Admin.runNextLevel
This command allows you to change to the next map in your servers map cycle.
Admin.setNextLevel (level name)
This command allows you to change map. For (level name) fill in the level you would like to change map too.
Admin.timeBeforeRestartMap (time) This command allows you to set the time before the map restarts. For (time) set the number of minutes you would like the map to restart in.
Admin.setNrOfRounds *
This command enables you to set the number of rounds in on a map. For *, 1 - xxxx.
VOTING COMMANDS
Game.votekickplayer *
This command will initiate/cast a vote to kick a player. Players on both teams can participate in this vote. * is equal to the player id number.
Game.votekickteamplayer *
This command will initiate/cast a vote to kick a player. Voting is restricted to the team of the player who initiated the vote. * is equal to the player id number.
Admin.votingtime *
This command sets the amount of time clients have to cast a vote after it has been initiated. * is equal to the number of seconds clients will have to vote.
Note that this command can only be run from the server, or by a user that has remote server access.
Admin.enableMapVote
This command enables you to vote for maps.
REMOTE CONSOLE ACCESS
Admin.enableremoteadmin password
The SERVER needs to have this command executed every map. The password can include numbers OR letters, but not a combination of the two. NOTE: DO NOT INCLUDE ANY SPACES IN YOUR PASSWORD.
The CLIENT that is to have remote admin access is to execute this command. The password must be the same as the one set on the server.
Admin.execremotecommand "command"
To execute a command from a client, one would type the admin.execremotecommand, followed by the desired admin command in quotation marks. For example, to kick someone with the player id of 7 from a client machine, one would type the following (after going through the first two steps of this section.)
Admin.execremotecommand "admin.kickplayer 7"
OTHER HELPFUL COMMANDS
Console.showfps *
This toggles the FPS display on and off. For *, 1 turns FPS on and 0 turns it off.
Console.showstats *
This toggles the debug stats display on and off. For *, 1 turns the debug stats display on and 0 turns it off.
Game.disconnect
This disconnects the player from the current game.
Game.changeplayername *
This allows a user to quickly change his name. * is equal to the player name.
Game.useHUD *
This will remove all your HUD except for your gun. * 0=off 1=on
Quit
This disconnects the player from the current game to desktop.
ACCESSING THE CONSOLE
To access the console in Battlefield 1942, you need to use the " ~ " tidle key. It is located just above your "Tab Key", this will drop down your console in game where you can enter the specific commands listed below.
SERVER/ADMIN COMMANDS
Game.listplayers
Every player has an ID number, which is used for kicking/voting off the player. This command lists those numbers.
Game.enablefreecamera *
This enables free look mode on clients who are waiting to spawn. For *, 1 turns free look on, 0 turns it off. Note that this command can only be run from the server, or by a user that has remote server access.
Game.killplayer *
* is equal to the player id number. Note that this command can only be run from the server, or by a user that has remote server access.
Admin.kickplayer *
* is equal to the player id number. Note that this command can only be run from the server, or by a user that has remote server access.
Admin.banplayer *
* is equal to the player id number. Note that this command can only be run from the server, or by a user that has remote server access.
Admin.removeaddressfrombanlist *
* is equal to the IP of a banned player. Note that this command can only be run from the server, or by a user that has remote server access.
Admin.addaddresstobanlist *
* is equal to the IP address to the client that is to be banned. Note that this command can only be run from the server, or by a user that has remote server access.
Admin.clearbanlist
This allows all users that were previously banned to once again connect to the server. Note that this command can only be run from the server, or by a user that has remote server access.
Admin.externalviews *
This command enables/disables external camera views on clients connected to the server. For *, 1 turns external views on, 0 turns it off. Note that this also disables the nose cam. Also, note that this command can only be run from the server, or by a user that has remote server access.
Admin.listbannedaddresses
Lists the IP addresses that are banned from connecting to the server. Note that this command can only be run from the server, or by a user that has remote server access.
Admin.vehicleffratio *
This command enables/disables the freindly fire vehicle damage. For *, 1 is FF on, 0 = FF off.
Admin.solderffratio *
This command enables/disables the freindly fire soldier/teammates. For *, 1 is FF on, 0 = FF off.
Admin.vehicleffratioOnSplash *
This command enables/disables the freindly fire vehicle weapons splash (tank rounds, AA guns). For *, 1 is on, 0 = off.
Admin.soldierffratioOnSplash 0>
This command enables/disables the freindly fire soldier weapons splash (bazookas, grenades). For *, 1 is on, 0 = off.
Admin.externalViews *
This command enables/disables the external view on planes. For *, 1 is on, 0= off.
Admin.toggleGamePause
This command toggles between pausing and unpausing the game.
Admin.setTicketRatio *
This command enables you to set the ticket ratio. For *, 1 - xxxx.
Admin.autoBalanceTeam *
This command enables/disables the auto team balance. For *, 1 is on, 0 = off.
Admin.delayBeforeStartingGame (time)
This command enables you to set the delay time before the game starts. For (time) set the number of seconds you would like the game to be delayed by.
Admin.timeLimit (time)
This command enables you to set the time limit for a match. For (time) set the number of minutes you would like the game to last.
Admin.scoreLimit (score)
This command enables you to set the time limit for a match. For (score) set the score you would like before the map restarts/changes.
Admin.restartMap
This command allows you to restart the map which you are currently playing.
Admin.runNextLevel
This command allows you to change to the next map in your servers map cycle.
Admin.setNextLevel (level name)
This command allows you to change map. For (level name) fill in the level you would like to change map too.
Admin.timeBeforeRestartMap (time) This command allows you to set the time before the map restarts. For (time) set the number of minutes you would like the map to restart in.
Admin.setNrOfRounds *
This command enables you to set the number of rounds in on a map. For *, 1 - xxxx.
VOTING COMMANDS
Game.votekickplayer *
This command will initiate/cast a vote to kick a player. Players on both teams can participate in this vote. * is equal to the player id number.
Game.votekickteamplayer *
This command will initiate/cast a vote to kick a player. Voting is restricted to the team of the player who initiated the vote. * is equal to the player id number.
Admin.votingtime *
This command sets the amount of time clients have to cast a vote after it has been initiated. * is equal to the number of seconds clients will have to vote.
Note that this command can only be run from the server, or by a user that has remote server access.
Admin.enableMapVote
This command enables you to vote for maps.
REMOTE CONSOLE ACCESS
Admin.enableremoteadmin password
The SERVER needs to have this command executed every map. The password can include numbers OR letters, but not a combination of the two. NOTE: DO NOT INCLUDE ANY SPACES IN YOUR PASSWORD.
The CLIENT that is to have remote admin access is to execute this command. The password must be the same as the one set on the server.
Admin.execremotecommand "command"
To execute a command from a client, one would type the admin.execremotecommand, followed by the desired admin command in quotation marks. For example, to kick someone with the player id of 7 from a client machine, one would type the following (after going through the first two steps of this section.)
Admin.execremotecommand "admin.kickplayer 7"
OTHER HELPFUL COMMANDS
Console.showfps *
This toggles the FPS display on and off. For *, 1 turns FPS on and 0 turns it off.
Console.showstats *
This toggles the debug stats display on and off. For *, 1 turns the debug stats display on and 0 turns it off.
Game.disconnect
This disconnects the player from the current game.
Game.changeplayername *
This allows a user to quickly change his name. * is equal to the player name.
Game.useHUD *
This will remove all your HUD except for your gun. * 0=off 1=on
Quit
This disconnects the player from the current game to desktop.