1fx Mod Download & Installation
1fx Mod Download & Installation
1fx 0.82b for Players
1fx. Client Additions, what are they?
The client additions that come with 1fx. Mod are built to extend the functionality of the base system or existing client mods. That means existing client mods can also use the new functionality provided.
There are quite a few notable features:
Broad Windows compatibility – compatible with Windows versions as low as Windows 2000. No extra redist packages or other programs are needed on the client PC.
Can be downloaded directly from the server without any other manual tweaks, only one .pk3 package is required in order to use the additions. The .pk3 is only ~400 KB. The rest is all handled automatically.
Provided as DLL instead of QVM. In general this means a boost in FPS of about 25-50% without any other tweaks.
Extra grenades embedded in code. This means compatibility with the extra v1.00 gametypes Hide&Seek and Zombies. Those are also automatically enabled on servers that enforce the new Client Additions.
HTTP downloader. The server can specify extra pk3 files to be downloaded from any webhost. Only .pk3 files are allowed, other file types won’t be downloaded automatically. Servers can also specify a maximum download speed so no other services on the host are affected. Clients can use the ESCAPE key to cancel the HTTP downloader.
Self updating system. The Client Additions perform checks upon initialization, and will update directly from 1fxmod.org if an update is available. This ensures future compatibility with new 1fx. Mod features and live bug fixes without any client interaction.
Third person allowed in servers that have g_allowThirdPerson set to 1. Clients can switch between view state using /3rd and /1st. If the server disables this, clients won’t be able to play in third person.
There are also a few drawbacks when using the 1fx. Client Additions:
Clients that don’t have the 1fx. Client Additions are automatically kicked from the server. There’s no way for them to properly play on a server that enforces these client additions. They are informed to turn on downloading and reconnecting.
Regular server downloads are disabled (the ones you receive when you set /cl_allowDownload to 1). Not really an issue since I can’t imagine anyone wanting to download anything directly off the server with HTTP downloads enabled.
Your regular settings are gone after an initial connect. For example, a 1fx. Server with ROCmod client and 1fx. Client Additions enabled will force the client to use the “1fx.rocmod” directory instead of “rocmod”. This is a restriction because you can’t have the regular files interfere with the 1fx. Client Additions embedded in the target mod. No worries, they won’t reset every time, just this one time when you join a 1fx. Mod server that enforces 1fx. Client Additions.
One additional reconnect when connecting to a server for the first time. This is necessary to download additional pk3s from the server and to update the 1fx. Client Additions if necessary. This only happens when switching from one server to another, a /reconnect won’t make you reconnect twice.
Any future 1fx. Mod server on Gold can make the necessary changes to enforce the clients to use the 1fx. Additions. These are the CVARs that you can set on the server:
g_enforce1fxAdditions: When set to 1, you enable the client additions on the server. This also enables Hide&Seek and Humans&Zombies and forces sv_allowDownload to 1 (with only the CoreUI package exposed to clients). If this is not set to 1, the other CVAR settings below have no effect.
g_httpRefPaks: A space delimited list of .pk3 files you want the client to download when connecting to your server. If pk3 files contain a space, don’t worry. The client automatically detects this and makes changes accordingly. Set to “none” to disable. It is recommended to exclude map packs because that way a client may download duplicates. Example: “A Bridge To Far.pk3 mp_northport.pk3 mp_office.pk3”
g_httpBaseURL: The base URL clients download maps from. This needs to be accessible from the web, or clients won’t be able to download any maps from your server. This needs a leading slash in order to correctly work. Set to “none” to disable. For example: “http://boeboe.uk.to/pub/maps/”
g_httpMaxSpeed: Maximum speed client is allowed to download from the base URL in KBps. Set to “0” to disable. Example: you’d set it to 5000 to enforce a maximum client download speed of 5 MB/s or 500 for 500 KB/s.
1fx. Client Additions only add a few essential things to the client:
/1st and /3rd commands. Use this to switch your view state. The client respects the 1fx. Mod server’s g_allowThirdPerson value. If this is set to 0, setting to /3rd has no effect.
Recommendation message for clients when in a Hide&Seek or Zombies gametype server and g_allowThirdPerson is set to 1 on the server. The message will state that playing in third person is recommended at every spawn.
Extra grenades for additional gametypes.
These additions are open source, you can find it here.
1fx for Servers
To install 1fx on your game server you first need to download and extract the OSP serverside files from the download below to your servers Soldier of Fortune 2’s root directory, usually via FTP.
Installing 1fx on your game server is a simple process, in most cases it just requires you to copy the mods serverside files to your game server’s root directory (where the SoF2 linux binary or windows exe is located).
Step 1 – Download & Extract 1fx Server Side files
Download the 1fx and extract the files to your PC.
Step 2 – Upload the 1fx directory via FTP
Upload the “1fx” directory to your servers Soldier of Fortune 2 home directory.
Step 3 – Set fs_game in the start script
In most instances Soldier of Fortune 2 game servers use a script to start and stop the server and define additional parameters to load.
Below is an example Linux start script for Soldier of Fortune 2 v1.03, to enable 1fx you need to edit or add the +set fs_game 1fx and +set vm_game 0 parameter to the game servers start script.
./sof2ded +set vm_game 0 +set dedicated 2 +set sv_pure 0 +set sv_punkbuster 0 +set net_ip 22.214.171.124 +set net_port 20199 +set fs_game 1fx +exec yourserverconfig.cfg &
Windows servers in most instances use a batch file (.bat) to start the server, if your game server is running on Windows then simply edit the .bat file and the fs_game parameter same as you would for Linux.
Step 4 – Restart your Game Server
Since you are changing the game version of your game server you need to restart the game server to load OSP.
Depending on where your game server is hosted this is either done via your host’s game server control panel, or via the SSH command line for those hosted on VPS or Dedicated machines.
1fx Admin Commands
Admin is a powerful tool used to help run a server, you should only give admin powers to people who you trust with the command:
\rcon addadmin #ID
1fx Mod allows 3 levels, from the lower level to the higher level they are B-Admin (Base Admin)- Admin (Regular Admin) and S-Admin (Server Admin).
1fx admin commands need to be entered into the console, with \adm before each command.
To get a players ID, press the TAB key to bring up players stats and id numbers or type \players in the console.
Open consol and type:
This command will show all the available admin command for the Admin level. This is the list for RCON user:
Lvl Commands Arguments Explanation
 !adr adminremove <line #> [Remove an Admin from the list]
 !pl plant <i/n> [Plant or unplant a player]
 !ro runover <i/n> [Push a player backwards]
 !st strip <i/n> [Remove weapons from a player]
 !ra removeadmin <i/n> [Remove an Admin]
 !et eventeams [Make the teams even]
 !b burn [Burn a player]
 !m mute <i/n> <time> [Mute/unmute a player]
 !s strip <i/n> [Remove weapons from a player]
 !p pop <i/n> [Pop/explodes a player]
 !e explode <i/n> [Pop/explodes a player]
 !ab addbadmin <i/n> [Add a Basic Admin]
 !sw swapteams [Swap the players from team]
 !sw swapteams [Swap the players from team]
 !sh shuffleteams [Mix the teams at random]
 !br broadcast <message> [Broadcast a message]
 !l lock <team> [Lock/unlock a team]
 !fl flash <i/n> [Flash a player]
 !pv passvote [Pass the running vote]
 !cv cancelvote [Cancel the running vote]
 !pa pause [Pause/resume the game]
 !k kick <i/n> [Kick a player]
 !u uppercut <i/n> [Launch a player upwards]
 !uc uppercut <i/n> [Launch a player upwards]
 !la launch <i/n> [Launch a player upwards]
 !adl adminlist [Show the Adminlist]
 !al adminlist [Show the Adminlist]
 !aa addadmin <i/n> [Add an Admin]
 !sl scorelimit <time> [Change the scorelimit]
 !tl timelimit <time> [Change the timelimit]
 !tl timelimit <time> [Change the timelimit]
 !rounds rounds <rounds> [Set the number of rounds]
 !r respawn <i/n> [Respawn a player]
 !rs respawn <i/n> [Respawn a player]
 !mr maprestart [Restart the current map]
 !mr map_restart [Restart the current map]
 !ft forceteam <i/n> <team> [Force a player to join a team]
 !nl nolower [Enable/Disable Nolower]
 !nr noroof [Enable/Disable Noroof]
 !nm nomiddle [Enable/Disable Nomiddle]
 !nw nowhole [Enable/Disable Nowhole]
 !nn nonades [Enable or disable nades]
 !ri respawninter <time> [Change the respawn interval]
 !rd realdamage [Toggle Real damage]
 !nd normaldamage [Toggle Normal damage]
 !gr gametyperest [Restart the current gametype]
 !acl addclan <i/n> [Add a clan member]
 !rc removeclan <i/n> [Remove a clan member]
 !rcl removeclanli <i/line #> [Remove a member from the list]
 !clr clanlistremo <i/line #> [Remove a member from the list]
 !cl clanlist [Show the clanlist]
 !cm compmode [Toggles Competition Mode]
 !bl banlist [Shows the current banlist]
 !ba ban <i/n> <reason> [Ban a player]
 !ub unban <ip/line #> [Unban a banned IP (player)]
 !uba unban <ip/line #> [Unban a banned IP (player)]
 !cva clanvsall [Clan versus other players-mode]
 !g gametype <gametype> [Switch to the given gametype]
 !gt gametype <gametype> [Switch to the given gametype]
 !map map <map name> [Switch to the specified map]
 !altmap altmap <map name> [Switch to the specified altmap]
 !devmap devmap <map name> [Switch to the specified devmap]
 !mc mapcycle [Switch to the next-defined map]
 !ff friendlyfire [Enables/disables friendly fire]
 !rn rename <i/n> <name> [Renames a players’ name]
 !swi switch <i/n> [Switch one to the opposite team]
 !3rd 3rd [Toggles Thirdperson on or off]
 !third third [Toggles Thirdperson on or off]
 !wp weapon [Toggles weapon on or off]
 !aca anticamp [Toggles anticamp on or off]
 !em endmap [Requests map to end]
 !ml maplist [Lists all available maps]
 !as addsadmin <i/n> [Add a Server Admin]
 !sbl subnetbanlis [Shows the current subnetbanlist]
 !sb subnetban <i/n> <reason> [Ban a players’ subnet]
 !sbu subnetunban <ip/line #> [Unban a banned subnet]
 !su subnetunban <ip/line #> [Unban a banned subnet]
 B-Admin  Admin  S-Admin  RCON
You can also create the custom commands, navigate via FTP to the files folder and you’ll find this file:
open it and add the command like:
// You can put your custom commands here.
Command "addbot" // The command for /adm.
ShortCommand "!addbot" // The shortcut command for in chat.
Broadcast "Adding a bot!" // The broadcast.
Description "Adds a bot to the game" // The info in /adm
AdminLevel "4" // Admin level required to execute this command.
Action "addbot %arg1" // The action you would normally do in RCON.
Message "Adding bot to the game!" // The [Info] message in the console.
Command “kickbots” // The command for /adm.
ShortCommand “!kickbots” // The shortcut command for in chat.
Broadcast “Kicking all bots!” // The broadcast.
Description “Kicks all bots from the game” // The info in /adm
AdminLevel “4” // Admin level required to execute this command.
Action “kick allbots” // The action you would normally do in RCON.
Message “Kicking all bots from the game!” // The [Info] message in the console.