Installing Metamod:Source 2.0 on Counter-Strike 2

Download the needed file from the original website:

Metamod:Source

If the Counter-Strike process is running then first kill it. When the Counter-Strike process isn't running then proceed to step 5.

1.  SSH to the server
2.  screen -r
3.  quit
4.  CTRL + c

5.  cd ~/cs2-ds/game/csgo/
6.  wget https://styx.geforce.nl/~mb/files/games/mmsource-2.0.0-git1256-linux.tar.gz
7.  tar -zxvf mmsource-2.0.0-git1256-linux.tar.gz
8.  rm mmsource-2.0.0-git1256-linux.tar.gz
9.  chmod -R 755 addons/

10. vi gameinfo.gi
11. add the line:

	Game    csgo/addons/metamod

between:

	Game_LowViolence        csgo_lv // Perfect World content override

        Game    csgo/addons/metamod

        Game    csgo

12. cd ~/cs2-ds/game/bin/linuxsteamrt64
13. ./cs2 -dedicated +ip 192.168.1.95 -port 27016 -usercon +game_mode 0 +game_type 0 +map de_nuke -maxplayers 24 +sv_setsteamaccount <gslt>

        - You can leave out '+ip 192.168.1.95 -port 27016' when using default or change them to your needs

14. After a few seconds and some stuff in your console you should see the following:

        SV:  VAC secure mode is activated.
        Certificate expires in 47h45m at 1698842922 (current time 1698670994), will renew in 45h45m
        Host activate: Loading (de_dust2)

15. The server is running, you can check this bij typing 'status', you should see the following:

        ----- Status -----
        @ Current  :  game
        source   : console
        hostname : Geforce.nl Counter-Strike 2 - 1000FPS
        spawn    : 1
        version  : 1.39.6.5/13965 9842 secure  public
        steamid  : [G:1:10412051] (85568392930451475)
        udp/ip   : 192.168.1.95:27016 (public 127.0.0.1:27016)
        os/type  : Linux dedicated
        players  : 0 humans, 0 bots (0 max) (not hibernating) (unreserved)

16. You can check if Metamod is running by typing 'meta info', you should see the following:

        meta info
           Usage: meta info <id>
           meta version
            Metamod:Source Version Information
               Metamod:Source version 2.0.0-dev+1256
               Plugin interface version: 16:14
               SourceHook version: 5:5
               Loaded As: GameDLL (gameinfo.txt)
               Compiled on: Oct 26 2023 10:57:52
               Built from: https://github.com/alliedmodders/metamod-source/commit/6ee74f0
               Build ID: 1256:6ee74f0
               http://www.metamodsource.net/

17. CTRL a + d (detached)
18. You now have a fully functional Counter-Strike 2 server with Metamod. Game on!

Be aware, when you update CS2 via SteamCMD (app_update 730) your gameinfo.gi will be overwritten and you have to perform step 11 again.

At this time SourceMod is not working yet for Counter-Strike 2, work in progress...