# sezzyaep/cs2-offsets architecture

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

- Interactive diagram: https://gitdiagram.com/sezzyaep/cs2-offsets
- Repository: https://github.com/sezzyaep/cs2-offsets

## Overview

This repository is a Counter-Strike 2 offset dump, not an executable application: it publishes class, enum, and field-offset data in several language formats. The user workflow is to choose a module and format, then look up the value needed by an external tool. The files show static tables, not a runtime pipeline or calls between modules. Nodes group related dump files; the five core module families have separate format nodes. Other subsystem coverage is represented by module nodes. Their internal contents and relationships were not sampled, so no inter-module flow is inferred.

Main entry points: [`client_dll.cs`](https://github.com/sezzyaep/cs2-offsets/blob/main/client_dll.cs) (Client C#), [`client_dll.hpp`](https://github.com/sezzyaep/cs2-offsets/blob/main/client_dll.hpp) (Client C++), [`client_dll.py`](https://github.com/sezzyaep/cs2-offsets/blob/main/client_dll.py) (Client Python), [`client_dll.rs`](https://github.com/sezzyaep/cs2-offsets/blob/main/client_dll.rs) (Client Rust)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_core["Core game data"]
  node_anim_cs["Animation C&#35;"]
  node_anim_hpp["Animation C++"]
  node_anim_py["Animation Python"]
  node_anim_rs["Animation Rust"]
  node_anim_ts["Animation TypeScript"]
  node_client_cs["Client C&#35;<br/>[client_dll.cs]"]
  node_client_hpp["Client C++<br/>[client_dll.hpp]"]
  node_client_py["Client Python<br/>[client_dll.py]"]
  node_client_rs["Client Rust<br/>[client_dll.rs]"]
  node_client_ts["Client TypeScript<br/>[client_dll.ts]"]
  node_server_py["Server Python<br/>[server_dll.py]"]
  node_server_ts["Server TypeScript<br/>[server_dll.ts]"]
end

subgraph group_systems["Engine systems"]
  node_particles_cs["Particles C&#35;<br/>[particles_dll.cs]"]
  node_particles_hpp["Particles C++<br/>[particles_dll.hpp]"]
  node_particles_py["Particles Python<br/>[particles_dll.py]"]
  node_particles_rs["Particles Rust<br/>[particles_dll.rs]"]
  node_particles_ts["Particles TypeScript<br/>[particles_dll.ts]"]
  node_engine["Engine offsets<br/>[engine2_dll.hpp]"]
  node_network["Network offsets"]
  node_pulse["Pulse offsets"]
  node_physics["Physics offsets<br/>[vphysics2_dll.hpp]"]
end

subgraph group_graphics["Graphics and assets"]
  node_scenes["Scene offsets"]
  node_render["Render offsets"]
  node_world["World renderer"]
  node_materials["Material offsets"]
  node_resources["Resource offsets"]
end

subgraph group_runtime["Runtime services"]
  node_panorama["Panorama offsets<br/>[panorama_dll.hpp]"]
  node_sounds["Sound offsets"]
  node_audio["Steam Audio offsets<br/>[steamaudio_dll.hpp]"]
end

subgraph group_support["Shared definitions"]
  node_interfaces["Interface definitions<br/>[interfaces.hpp]"]
  node_schemas["Schema definitions<br/>[schemas.hpp]"]
  node_schema_system["Schema system"]
  node_netvars["Network variables<br/>[netvars.hpp]"]
end

node_user(("Offset consumer"))

node_user -.->|"looks up"| node_client_cs
node_user -.->|"looks up"| node_client_hpp
node_user -.->|"looks up"| node_client_py
node_user -.->|"looks up"| node_client_rs
node_user -.->|"looks up"| node_client_ts
node_user -.->|"looks up"| node_server_py
node_user -.->|"looks up"| node_server_ts

click node_anim_cs "https://github.com/sezzyaep/cs2-offsets/blob/main/animationsystem_dll.cs"
click node_anim_hpp "https://github.com/sezzyaep/cs2-offsets/blob/main/animationsystem_dll.hpp"
click node_anim_py "https://github.com/sezzyaep/cs2-offsets/blob/main/animationsystem_dll.py"
click node_anim_rs "https://github.com/sezzyaep/cs2-offsets/blob/main/animationsystem_dll.rs"
click node_anim_ts "https://github.com/sezzyaep/cs2-offsets/blob/main/animationsystem_dll.ts"
click node_client_cs "https://github.com/sezzyaep/cs2-offsets/blob/main/client_dll.cs"
click node_client_hpp "https://github.com/sezzyaep/cs2-offsets/blob/main/client_dll.hpp"
click node_client_py "https://github.com/sezzyaep/cs2-offsets/blob/main/client_dll.py"
click node_client_rs "https://github.com/sezzyaep/cs2-offsets/blob/main/client_dll.rs"
click node_client_ts "https://github.com/sezzyaep/cs2-offsets/blob/main/client_dll.ts"
click node_particles_cs "https://github.com/sezzyaep/cs2-offsets/blob/main/particles_dll.cs"
click node_particles_hpp "https://github.com/sezzyaep/cs2-offsets/blob/main/particles_dll.hpp"
click node_particles_py "https://github.com/sezzyaep/cs2-offsets/blob/main/particles_dll.py"
click node_particles_rs "https://github.com/sezzyaep/cs2-offsets/blob/main/particles_dll.rs"
click node_particles_ts "https://github.com/sezzyaep/cs2-offsets/blob/main/particles_dll.ts"
click node_server_py "https://github.com/sezzyaep/cs2-offsets/blob/main/server_dll.py"
click node_server_ts "https://github.com/sezzyaep/cs2-offsets/blob/main/server_dll.ts"
click node_engine "https://github.com/sezzyaep/cs2-offsets/blob/main/engine2_dll.hpp"
click node_network "https://github.com/sezzyaep/cs2-offsets/blob/main/networksystem_dll.hpp"
click node_pulse "https://github.com/sezzyaep/cs2-offsets/blob/main/pulse_system_dll.hpp"
click node_physics "https://github.com/sezzyaep/cs2-offsets/blob/main/vphysics2_dll.hpp"
click node_scenes "https://github.com/sezzyaep/cs2-offsets/blob/main/scenesystem_dll.hpp"
click node_render "https://github.com/sezzyaep/cs2-offsets/blob/main/rendersystemdx11_dll.hpp"
click node_world "https://github.com/sezzyaep/cs2-offsets/blob/main/worldrenderer_dll.hpp"
click node_materials "https://github.com/sezzyaep/cs2-offsets/blob/main/materialsystem2_dll.hpp"
click node_resources "https://github.com/sezzyaep/cs2-offsets/blob/main/resourcesystem_dll.hpp"
click node_panorama "https://github.com/sezzyaep/cs2-offsets/blob/main/panorama_dll.hpp"
click node_sounds "https://github.com/sezzyaep/cs2-offsets/blob/main/soundsystem_dll.hpp"
click node_audio "https://github.com/sezzyaep/cs2-offsets/blob/main/steamaudio_dll.hpp"
click node_interfaces "https://github.com/sezzyaep/cs2-offsets/blob/main/interfaces.hpp"
click node_schemas "https://github.com/sezzyaep/cs2-offsets/blob/main/schemas.hpp"
click node_schema_system "https://github.com/sezzyaep/cs2-offsets/blob/main/schemasystem_dll.hpp"
click node_netvars "https://github.com/sezzyaep/cs2-offsets/blob/main/netvars.hpp"

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_anim_cs,node_anim_hpp,node_anim_py,node_anim_rs,node_anim_ts,node_client_cs,node_client_hpp,node_client_py,node_client_rs,node_client_ts,node_server_py,node_server_ts toneBlue
class node_particles_cs,node_particles_hpp,node_particles_py,node_particles_rs,node_particles_ts,node_engine,node_network,node_pulse,node_physics toneAmber
class node_scenes,node_render,node_world,node_materials,node_resources toneMint
class node_panorama,node_sounds,node_audio toneRose
class node_interfaces,node_schemas,node_schema_system,node_netvars,node_user toneIndigo
```

## Components

### Core game data

- [Animation C#](https://github.com/sezzyaep/cs2-offsets/blob/main/animationsystem_dll.cs): `animationsystem_dll.cs`
- [Animation C++](https://github.com/sezzyaep/cs2-offsets/blob/main/animationsystem_dll.hpp): `animationsystem_dll.hpp`
- [Animation Python](https://github.com/sezzyaep/cs2-offsets/blob/main/animationsystem_dll.py): `animationsystem_dll.py`
- [Animation Rust](https://github.com/sezzyaep/cs2-offsets/blob/main/animationsystem_dll.rs): `animationsystem_dll.rs`
- [Animation TypeScript](https://github.com/sezzyaep/cs2-offsets/blob/main/animationsystem_dll.ts): `animationsystem_dll.ts`
- [Client C#](https://github.com/sezzyaep/cs2-offsets/blob/main/client_dll.cs): `client_dll.cs`
- [Client C++](https://github.com/sezzyaep/cs2-offsets/blob/main/client_dll.hpp): `client_dll.hpp`
- [Client Python](https://github.com/sezzyaep/cs2-offsets/blob/main/client_dll.py): `client_dll.py`
- [Client Rust](https://github.com/sezzyaep/cs2-offsets/blob/main/client_dll.rs): `client_dll.rs`
- [Client TypeScript](https://github.com/sezzyaep/cs2-offsets/blob/main/client_dll.ts): `client_dll.ts`
- [Server Python](https://github.com/sezzyaep/cs2-offsets/blob/main/server_dll.py): `server_dll.py`
- [Server TypeScript](https://github.com/sezzyaep/cs2-offsets/blob/main/server_dll.ts): `server_dll.ts`

### Engine systems

- [Particles C#](https://github.com/sezzyaep/cs2-offsets/blob/main/particles_dll.cs): `particles_dll.cs`
- [Particles C++](https://github.com/sezzyaep/cs2-offsets/blob/main/particles_dll.hpp): `particles_dll.hpp`
- [Particles Python](https://github.com/sezzyaep/cs2-offsets/blob/main/particles_dll.py): `particles_dll.py`
- [Particles Rust](https://github.com/sezzyaep/cs2-offsets/blob/main/particles_dll.rs): `particles_dll.rs`
- [Particles TypeScript](https://github.com/sezzyaep/cs2-offsets/blob/main/particles_dll.ts): `particles_dll.ts`
- [Engine offsets](https://github.com/sezzyaep/cs2-offsets/blob/main/engine2_dll.hpp): `engine2_dll.hpp`
- [Network offsets](https://github.com/sezzyaep/cs2-offsets/blob/main/networksystem_dll.hpp): `networksystem_dll.hpp`
- [Pulse offsets](https://github.com/sezzyaep/cs2-offsets/blob/main/pulse_system_dll.hpp): `pulse_system_dll.hpp`
- [Physics offsets](https://github.com/sezzyaep/cs2-offsets/blob/main/vphysics2_dll.hpp): `vphysics2_dll.hpp`

### Graphics and assets

- [Scene offsets](https://github.com/sezzyaep/cs2-offsets/blob/main/scenesystem_dll.hpp): `scenesystem_dll.hpp`
- [Render offsets](https://github.com/sezzyaep/cs2-offsets/blob/main/rendersystemdx11_dll.hpp): `rendersystemdx11_dll.hpp`
- [World renderer](https://github.com/sezzyaep/cs2-offsets/blob/main/worldrenderer_dll.hpp): `worldrenderer_dll.hpp`
- [Material offsets](https://github.com/sezzyaep/cs2-offsets/blob/main/materialsystem2_dll.hpp): `materialsystem2_dll.hpp`
- [Resource offsets](https://github.com/sezzyaep/cs2-offsets/blob/main/resourcesystem_dll.hpp): `resourcesystem_dll.hpp`

### Runtime services

- [Panorama offsets](https://github.com/sezzyaep/cs2-offsets/blob/main/panorama_dll.hpp): `panorama_dll.hpp`
- [Sound offsets](https://github.com/sezzyaep/cs2-offsets/blob/main/soundsystem_dll.hpp): `soundsystem_dll.hpp`
- [Steam Audio offsets](https://github.com/sezzyaep/cs2-offsets/blob/main/steamaudio_dll.hpp): `steamaudio_dll.hpp`

### Shared definitions

- [Interface definitions](https://github.com/sezzyaep/cs2-offsets/blob/main/interfaces.hpp): `interfaces.hpp`
- [Schema definitions](https://github.com/sezzyaep/cs2-offsets/blob/main/schemas.hpp): `schemas.hpp`
- [Schema system](https://github.com/sezzyaep/cs2-offsets/blob/main/schemasystem_dll.hpp): `schemasystem_dll.hpp`
- [Network variables](https://github.com/sezzyaep/cs2-offsets/blob/main/netvars.hpp): `netvars.hpp`

### Other components

- **Offset consumer**

## Connections

- Offset consumer → Client C#: looks up
- Offset consumer → Client C++: looks up
- Offset consumer → Client Python: looks up
- Offset consumer → Client Rust: looks up
- Offset consumer → Client TypeScript: looks up
- Offset consumer → Server Python: looks up
- Offset consumer → Server TypeScript: looks up
