# slynxcz/gamefixes_mm architecture

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

- Interactive diagram: https://gitdiagram.com/slynxcz/gamefixes_mm
- Repository: https://github.com/slynxcz/gamefixes_mm

## Overview

GameFixes_mm is a Metamod:Source plugin that applies independently configurable fixes to a CS2 server. An administrator enables fix blocks in game_fixes.ini; the plugin loads each enabled fix, then forwards shared server lifecycle, frame, and event-manager callbacks to them. Individual fixes hook or adjust engine behavior across crashes, session/player handling, and movement. The scheduler supports timed work, and SDK wrappers expose engine state. Fix-to-engine details are drawn from the README where implementation excerpts were unavailable.

Main entry points: [`src/plugin.cpp`](https://github.com/slynxcz/gamefixes_mm/blob/main/src/plugin.cpp) (Plugin lifecycle), [`src/fixes/server_list_players.cpp`](https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/server_list_players.cpp) (Server-list players), [`src/scheduler.cpp`](https://github.com/slynxcz/gamefixes_mm/blob/main/src/scheduler.cpp) (Timer scheduler), [`src/fixes/rampbug.cpp`](https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/rampbug.cpp) (Rampbug fix)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Plugin runtime"]
  node_plugin["Plugin lifecycle<br/>[plugin.cpp]"]
  node_fix_contract["Fix interface<br/>[fix.h]"]
end

subgraph group_stability["Engine stability"]
  node_beam["Beam crash fix<br/>[beam_crash.cpp]"]
  node_hammer["Hammer ID fix<br/>[hammer_id.cpp]"]
  node_activator["Activator crash fix"]
end

subgraph group_movement["Movement fixes"]
  node_rampbug["Rampbug fix<br/>[rampbug.cpp]"]
  node_water["Water jump fix<br/>[water_jump.cpp]"]
end

subgraph group_session["Session and players"]
  node_slow_animation["Slow animation fix<br/>[slow_animation.cpp]"]
  node_demo["Demo recording fix<br/>[demo_record.cpp]"]
  node_steam_ban["GC ban whitelist<br/>[steam_ban.cpp]"]
  node_team_limit["Team limit fix<br/>[team_limit.cpp]"]
  node_sv_cheats["Noclip reset<br/>[sv_cheats.cpp]"]
  node_workshop_voice["Workshop voice fix<br/>[workshop_voice.cpp]"]
  node_server_players["Server-list players"]
end

subgraph group_support["Runtime support"]
  node_scheduler["Timer scheduler<br/>[scheduler.cpp]"]
  node_player_sdk["Player SDK access"]
  node_movement_sdk["Movement SDK access"]
  node_client_sdk["Server client access"]
end

node_admin(("Server administrator"))

node_admin -->|"configures"| node_plugin
node_plugin -->|"instantiates"| node_fix_contract
node_plugin -->|"loads enabled"| node_beam
node_plugin -->|"loads enabled"| node_hammer
node_plugin -->|"loads enabled"| node_activator
node_plugin -->|"loads enabled"| node_rampbug
node_plugin -->|"loads enabled"| node_water
node_plugin -->|"loads enabled"| node_slow_animation
node_plugin -->|"loads enabled"| node_demo
node_plugin -->|"loads enabled"| node_steam_ban
node_plugin -->|"loads enabled"| node_team_limit
node_plugin -->|"loads enabled"| node_sv_cheats
node_plugin -->|"loads enabled"| node_workshop_voice
node_plugin -->|"loads enabled"| node_server_players
node_plugin -->|"ticks"| node_scheduler
node_slow_animation -->|"schedules checks"| node_scheduler
node_server_players -->|"schedules updates"| node_scheduler
node_rampbug -->|"reads movement state"| node_movement_sdk
node_water -->|"hooks movement"| node_movement_sdk
node_server_players -->|"reads player data"| node_player_sdk
node_workshop_voice -->|"rewrites voice messages"| node_client_sdk

click node_plugin "https://github.com/slynxcz/gamefixes_mm/blob/main/src/plugin.cpp"
click node_fix_contract "https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/fix.h"
click node_beam "https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/beam_crash.cpp"
click node_hammer "https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/hammer_id.cpp"
click node_activator "https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/input_activator_crash.cpp"
click node_rampbug "https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/rampbug.cpp"
click node_water "https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/water_jump.cpp"
click node_slow_animation "https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/slow_animation.cpp"
click node_demo "https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/demo_record.cpp"
click node_steam_ban "https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/steam_ban.cpp"
click node_team_limit "https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/team_limit.cpp"
click node_sv_cheats "https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/sv_cheats.cpp"
click node_workshop_voice "https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/workshop_voice.cpp"
click node_server_players "https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/server_list_players.cpp"
click node_scheduler "https://github.com/slynxcz/gamefixes_mm/blob/main/src/scheduler.cpp"
click node_player_sdk "https://github.com/slynxcz/gamefixes_mm/blob/main/src/sdk/CBasePlayerController.h"
click node_movement_sdk "https://github.com/slynxcz/gamefixes_mm/blob/main/src/sdk/CCSPlayer_MovementServices.h"
click node_client_sdk "https://github.com/slynxcz/gamefixes_mm/blob/main/src/sdk/CServerSideClient.h"

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_plugin,node_fix_contract toneBlue
class node_beam,node_hammer,node_activator toneAmber
class node_rampbug,node_water,node_admin toneMint
class node_slow_animation,node_demo,node_steam_ban,node_team_limit,node_sv_cheats,node_workshop_voice,node_server_players toneRose
class node_scheduler,node_player_sdk,node_movement_sdk,node_client_sdk toneIndigo
```

## Components

### Plugin runtime

- [Plugin lifecycle](https://github.com/slynxcz/gamefixes_mm/blob/main/src/plugin.cpp): `src/plugin.cpp`
- [Fix interface](https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/fix.h): `src/fixes/fix.h`

### Engine stability

- [Beam crash fix](https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/beam_crash.cpp): `src/fixes/beam_crash.cpp`
- [Hammer ID fix](https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/hammer_id.cpp): `src/fixes/hammer_id.cpp`
- [Activator crash fix](https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/input_activator_crash.cpp): `src/fixes/input_activator_crash.cpp`

### Movement fixes

- [Rampbug fix](https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/rampbug.cpp): `src/fixes/rampbug.cpp`
- [Water jump fix](https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/water_jump.cpp): `src/fixes/water_jump.cpp`

### Session and players

- [Slow animation fix](https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/slow_animation.cpp): `src/fixes/slow_animation.cpp`
- [Demo recording fix](https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/demo_record.cpp): `src/fixes/demo_record.cpp`
- [GC ban whitelist](https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/steam_ban.cpp): `src/fixes/steam_ban.cpp`
- [Team limit fix](https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/team_limit.cpp): `src/fixes/team_limit.cpp`
- [Noclip reset](https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/sv_cheats.cpp): `src/fixes/sv_cheats.cpp`
- [Workshop voice fix](https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/workshop_voice.cpp): `src/fixes/workshop_voice.cpp`
- [Server-list players](https://github.com/slynxcz/gamefixes_mm/blob/main/src/fixes/server_list_players.cpp): `src/fixes/server_list_players.cpp`

### Runtime support

- [Timer scheduler](https://github.com/slynxcz/gamefixes_mm/blob/main/src/scheduler.cpp): `src/scheduler.cpp`
- [Player SDK access](https://github.com/slynxcz/gamefixes_mm/blob/main/src/sdk/CBasePlayerController.h): `src/sdk/CBasePlayerController.h`
- [Movement SDK access](https://github.com/slynxcz/gamefixes_mm/blob/main/src/sdk/CCSPlayer_MovementServices.h): `src/sdk/CCSPlayer_MovementServices.h`
- [Server client access](https://github.com/slynxcz/gamefixes_mm/blob/main/src/sdk/CServerSideClient.h): `src/sdk/CServerSideClient.h`

### Other components

- **Server administrator**

## Connections

- Server administrator → Plugin lifecycle: configures (evidence: `README.md`)
- Plugin lifecycle → Fix interface: instantiates (evidence: `src/plugin.cpp`)
- Plugin lifecycle → Beam crash fix: loads enabled (evidence: `src/plugin.cpp`)
- Plugin lifecycle → Hammer ID fix: loads enabled (evidence: `src/plugin.cpp`)
- Plugin lifecycle → Activator crash fix: loads enabled (evidence: `src/plugin.cpp`)
- Plugin lifecycle → Rampbug fix: loads enabled (evidence: `src/plugin.cpp`)
- Plugin lifecycle → Water jump fix: loads enabled (evidence: `src/plugin.cpp`)
- Plugin lifecycle → Slow animation fix: loads enabled (evidence: `src/plugin.cpp`)
- Plugin lifecycle → Demo recording fix: loads enabled (evidence: `src/plugin.cpp`)
- Plugin lifecycle → GC ban whitelist: loads enabled (evidence: `src/plugin.cpp`)
- Plugin lifecycle → Team limit fix: loads enabled (evidence: `src/plugin.cpp`)
- Plugin lifecycle → Noclip reset: loads enabled (evidence: `src/plugin.cpp`)
- Plugin lifecycle → Workshop voice fix: loads enabled (evidence: `src/plugin.cpp`)
- Plugin lifecycle → Server-list players: loads enabled (evidence: `src/plugin.cpp`)
- Plugin lifecycle → Timer scheduler: ticks (evidence: `src/plugin.cpp`)
- Slow animation fix → Timer scheduler: schedules checks (evidence: `src/fixes/slow_animation.cpp`)
- Server-list players → Timer scheduler: schedules updates (evidence: `src/fixes/server_list_players.cpp`)
- Rampbug fix → Movement SDK access: reads movement state (evidence: `src/fixes/rampbug.cpp`)
- Water jump fix → Movement SDK access: hooks movement (evidence: `README.md`)
- Server-list players → Player SDK access: reads player data (evidence: `src/fixes/server_list_players.cpp`)
- Workshop voice fix → Server client access: rewrites voice messages (evidence: `README.md`)
