# Installation

CS2CTF is a Counter Strike Sharp mod. As Counter Strike isn't the most mod-friendly game, we will need to install some requirements before we can get started gaming!

{% hint style="info" %}
[DatHost](https://dathost.net/) offers a direct integration for MetaMod and CounterStrikeSharp. If you host with them, or any other host which has integrations for mods, you can skip installing MetaMod and CounterStrikeSharp!
{% endhint %}

### Installing MetaMod

1. Download [MetaMod](https://www.sourcemm.net/downloads.php/?branch=master) for your operating system
2. Extract the `addons` directory into the /game/csgo folder
3. Inside `/game/csgo`, look for `gameinfo.gi` . Open that in a text editor!
4. Create a new line below `Game_LowViolence csgo_lv` and add `Game csgo/addons/metamod`

Your gameinfo.gi should look like this:

```
	FileSystem
	{
		SearchPaths
		{
			Game_LowViolence	csgo_lv // Perfect World content override
			Game	csgo/addons/metamod

			Game	csgo
			Game	csgo_imported
			Game	csgo_core
			Game	core
			
			// ...

```

5. Restart your gameserver!
6. Once the server is restarted, type `meta list` into the game server console and see if it is loaded correctly!

### Installing CounterStrikeSharp

1. Choose your release from the [CSS GitHub Repository](https://github.com/roflmuffin/CounterStrikeSharp/releases). If this is your first time installing (which we assume), take the counterstrikesharp-with-runtime zip for your operating system.
2. As with MetaMod, extract the contents and copy the `addons` directory into `/game/csgo`
3. Restart your game server!

If you did everything correctly and run the `meta list` command in your game server console again, it should show 1 plugin loaded!

```
meta list
Listing 1 plugin:
  [01] CounterStrikeSharp (v.X.X.X @ XXX) by Roflmuffin
```

### Installing MultiAddonManager

CS2CTF requires custom assets which includes the flags, textures and sound files. These need to be loaded from the workshop.

1. Download the [MultiAddonManager](https://github.com/Source2ZE/MultiAddonManager/releases) from their repository
2. The zip file contains 2 directories. Like with the previous ones copy the `addons` and the `cfg` directory into your `/game/csgo` folder
3. Go to the `/game/csgo/cfg/multiaddonmanager` directory and open the `multiaddonmanager.cfg` with a text editor
4. In the 2nd line with the `mm_extra_addons` key, add the workshop id `3580683430` into the quotes

Your line should look like this (Everything else after the // isn't required, thats just a comment):

```
mm_extra_addons "3580683430" // The workshop IDs of extra addons, separated by commas (e.g. "3090239773,3070231528")
```

5. Restart your game server once again. After restarting, type meta list into the console, this should now show the following:

```
Listing 2 plugins:
  [01] CounterStrikeSharp (v.X.X.X @ XXX) by Roflmuffin
  [02] MultiAddonManager (vX.X.X-XXX) by xen
```

Perfect! There is only one last step left!

### Installing CS2CTF

{% hint style="warning" %}
As CS2CTF is still in active development and not released yet, it is only available for developers. Once it's released into beta (soon), we will supply the required build!
{% endhint %}

1. Download the zip file from the [CS2CTF repository](https://github.com/fabiantomischka/cs2ctf/releases)
2. As with the other mods, unzip it into the `/game/csgo` folder and copy **all directories** in the zip file!
3. Restart your game server one final time (we don't have to do this, but just to make sure everything still works as intended)

Perfect! If you type `css_plugins list` into your game server console now, it should output the following

```
List of all plugins currently loaded by CounterStrikeSharp: 1 plugins loaded.
[#1:LOADED]: "Capture The Flag" (X.X.X) by Astinox
    Adds the Capture the Flag game mode to Counter Strike 2
```

Thats it! We are ready to game now. Head over to [Starting a game](/docs/getting-started/starting-a-game.md) to start your first game!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cs2ctf.gitbook.io/docs/getting-started/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
