This media is not supported in your browser
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
πππππππ
π Sticker
This media is not supported in your browser
VIEW IN TELEGRAM
β€1
Hook(oxo("0x1C2549C"), Hook_UpdateLocalMark, orig_UpdateLocalMark);
Vector3 SavedMapMarker = {0, 0, 0};
bool HasMapMarker = false;
bool TeleportMark1 = false;
void (*orig_UpdateLocalMark)(void* _this, Vector3 p, uint32_t posType, Vector3 realPos);
void hook_UpdateLocalMark(void* _this, Vector3 p, uint32_t posType, Vector3 realPos) {
SavedMapMarker = realPos;
HasMapMarker = true;
if (orig_UpdateLocalMark) {
orig_UpdateLocalMark(_this, p, posType, realPos);
}
}
void TeleportMarkVoid(void* localPlayer) {
if (TeleportMark1 && HasMapMarker && localPlayer != nullptr) {
void* tf = get_transform(localPlayer);
if (!tf) return;
Vector3 currentPos = get_position(tf);
Vector3 targetPos;
targetPos.x = SavedMapMarker.x;
targetPos.y = currentPos.y;
targetPos.z = SavedMapMarker.z;
Transform_SetPosition (tf, Vvector3(targetPos.x, targetPos.y, targetPos.z));
}
}
TeleportMarkVoid(local_player);
Vector3 SavedMapMarker = {0, 0, 0};
bool HasMapMarker = false;
bool TeleportMark1 = false;
void (*orig_UpdateLocalMark)(void* _this, Vector3 p, uint32_t posType, Vector3 realPos);
void hook_UpdateLocalMark(void* _this, Vector3 p, uint32_t posType, Vector3 realPos) {
SavedMapMarker = realPos;
HasMapMarker = true;
if (orig_UpdateLocalMark) {
orig_UpdateLocalMark(_this, p, posType, realPos);
}
}
void TeleportMarkVoid(void* localPlayer) {
if (TeleportMark1 && HasMapMarker && localPlayer != nullptr) {
void* tf = get_transform(localPlayer);
if (!tf) return;
Vector3 currentPos = get_position(tf);
Vector3 targetPos;
targetPos.x = SavedMapMarker.x;
targetPos.y = currentPos.y;
targetPos.z = SavedMapMarker.z;
Transform_SetPosition (tf, Vvector3(targetPos.x, targetPos.y, targetPos.z));
}
}
TeleportMarkVoid(local_player);
β€4