Types for Map hooks, Map utility & Teleport hooks
This commit is contained in:
parent
be6b065bdd
commit
950f7cf197
@ -3987,7 +3987,7 @@
|
||||
"sig": "41 8D 51 05 E8 ?? ?? ?? ?? 48 8B 0D ?? ?? ?? ?? F6 81 0A 01 00 00 01 74 0E 83 B9 BC 00 00 00 00 75 05 E8 ?? ?? ?? ?? 48 8B 15"
|
||||
}
|
||||
],
|
||||
"Singleton_1_MBHLOBDPKEC__get_Instance__MethodInfo": [
|
||||
"Singleton_1_MapModule__get_Instance__MethodInfo": [
|
||||
{
|
||||
"offset": 36,
|
||||
"sig": "0F 85 B6 00 00 00 48 8B 0D ?? ?? ?? ?? 44 84 A1 0A 01 00 00 74 0E 44 39 A9 BC 00 00 00 75 05 E8 ?? ?? ?? ?? 48 8B 15"
|
||||
@ -4875,7 +4875,7 @@
|
||||
"sig": "48 8B 0D ?? ?? ?? ?? 0F 85 91 00 00 00"
|
||||
}
|
||||
],
|
||||
"Singleton_1_MBHLOBDPKEC_": [
|
||||
"Singleton_1_MapModule_": [
|
||||
{
|
||||
"offset": 0,
|
||||
"sig": "48 8B 0D ?? ?? ?? ?? 44 84 A1 0A 01 00 00 74 0E 44 39 A9 BC 00 00 00 75 05 E8 ?? ?? ?? ?? 48 8B 15 ?? ?? ?? ?? 33 C9 E8 ?? ?? ?? ?? 48 8B E8"
|
||||
|
@ -10,12 +10,12 @@ using namespace app;
|
||||
// Map hooks
|
||||
DO_APP_FUNC(0x013815E0, void, InLevelMapPageContext_OnMarkClicked, (InLevelMapPageContext* __this, MonoMapMark* mark, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01390800, void, InLevelMapPageContext_OnMapClicked, (InLevelMapPageContext* __this, Vector2 screenPos, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0158AD40, bool, MapModule_IsAreaUnlock, (MBHLOBDPKEC* __this, uint32_t sceneID, uint32_t areaID, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0158AD40, bool, MapModule_IsAreaUnlock, (MapModule* __this, uint32_t sceneID, uint32_t areaID, MethodInfo* method));
|
||||
|
||||
// changed to:
|
||||
// DO_APP_FUNC(0, uint16_t, MoleMole_SimpleSafeUInt16_DBDMOONJALD_1, (MoleMole_SimpleSafeUInt16 v, MethodInfo * method));
|
||||
// DBDMOONJALD => op_Implicit
|
||||
DO_APP_FUNC(0x05036C50, uint16_t, SimpleSafeUInt16_get_Value, (void* __this, LAFKDOLNGNA rawValue, MethodInfo* method));
|
||||
DO_APP_FUNC(0x05036C50, uint16_t, SimpleSafeUInt16_get_Value, (void* __this, SimpleSafeUInt16 rawValue, MethodInfo* method));
|
||||
|
||||
|
||||
// Map utility
|
||||
@ -26,14 +26,14 @@ DO_APP_FUNC(0x04339D00, Transform*, MonoInLevelMapPage_get_mapBackground, (MonoI
|
||||
// Teleport hooks
|
||||
DO_APP_FUNC(0x03253B80, void, GameManager_Update, (GameManager* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x017F49E0, void, LoadingManager_SceneGoto, (LoadingManager* __this, PlayerEnterSceneNotify* notify, MethodInfo* method));
|
||||
DO_APP_FUNC(0x017F1310, void, LoadingManager_PerformPlayerTransmit, (LoadingManager* __this, Vector3 targetPos, EnterType__Enum enterType, uint32_t token, CMHGHBNDBMG_ECPNDLCPDIE__Enum transType, uint32_t BDFOCMLADLB, MethodInfo* method));
|
||||
DO_APP_FUNC(0x017F1310, void, LoadingManager_PerformPlayerTransmit, (LoadingManager* __this, Vector3 targetPos, EnterType__Enum enterType, uint32_t token, EvtTransmitAvatar_EvtTransmitAvatar_TransmitType__Enum transType, uint32_t enterReason, MethodInfo* method));
|
||||
DO_APP_FUNC(0x017F21F0, void, LoadingManager_RequestSceneTransToPoint, (LoadingManager* __this, uint32_t sceneId, uint32_t pointId, void* finishCallBackInForceDrag, MethodInfo* method));
|
||||
DO_APP_FUNC(0x017F4FE0, bool, LoadingManager_NeedTransByServer, (LoadingManager* __this, uint32_t sceneId, Vector3 position, MethodInfo* method));
|
||||
DO_APP_FUNC(0x07758D10, Vector3, LocalEntityInfoData_GetTargetPos, (LocalEntityInfoData* __this, MethodInfo* method));
|
||||
|
||||
|
||||
// Unlimited stamina
|
||||
DO_APP_FUNC(0x04BDB410, void, LevelSyncCombatPlugin_RequestSceneEntityMoveReq, (BKFGGJFIIKC* __this, uint32_t entityId, MotionInfo* syncInfo, bool isReliable, uint32_t HAOCOEMOMBG, MethodInfo* method));
|
||||
DO_APP_FUNC(0x04BDB410, void, LevelSyncCombatPlugin_RequestSceneEntityMoveReq, (LevelSyncCombatPlugin* __this, uint32_t entityId, MotionInfo* syncInfo, bool isReliable, uint32_t HAOCOEMOMBG, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0186C290, void, DataItem_HandleNormalProp, (DataItem* __this, uint32_t type, int64_t value, DataPropOp__Enum state, MethodInfo* method));
|
||||
|
||||
|
||||
@ -108,6 +108,9 @@ DO_APP_FUNC(0x02F3B3D0, void, EventManager_FireEvent, (EventManager* __this, Bas
|
||||
DO_APP_FUNC(0x01C11490, bool, FixedBoolStack_get_value, (FixedBoolStack* __this, MethodInfo* method));
|
||||
|
||||
// cannot find actual function name: CreateCrashEvent
|
||||
// shared offset
|
||||
// possible:
|
||||
// DO_APP_FUNC(0, MoleMole_EvtCrash *, JDGMIDCLFJK_CNCAIAIACLN_139, (MethodInfo * method));
|
||||
DO_APP_FUNC(0x031ADF70, EvtCrash*, CreateCrashEvent, (void* __this, MethodInfo* method));
|
||||
DO_APP_FUNC_METHODINFO(0x0B381CF8, CreateCrashEvent__MethodInfo);
|
||||
|
||||
@ -150,7 +153,7 @@ DO_APP_FUNC(0x014BC6D0, Vector3, ActorUtils_GetAvatarPos, (void* __this, Met
|
||||
DO_APP_FUNC(0x014C3BF0, void, ActorUtils_SetAvatarPos, (void* __this, Vector3 pos, MethodInfo* method));
|
||||
DO_APP_FUNC(0x014C88B0, void, ActorUtils_SyncAvatarMotion, (void* __this, int32_t state, MethodInfo* method));
|
||||
|
||||
DO_APP_FUNC(0x02ECCFE0, Notify, Notify_CreateNotify_1, (void* __this, AJAPIFPNFKP__Enum type, Object* body, MethodInfo* method));
|
||||
DO_APP_FUNC(0x02ECCFE0, Notify, Notify_CreateNotify_1, (void* __this, MoleMole_NotifyTypes__Enum type, Object* body, MethodInfo* method));
|
||||
|
||||
// changed to:
|
||||
// DO_APP_FUNC(0, float, MoleMole_SafeFloat_DBDMOONJALD_1, (MoleMole_SafeFloat v, MethodInfo * method));
|
||||
@ -186,7 +189,7 @@ DO_APP_FUNC_METHODINFO(0x0B2BBB98, BaseEntity_GetMoveComponent_1__MethodInfo);
|
||||
//DO_APP_FUNC_METHODINFO(0x096ED8A0, MoleMole_BaseEntity_GetLogicCombatComponent_1__MethodInfo); // double check
|
||||
DO_APP_FUNC_METHODINFO(0x0B2DB248, BaseEntity_GetBaseCombat__MethodInfo);
|
||||
|
||||
//check comparison from 2.2 & 2.6
|
||||
// check comparison from 2.2 & 2.6
|
||||
// function type & name is wrong
|
||||
// DO_APP_FUNC(0, MoleMole_AvatarEntity *, MoleMole_EntityManager_GetLocalAvatarEntity, (MoleMole_EntityManager * __this, MethodInfo * method));
|
||||
DO_APP_FUNC(0x01555150, BaseEntity*, EntityManager_GetCurrentAvatar, (EntityManager* __this, MethodInfo* method));
|
||||
@ -266,7 +269,7 @@ DO_APP_FUNC(0x083C1430, float, Canvas_get_scaleFactor, (void* __this, MethodInfo
|
||||
|
||||
// Singletons
|
||||
DO_APP_FUNC(0x07626D40, void*, Singleton_GetInstance, (void* __this, MethodInfo* method));
|
||||
DO_APP_FUNC_METHODINFO(0x0B327AD0, Singleton_1_MBHLOBDPKEC__get_Instance__MethodInfo);
|
||||
DO_APP_FUNC_METHODINFO(0x0B327AD0, Singleton_1_MapModule__get_Instance__MethodInfo);
|
||||
DO_APP_FUNC_METHODINFO(0x0B2C2AC0, Singleton_1_LoadingManager__get_Instance__MethodInfo);
|
||||
DO_APP_FUNC_METHODINFO(0x0B2B2A80, Singleton_1_EntityManager__get_Instance__MethodInfo);
|
||||
DO_APP_FUNC_METHODINFO(0x0B2B4FC8, Singleton_1_InteractionManager__get_Instance__MethodInfo);
|
||||
|
@ -13,7 +13,7 @@ DO_TYPEDEF(0x0B38FF20, Int32);
|
||||
DO_TYPEDEF(0x0B39D338, LCChestPlugin);
|
||||
DO_TYPEDEF(0x0B2BC988, SceneTreeObject);
|
||||
|
||||
DO_SINGLETONEDEF(0x0B3442D8, Singleton_1_MBHLOBDPKEC_);
|
||||
DO_SINGLETONEDEF(0x0B3442D8, Singleton_1_MapModule_);
|
||||
DO_SINGLETONEDEF(0x0B308870, Singleton_1_EntityManager_);
|
||||
DO_SINGLETONEDEF(0x0B316A68, Singleton_1_LoadingManager_);
|
||||
DO_SINGLETONEDEF(0x0B30BD10, Singleton_1_InteractionManager_);
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -144,7 +144,7 @@ namespace cheat
|
||||
CALL_ORIGIN(GameManager_Update_Hook, __this, method);
|
||||
}
|
||||
|
||||
static void LevelSyncCombatPlugin_RequestSceneEntityMoveReq_Hook(app::BKFGGJFIIKC* __this, uint32_t entityId, app::MotionInfo* syncInfo,
|
||||
static void LevelSyncCombatPlugin_RequestSceneEntityMoveReq_Hook(app::LevelSyncCombatPlugin* __this, uint32_t entityId, app::MotionInfo* syncInfo,
|
||||
bool isReliable, uint32_t relseq, MethodInfo* method)
|
||||
{
|
||||
events::MoveSyncEvent(entityId, syncInfo);
|
||||
|
@ -8,7 +8,7 @@ namespace cheat::game
|
||||
{
|
||||
std::vector<WaypointInfo> GetUnlockedWaypoints(uint32_t targetSceneId)
|
||||
{
|
||||
auto mapModule = GET_SINGLETON(MBHLOBDPKEC);
|
||||
auto mapModule = GET_SINGLETON(MapModule);
|
||||
if (mapModule == nullptr)
|
||||
return {};
|
||||
|
||||
|
@ -128,7 +128,7 @@ namespace cheat::feature
|
||||
return;
|
||||
}
|
||||
|
||||
auto singleton = GET_SINGLETON(MBHLOBDPKEC);
|
||||
auto singleton = GET_SINGLETON(MapModule);
|
||||
|
||||
for (const auto& [sceneId, waypoints] : waypointsGrops->pairs())
|
||||
{
|
||||
@ -169,7 +169,7 @@ namespace cheat::feature
|
||||
|
||||
void DrawManagerData()
|
||||
{
|
||||
auto singleton = GET_SINGLETON(MBHLOBDPKEC);
|
||||
auto singleton = GET_SINGLETON(MapModule);
|
||||
if (singleton == nullptr)
|
||||
{
|
||||
ImGui::Text("Manager not initialized.");
|
||||
|
@ -14,7 +14,7 @@ namespace cheat::feature
|
||||
|
||||
static bool LoadingManager_NeedTransByServer_Hook(app::LoadingManager* __this, uint32_t sceneId, app::Vector3 position, MethodInfo* method);
|
||||
static void LoadingManager_PerformPlayerTransmit_Hook(app::LoadingManager* __this, app::Vector3 position, app::EnterType__Enum someEnum,
|
||||
uint32_t someUint1, app::CMHGHBNDBMG_ECPNDLCPDIE__Enum teleportType, uint32_t someUint2, MethodInfo* method);
|
||||
uint32_t someUint1, app::EvtTransmitAvatar_EvtTransmitAvatar_TransmitType__Enum teleportType, uint32_t someUint2, MethodInfo* method);
|
||||
static void Entity_SetPosition_Hook(app::BaseEntity* __this, app::Vector3 position, bool someBool, MethodInfo* method);
|
||||
|
||||
MapTeleport::MapTeleport() : Feature(),
|
||||
@ -279,7 +279,7 @@ namespace cheat::feature
|
||||
|
||||
|
||||
static void LoadingManager_PerformPlayerTransmit_Hook(app::LoadingManager* __this, app::Vector3 position, app::EnterType__Enum someEnum,
|
||||
uint32_t someUint1, app::CMHGHBNDBMG_ECPNDLCPDIE__Enum teleportType, uint32_t someUint2, MethodInfo* method)
|
||||
uint32_t someUint1, app::EvtTransmitAvatar_EvtTransmitAvatar_TransmitType__Enum teleportType, uint32_t someUint2, MethodInfo* method)
|
||||
{
|
||||
MapTeleport& mapTeleport = MapTeleport::GetInstance();
|
||||
mapTeleport.OnPerformPlayerTransmit(position);
|
||||
|
@ -107,7 +107,7 @@ namespace cheat::feature
|
||||
{
|
||||
int32_t value = 0;
|
||||
auto object = il2cpp_value_box((Il2CppClass*)*app::Int32__TypeInfo, &value);
|
||||
auto notify = app::Notify_CreateNotify_1(nullptr, app::AJAPIFPNFKP__Enum::DialogSelectItemNotify, (app::Object*)object, nullptr);
|
||||
auto notify = app::Notify_CreateNotify_1(nullptr, app::MoleMole_NotifyTypes__Enum::DialogSelectItemNotify, (app::Object*)object, nullptr);
|
||||
app::TalkDialogContext_OnDialogSelectItem(talkDialog, ¬ify, nullptr);
|
||||
}
|
||||
else if (!talkDialog->fields._inSelect)
|
||||
|
Loading…
Reference in New Issue
Block a user