> For the complete documentation index, see [llms.txt](https://cs2ctf.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cs2ctf.gitbook.io/docs/getting-started/configuration.md).

# Configuration

Configuration is done via console variables. After a map with CTF enabled is loaded, it tries to execute the `gamemode_ctf.cfg` file in your gameservers `/game/cso/cfg` directory. CS2CTF ships with a default configuration, but you are free to adjust it based on your needs.

In addition to the already existing convars, we also added a few new ones for additional game mode configuration

`mp_scorelimit_ctf` - Default: 5\
The amount of flags a team needs to capture to win the match

`mp_respawn_delay_ctf` - Default: 8\
The time in seconds which a player respawns after he died

`mp_flag_return_delay` - Default: 8\
The time in seconds a flag needs to return to base after a player who carried a flag dropped it

`mp_flag_return_on_touch` - Default: 0\
If set to 1, instead of the flag automatically returning after a set time it will only return if a player of the same team grabs it

`mp_flag_base_has_beam` - Default: 1\
Shows a beam at the flags base location. This is especially useful for maps which do not have native CTF support and both flags are taken, as the base would in theory be invisible. Set to 0 to disable it.

`ctf_enabled` - Default 0\
If set to 1 it will enable the CTF gamemode after a  map reload

### Using a timelimit in addition to a scorelimit

There is currently no support for using a timelimit in addition. If the timelimit or mp\_roundtime\_\* variables are adjusted they will simply run into 00:00 and keep going. Support may be added in the future.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
