Speeding up file downloads from Counter-Strike server

So that clients at the time of connecting to the Counter-Strike server can download files that they don’t have faster (new map, models, sounds, etc.), and by default the download speed from the server is limited and very low, you need to start a personal web server and copy all the necessary files to its root directory.

Continue reading “Speeding up file downloads from Counter-Strike server”

Installing Metamod on Linux

Metamod – a module that allows to extend the capabilities of the HLDS server, it intercepts calls to functions and transmits data to other plug-ins.

For example, I will install it on the server Counter-Strike 1.6.
Let’s go to the directory cstrike and create the necessary folders:

cd ~/hlds/cstrike
mkdir addons
cd addons
mkdir metamod
cd metamod
mkdir dlls
cd dlls

Download the archive from Metamod and unpack it:

wget https://ixnfo.com/wp-content/uploads/2016/12/metamod-p-1.21p37-linux_i686.tar.gz
tar -zxvf metamod-p-1.21p37-linux_i686.tar.gz

Create the plugins.ini file:

cd ~/hlds/cstrike/addons/metamod
touch plugins.ini

Open the file liblist.gam in the text editor (in the nano editor, press Ctrl+X to exit, y or n, then Enter to save or discard the changes:

cd ~/hlds/cstrike
nano liblist.gam

Add at the end of the line:

gamedll_linux "addons/metamod/dlls/metamod.so"

Done, Metamod is installed, the server can be rebooted.
In order to connect nosteam clients to the server, you can install Dproto as well.

A new version of Metamod can be found here http://metamod-p.sourceforge.net

How to record and watch the demo in Counter-Strike Global Offensive

To record a demo in CS:GO, you need to open the console with the ~ key during the game, it is near the Esc key.
If the console does not open, then it probably is disabled in the settings, open the game settings and select “Yes” where “Enable Developer Console (~)”.

Then, in the console window that opens, type the command (where NAME is any name of the demo):

record NAME

To stop demo recording in the console, type:

stop

The demo file will be saved to the directory with CS:GO, for example C:\Program Files\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\NAME.dem, other demos should be placed in the same directory.

To view demos, you need to open the player, for this, in the console, type:

demoui

Or:

demoui2

Or press the key combination Shift + F2.
Next, in the opened player, click “Load …” and select the demo.

During viewing, you can switch between players left/right keys, CTRL – opens the map, Spacebar will switch the camera to free flight mode.