# kriansa/cs-16-server architecture

> Architecture diagram of the GitHub repository kriansa/cs-16-server, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kriansa/cs-16-server
- Repository: https://github.com/kriansa/cs-16-server

## Overview

This repository packages a Docker-based Counter-Strike 1.6 dedicated server with Metamod, AMX Mod X, custom gameplay plugins, maps, and server configuration. The main operator workflow is to set up the environment, configure server and admin settings, start the server, and follow its logs. The README documents these capabilities but no source excerpts were provided, so implementation-level call and loading relationships are not asserted.

Main entry points: [`bin/server`](https://github.com/kriansa/cs-16-server/blob/master/bin/server) (Server control), [`cstrike/liblist.gam`](https://github.com/kriansa/cs-16-server/blob/master/cstrike/liblist.gam) (CS 1.6 server), [`bin/setup`](https://github.com/kriansa/cs-16-server/blob/master/bin/setup) (Environment setup), [`cstrike/addons/amxmodx/configs/users.ini`](https://github.com/kriansa/cs-16-server/blob/master/cstrike/addons/amxmodx/configs/users.ini) (Admin accounts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_operations["Server operations"]
  node_setup["Environment setup"]
  node_control["Server control"]
  node_docker["Docker environment"]
end

subgraph group_runtime["Game runtime"]
  node_hlds["CS 1.6 server<br/>[liblist.gam]"]
end

subgraph group_addons["Server addons"]
  node_metamod["Metamod"]
  node_amxx["AMX Mod X"]
  node_admin["Admin accounts<br/>[users.ini]"]
  node_gore["Gore plugin"]
  node_hpk["Ping kicker"]
  node_nade["Nade drops"]
  node_wallnade["Nade wall blocking"]
end

subgraph group_content["Maps and settings"]
  node_serverconfig["Server settings<br/>[server.cfg]"]
  node_cfgs["Config presets"]
  node_maps["Custom maps"]
end

node_operator(("Operator"))
node_client(("Game client"))

node_operator -->|"runs setup"| node_setup
node_operator -->|"controls server"| node_control
node_control -->|"starts server"| node_hlds
node_operator -->|"configures settings"| node_serverconfig
node_operator -->|"configures presets"| node_cfgs
node_operator -->|"adds credentials"| node_admin
node_hlds -.->|"serves game"| node_client

click node_setup "https://github.com/kriansa/cs-16-server/blob/master/bin/setup"
click node_control "https://github.com/kriansa/cs-16-server/blob/master/bin/server"
click node_docker "https://github.com/kriansa/cs-16-server/blob/master/Dockerfile"
click node_hlds "https://github.com/kriansa/cs-16-server/blob/master/cstrike/liblist.gam"
click node_metamod "https://github.com/kriansa/cs-16-server/tree/master/cstrike/addons/metamod"
click node_amxx "https://github.com/kriansa/cs-16-server/tree/master/cstrike/addons/amxmodx"
click node_admin "https://github.com/kriansa/cs-16-server/blob/master/cstrike/addons/amxmodx/configs/users.ini"
click node_serverconfig "https://github.com/kriansa/cs-16-server/blob/master/cstrike/server.cfg"
click node_cfgs "https://github.com/kriansa/cs-16-server/tree/master/cstrike/cfgs"
click node_maps "https://github.com/kriansa/cs-16-server/tree/master/cstrike/maps"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_setup,node_control,node_docker,node_client toneBlue
class node_hlds toneAmber
class node_metamod,node_amxx,node_admin,node_gore,node_hpk,node_nade,node_wallnade toneMint
class node_serverconfig,node_cfgs,node_maps toneRose
class node_operator toneIndigo
```

## Components

### Server operations

- [Environment setup](https://github.com/kriansa/cs-16-server/blob/master/bin/setup): `bin/setup`
- [Server control](https://github.com/kriansa/cs-16-server/blob/master/bin/server): `bin/server`
- [Docker environment](https://github.com/kriansa/cs-16-server/blob/master/Dockerfile): `Dockerfile`

### Game runtime

- [CS 1.6 server](https://github.com/kriansa/cs-16-server/blob/master/cstrike/liblist.gam): `cstrike/liblist.gam`

### Server addons

- [Metamod](https://github.com/kriansa/cs-16-server/tree/master/cstrike/addons/metamod): `cstrike/addons/metamod`
- [AMX Mod X](https://github.com/kriansa/cs-16-server/tree/master/cstrike/addons/amxmodx): `cstrike/addons/amxmodx`
- [Admin accounts](https://github.com/kriansa/cs-16-server/blob/master/cstrike/addons/amxmodx/configs/users.ini): `cstrike/addons/amxmodx/configs/users.ini`
- **Gore plugin**
- **Ping kicker**
- **Nade drops**
- **Nade wall blocking**

### Maps and settings

- [Server settings](https://github.com/kriansa/cs-16-server/blob/master/cstrike/server.cfg): `cstrike/server.cfg`
- [Config presets](https://github.com/kriansa/cs-16-server/tree/master/cstrike/cfgs): `cstrike/cfgs`
- [Custom maps](https://github.com/kriansa/cs-16-server/tree/master/cstrike/maps): `cstrike/maps`

### Other components

- **Operator**
- **Game client**

## Connections

- Operator → Environment setup: runs setup (evidence: `README.md`)
- Operator → Server control: controls server (evidence: `README.md`)
- Server control → CS 1.6 server: starts server (evidence: `README.md`)
- Operator → Server settings: configures settings (evidence: `README.md`)
- Operator → Config presets: configures presets (evidence: `README.md`)
- Operator → Admin accounts: adds credentials (evidence: `README.md`)
- CS 1.6 server → Game client: serves game
