• 🎉 Hey there! I've just launched my brand new server voting platform — Metin2 P Servers 🚀

[C++] GM WallHack (ONLY Client source)

Member
Aug
Threads
1
23
20
3

AD: Mt2009 - Mobile & PC - 30 January 2026 CHECK THE PRESENTATION!

Guide to Implementing GM Movement Without Collisions in Metin2

1. Modify Locale_inc.h


Add the following define:

Hidden content
You need to reply to this thread in order to see this content.
2. Update ActorInstanceCollisionDetection.cpp


Replace the following functions with their updated versions:

- CActorInstance::AvoidObject

Hidden content
You need to reply to this thread in order to see this content.
- CActorInstance::IsBlockObject

Hidden content
You need to reply to this thread in order to see this content.
- CActorInstance::CanSkipCollision

Hidden content
You need to reply to this thread in order to see this content.
3. Modify AbstractPlayer.h


Add the following method declaration:

Hidden content
You need to reply to this thread in order to see this content.
4. Update PythonPlayer.h


Add the following method declaration:

Hidden content
You need to reply to this thread in order to see this content.
5. Update PythonPlayer.cpp


Add the following method implementation:

Hidden content
You need to reply to this thread in order to see this content.
This how it looks like:


These changes will implement a system allowing GMs to move without collision in Metin2.:p
 
Last edited:
Discord Banner

🔥 Join us on Discord! - Active chat & direct support

We invite you to join the largest Metin2 community on Discord!

Join Now!
Member Count: 
Discord Robot
HUB Bot
Announcement
Metin2Hub Bot
M2Hub Bot
Feb
Threads
66
2,381
2
1,308
113
# Implementing GM Without Collisions in Metin2

This guide outlines the steps to implement a system allowing Game Masters (GMs) to move without collision detection in Metin2.

## 1. Modify `Locale_inc.h`

Add the following define:

```cpp
#define ENABLE_GM_WITHOUT_COLLISIONS
```

## 2. Update `ActorInstanceCollisionDetection.cpp`

Replace the following functions with their updated versions:

### `CActorInstance::AvoidObject`

```cpp
bool CActorInstance::AvoidObject(const CGraphicObjectInstance& c_rkBGObj)
{
#ifdef ENABLE_GM_WITHOUT_COLLISIONS
if (IAbstractPlayer::GetSingleton().IsGameMasterInstance(GetVirtualID())) {
return false;
}
#endif
#ifdef __MOVIE_MODE__
if (IsMovieMode())
return false;
#endif
if (this == &c_rkBGObj)
return false;
if (!__TestObjectCollision(&c_rkBGObj))
return false;
__AdjustCollisionMovement(&c_rkBGObj);
return true;
}
```

### `CActorInstance::IsBlockObject`

```cpp
bool CActorInstance::IsBlockObject(const CGraphicObjectInstance& c_rkBGObj)
{
#ifdef ENABLE_GM_WITHOUT_COLLISIONS
if (IAbstractPlayer::GetSingleton().IsGameMasterInstance(GetVirtualID())) {
return false;
}
#endif
if (this == &c_rkBGObj)
return false;
if (!__TestObjectCollision(&c_rkBGObj))
return false;
return true;
}
```

### `CActorInstance::CanSkipCollision`

```cpp
bool CActorInstance::CanSkipCollision()
{
#ifdef ENABLE_GM_WITHOUT_COLLISIONS
if (IAbstractPlayer::GetSingleton().IsGameMasterInstance(GetVirtualID())) {
return true;
}
#endif
return m_canSkipCollision;
}
```

## 3. Modify `AbstractPlayer.h`

Add the following method declaration:

```cpp
#ifdef ENABLE_GM_WITHOUT_COLLISIONS
virtual bool IsGameMasterInstance(DWORD dwVID) = 0;
#endif
```

## 4. Update `PythonPlayer.h`

Add the following method declaration:

```cpp
#ifdef ENABLE_GM_WITHOUT_COLLISIONS
bool IsGameMasterInstance(DWORD dwVID);
#endif
```

## 5. Update `PythonPlayer.cpp`

Add the following method implementation:

```cpp
#ifdef ENABLE_GM_WITHOUT_COLLISIONS
bool CPythonPlayer::IsGameMasterInstance(DWORD dwVID)
{
CInstanceBase* pTargetInstance = CPythonCharacterManager::Instance().GetInstancePtr(dwVID);
if (!pTargetInstance)
return false;
return pTargetInstance->IsGameMaster();
}
#endif
```

These changes will implement a system allowing GMs to move without collision detection in Metin2.:p

Hello dear user,

Your post will be under surveillance by bots for the next few hours.

Forum description : Metin2 private server, Metin2 download, Metin2 support, Metin2 Forum, Metin2 Pvp Servers, Errors, Bugs, Requests, Metin2 Pvp Forum, Everything About Metin2.
 
Discord Banner

🔥 Join us on Discord! - Active chat & direct support

We invite you to join the largest Metin2 community on Discord!

Join Now!
Member Count: 
Discord Robot
HUB Bot
Announcement
Discord Banner

🔥 Join us on Discord! - Active chat & direct support

We invite you to join the largest Metin2 community on Discord!

Join Now!
Member Count: 
Discord Robot
HUB Bot
Announcement
Discord Banner

🔥 Join us on Discord! - Active chat & direct support

We invite you to join the largest Metin2 community on Discord!

Join Now!
Member Count: 
Discord Robot
HUB Bot
Announcement
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock