# komar1911/c4usmultihack-metin2 architecture

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

- Interactive diagram: https://gitdiagram.com/komar1911/c4usmultihack-metin2
- Repository: https://github.com/komar1911/c4usmultihack-metin2

## Overview

EngineX-Pro is a Windows DLL cheat for Metin2, advertising combat, fishing, and packet-based player manipulation. The likely user workflow is to load the DLL into the game, configure or activate features through its overlay, and have hooks/features interact with game state or network packets. The excerpts confirm packet handling and authentication address setup, but do not expose the feature-to-hook wiring or overlay dispatch, so those links are marked unverified rather than inferred as calls.

Main entry points: [`EngineX-Pro/PacketHandler.cpp`](https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/PacketHandler.cpp) (Packet Handler), [`EngineX-Pro/MainCore.cpp`](https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/MainCore.cpp) (Main Core), [`EngineX-Pro/MainForm.cpp`](https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/MainForm.cpp) (Main Overlay), [`EngineX-Pro/HookCore.cpp`](https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/HookCore.cpp) (Hook Core)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["DLL Runtime"]
  node_entry["DLL Entry<br/>[dllmain.cpp]"]
  node_core["Main Core<br/>[MainCore.cpp]"]
  node_globals["Game Globals<br/>[Globals.h]"]
  node_settings["Settings<br/>[Settings.h]"]
end

subgraph group_interface["Overlay Interface"]
  node_ui["Main Overlay<br/>[MainForm.cpp]"]
  node_imgui["ImGui Widgets<br/>[imgui_widgets.cpp]"]
  node_renderer["DirectX Renderer<br/>[CRender.cpp]"]
end

subgraph group_features["Game Features"]
  node_combat["Deadly Cloud<br/>[GameFunctions.h]"]
  node_fishing["Instant Fishing<br/>[Fish.h]"]
  node_sync["Sync Manipulation<br/>[PacketSniffer.h]"]
  node_python["Python Integration<br/>[PythonExtension.h]"]
end

subgraph group_network["Network and Hooks"]
  node_hooks["Hook Core<br/>[HookCore.cpp]"]
  node_packet["Packet Handler<br/>[PacketHandler.cpp]"]
  node_networkio["Network I/O<br/>[Network.cpp]"]
  node_sniffer["Packet Sniffer<br/>[PacketSniffer.h]"]
  node_memhooks["Hook Mechanisms<br/>[VEH.hpp]"]
end

node_user(("Player"))
node_game["Metin2 Client"]

node_user -.->|"loads DLL"| node_entry
node_entry -.->|"dispatches"| node_core
node_user -.->|"configures features"| node_ui
node_ui -.->|"renders with"| node_imgui
node_ui -.->|"draws through"| node_renderer
node_core -.->|"installs hooks"| node_hooks
node_hooks -.->|"intercepts calls"| node_game
node_packet -->|"reads packets"| node_networkio
node_packet -->|"sends packets"| node_networkio
node_packet -->|"sets server state"| node_globals
node_core -.->|"processes packets"| node_packet
node_sniffer -.->|"observes packets"| node_packet
node_combat -.->|"affects combat"| node_game
node_fishing -.->|"automates fishing"| node_game
node_sync -.->|"manipulates players"| node_game
node_python -.->|"extends scripting"| node_game
node_memhooks -.->|"provides mechanisms"| node_hooks

click node_entry "https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/dllmain.cpp"
click node_core "https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/MainCore.cpp"
click node_globals "https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/Globals.h"
click node_settings "https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/Settings.h"
click node_ui "https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/MainForm.cpp"
click node_imgui "https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/ImGui/imgui_widgets.cpp"
click node_renderer "https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/CRender.cpp"
click node_hooks "https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/HookCore.cpp"
click node_packet "https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/PacketHandler.cpp"
click node_networkio "https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/Network.cpp"
click node_sniffer "https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/PacketSniffer.h"
click node_combat "https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/GameFunctions.h"
click node_fishing "https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/Fish.h"
click node_sync "https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/PacketSniffer.h"
click node_python "https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/PythonExtension.h"
click node_memhooks "https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/VEH.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_entry,node_core,node_globals,node_settings,node_game toneBlue
class node_ui,node_imgui,node_renderer toneAmber
class node_combat,node_fishing,node_sync,node_python toneMint
class node_hooks,node_packet,node_networkio,node_sniffer,node_memhooks toneRose
class node_user toneIndigo
```

## Components

### DLL Runtime

- [DLL Entry](https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/dllmain.cpp): `EngineX-Pro/dllmain.cpp`
- [Main Core](https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/MainCore.cpp): `EngineX-Pro/MainCore.cpp`
- [Game Globals](https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/Globals.h): `EngineX-Pro/Globals.h`
- [Settings](https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/Settings.h): `EngineX-Pro/Settings.h`

### Overlay Interface

- [Main Overlay](https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/MainForm.cpp): `EngineX-Pro/MainForm.cpp`
- [ImGui Widgets](https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/ImGui/imgui_widgets.cpp): `EngineX-Pro/ImGui/imgui_widgets.cpp`
- [DirectX Renderer](https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/CRender.cpp): `EngineX-Pro/CRender.cpp`

### Game Features

- [Deadly Cloud](https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/GameFunctions.h): `EngineX-Pro/GameFunctions.h`
- [Instant Fishing](https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/Fish.h): `EngineX-Pro/Fish.h`
- [Sync Manipulation](https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/PacketSniffer.h): `EngineX-Pro/PacketSniffer.h`
- [Python Integration](https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/PythonExtension.h): `EngineX-Pro/PythonExtension.h`

### Network and Hooks

- [Hook Core](https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/HookCore.cpp): `EngineX-Pro/HookCore.cpp`
- [Packet Handler](https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/PacketHandler.cpp): `EngineX-Pro/PacketHandler.cpp`
- [Network I/O](https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/Network.cpp): `EngineX-Pro/Network.cpp`
- [Packet Sniffer](https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/PacketSniffer.h): `EngineX-Pro/PacketSniffer.h`
- [Hook Mechanisms](https://github.com/komar1911/c4usmultihack-metin2/blob/main/EngineX-Pro/VEH.hpp): `EngineX-Pro/VEH.hpp`

### Other components

- **Player**
- **Metin2 Client**

## Connections

- Player → DLL Entry: loads DLL
- DLL Entry → Main Core: dispatches
- Player → Main Overlay: configures features
- Main Overlay → ImGui Widgets: renders with
- Main Overlay → DirectX Renderer: draws through
- Main Core → Hook Core: installs hooks
- Hook Core → Metin2 Client: intercepts calls
- Packet Handler → Network I/O: reads packets (evidence: `EngineX-Pro/PacketHandler.cpp`)
- Packet Handler → Network I/O: sends packets (evidence: `EngineX-Pro/PacketHandler.cpp`)
- Packet Handler → Game Globals: sets server state (evidence: `EngineX-Pro/PacketHandler.cpp`)
- Main Core → Packet Handler: processes packets
- Packet Sniffer → Packet Handler: observes packets
- Deadly Cloud → Metin2 Client: affects combat
- Instant Fishing → Metin2 Client: automates fishing
- Sync Manipulation → Metin2 Client: manipulates players
- Python Integration → Metin2 Client: extends scripting
- Hook Mechanisms → Hook Core: provides mechanisms
