Guides
TFC Rcon Guide PDF Print E-mail
User Rating: / 1
PoorBest 

Welcome to the UK-TF Team Fortress Classic Rcon variable guide.

1 Logging into your server

2 Server Commands and Variables

3 Kicking & Banning players

4 Changing maps

5 Player Class restrictions

6 Mulitplayer & Teamplay settings

7 TFC specific Cvars & Clanwar settings

  • Logging Into your TFC Server
  • The Rcon password is specified in your server.cfg file which is located in the root of your TFC server.

    Firstly set the password in this file with the following syntax:

     

    • Rcon_password “password”

     

    Restart your server and then connect to it in game, open the console and then type the following 2 lines to gain full rcon access to your server.

     

    • Rcon_port 27015
    • Rcon_password password

     

    The port is the last 5 numbers after your ip, ie if your server is 192.168.12.20:27015 then your port would be 27015. Password being the password you specified in the server.cfg.

     

    !TIP: You might want to create an admin.cfg file and save It in your \steamapps\ This e-mail address is being protected from spambots. You need JavaScript enabled to view it \team fortress classic\tfc folder and put this information in it.

     

    Then when you want to gain access to your server you only have to type is exec admin.cfg in the console and it will send this information with no risk of you accidently typing it into chat!

     

     

  • Server Commands & Variables

  • These commands are used to customise the base and core settings that setup your server such as your hostname, private password, gravity settings etc.

     

    Commands are broken down down in a number of ways, some require text, others most commonly are switched on with a 1 or off with a 0. 

    However some such as the rate, gravity settings are adjusted by the value you require.

     

    !Tip Anything with a // in front of the line will be ignored by your server.cfg file and can be used either as reference for certain commands or to disable particular commands when your are testing settings out.

     

    Hostname “jolt.co.uk -  “

     

    Changes the name of your server.

     

    Rcon_password “password”

     

    Sets the server’s Remote Console password.

     

    Sv_password “password”

     

    Makes your server private with a password for practice matches and clanwars. !Tip To disable set sv_password “”

     

    Setmaster add <ip or host>

     

    Setmaster sets the master server list for the server.

     

    Allow_spectators 1

     

    Enables/Disables spectators on the server

     

    Sv_accelerate 10

     

    Sets the player acceleration

     

    Sv_aim 0

     

    Enables/Disables Client aiming assistance  (Only usable with sv_cheats 1)

     

    Sv_airaccelerate 10

     

    Sets the in air accelerateion for the server. This controls TFC features like Conc Jumping movement and bhopping, If you want things like this you should leave this on 10 or to disable drop down to 4.

     

    Sv_airmove 1

     

    Controls clients ability to move in the air

     

    Sv_allowdownload 1

     

    This controls if you wish for the server to download custom content such as maps to clients or disconnect them if they do not have the map.

     

    Sv_alltalk 0

     

    Enable/Disable spectators ability to chat with active players on the server.

     

    Sv_allowupload 1

     

    Controls clients ability to upload custom decals/sprays

     

    Sv_bounce 1

     

    Enable bounce pads in maps that use them

     

    Sv_challengetime 15

     

    Sets the time to allow client connection completion

     

    Sv_cheats 0

     

    Enable or disable cheats

     

    Sv_clienttrace 1

     

    Sets client bounding box size (collisions)

     

    Sv_clipmode 0

     

    Sets client clipping mode

     

    Sv_contact <email addr>

     

    Allows you to specify a website or contact email in browsers or the console

     

    Sv_friction 4

     

    Sets friction level

     

    Sv_gravity 800

     

    Sets the servers gravity, 800 is default, setting lower will enable higher jumps.

     

    Sv_lan 0

     

    Enables LAN server mode

     

    Sv_maxrate 10000

     

    Sets the maximum data transfer rate in bytes per second for any one client on the server – higher settings help good connections but may cause increased choke.

     

    Sv_maxspectators 8

     

    Sets the maximum number of spectators allowed on the server at any one time.

     

    Sv_maxspeed 400

     

    Sets the max players speed for all clients.

     

    Sv_maxunlag 0.5

     

    Sets the max number of seconds of lag the server will try to compensate for when Sv_unlag 1 is enabled. Suggested values are 0.3 to 0.6 Higher numbers will make high pingers jump around more

     

    Sv_maxupdaterate 60

     

    Sets the maximum number of times per second to update cleints.

     

    Sv_minrate 0

     

    Sets the min data transfer rate in bytes per second for any one client, setting this to 0 or a value below 500 will default this to 500.

     

    Sv_minupdaterate 1000

     

    Sets the minimum number of times per second to update clients. Setting this will prevent people setting too low and becoming choppy, however you should never set this too high or you will force people with poor routing or connections to lag the server and force the server to work harder than it needs to.

     

    Sv_proxies 0

     

    Enable/Disable proxies clients on your server. Such as if you want to connect a HLTV client to your server for viewing a war.

     

    Sv_spectatormaxspeed 500

     

    Sets spectators max movement speed

     

    Sv_spectalk 1

     

    Enables spectator clients to chat.

     

    Sv_spectator_password ""

     

    Specifies a password that is used for spectators to connect to your server.

     

    Sv_stopspeed 100

     

    Sets the stop speed at which the server considers a player beginning to stop.

     

    Sv_timeout 65

     

    Sets the timeout inactivity limit

     

    Sv_unlag 1

     

    Enable server lag compensation – When running a net server you should leave this on.

     

    Sv_unlagpush 0

     

    Enables server push lag compensation.

     

    Sv_unlagsamples 1

     

    Sets the number of client ping samples to average together to determine the ping the server try to compensate for (if sv_unlag 1)

     

    Sv_wateraccelerate 10

     

    Sets in water acceleration

     

    Sv_wateramp 0

     

    Enable/disable amplified waves in the water (needs clients to set gl_wateramp)

     

    Sv_waterfriction 1

     

    Set friction underwater

     

    Sv_zmax 4096

     

    Sets max zbuffer size.

     

     

     

     

     

     

    !TIP To set a command to it's default setting simply don't put it in your server.cfg

     

     

    1. Kicking & Banning players

     

    If you have people on your server causing problems use the following commands to help you find, setup and ban the person perminatley from your server.

     

    Firstly, In your TFC folder on the server create the following 2 empty text files:

     

    • Banned.cfg
    • Listip.cfg

     

    Create them on your computer and then upload them to your servers TFC folder. These are your empty steamid and ip banlist files.

    Now in your server.cfg file add the following 2 lines:

     

    • Exec banned.cfg
    • Exec listip.cfg

     

    Restart your server (by typing quit in the console) and you will now have an active id and ip banlist. This will execut the banlists when the server loads up making it now active.

     

    !TIP To avoid slow map changes try adding these lines to your hlds startup line ie "-console -game tfc +maxplayers 18 +map 2fort -port 27015 +exec banned.cfg +exec listip.cfg"

     

    The following commands can now be used in the console to control the players.

     

    Addip <min> <ipaddr>

     

    Adds an IP address to the servers filterban (0 mins = permanent)

     

    Banid <min> <uid> [kick]

     

    Bans the player for X number of minutes (0=permanent) add kick at the end to kick the person from the server as well.

     

    Kick <name/userid/uniqueid>

     

    Kick a player from the server , use users to get a list of userid and uniqueids on your server.

     

    User <name|id>

     

    Lists users model, colours, name, rate etc.

     

    Users

     

    Lists users names, id’s for all clients connected to the server. UserID’s are assigned numerically as they join the server  but UniqueIDs are the clients unique steam id number specifically to them.

     

    Writeid

     

    Writes a list of permanently banned id’s to the banned.cfg, if you do not enter this after you have banned someone in the console it will not be written to the server and remembered after a server is restarted.

     

    Writeip

     

    Writes IP bans permanently to the listip.cfg

     

     

    !TIP If you enter a steamid ban you need to then type writeid to save it to the banlist, and likewise writeip if you added an ip ban.  If you dont do this the next time the server is restarted the ban wont be saved.

    This however is a good way of doing a temp ban as when the server is restarted it will be wiped.

     

     

    Changing Maps 

     

    Changelevel <map>

     

    Load the map on the server without disconnecting clients from the server

     

    Changelevel2 <map>

     

    Load the map on the server and continue the current game without disconnecting the clients

     

    Map <mapname>

     

    Loads the map on the server, will disconnect all users on the server.

     

     

     

    Player Class Restrictions

     

    At times you may wish to restrict certain player classes, this can be done either by the server.cfg to set the restrictions each time or during play by manually entering the command

     

    These commands specify how many players of one particular class can be used per team, if you set cr_sniper 2 that limits each team to just 2 snipers.  Cr_sniper –1 will disable that class completely, cr_sniper 0 sets the class unlimited.

     

    If entered during play the command wont be active until that class count actively drops.  Ie if you have 4 snipers on a team and you set cr_sniper 2 the 4 snipers will still be able to play.  If they leave or change class then no one else will be able to take this class untill the count drops below 2.

     

    Cr_demoman 0

     

    TFC Demoman class restriction

     

    Cr_engineer 0

     

    TFC Engineer class restriction

     

    Cr_hwguy 0

     

    TFC Hwguy class restriction

     

    Cr_medic 0

     

    TFC Medic class restriction

     

    Cr_pyro 0

     

    TFC Pyro class restriction

     

    Cr_random 0

     

    TFC Random class restriction

     

    Cr_scout 0

     

    TFC Scout class restriction

     

    Cr_sniper 0

     

    TFC Sniper class restriction

     

    Cr_soldier 0

     

    TFC Soldier class restriction

     

    Cr_spy 0

     

    TFC Spy class restriction

     

     

     

    Multiplayer & Templay settings

     

    These settings will set some basic teamplay settings for your TFC server and should be included in your server.cfg file.

     

    Mp_allowmonsters 0

     

    Enables or disable monsters in multiplayer mode

     

    Mp_autocrosshair 0

     

    Controls Aiming assistance for clients

     

    Mp_decals 2000

     

    Sets maximum number of decals to display in multiplayer (lower will increase performance but blast marks and decals will disappear sooner)

     

    Mp_falldamage 0

     

    Enables or disables realistic fall damage

     

    Mp_flashlight 0

     

    Enables or disables flashlight for clients, Should be off unless specific maps need it (such as escape and fun maps)

     

    Mp_footsteps 1

     

    Controls footstep sounds

     

    Mp_forcespawn 1

     

    Let's you specify automatic forced respawns for players

     

    Mp_fraglimit

     

    Sets the number of frags by any single player between map changes.

     

    Mp_Friendlyfire 0

     

    Enable/Disable friendly fire in mp_teamplay

     

    Mp_logfile 1

     

    Enable logging during multiplayer

     

    Mp_timelimit 30

     

    Sets the time in minutes between map changes (how long the current map will play until the next map in the mapcycle is loaded)

     

    Mp_weaponstay 0

     

    Enable permanent weapons

     

    Mp_teamplay 1301

     

    See below

     

     

     

    The Mp_teamplay command sets up the teamplay settings for TFC, there are a number of settings that can be set in this, to make it easy I have listed some common ones which you can use.

     

    Mp_teamplay 1 = TP is on (must be set)

    Mp_teamplay 11 = TP on with Friendly Firee

    Mp_teamplay 21 = TP is on standard setting, no FF health stripping but FF armor strip on.

    Mp_teamplay 1301 = TP is on, No friendly fire health or armor stripping from weapons or nades.

    Mp_teamplay 175381 = TP is on, Mirror Damage On.

     

    These numbers are made up by adding together the specific mp_teamplay commands for example 1+4+16+256+1024=1301

     

    1 = Teamplay on (this should always be set)

    2 = Teammates take half-damage from direct weaponfire

    4 = Teammates take no damage from direct weaponfire

    8 = Teammates take half-damage from explosive weaponfire

    16 = Teammates take no damage from explosive weaponfire

    128 = Teammates armor takes half-damage from direct weaponfire

    256 = Teammates armor takes no damage from direct weaponfire

    512 = Teammates armor takes half-damage from explosive weaponfire

    1024 = Teammates armor takes no damage from explosive weaponfire

    2048 = YOU take half damage from hitting Teammates with direct weaponfire

    4096 = YOU take no damage from hitting Teammates with direct weaponfire

    8192 =  YOU take half damage from hitting Teammate with explosive weaponfire

    16384 = YOU take no damage from hitting Teammate with explosive weaponfire

    32768 = YOUR armor takes half damage from hitting Teammate with direct weaponfire

    65536 = YOUR armor takes no damage from hitting Teammate with direct weaponfire

    131072 = YOUR armor takes half damage from hitting Teammate with explosive weaponfire

    262144 = YOUR armor takes no damage from hitting Teammate with explosive weaponfire

     

     

    1. TFC Specific CVARS & Clanwar settings
    2.  
    3. These settings will help you setup any special TFC only commands in particular those used in clanwars.

     

    Tfc_autoban_kills

     

    Sets maximum number of team kills before use is banned from the server

     

    Tfc_autokick_kills

     

    Sets maximum number of team kills before user is kicked from server

     

    Tfc_autokick_time

     

    Sets timeout inactivity limit

     

    Tfc_autoteam 0

     

    Enable/Disable forced auto-team selection

     

    Tfc_blance_scores 0

     

    Automatic Team Balancing by score – weakens the winning team to give advantage to the losing side.

     

    Tfc_balance_teams 0

     

    Automatic Team Balancing by teams – if one team has more players advantage is giving to the smaller team.

     

    Tfc_birthday 0

     

    Enable “birthday” mode (presents instead of grenades)

     

    Tfc_clanbattle

     

    Enable TFC Clan battle  mode

     

    Tfc_clanbattle_ceasefire 0

     

    Enables Ceasefire mode if tfc_clanbattle = 1

     

    Tfc_clanbattle_locked 0

     

    Enabled locked play mode if tfc_clanbattle = 1

     

    Tfc_clanbattle_prematch 0

     

    Enable prematch mode if tfc_clanbattle = 1

     

    Tfc_fragscoring

     

    Enable inclusion of frags in team scores

     

    Tfc_respawndelay

     

    Set respawn delay for TFC games

     

    Tfc_spam_limit

     

    Set number of messages per time (minute) that will cause spam penalty

     

    Tfc_spam_penalty1

     

    Set spam penalty level 1

     

    Tfc_spam_penalty2

     

    Set spam penalty level 2