Jump to content

SOF2 Cvars


Su-33

Recommended Posts

Soldier of Fortune 2 Multiplayer Test Cvar / Command List for Server Operators and Clients

Server Side cvars

g_gametype <name>

Sets the gametype that will be use on the next map change. The currently available options are “dm” (Deathmatch), “tdm” (Team Deathmatch), “elim” (Elimination), and “inf” (Infiltration).

g_availableweapons <list>

Sets the weapons that are available for use on the server. Each weapon is represented as a 0, 1, or 2. When a weapon is set to 0 it will not be available for use at all. When a weapon is set to 1 it will only be available for use in gametypes that have weapon pickups only (ie. Not in infiltration). When set to 2 the weapon will be available in all gametypes. The default value is “2222222222211” which is all weapons are on in deathmatch gametypes but the RPG-7 and MM1 are disabled in infiltration and elimination. The weapons are in the following order

· Knife

· M1911A

· USSOCOM

· M590 Shotgun

· Micro Uzi

· M3A1

· USAS12

· M4 Assault Rifle

· AK74 Assault Rifle

· MSG90A1 Sniper Rifle

· M60 Machinegun

· MM1 Grenade Launcher

· RPG-7

fraglimit < # >

Sets the number of kills a single person must reach before the map is cycled. 0 turns this feature off. Default is 20

timelimit < # >

Sets the amount of time (in minutes) before the map is cycled. 0 turns this feature off. Default is 0.

g_inactivity < # >

Sets the amount of time (in seconds) before an inactive client is disconnected from the server. 0 turns this feature off. Default is 0.

teamlimit < # >

Sets the number of rounds a team must win (for Infiltration / Elimination) before the map is cycled. 0 turns this feature off. Default is 8.

g_friendlyfire <#>

Enables or disables friendly fire. When set to 1 you will be able to shoot and kill people on your own team. When set to 0 you will not be able to injure your own teammates, but will still be able to injure yourself.

g_speed < # >

This sets the base movement speed. Default is 280.

sv_maxrate < # >

Sets the maximum rate a client can set on the server. This helps throttle outgoing bandwidth. 0 means that no limit is enforced. Default is 0.

sv_hostname < name >

This sets the name of your server which will appear in the client’s server browser or in GameSpy. Default is “hostname”.

sv_maxclients < # >

Sets the maximum number of players your server will support. Default is 8.

g_password < password >

If a non-blank password is specified, your server will then require the clients to enter a password to join. If you specify a blank password, “”, then you will remove this password. Default is “” (no password).

g_allowvote < # >

Determines whether or not you allow clients to call votes on your server. 0 will prohibit clients from calling votes, while 1 will allow voting. Default is 1 (allows voting).

g_voteduration < # >

Sets the number of seconds a vote will stay up, so that a client may cast a vote. Default is 60.

g_timeouttospec <#>

Number of seconds before a client which is not sending the server data is automatically sent into spectator mode. The default is 15 seconds.

g_roundtimelimit <#>

Sets the number of minutes before the end of a “round” in either infiltration or elimination. Default value is 5 minutes.

sv_mapcycle <filename>

Sets the filename which is used for map cycling. The default value is “default.mapcycle”.

g_suicidepenalty <#>

Sets the amount of score lost for killing yourself. The default value is –1.

g_teamkillpanelty <#>

Sets the amount of score lost for killing a teammate. The default value is –1.

sv_pure < # >

Sets your server into pure mode. Pure means that the data files on the client must exactly match the data files on the server. Any files which do not match up will be rejected. You must set this cvar from the command line (+set sv_pure 0) and not the console. Since the test does not allow any external data files, this cvar has no purpose. Default is 0 (not pure).

rconpassword < password >

If a non-blank password is specified, your server will have a remote console password. This allows the server operator to connect remotely to change server settings. If you specify a blank password, “”, then you will remove this password and disable remote console. Default is “” (disabled).

g_forcefollow <#>

Enables or disables the ability to fly around as a ghost. When set to 1 all clients will be forced to follow another client rather than having the option. When set to 0 all clients will have the freedom to fly around. Default value is 0.

g_followenemy <#>

Enables or disables the ability to follow an enemy when ghosting. When set to 1 you are allowed to follow enemies, when set to 0 you will only be allowed to follow your own teammates. Default value is 1.

Client Side cvars

com_maxfps < # >

Sets the maximum frame rate you will achieve. The main purpose of this cvar is to help throttle outgoing data to the client. Each frame that is rendered sends information to the server indicating your most recent movement information (as well as other information). Decreasing the rate will decrease the amount of traffic you send to the server, and thus, may lower your lag. Default is 85.

rate < # >

Sets the maximum number of characters you will receive from the server every second. If you are experiencing lag, you should try to reduce this. Default is 2500.

rconpassword < password>

Sets the password that you will be using to issue remote console commands. This password must match the password specified on the server. Default is “”.

cg_drawfps < # >

This cvar determines whether or not your frame rate is displayed in the upper right corner. A value of “1” will display the frame rate, while a value of “0” will not. Default is “0” (not displayed).

cg_lagometer < # >

This cvar determines whether or not the lag-o-meter graph is displayed in the bottom right corner. This graph is useful in determining if you have severe lag, if the server has performance issues, etc. A value of “1” will display the graph, while a value of “0” will not. Default is “0” (not displayed).

cg_chattime <#>

Sets the amount of time a chat message will stay on the screen. This value is in milliseconds and is defaulted to 6000 (or 6 seconds).

cg_voiceradio <#>

Enables or disables voice radio messages on the client. When set to 1 all radio messages from teammates will be heard. When set to 0 no radio messages will be heard. Default value is 1.

cg_voiceglobal <#>

Enables or disables global voice callouts such as “sniper”, or “fire in the hole”. When set to 1 you will hear all global voice callouts, when set to 0 you will hear none. Default value is 1.

cg_soundglobal <#>

Enables or disables global sounds such as the “briefcase taken” sound. When set to 1 you will hear all of the global sounds, when set to 0 you will hear none. The default value is 1.

cg_soundfrag <#>

Enables or disables the sound played when you kill someone. When set to 1 you will hear the sound, when set to 0 you will not. Default value is 1.

sys_noaltenter < # >

This cvar determines whether or not ALT-ENTER will toggle you between windowed mode and full screen mode. This cvar was introduced because some people prefer to bind game functions to both the ALT and ENTER keys, and on some occasions, they would inadvertently switch modes. A value of “1” will prevent you from toggling, while a value of “0” will allow you to. Default is “1” (no toggling).

Client Side Commands

rcon <command>

This will instruct the server you are connected on to issue the command specified. You must have the rconpassword cvar set prior to using this command.

weaptoggle <a> <b>

This client side command toggles between two classes of weapons. The available classes of weapons are “primary”, “secondary”, “pistol”, and “grenade”. For example, if you wanted to make a bind that would toggle between primary weapon and grenades you could do.

/bind <key> “weaptoggle primary grenade”

Or, if you wanted to make a bind that would bring up your primary weapon no matter what you could do.

/bind <key> “weaptoggle primary primary”

Link to comment
Share on other sites

  • 1 年 以后...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

访客
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 创建新的...