many changes
fix several offsets for 2.7 partialy rename functions fix il2cpp api disable Il2CppPatternScanner
This commit is contained in:
parent
45146d71be
commit
0a1bbf64f6
@ -1,7 +1,5 @@
|
||||
// Generated C++ file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty
|
||||
// Target Unity version: 2017.4.15 - 2017.4.40
|
||||
|
||||
#include "il2cpp-appdata.h"
|
||||
// Target Unity version: 2019.4.21 - 2019.4.24
|
||||
|
||||
#ifndef DO_API_NO_RETURN
|
||||
|
||||
@ -9,9 +7,11 @@
|
||||
|
||||
#endif
|
||||
|
||||
DO_API(void, il2cpp_init, (const char* domain_name));
|
||||
|
||||
DO_API(void, il2cpp_init_utf16, (const Il2CppChar * domain_name));
|
||||
|
||||
DO_API(int, il2cpp_init, (const char* domain_name));
|
||||
|
||||
DO_API(int, il2cpp_init_utf16, (const Il2CppChar * domain_name));
|
||||
|
||||
DO_API(void, il2cpp_shutdown, ());
|
||||
|
||||
@ -75,6 +75,8 @@ DO_API(const Il2CppImage*, il2cpp_assembly_get_image, (const Il2CppAssembly * as
|
||||
|
||||
// class
|
||||
|
||||
DO_API(void, il2cpp_class_for_each, (void(*klassReportFunc)(Il2CppClass* klass, void* userData), void* userData));
|
||||
|
||||
DO_API(const Il2CppType*, il2cpp_class_enum_basetype, (Il2CppClass * klass));
|
||||
|
||||
DO_API(bool, il2cpp_class_is_generic, (const Il2CppClass * klass));
|
||||
@ -115,6 +117,8 @@ DO_API(const MethodInfo*, il2cpp_class_get_method_from_name, (Il2CppClass * klas
|
||||
|
||||
DO_API(const char*, il2cpp_class_get_name, (Il2CppClass * klass));
|
||||
|
||||
DO_API(void, il2cpp_type_get_name_chunked, (const Il2CppType * type, void(*chunkReportFunc)(void* data, void* userData), void* userData));
|
||||
|
||||
DO_API(const char*, il2cpp_class_get_namespace, (Il2CppClass * klass));
|
||||
|
||||
DO_API(Il2CppClass*, il2cpp_class_get_parent, (Il2CppClass * klass));
|
||||
@ -143,6 +147,8 @@ DO_API(Il2CppClass*, il2cpp_class_from_type, (const Il2CppType * type));
|
||||
|
||||
DO_API(const Il2CppType*, il2cpp_class_get_type, (Il2CppClass * klass));
|
||||
|
||||
DO_API(uint32_t, il2cpp_class_get_type_token, (Il2CppClass * klass));
|
||||
|
||||
DO_API(bool, il2cpp_class_has_attribute, (Il2CppClass * klass, Il2CppClass * attr_class));
|
||||
|
||||
DO_API(bool, il2cpp_class_has_references, (Il2CppClass * klass));
|
||||
@ -153,6 +159,12 @@ DO_API(const Il2CppImage*, il2cpp_class_get_image, (Il2CppClass * klass));
|
||||
|
||||
DO_API(const char*, il2cpp_class_get_assemblyname, (const Il2CppClass * klass));
|
||||
|
||||
DO_API(int, il2cpp_class_get_rank, (const Il2CppClass * klass));
|
||||
|
||||
DO_API(uint32_t, il2cpp_class_get_data_size, (const Il2CppClass * klass));
|
||||
|
||||
DO_API(void*, il2cpp_class_get_static_field_data, (const Il2CppClass * klass));
|
||||
|
||||
|
||||
|
||||
// testing only
|
||||
@ -223,7 +235,7 @@ DO_API(void, il2cpp_field_static_set_value, (FieldInfo * field, void *value));
|
||||
|
||||
DO_API(void, il2cpp_field_set_value_object, (Il2CppObject * instance, FieldInfo * field, Il2CppObject * value));
|
||||
|
||||
|
||||
DO_API(bool, il2cpp_field_is_literal, (FieldInfo * field));
|
||||
|
||||
// gc
|
||||
|
||||
@ -235,11 +247,31 @@ DO_API(void, il2cpp_gc_disable, ());
|
||||
|
||||
DO_API(void, il2cpp_gc_enable, ());
|
||||
|
||||
DO_API(bool, il2cpp_gc_is_disabled, ());
|
||||
|
||||
DO_API(int64_t, il2cpp_gc_get_max_time_slice_ns, ());
|
||||
|
||||
DO_API(void, il2cpp_gc_set_max_time_slice_ns, (int64_t maxTimeSlice));
|
||||
|
||||
DO_API(bool, il2cpp_gc_is_incremental, ());
|
||||
|
||||
DO_API(int64_t, il2cpp_gc_get_used_size, ());
|
||||
|
||||
DO_API(int64_t, il2cpp_gc_get_heap_size, ());
|
||||
|
||||
DO_API(void, il2cpp_gc_wbarrier_set_field, (Il2CppObject * obj, void **targetAddress, void *object));
|
||||
|
||||
DO_API(bool, il2cpp_gc_has_strict_wbarriers, ());
|
||||
|
||||
DO_API(void, il2cpp_gc_set_external_allocation_tracker, (void(*func)(void*, size_t, int)));
|
||||
|
||||
DO_API(void, il2cpp_gc_set_external_wbarrier_tracker, (void(*func)(void**)));
|
||||
|
||||
DO_API(void, il2cpp_gc_foreach_heap, (void(*func)(void* data, void* userData), void* userData));
|
||||
|
||||
DO_API(void, il2cpp_stop_gc_world, ());
|
||||
|
||||
DO_API(void, il2cpp_start_gc_world, ());
|
||||
|
||||
// gchandle
|
||||
|
||||
@ -251,6 +283,22 @@ DO_API(Il2CppObject*, il2cpp_gchandle_get_target , (uint32_t gchandle));
|
||||
|
||||
DO_API(void, il2cpp_gchandle_free, (uint32_t gchandle));
|
||||
|
||||
DO_API(void , il2cpp_gchandle_foreach_get_target, (void(*func)(void* data, void* userData), void* userData));
|
||||
|
||||
|
||||
|
||||
// vm runtime info
|
||||
|
||||
DO_API(uint32_t, il2cpp_object_header_size, ());
|
||||
|
||||
DO_API(uint32_t, il2cpp_array_object_header_size, ());
|
||||
|
||||
DO_API(uint32_t, il2cpp_offset_of_array_length_in_array_object_header, ());
|
||||
|
||||
DO_API(uint32_t, il2cpp_offset_of_array_bounds_in_array_object_header, ());
|
||||
|
||||
DO_API(uint32_t, il2cpp_allocation_granularity, ());
|
||||
|
||||
|
||||
|
||||
// liveness
|
||||
@ -273,6 +321,8 @@ DO_API(Il2CppClass*, il2cpp_method_get_declaring_type, (const MethodInfo * metho
|
||||
|
||||
DO_API(const char*, il2cpp_method_get_name, (const MethodInfo * method));
|
||||
|
||||
DO_API(const MethodInfo*, il2cpp_method_get_from_reflection, (const Il2CppReflectionMethod * method));
|
||||
|
||||
DO_API(Il2CppReflectionMethod*, il2cpp_method_get_object, (const MethodInfo * method, Il2CppClass * refclass));
|
||||
|
||||
DO_API(bool, il2cpp_method_is_generic, (const MethodInfo * method));
|
||||
@ -401,8 +451,6 @@ DO_API(Il2CppString*, il2cpp_string_is_interned, (Il2CppString * str));
|
||||
|
||||
// thread
|
||||
|
||||
DO_API(char*, il2cpp_thread_get_name, (Il2CppThread * thread, uint32_t * len));
|
||||
|
||||
DO_API(Il2CppThread*, il2cpp_thread_current, ());
|
||||
|
||||
DO_API(Il2CppThread*, il2cpp_thread_attach, (Il2CppDomain * domain));
|
||||
@ -423,18 +471,20 @@ DO_API(void, il2cpp_current_thread_walk_frame_stack, (Il2CppFrameWalkFunc func,
|
||||
|
||||
DO_API(void, il2cpp_thread_walk_frame_stack, (Il2CppThread * thread, Il2CppFrameWalkFunc func, void* user_data));
|
||||
|
||||
DO_API(bool, il2cpp_current_thread_get_top_frame, (Il2CppStackFrameInfo & frame));
|
||||
DO_API(bool, il2cpp_current_thread_get_top_frame, (Il2CppStackFrameInfo * frame));
|
||||
|
||||
DO_API(bool, il2cpp_thread_get_top_frame, (Il2CppThread * thread, Il2CppStackFrameInfo & frame));
|
||||
DO_API(bool, il2cpp_thread_get_top_frame, (Il2CppThread * thread, Il2CppStackFrameInfo * frame));
|
||||
|
||||
DO_API(bool, il2cpp_current_thread_get_frame_at, (int32_t offset, Il2CppStackFrameInfo & frame));
|
||||
DO_API(bool, il2cpp_current_thread_get_frame_at, (int32_t offset, Il2CppStackFrameInfo * frame));
|
||||
|
||||
DO_API(bool, il2cpp_thread_get_frame_at, (Il2CppThread * thread, int32_t offset, Il2CppStackFrameInfo & frame));
|
||||
DO_API(bool, il2cpp_thread_get_frame_at, (Il2CppThread * thread, int32_t offset, Il2CppStackFrameInfo * frame));
|
||||
|
||||
DO_API(int32_t, il2cpp_current_thread_get_stack_depth, ());
|
||||
|
||||
DO_API(int32_t, il2cpp_thread_get_stack_depth, (Il2CppThread * thread));
|
||||
|
||||
DO_API(void, il2cpp_override_stack_backtrace, (Il2CppBacktraceFunc stackBacktraceFunc));
|
||||
|
||||
|
||||
|
||||
// type
|
||||
@ -447,6 +497,18 @@ DO_API(Il2CppClass*, il2cpp_type_get_class_or_element_class, (const Il2CppType *
|
||||
|
||||
DO_API(char*, il2cpp_type_get_name, (const Il2CppType * type));
|
||||
|
||||
DO_API(bool, il2cpp_type_is_byref, (const Il2CppType * type));
|
||||
|
||||
DO_API(uint32_t, il2cpp_type_get_attrs, (const Il2CppType * type));
|
||||
|
||||
DO_API(bool, il2cpp_type_equals, (const Il2CppType * type, const Il2CppType * otherType));
|
||||
|
||||
DO_API(char*, il2cpp_type_get_assembly_qualified_name, (const Il2CppType * type));
|
||||
|
||||
DO_API(bool, il2cpp_type_is_static, (const Il2CppType * type));
|
||||
|
||||
DO_API(bool, il2cpp_type_is_pointer_type, (const Il2CppType * type));
|
||||
|
||||
|
||||
|
||||
// image
|
||||
@ -461,6 +523,12 @@ DO_API(const MethodInfo*, il2cpp_image_get_entry_point, (const Il2CppImage * ima
|
||||
|
||||
|
||||
|
||||
DO_API(size_t, il2cpp_image_get_class_count, (const Il2CppImage * image));
|
||||
|
||||
DO_API(const Il2CppClass*, il2cpp_image_get_class, (const Il2CppImage * image, size_t index));
|
||||
|
||||
|
||||
|
||||
// Memory information
|
||||
|
||||
DO_API(Il2CppManagedMemorySnapshot*, il2cpp_capture_memory_snapshot, ());
|
||||
@ -478,3 +546,57 @@ DO_API(void, il2cpp_set_find_plugin_callback, (Il2CppSetFindPlugInCallback metho
|
||||
DO_API(void, il2cpp_register_log_callback, (Il2CppLogCallback method));
|
||||
|
||||
|
||||
|
||||
// Debugger
|
||||
|
||||
DO_API(void, il2cpp_debugger_set_agent_options, (const char* options));
|
||||
|
||||
DO_API(bool, il2cpp_is_debugger_attached, ());
|
||||
|
||||
DO_API(void, il2cpp_register_debugger_agent_transport, (Il2CppDebuggerTransport * debuggerTransport));
|
||||
|
||||
|
||||
|
||||
// Debug metadata
|
||||
|
||||
DO_API(bool, il2cpp_debug_get_method_info, (const MethodInfo*, Il2CppMethodDebugInfo * methodDebugInfo));
|
||||
|
||||
|
||||
|
||||
// TLS module
|
||||
|
||||
DO_API(void, il2cpp_unity_install_unitytls_interface, (const void* unitytlsInterfaceStruct));
|
||||
|
||||
|
||||
|
||||
// custom attributes
|
||||
|
||||
DO_API(Il2CppCustomAttrInfo*, il2cpp_custom_attrs_from_class, (Il2CppClass * klass));
|
||||
|
||||
DO_API(Il2CppCustomAttrInfo*, il2cpp_custom_attrs_from_method, (const MethodInfo * method));
|
||||
|
||||
|
||||
|
||||
DO_API(Il2CppObject*, il2cpp_custom_attrs_get_attr, (Il2CppCustomAttrInfo * ainfo, Il2CppClass * attr_klass));
|
||||
|
||||
DO_API(bool, il2cpp_custom_attrs_has_attr, (Il2CppCustomAttrInfo * ainfo, Il2CppClass * attr_klass));
|
||||
|
||||
DO_API(Il2CppArray*, il2cpp_custom_attrs_construct, (Il2CppCustomAttrInfo * cinfo));
|
||||
|
||||
|
||||
|
||||
DO_API(void, il2cpp_custom_attrs_free, (Il2CppCustomAttrInfo * ainfo));
|
||||
|
||||
|
||||
|
||||
// Il2CppClass user data for GetComponent optimization
|
||||
|
||||
DO_API(void, il2cpp_class_set_userdata, (Il2CppClass * klass, void* userdata));
|
||||
|
||||
DO_API(int, il2cpp_class_get_userdata_offset, ());
|
||||
|
||||
|
||||
|
||||
DO_API(void, il2cpp_set_default_thread_affinity, (int64_t affinity_mask));
|
||||
|
||||
|
||||
|
@ -8,15 +8,15 @@ using namespace app;
|
||||
|
||||
|
||||
// Map hooks
|
||||
DO_APP_FUNC(0x02E9F9E0, void, InLevelMapPageContext_OnMarkClicked, (InLevelMapPageContext* __this, MonoMapMark* mark, MethodInfo* method));
|
||||
DO_APP_FUNC(0x02E85EC0, void, InLevelMapPageContext_OnMapClicked, (InLevelMapPageContext* __this, Vector2 screenPos, MethodInfo* method));
|
||||
DO_APP_FUNC(0x00F0DCE0, bool, MapModule_IsAreaUnlock, (MapModule* __this, uint32_t sceneID, uint32_t areaID, MethodInfo* method));
|
||||
DO_APP_FUNC(0x02E9F9E0, void, MoleMole_InLevelMapPageContext_OnMarkClicked, (InLevelMapPageContext* __this, MonoMapMark* mark, MethodInfo* method));
|
||||
DO_APP_FUNC(0x02E85EC0, void, MoleMole_InLevelMapPageContext_OnMapClicked, (InLevelMapPageContext* __this, Vector2 screenPos, MethodInfo* method));
|
||||
DO_APP_FUNC(0x00F0DCE0, bool, MoleMole_MapModule_IsAreaUnlock, (MoleMole_MapModule* __this, uint32_t sceneID, uint32_t areaID, MethodInfo* method));
|
||||
|
||||
// changed to:
|
||||
// DO_APP_FUNC(0x01B0A910, uint16_t, MoleMole_SimpleSafeUInt16_DBDMOONJALD_1, (MoleMole_SimpleSafeUInt16 v, MethodInfo * method));
|
||||
// DBDMOONJALD => op_Implicit
|
||||
DO_APP_FUNC(0x01B0A910, uint16_t, SimpleSafeUInt16_get_Value, (SimpleSafeUInt16 v, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0400F280, uint32_t, SimpleSafeUInt32_get_Value, (SimpleSafeUInt32 v, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01B0A910, uint16_t, MoleMole_SimpleSafeUInt16_get_Value, (SimpleSafeUInt16 v, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0400F280, uint32_t, MoleMole_SimpleSafeUInt32_get_Value, (SimpleSafeUInt32 v, MethodInfo* method));
|
||||
|
||||
// Map utility
|
||||
DO_APP_FUNC(0x00E866B0, Rect, MonoInLevelMapPage_get_mapRect, (MonoInLevelMapPage* __this, MethodInfo* method));
|
||||
@ -25,54 +25,54 @@ DO_APP_FUNC(0x00E86680, Transform*, MonoInLevelMapPage_get_mapBackground, (MonoI
|
||||
|
||||
// Teleport hooks
|
||||
DO_APP_FUNC(0x028AD260, void, GameManager_Update, (GameManager* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01F54110, void, LoadingManager_SceneGoto, (LoadingManager* __this, PlayerEnterSceneNotify* notify, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01F55300, 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(0x01F563C0, void, LoadingManager_RequestSceneTransToPoint, (LoadingManager* __this, uint32_t sceneId, uint32_t pointId, void* finishCallBackInForceDrag, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01F57E60, bool, LoadingManager_NeedTransByServer, (LoadingManager* __this, uint32_t sceneId, Vector3 position, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0104A6D0, Vector3, LocalEntityInfoData_get_initPos, (LocalEntityInfoData* __this, MethodInfo* method)); // shared offset
|
||||
DO_APP_FUNC(0x01F54110, void, MoleMole_LoadingManager_SceneGoto, (MoleMole_LoadingManager* __this, PlayerEnterSceneNotify* notify, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01F55300, void, MoleMole_LoadingManager_PerformPlayerTransmit, (MoleMole_LoadingManager* __this, Vector3 targetPos, EnterType__Enum enterType, uint32_t token, EvtTransmitAvatar_EvtTransmitAvatar_TransmitType__Enum transType, uint32_t enterReason, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01F563C0, void, MoleMole_LoadingManager_RequestSceneTransToPoint, (MoleMole_LoadingManager* __this, uint32_t sceneId, uint32_t pointId, void* finishCallBackInForceDrag, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01F57E60, bool, MoleMole_LoadingManager_NeedTransByServer, (MoleMole_LoadingManager* __this, uint32_t sceneId, Vector3 position, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0104A6D0, Vector3, MoleMole_LocalEntityInfoData_get_initPos, (LocalEntityInfoData* __this, MethodInfo* method)); // shared offset
|
||||
|
||||
|
||||
// Unlimited stamina
|
||||
DO_APP_FUNC(0x01F17820, void, LevelSyncCombatPlugin_RequestSceneEntityMoveReq, (LevelSyncCombatPlugin* __this, uint32_t entityId, MotionInfo* syncInfo, bool isReliable, uint32_t HAOCOEMOMBG, MethodInfo* method));
|
||||
DO_APP_FUNC(0x016189E0, void, DataItem_HandleNormalProp, (DataItem* __this, uint32_t type, int64_t value, DataPropOp__Enum state, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01F17820, void, MoleMole_LevelSyncCombatPlugin_RequestSceneEntityMoveReq, (LevelSyncCombatPlugin* __this, uint32_t entityId, MotionInfo* syncInfo, bool isReliable, uint32_t HAOCOEMOMBG, MethodInfo* method));
|
||||
DO_APP_FUNC(0x016189E0, void, MoleMole_DataItem_HandleNormalProp, (DataItem* __this, uint32_t type, int64_t value, DataPropOp__Enum state, MethodInfo* method));
|
||||
|
||||
|
||||
// God mode
|
||||
DO_APP_FUNC(0x027DB100, void, VCHumanoidMove_NotifyLandVelocity, (VCHumanoidMove* __this, Vector3 velocity, float reachMaxDownVelocityTime, MethodInfo* method));
|
||||
DO_APP_FUNC(0x036889B0, bool, Miscs_CheckTargetAttackable, (void* __this, BaseEntity* attackerEntity, BaseEntity* targetEntity, MethodInfo* method));
|
||||
// DO_APP_FUNC(0x00D0CA90, void, LCBaseCombat_FireBeingHitEvent, (LCBaseCombat* __this, uint32_t attackeeRuntimeID, AttackResult* attackResult, MethodInfo* method));
|
||||
// DO_APP_FUNC(0x00D0CA90, void, MoleMole_LCBaseCombat_FireBeingHitEvent, (LCBaseCombat* __this, uint32_t attackeeRuntimeID, AttackResult* attackResult, MethodInfo* method));
|
||||
|
||||
|
||||
// Cooldown cheats
|
||||
DO_APP_FUNC(0x00C69910, bool, HumanoidMoveFSM_CheckSprintCooldown, (/* HumanoidMoveFSM */void* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01530C80, bool, LCAvatarCombat_IsEnergyMax, (void* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01530480, void, LCAvatarCombat_ChangeEnergy_1, (LCAvatarCombat* __this, ElementType__Enum type, float value, DataPropOp__Enum state, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0152DC10, bool, LCAvatarCombat_OnSkillStart, (LCAvatarCombat* __this, uint32_t skillID, float cdMultipler, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01530210, bool, LCAvatarCombat_IsSkillInCD_1, (LCAvatarCombat* __this, LCAvatarCombat_OMIIMOJOHIP* skillInfo, MethodInfo* method));
|
||||
DO_APP_FUNC(0x00C69910, bool, MoleMole_HumanoidMoveFSM_CheckSprintCooldown, (/* HumanoidMoveFSM */void* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01530C80, bool, MoleMole_LCAvatarCombat_IsEnergyMax, (void* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01530480, void, MoleMole_LCAvatarCombat_ChangeEnergy_1, (LCAvatarCombat* __this, ElementType__Enum type, float value, DataPropOp__Enum state, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0152DC10, bool, MoleMole_LCAvatarCombat_OnSkillStart, (LCAvatarCombat* __this, uint32_t skillID, float cdMultipler, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01530210, bool, MoleMole_LCAvatarCombat_IsSkillInCD_1, (LCAvatarCombat* __this, LCAvatarCombat_OMIIMOJOHIP* skillInfo, MethodInfo* method));
|
||||
|
||||
DO_APP_FUNC(0x02385800, void, ActorAbilityPlugin_AddDynamicFloatWithRange, (void* __this, String* key, float value, float min, float max, bool forceDoAtRemote, MethodInfo* method));
|
||||
DO_APP_FUNC(0x02385800, void, MoleMole_ActorAbilityPlugin_AddDynamicFloatWithRange, (void* __this, String* key, float value, float min, float max, bool forceDoAtRemote, MethodInfo* method));
|
||||
|
||||
// Rapid fire
|
||||
DO_APP_FUNC(0x00D12040, void, LCBaseCombat_DoHitEntity, (LCBaseCombat* __this, uint32_t targetID, AttackResult* attackResult, bool ignoreCheckCanBeHitInMP, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01F0D930, void, Formula_CalcAttackResult, (CombatProperty* attackCombatProperty, CombatProperty* defenseCombatProperty, AttackResult* attackResult, BaseEntity* attackerEntity, BaseEntity* attackeeEntity, MethodInfo* method));
|
||||
DO_APP_FUNC(0x00D12040, void, MoleMole_LCBaseCombat_DoHitEntity, (LCBaseCombat* __this, uint32_t targetID, AttackResult* attackResult, bool ignoreCheckCanBeHitInMP, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01F0D930, void, MoleMole_Formula_CalcAttackResult, (CombatProperty* attackCombatProperty, CombatProperty* defenseCombatProperty, AttackResult* attackResult, BaseEntity* attackerEntity, BaseEntity* attackeeEntity, MethodInfo* method));
|
||||
|
||||
|
||||
// World cheats
|
||||
DO_APP_FUNC(0x022C3450, void, VCMonsterAIController_TryDoSkill, (/* VCMonsterAIController */ void* __this, uint32_t skillID, MethodInfo* method)); // Manual
|
||||
DO_APP_FUNC(0x020FA730, void, LCSelectPickup_AddInteeBtnByID, (void* __this, BaseEntity* entity, MethodInfo* method));
|
||||
DO_APP_FUNC(0x020FA090, bool, LCSelectPickup_IsInPosition, (void* __this, BaseEntity* entity, MethodInfo* method));
|
||||
DO_APP_FUNC(0x020FC120, bool, LCSelectPickup_IsOutPosition, (void* __this, BaseEntity* entity, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0219B8E0, void, ItemModule_PickItem, (ItemModule* __this, uint32_t entityID, MethodInfo* method));
|
||||
DO_APP_FUNC(0x00C2F710, void, LevelSceneElementViewPlugin_Tick, (LevelSceneElementViewPlugin* __this, float inDeltaTime, MethodInfo* method));
|
||||
DO_APP_FUNC(0x022C3450, void, MoleMole_VCMonsterAIController_TryDoSkill, (/* VCMonsterAIController */ void* __this, uint32_t skillID, MethodInfo* method)); // Manual
|
||||
DO_APP_FUNC(0x020FA730, void, MoleMole_LCSelectPickup_AddInteeBtnByID, (void* __this, BaseEntity* entity, MethodInfo* method));
|
||||
DO_APP_FUNC(0x020FA090, bool, MoleMole_LCSelectPickup_IsInPosition, (void* __this, BaseEntity* entity, MethodInfo* method));
|
||||
DO_APP_FUNC(0x020FC120, bool, MoleMole_LCSelectPickup_IsOutPosition, (void* __this, BaseEntity* entity, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0219B8E0, void, MoleMole_ItemModule_PickItem, (MoleMole_ItemModule* __this, uint32_t entityID, MethodInfo* method));
|
||||
DO_APP_FUNC(0x00C2F710, void, MoleMole_LevelSceneElementViewPlugin_Tick, (LevelSceneElementViewPlugin* __this, float inDeltaTime, MethodInfo* method));
|
||||
|
||||
|
||||
// Dialog skipping
|
||||
DO_APP_FUNC(0x00F95350, bool, TalkDialogContext_get_canClick, (TalkDialogContext* __this, MethodInfo* method)); // delete
|
||||
DO_APP_FUNC(0x00F932D0, bool, TalkDialogContext_get_canAutoClick, (TalkDialogContext* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x00F97D70, void, TalkDialogContext_OnDialogSelectItem, (TalkDialogContext* __this, Notify* notify, MethodInfo* method));
|
||||
DO_APP_FUNC(0x02BF0040, void, InLevelCutScenePageContext_OnFreeClick, (InLevelCutScenePageContext* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x02BF1AC0, void, InLevelCutScenePageContext_UpdateView, (InLevelCutScenePageContext* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x02BEF110, void, InLevelCutScenePageContext_ClearView, (InLevelCutScenePageContext* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x00F95350, bool, MoleMole_TalkDialogContext_get_canClick, (TalkDialogContext* __this, MethodInfo* method)); // delete
|
||||
DO_APP_FUNC(0x00F932D0, bool, MoleMole_TalkDialogContext_get_canAutoClick, (TalkDialogContext* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x00F97D70, void, MoleMole_TalkDialogContext_OnDialogSelectItem, (TalkDialogContext* __this, Notify* notify, MethodInfo* method));
|
||||
DO_APP_FUNC(0x02BF0040, void, MoleMole_InLevelCutScenePageContext_OnFreeClick, (InLevelCutScenePageContext* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x02BF1AC0, void, MoleMole_InLevelCutScenePageContext_UpdateView, (InLevelCutScenePageContext* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x02BEF110, void, MoleMole_InLevelCutScenePageContext_ClearView, (InLevelCutScenePageContext* __this, MethodInfo* method));
|
||||
|
||||
|
||||
// Protection bypass
|
||||
@ -80,69 +80,69 @@ DO_APP_FUNC(0x066218D0, Byte__Array*, Application_RecordUserData, (int32_t nType
|
||||
|
||||
|
||||
// Networking
|
||||
DO_APP_FUNC(0x012519C0, int32_t, KcpNative_kcp_client_send_packet, (void* kcp_client, KcpPacket_1* packet, MethodInfo* method));
|
||||
DO_APP_FUNC(0x00BD08A0, bool, KcpClient_TryDequeueEvent, (void* __this, ClientKcpEvent* evt, MethodInfo* method));
|
||||
DO_APP_FUNC(0x029C3D60, void, Packet_XorEncrypt, (Byte__Array** bytes, int32_t length, MethodInfo* method));
|
||||
DO_APP_FUNC(0x012519C0, int32_t, Kcp_KcpNative_kcp_client_send_packet, (void* kcp_client, KcpPacket_1* packet, MethodInfo* method));
|
||||
DO_APP_FUNC(0x00BD08A0, bool, MoleMole_KcpClient_TryDequeueEvent, (void* __this, ClientKcpEvent* evt, MethodInfo* method));
|
||||
DO_APP_FUNC(0x029C3D60, void, MoleMole_Packet_XorEncrypt, (Byte__Array** bytes, int32_t length, MethodInfo* method));
|
||||
|
||||
|
||||
// Lua functions
|
||||
DO_APP_FUNC(0x02D59730, Byte__Array*, LuaManager_LoadCustomLuaFile, (LuaManager* __this, String** filePath, bool* recycleBytes, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0655E850, void, Lua_xlua_pushasciistring, (void* L, String* str, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01D8D5D0, void, LuaShellManager_DoString, (void* __this, Byte__Array* byteArray, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01D8D5D0, void, MoleMole_LuaShellManager_DoString, (void* __this, Byte__Array* byteArray, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0600AFF0, void*, LuaEnv_DoString, (void* __this, Byte__Array* chunk, String* chunkName, void* env, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01D8DCA0, void, LuaShellManager_ReportLuaShellResult, (void* __this, String* type, String* value, MethodInfo* method)); // Anticheat info
|
||||
DO_APP_FUNC(0x01D8DCA0, void, MoleMole_LuaShellManager_ReportLuaShellResult, (void* __this, String* type, String* value, MethodInfo* method)); // Anticheat info
|
||||
|
||||
|
||||
// Debug hooks
|
||||
DO_APP_FUNC(0x02D3FA40, AttackResult_1*, AttackResult_FillProtoAttackResult, (AttackResult* __this, uint32_t attackerID, uint32_t defenseId, AttackResult_1* protoAttackResult, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01F16210, void, LevelSyncCombatPlugin_SendFaceToDir, (void* __this, uint32_t runtimeID, Vector3 forward, MethodInfo* method));
|
||||
DO_APP_FUNC(0x035D4180, void, BaseEntity_FireEvent, (BaseEntity* __this, BaseEvent* e, bool immediately, MethodInfo* method));
|
||||
DO_APP_FUNC(0x023D4A90, bool, ActorAbilityPlugin_OnEvent, (void* __this, BaseEvent* e, MethodInfo* method));
|
||||
DO_APP_FUNC(0x02D3FA40, AttackResult_1*, MoleMole_AttackResult_FillProtoAttackResult, (AttackResult* __this, uint32_t attackerID, uint32_t defenseId, AttackResult_1* protoAttackResult, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01F16210, void, MoleMole_LevelSyncCombatPlugin_SendFaceToDir, (void* __this, uint32_t runtimeID, Vector3 forward, MethodInfo* method));
|
||||
DO_APP_FUNC(0x035D4180, void, MoleMole_BaseEntity_FireEvent, (BaseEntity* __this, BaseEvent* e, bool immediately, MethodInfo* method));
|
||||
DO_APP_FUNC(0x023D4A90, bool, MoleMole_ActorAbilityPlugin_OnEvent, (void* __this, BaseEvent* e, MethodInfo* method));
|
||||
|
||||
|
||||
// Kill aura
|
||||
DO_APP_FUNC(0x00B8EB30, void, EvtCrash_Init, (EvtCrash* __this, uint32_t targetID, MethodInfo* method)); // Manual offset
|
||||
DO_APP_FUNC(0x00941E80, void, EventManager_FireEvent, (EventManager* __this, BaseEvent* e, bool immediately, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0167B1A0, bool, FixedBoolStack_get_value, (FixedBoolStack* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x00B8EB30, void, MoleMole_EvtCrash_Init, (EvtCrash* __this, uint32_t targetID, MethodInfo* method)); // Manual offset
|
||||
DO_APP_FUNC(0x00941E80, void, MoleMole_EventManager_FireEvent, (MoleMole_EventManager* __this, BaseEvent* e, bool immediately, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0167B1A0, bool, MoleMole_FixedBoolStack_get_value, (FixedBoolStack* __this, MethodInfo* method));
|
||||
|
||||
// cannot find actual function name: CreateCrashEvent
|
||||
// cannot find actual function name: MoleMole_EventHelper_Allocate_103
|
||||
// shared offset
|
||||
// possible:
|
||||
// DO_APP_FUNC(0x039E2030, MoleMole_EvtCrash_1 *, JDGMIDCLFJK_CNCAIAIACLN_103, (MethodInfo * method));
|
||||
DO_APP_FUNC(0x039E2030, EvtCrash*, CreateCrashEvent, (MethodInfo* method));
|
||||
DO_APP_FUNC_METHODINFO(0x0971A140, CreateCrashEvent__MethodInfo);
|
||||
// DO_APP_FUNC(0x039E2030, MoleMole_EvtCrash_1 *, EventHelper_Allocate_103, (MethodInfo * method));
|
||||
DO_APP_FUNC(0x039E2030, EvtCrash*, MoleMole_EventHelper_Allocate_103, (MethodInfo* method));
|
||||
DO_APP_FUNC_METHODINFO(0x0971A140, MoleMole_EventHelper_Allocate_103__MethodInfo);
|
||||
|
||||
DO_APP_FUNC(0x034BC360, void, BaseMoveSyncPlugin_ConvertSyncTaskToMotionInfo, (BaseMoveSyncPlugin* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x034BC360, void, MoleMole_BaseMoveSyncPlugin_ConvertSyncTaskToMotionInfo, (BaseMoveSyncPlugin* __this, MethodInfo* method));
|
||||
|
||||
|
||||
// Fishing
|
||||
DO_APP_FUNC(0x0292F8D0, void, FishingModule_RequestFishCastRod, (void* __this, uint32_t baitId, uint32_t rodId, Vector3 pos, uint32_t rodEntityId, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0292F8D0, void, MoleMole_FishingModule_RequestFishCastRod, (void* __this, uint32_t baitId, uint32_t rodId, Vector3 pos, uint32_t rodEntityId, MethodInfo* method));
|
||||
|
||||
DO_APP_FUNC(0x0292D6D0, void, FishingModule_RequestFishBite, (void* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x02930440, void, FishingModule_OnFishBiteRsp, (void* __this, FishBiteRsp* rsp, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0292D6D0, void, MoleMole_FishingModule_RequestFishBite, (void* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x02930440, void, MoleMole_FishingModule_OnFishBiteRsp, (void* __this, FishBiteRsp* rsp, MethodInfo* method));
|
||||
|
||||
DO_APP_FUNC(0x0292F470, void, FishingModule_RequestFishBattleBegin, (void* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0292CAE0, void, FishingModule_OnFishBattleBeginRsp, (void* __this, FishBattleBeginRsp* rsp, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0292F470, void, MoleMole_FishingModule_RequestFishBattleBegin, (void* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0292CAE0, void, MoleMole_FishingModule_OnFishBattleBeginRsp, (void* __this, FishBattleBeginRsp* rsp, MethodInfo* method));
|
||||
|
||||
DO_APP_FUNC(0x0292D090, void, FishingModule_RequestFishBattleEnd, (void* __this, FishBattleResult__Enum result, bool isAlwaysBonus, float mxBonusTime, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0292DBD0, void, FishingModule_OnFishBattleEndRsp, (void* __this, FishBattleEndRsp* rsp, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0292D090, void, MoleMole_FishingModule_RequestFishBattleEnd, (void* __this, FishBattleResult__Enum result, bool isAlwaysBonus, float mxBonusTime, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0292DBD0, void, MoleMole_FishingModule_OnFishBattleEndRsp, (void* __this, FishBattleEndRsp* rsp, MethodInfo* method));
|
||||
|
||||
DO_APP_FUNC(0x0292F190, void, FishingModule_OnExitFishingRsp, (void* __this, void* rsp, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0292C7F0, void, FishingModule_onFishChosenNotify, (void* __this, void* notify, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0292F190, void, MoleMole_FishingModule_OnExitFishingRsp, (void* __this, void* rsp, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0292C7F0, void, MoleMole_FishingModule_onFishChosenNotify, (void* __this, void* notify, MethodInfo* method));
|
||||
|
||||
|
||||
// Visuals
|
||||
DO_APP_FUNC(0x013FC090, void, SCameraModuleInitialize_SetWarningLocateRatio, (SCameraModuleInitialize* __this, double deltaTime, CameraShareData* data, MethodInfo* method));
|
||||
DO_APP_FUNC(0x013FC090, void, MoleMole_SCameraModuleInitialize_SetWarningLocateRatio, (SCameraModuleInitialize* __this, double deltaTime, CameraShareData* data, MethodInfo* method));
|
||||
|
||||
// Chest Indicator | RyujinZX#6666
|
||||
DO_APP_FUNC(0x04C9B450, bool, LCIndicatorPlugin_DoCheck, (LCIndicatorPlugin* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x04C9B830, void, LCIndicatorPlugin_ShowIcon, (LCIndicatorPlugin* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x04C9A750, void, LCIndicatorPlugin_HideIcon, (LCIndicatorPlugin* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x04C9B450, bool, MoleMole_LCIndicatorPlugin_DoCheck, (LCIndicatorPlugin* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x04C9B830, void, MoleMole_LCIndicatorPlugin_ShowIcon, (LCIndicatorPlugin* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x04C9A750, void, MoleMole_LCIndicatorPlugin_HideIcon, (LCIndicatorPlugin* __this, MethodInfo* method));
|
||||
|
||||
// Auto Cooking | RyujinZX#6666
|
||||
DO_APP_FUNC(0x02854E30, void, PlayerModule_RequestPlayerCook, (PlayerModule* __this, uint32_t recipeId, uint32_t avatarId, uint32_t qteQuality, uint32_t count, MethodInfo* method));
|
||||
DO_APP_FUNC(0x02858180, void, PlayerModule_OnPlayerCookRsp, (PlayerModule* __this, PlayerCookRsp* rsp, MethodInfo* method));
|
||||
DO_APP_FUNC(0x033F5820, void, CookingQtePageContext_UpdateProficiency, (CookingQtePageContext* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x02854E30, void, MoleMole_PlayerModule_RequestPlayerCook, (MoleMole_PlayerModule* __this, uint32_t recipeId, uint32_t avatarId, uint32_t qteQuality, uint32_t count, MethodInfo* method));
|
||||
DO_APP_FUNC(0x02858180, void, MoleMole_PlayerModule_OnPlayerCookRsp, (MoleMole_PlayerModule* __this, PlayerCookRsp* rsp, MethodInfo* method));
|
||||
DO_APP_FUNC(0x033F5820, void, MoleMole_CookingQtePageContext_UpdateProficiency, (CookingQtePageContext* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0116AA10, uint32_t, CookRecipeExcelConfig_get_maxProficiency, (CookRecipeExcelConfig* __this, MethodInfo* method));
|
||||
|
||||
|
||||
@ -166,48 +166,46 @@ DO_APP_FUNC(0x01AA5200, Notify, Notify_CreateNotify_1, (MoleMole_NotifyTypes__En
|
||||
|
||||
// DO_APP_FUNC(0x020C7AA0, float, MoleMole_SafeFloat_DBDMOONJALD_1, (MoleMole_SafeFloat v, MethodInfo * method));
|
||||
// DBDMOONJALD => op_Implicit
|
||||
DO_APP_FUNC(0x020C7AA0, float, SafeFloat_GetValue, (SafeFloat safeFloat, MethodInfo* method));
|
||||
DO_APP_FUNC(0x020C7AA0, float, MoleMole_SafeFloat_get_Value, (SafeFloat safeFloat, MethodInfo* method));
|
||||
// DO_APP_FUNC(0x020C7920, MoleMole_SafeFloat, MoleMole_SafeFloat_DBDMOONJALD, (float IGFNEICJINB, MethodInfo * method));
|
||||
DO_APP_FUNC(0x020C7920, SafeFloat, SafeFloat_SetValue, (float value, MethodInfo* method));
|
||||
|
||||
DO_APP_FUNC(0x035AC7B0, void, Entity_SetRelativePosition, (BaseEntity* __this, Vector3 position, bool forceSyncToRigidbody, MethodInfo* method));
|
||||
DO_APP_FUNC(0x020C7920, SafeFloat, MoleMole_SafeFloat_set_Value, (float value, MethodInfo* method));
|
||||
|
||||
//DO_APP_FUNC(0x039E2290, MoleMole_LCBaseCombat *, MoleMole_BaseEntity_GetLogicCombatComponent_1, (MoleMole_BaseEntity * __this, MethodInfo * method));
|
||||
DO_APP_FUNC(0x039E2290, LCBaseCombat*, BaseEntity_GetBaseCombat, (BaseEntity* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x039E2290, LCBaseCombat*, MoleMole_BaseEntity_GetLogicCombatComponent_1, (BaseEntity* __this, MethodInfo* method));
|
||||
|
||||
DO_APP_FUNC(0x035CC430, String*, BaseEntity_ToStringRelease, (BaseEntity* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x035AC7B0, void, BaseEntity_SetRelativePosition, (BaseEntity* __this, Vector3 position, bool forceSyncToRigidbody, MethodInfo* method));
|
||||
DO_APP_FUNC(0x035C0AA0, void, BaseEntity_SetAbsolutePosition, (BaseEntity* __this, Vector3 abpos, bool forceSyncToRigidbody, MethodInfo* method));
|
||||
DO_APP_FUNC(0x035C4B00, Vector3, BaseEntity_GetAbsolutePosition, (BaseEntity* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x035C3950, Vector3, BaseEntity_GetRelativePosition, (BaseEntity* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x035B1EF0, Vector3, BaseEntity_GetForward, (BaseEntity* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x035D4BA0, Vector3, BaseEntity_GetForwardFast, (BaseEntity* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x035C08A0, Vector3, BaseEntity_GetRight, (BaseEntity* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x035CB210, Vector3, BaseEntity_GetUp, (BaseEntity* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x035D5B30, bool, BaseEntity_IsActive, (BaseEntity* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x035C7A50, Rigidbody*, BaseEntity_GetRigidbody, (BaseEntity* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x035CC430, String*, MoleMole_BaseEntity_ToStringRelease, (BaseEntity* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x035AC7B0, void, MoleMole_BaseEntity_SetRelativePosition, (BaseEntity* __this, Vector3 position, bool forceSyncToRigidbody, MethodInfo* method));
|
||||
DO_APP_FUNC(0x035C0AA0, void, MoleMole_BaseEntity_SetAbsolutePosition, (BaseEntity* __this, Vector3 abpos, bool forceSyncToRigidbody, MethodInfo* method));
|
||||
DO_APP_FUNC(0x035C4B00, Vector3, MoleMole_BaseEntity_GetAbsolutePosition, (BaseEntity* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x035BE810, Vector3, MoleMole_BaseEntity_GetRelativePosition, (BaseEntity* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x035B1EF0, Vector3, MoleMole_BaseEntity_GetForward, (BaseEntity* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x035D4BA0, Vector3, MoleMole_BaseEntity_GetForwardFast, (BaseEntity* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x035C08A0, Vector3, MoleMole_BaseEntity_GetRight, (BaseEntity* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x035CB210, Vector3, MoleMole_BaseEntity_GetUp, (BaseEntity* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x035D5B30, bool, MoleMole_BaseEntity_IsActive, (BaseEntity* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x035C7A50, Rigidbody*, MoleMole_BaseEntity_GetRigidbody, (BaseEntity* __this, MethodInfo* method));
|
||||
|
||||
//DO_APP_FUNC(0x039E22C0, MoleMole_VCBaseMove_1 *, MoleMole_BaseEntity_GetMoveComponent_1, (MoleMole_BaseEntity * __this, MethodInfo * method));
|
||||
DO_APP_FUNC(0x039E22C0, VCBaseMove*, BaseEntity_GetMoveComponent_1, (BaseEntity* __this, MethodInfo* method)); // double check
|
||||
DO_APP_FUNC(0x039E22C0, VCBaseMove*, MoleMole_BaseEntity_GetMoveComponent_1, (BaseEntity* __this, MethodInfo* method)); // double check
|
||||
|
||||
DO_APP_FUNC(0x035C3850, List_1_MoleMole_BaseComponent_*, BaseEntity_GetAllLogicComponents, (BaseEntity* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0187FDC0, GameObject*, BaseEntity_get_gameObject, (BaseEntity* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x035ACC70, GameObject*, BaseEntity_get_rootGameObject, (BaseEntity* __this, MethodInfo* method));
|
||||
DO_APP_FUNC_METHODINFO(0x096EE7D8, BaseEntity_GetMoveComponent_1__MethodInfo);
|
||||
DO_APP_FUNC(0x035C3850, List_1_MoleMole_BaseComponent_*, MoleMole_BaseEntity_GetAllLogicComponents, (BaseEntity* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0187FDC0, GameObject*, MoleMole_BaseEntity_get_gameObject, (BaseEntity* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x035ACC70, GameObject*, MoleMole_BaseEntity_get_rootGameObject, (BaseEntity* __this, MethodInfo* method));
|
||||
DO_APP_FUNC_METHODINFO(0x096EE7D8, MoleMole_BaseEntity_GetMoveComponent_1__MethodInfo);
|
||||
|
||||
//DO_APP_FUNC_METHODINFO(0x096EF950, MoleMole_BaseEntity_GetLogicCombatComponent_1__MethodInfo); // double check
|
||||
DO_APP_FUNC_METHODINFO(0x096EF950, BaseEntity_GetBaseCombat__MethodInfo);
|
||||
DO_APP_FUNC_METHODINFO(0x096EF950, MoleMole_BaseEntity_GetLogicCombatComponent_1__MethodInfo);
|
||||
|
||||
// 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(0x01BF68A0, BaseEntity*, EntityManager_GetCurrentAvatar, (EntityManager* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01BF68A0, BaseEntity*, MoleMole_EntityManager_GetLocalAvatarEntity, (MoleMole_EntityManager* __this, MethodInfo* method));
|
||||
|
||||
DO_APP_FUNC(0x01BF4E50, CameraEntity*, EntityManager_GetMainCameraEntity, (EntityManager* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01BEB030, BaseEntity*, EntityManager_GetValidEntity, (EntityManager* __this, uint32_t runtimeID, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01C02920, bool, EntityManager_RemoveEntity, (EntityManager* __this, BaseEntity* entity, uint32_t specifiedRuntimeID, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01C02800, bool, EntityManager_IsCachedEntity, (EntityManager* __this, BaseEntity* entity, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01BF01F0, List_1_MoleMole_BaseEntity_*, EntityManager_GetEntities, (EntityManager* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01BF4E50, CameraEntity*, MoleMole_EntityManager_GetMainCameraEntity, (MoleMole_EntityManager* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01BEB030, BaseEntity*, MoleMole_EntityManager_GetValidEntity, (MoleMole_EntityManager* __this, uint32_t runtimeID, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01BF2D60, bool, MoleMole_EntityManager_RemoveEntity, (MoleMole_EntityManager* __this, BaseEntity* entity, uint32_t specifiedRuntimeID, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01C02800, bool, MoleMole_EntityManager_IsCachedEntity, (MoleMole_EntityManager* __this, BaseEntity* entity, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01BF01F0, List_1_MoleMole_BaseEntity_*, MoleMole_EntityManager_GetEntities, (MoleMole_EntityManager* __this, MethodInfo* method));
|
||||
|
||||
// check comparison with 2.6
|
||||
// function name changed to:
|
||||
@ -215,29 +213,29 @@ DO_APP_FUNC(0x01BF01F0, List_1_MoleMole_BaseEntity_*, EntityManager_GetEntities,
|
||||
DO_APP_FUNC(0x044B8970, Bounds, Utils_4_GetBounds, (GameObject* go, MethodInfo* method));
|
||||
|
||||
// Modify | RyujinZX#6666
|
||||
DO_APP_FUNC(0x00C6C780, void, HumanoidMoveFSM_LateTick, (HumanoidMoveFSM* __this, float deltaTime, MethodInfo* method));
|
||||
DO_APP_FUNC(0x00C6C780, void, MoleMole_HumanoidMoveFSM_LateTick, (HumanoidMoveFSM* __this, float deltaTime, MethodInfo* method));
|
||||
|
||||
DO_APP_FUNC(0x01DD2070, bool, ScenePropManager_GetTreeTypeByPattern, (ScenePropManager* __this, String* pattern, MoleMole_Config_TreeType__Enum* treeType, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01DD2070, bool, MoleMole_ScenePropManager_GetTreeTypeByPattern, (MoleMole_ScenePropManager* __this, String* pattern, MoleMole_Config_TreeType__Enum* treeType, MethodInfo* method));
|
||||
|
||||
DO_APP_FUNC(0x00C3F160, void, NetworkManager_1_RequestHitTreeDropNotify, (NetworkManager_1* __this, Vector3 position, Vector3 hitPostion, MoleMole_Config_TreeType__Enum treeType, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0291FEF0, uint64_t, TimeUtil_get_NowTimeStamp, (MethodInfo* method));
|
||||
DO_APP_FUNC(0x00C3F160, void, MoleMole_NetworkManager_RequestHitTreeDropNotify, (MoleMole_NetworkManager* __this, Vector3 position, Vector3 hitPostion, MoleMole_Config_TreeType__Enum treeType, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0291FEF0, uint64_t, MoleMole_TimeUtil_get_NowTimeStamp, (MethodInfo* method));
|
||||
|
||||
DO_APP_FUNC(0x01F5BA10, bool, LoadingManager_IsLoaded, (LoadingManager* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01F5BA10, bool, MoleMole_LoadingManager_IsLoaded, (MoleMole_LoadingManager* __this, MethodInfo* method));
|
||||
|
||||
// Thanks to | RyujinZX
|
||||
DO_APP_FUNC(0x01337F70, void, LCAbilityElement_ReduceModifierDurability, (LCAbilityElement* __this, int32_t modifierDurabilityIndex, float reduceDurability, Nullable_1_Single_ deltaTime, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01337F70, void, MoleMole_LCAbilityElement_ReduceModifierDurability, (LCAbilityElement* __this, int32_t modifierDurabilityIndex, float reduceDurability, Nullable_1_Single_ deltaTime, MethodInfo* method));
|
||||
|
||||
DO_APP_FUNC(0x01FF2880, BaseEntity*, GadgetEntity_GetOwnerEntity, (GadgetEntity* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01FF2880, BaseEntity*, MoleMole_GadgetEntity_GetOwnerEntity, (GadgetEntity* __this, MethodInfo* method));
|
||||
|
||||
DO_APP_FUNC(0x02E826A0, void, InLevelMapPageContext_ZoomMap, (InLevelMapPageContext* __this, float value, MethodInfo* method));
|
||||
DO_APP_FUNC(0x02EC7730, void, InLevelMapPageContext_UpdateView, (InLevelMapPageContext* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x02E826A0, void, MoleMole_InLevelMapPageContext_ZoomMap, (InLevelMapPageContext* __this, float value, MethodInfo* method));
|
||||
DO_APP_FUNC(0x02EC7730, void, MoleMole_InLevelMapPageContext_UpdateView, (InLevelMapPageContext* __this, MethodInfo* method));
|
||||
|
||||
DO_APP_FUNC(0x01A36960, bool, UIManager_HasEnableMapCamera, (UIManager* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x01A36960, bool, MoleMole_UIManager_HasEnableMapCamera, (MoleMole_UIManager* __this, MethodInfo* method));
|
||||
|
||||
DO_APP_FUNC(0x00E8E700, void, MonoMiniMap_Update, (MonoMiniMap* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x0635A470, MonoMiniMap*, MonoInLevelMainPage_get_miniMap, (void* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x024A3570, void, GadgetModule_OnGadgetInteractRsp, (void* __this, GadgetInteractRsp* notify, MethodInfo* method));
|
||||
DO_APP_FUNC(0x00A8D650, float, InLevelMainPageContext_get_miniMapScale, (InLevelMainPageContext* __this, MethodInfo* method));
|
||||
DO_APP_FUNC(0x024A3570, void, MoleMole_GadgetModule_OnGadgetInteractRsp, (void* __this, GadgetInteractRsp* notify, MethodInfo* method));
|
||||
DO_APP_FUNC(0x00A8D650, float, MoleMole_InLevelMainPageContext_get_miniMapScale, (InLevelMainPageContext* __this, MethodInfo* method));
|
||||
|
||||
|
||||
// UnityEngine
|
||||
@ -282,16 +280,15 @@ DO_APP_FUNC(0x06677BD0, float, Canvas_get_scaleFactor, (/*Canvas**/void* __this,
|
||||
|
||||
// Singletons
|
||||
DO_APP_FUNC(0x05189A90, void*, Singleton_GetInstance, (void* __this, MethodInfo* method));
|
||||
DO_APP_FUNC_METHODINFO(0x096EE180, Singleton_1_MapModule__get_Instance__MethodInfo);
|
||||
DO_APP_FUNC_METHODINFO(0x096EE1C0, Singleton_1_LoadingManager__get_Instance__MethodInfo);
|
||||
DO_APP_FUNC_METHODINFO(0x096EA380, Singleton_1_EntityManager__get_Instance__MethodInfo);
|
||||
DO_APP_FUNC_METHODINFO(0x096EE180, Singleton_1_MoleMole_MapModule__get_Instance__MethodInfo);
|
||||
DO_APP_FUNC_METHODINFO(0x096EE1C0, Singleton_1_MoleMole_LoadingManager__get_Instance__MethodInfo);
|
||||
DO_APP_FUNC_METHODINFO(0x096EA380, Singleton_1_MoleMole_EntityManager__get_Instance__MethodInfo);
|
||||
DO_APP_FUNC_METHODINFO(0x096EB1E8, Singleton_1_InteractionManager__get_Instance__MethodInfo);
|
||||
DO_APP_FUNC_METHODINFO(0x096FAE70, Singleton_1_MessageInfo__get_Instance__MethodInfo);
|
||||
DO_APP_FUNC_METHODINFO(0x096EA278, Singleton_1_UIManager__get_Instance__MethodInfo);
|
||||
DO_APP_FUNC_METHODINFO(0x096ED720, Singleton_1_ItemModule__get_Instance__MethodInfo);
|
||||
DO_APP_FUNC_METHODINFO(0x096EB530, Singleton_1_EventManager__get_Instance__MethodInfo);
|
||||
DO_APP_FUNC_METHODINFO(0x096EA298, Singleton_1_PlayerModule__get_Instance__MethodInfo);
|
||||
DO_APP_FUNC_METHODINFO(0x096EA4F8, Singleton_1_MapManager__get_Instance__MethodInfo);
|
||||
DO_APP_FUNC_METHODINFO(0x096ECB80, Singleton_1_ScenePropManager__get_Instance__MethodInfo);
|
||||
DO_APP_FUNC_METHODINFO(0x096EA9A8, Singleton_1_NetworkManager_1__get_Instance__MethodInfo);
|
||||
DO_APP_FUNC_METHODINFO(0x096EA278, Singleton_1_MoleMole_UIManager__get_Instance__MethodInfo);
|
||||
DO_APP_FUNC_METHODINFO(0x096ED720, Singleton_1_MoleMole_ItemModule__get_Instance__MethodInfo);
|
||||
DO_APP_FUNC_METHODINFO(0x096EB530, Singleton_1_MoleMole_EventManager__get_Instance__MethodInfo);
|
||||
DO_APP_FUNC_METHODINFO(0x096EA298, Singleton_1_MoleMole_PlayerModule__get_Instance__MethodInfo);
|
||||
DO_APP_FUNC_METHODINFO(0x096EA4F8, Singleton_1_MoleMole_MapManager__get_Instance__MethodInfo);
|
||||
DO_APP_FUNC_METHODINFO(0x096ECB80, Singleton_1_MoleMole_ScenePropManager__get_Instance__MethodInfo);
|
||||
DO_APP_FUNC_METHODINFO(0x096EA9A8, Singleton_1_MoleMole_NetworkManager__get_Instance__MethodInfo);
|
||||
|
||||
|
@ -14,14 +14,14 @@ DO_TYPEDEF(0x097EEDB0, LCChestPlugin);
|
||||
DO_TYPEDEF(0x097EE938, SceneTreeObject);
|
||||
|
||||
// v 2.6
|
||||
DO_SINGLETONEDEF(0x0B3442D8, Singleton_1_MapModule_);
|
||||
DO_SINGLETONEDEF(0x0B308870, Singleton_1_EntityManager_);
|
||||
DO_SINGLETONEDEF(0x0B316A68, Singleton_1_LoadingManager_);
|
||||
DO_SINGLETONEDEF(0x0B3442D8, Singleton_1_MoleMole_MapModule_);
|
||||
DO_SINGLETONEDEF(0x0B308870, Singleton_1_MoleMole_EntityManager_);
|
||||
DO_SINGLETONEDEF(0x0B316A68, Singleton_1_MoleMole_LoadingManager_);
|
||||
DO_SINGLETONEDEF(0x0B30BD10, Singleton_1_InteractionManager_);
|
||||
DO_SINGLETONEDEF(0x0B2F8038, Singleton_1_UIManager_);
|
||||
DO_SINGLETONEDEF(0x0B291838, Singleton_1_ItemModule_);
|
||||
DO_SINGLETONEDEF(0x0B309120, Singleton_1_EventManager_);
|
||||
DO_SINGLETONEDEF(0x0B326FF8, Singleton_1_PlayerModule_);
|
||||
DO_SINGLETONEDEF(0x0B2F2A38, Singleton_1_MapManager_);
|
||||
DO_SINGLETONEDEF(0x0B399890, Singleton_1_NetworkManager_1_);
|
||||
DO_SINGLETONEDEF(0x0B2227B8, Singleton_1_ScenePropManager_);
|
||||
DO_SINGLETONEDEF(0x0B2F8038, Singleton_1_MoleMole_UIManager_);
|
||||
DO_SINGLETONEDEF(0x0B291838, Singleton_1_MoleMole_ItemModule_);
|
||||
DO_SINGLETONEDEF(0x0B309120, Singleton_1_MoleMole_EventManager_);
|
||||
DO_SINGLETONEDEF(0x0B326FF8, Singleton_1_MoleMole_PlayerModule_);
|
||||
DO_SINGLETONEDEF(0x0B2F2A38, Singleton_1_MoleMole_MapManager_);
|
||||
DO_SINGLETONEDEF(0x0B399890, Singleton_1_MoleMole_NetworkManager_);
|
||||
DO_SINGLETONEDEF(0x0B2227B8, Singleton_1_MoleMole_ScenePropManager_);
|
File diff suppressed because it is too large
Load Diff
@ -343,6 +343,7 @@ uintptr_t ILPatternScanner::FindFunctionEntry(uintptr_t address)
|
||||
|
||||
void ILPatternScanner::LoadMethodPointers()
|
||||
{
|
||||
/* Outdated. Need update to version 2.7
|
||||
auto info = GetMetadataInfo();
|
||||
|
||||
#define LOAD_METHOD_POINTERS(countField, field) LOG_DEBUG( #field ": %d", info->codeRegistration->##countField); \
|
||||
@ -359,6 +360,7 @@ void ILPatternScanner::LoadMethodPointers()
|
||||
|
||||
std::sort(m_MethodPointers.begin(), m_MethodPointers.end());
|
||||
LOG_DEBUG("Loaded %llu method pointers.", m_MethodPointers.size());
|
||||
*/
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
@ -369,6 +371,7 @@ static T MetadataOffset(void* metadata, size_t sectionOffset, size_t itemIndex)
|
||||
|
||||
const MethodInfo* ILPatternScanner::GetMethodInfoFromIndex(uint32_t methodIndex)
|
||||
{
|
||||
/* Outdated. Need update to version 2.7
|
||||
SET_API_FUNC_P(Il2CppGenericMethod*, GetGenericMethodFromIndex, (uint32_t index), "40 53 48 83 EC 20 48 8B 05 ?? ?? ?? ?? 48 63");
|
||||
|
||||
GET_FUNC_BY_XREF(MethodInfo*, GetMethod, (const Il2CppGenericMethod * gmethod), "E8 ?? ?? ?? ?? 48 8B C8 0F B7 FE", 1);
|
||||
@ -383,6 +386,8 @@ const MethodInfo* ILPatternScanner::GetMethodInfoFromIndex(uint32_t methodIndex)
|
||||
return GetMethod(GetGenericMethodFromIndex(index));
|
||||
else
|
||||
return GetMethodInfoFromMethodDefinitionIndex(index);
|
||||
*/
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
std::string ILPatternScanner::ComputeGenericParamsPrefix(const Il2CppGenericInst* inst)
|
||||
@ -466,6 +471,7 @@ std::string ILPatternScanner::ComputeInspectorMethodName(const MethodInfo* metho
|
||||
|
||||
void ILPatternScanner::LoadUsage()
|
||||
{
|
||||
/* Outdated. Need update to version 2.7.
|
||||
SET_API_FUNC_P(Il2CppClass*, GetTypeInfoFromTypeIndex, (uint32_t index), "48 83 EC 28 83 F9 FF 75");
|
||||
|
||||
auto info = GetMetadataInfo();
|
||||
@ -533,7 +539,7 @@ void ILPatternScanner::LoadUsage()
|
||||
}
|
||||
}
|
||||
}
|
||||
LoadMetadata();
|
||||
LoadMetadata();*/
|
||||
}
|
||||
|
||||
void ILPatternScanner::LoadMetadata()
|
||||
|
@ -127,7 +127,7 @@ namespace cheat
|
||||
|
||||
static uint32_t _lastUserID = 0;
|
||||
|
||||
auto playerModule = GET_SINGLETON(PlayerModule);
|
||||
auto playerModule = GET_SINGLETON(MoleMole_PlayerModule);
|
||||
if (playerModule == nullptr || playerModule->fields._accountData_k__BackingField == nullptr)
|
||||
return;
|
||||
|
||||
@ -158,7 +158,7 @@ namespace cheat
|
||||
static void InstallEventHooks()
|
||||
{
|
||||
HookManager::install(app::GameManager_Update, GameManager_Update_Hook);
|
||||
HookManager::install(app::LevelSyncCombatPlugin_RequestSceneEntityMoveReq, LevelSyncCombatPlugin_RequestSceneEntityMoveReq_Hook);
|
||||
HookManager::install(app::MoleMole_LevelSyncCombatPlugin_RequestSceneEntityMoveReq, LevelSyncCombatPlugin_RequestSceneEntityMoveReq_Hook);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -26,8 +26,8 @@ namespace cheat::feature::esp::render
|
||||
|
||||
s_Camera = nullptr;
|
||||
|
||||
auto loadingManager = GET_SINGLETON(LoadingManager);
|
||||
if (loadingManager == nullptr || !app::LoadingManager_IsLoaded(loadingManager, nullptr))
|
||||
auto loadingManager = GET_SINGLETON(MoleMole_LoadingManager);
|
||||
if (loadingManager == nullptr || !app::MoleMole_LoadingManager_IsLoaded(loadingManager, nullptr))
|
||||
return;
|
||||
|
||||
SAFE_BEGIN();
|
||||
|
@ -24,7 +24,7 @@ namespace cheat::game
|
||||
entityFilters[filter] = { false, 0 };
|
||||
|
||||
auto& entry = entityFilters[filter];
|
||||
auto timestamp = app::TimeUtil_get_NowTimeStamp(nullptr);
|
||||
auto timestamp = app::MoleMole_TimeUtil_get_NowTimeStamp(nullptr);
|
||||
if (entry.second + m_LifeTime > timestamp)
|
||||
return entry.first;
|
||||
|
||||
|
@ -14,7 +14,7 @@ namespace cheat::game
|
||||
app::String* GetRawName(game::Entity* entity)
|
||||
{
|
||||
SAFE_BEGIN();
|
||||
return app::BaseEntity_ToStringRelease(entity->raw(), nullptr);
|
||||
return app::MoleMole_BaseEntity_ToStringRelease(entity->raw(), nullptr);
|
||||
SAFE_ERROR();
|
||||
return nullptr;
|
||||
SAFE_END();
|
||||
@ -61,7 +61,7 @@ namespace cheat::game
|
||||
if (m_RawEntity == nullptr)
|
||||
return {};
|
||||
|
||||
return app::BaseEntity_GetRelativePosition(m_RawEntity, nullptr);
|
||||
return app::MoleMole_BaseEntity_GetRelativePosition(m_RawEntity, nullptr);
|
||||
}
|
||||
|
||||
app::Vector3 Entity::absolutePosition()
|
||||
@ -69,7 +69,7 @@ namespace cheat::game
|
||||
if (m_RawEntity == nullptr)
|
||||
return {};
|
||||
|
||||
return app::BaseEntity_GetAbsolutePosition(m_RawEntity, nullptr);
|
||||
return app::MoleMole_BaseEntity_GetAbsolutePosition(m_RawEntity, nullptr);
|
||||
}
|
||||
|
||||
app::Vector2 Entity::levelPosition()
|
||||
@ -93,7 +93,7 @@ namespace cheat::game
|
||||
if (rawEntity == nullptr)
|
||||
return 10000;
|
||||
|
||||
auto point = app::BaseEntity_GetRelativePosition(rawEntity, nullptr);
|
||||
auto point = app::MoleMole_BaseEntity_GetRelativePosition(rawEntity, nullptr);
|
||||
return distance(point);
|
||||
}
|
||||
|
||||
@ -149,7 +149,7 @@ namespace cheat::game
|
||||
if (m_RawEntity == nullptr)
|
||||
return;
|
||||
|
||||
app::BaseEntity_SetRelativePosition(m_RawEntity, value, true, nullptr);
|
||||
app::MoleMole_BaseEntity_SetRelativePosition(m_RawEntity, value, true, nullptr);
|
||||
}
|
||||
|
||||
void Entity::setAbsolutePosition(const app::Vector3& value)
|
||||
@ -157,15 +157,15 @@ namespace cheat::game
|
||||
if (m_RawEntity == nullptr)
|
||||
return;
|
||||
|
||||
app::BaseEntity_SetAbsolutePosition(m_RawEntity, value, true, nullptr);
|
||||
app::MoleMole_BaseEntity_SetAbsolutePosition(m_RawEntity, value, true, nullptr);
|
||||
}
|
||||
|
||||
bool Entity::isLoaded()
|
||||
{
|
||||
if (m_RawEntity == nullptr || !app::BaseEntity_IsActive(m_RawEntity, nullptr))
|
||||
if (m_RawEntity == nullptr || !app::MoleMole_BaseEntity_IsActive(m_RawEntity, nullptr))
|
||||
return false;
|
||||
|
||||
m_IsLoaded = m_IsLoaded || app::BaseEntity_get_rootGameObject(m_RawEntity, nullptr);
|
||||
m_IsLoaded = m_IsLoaded || app::MoleMole_BaseEntity_get_rootGameObject(m_RawEntity, nullptr);
|
||||
return m_IsLoaded;
|
||||
}
|
||||
|
||||
@ -175,7 +175,7 @@ namespace cheat::game
|
||||
return nullptr;
|
||||
|
||||
SAFE_BEGIN();
|
||||
return app::BaseEntity_GetMoveComponent_1(m_RawEntity, *app::BaseEntity_GetMoveComponent_1__MethodInfo);
|
||||
return app::MoleMole_BaseEntity_GetMoveComponent_1(m_RawEntity, *app::MoleMole_BaseEntity_GetMoveComponent_1__MethodInfo);
|
||||
SAFE_ERROR();
|
||||
return nullptr;
|
||||
SAFE_END();
|
||||
@ -187,7 +187,7 @@ namespace cheat::game
|
||||
return nullptr;
|
||||
|
||||
SAFE_BEGIN();
|
||||
return app::BaseEntity_GetBaseCombat(m_RawEntity, *app::BaseEntity_GetBaseCombat__MethodInfo);
|
||||
return app::MoleMole_BaseEntity_GetLogicCombatComponent_1(m_RawEntity, *app::MoleMole_BaseEntity_GetLogicCombatComponent_1__MethodInfo);
|
||||
SAFE_ERROR();
|
||||
return nullptr;
|
||||
SAFE_END();
|
||||
@ -199,7 +199,7 @@ namespace cheat::game
|
||||
return nullptr;
|
||||
|
||||
SAFE_BEGIN();
|
||||
return app::BaseEntity_GetRigidbody(m_RawEntity, nullptr);
|
||||
return app::MoleMole_BaseEntity_GetRigidbody(m_RawEntity, nullptr);
|
||||
SAFE_ERROR();
|
||||
return nullptr;
|
||||
SAFE_END();
|
||||
@ -211,7 +211,7 @@ namespace cheat::game
|
||||
return nullptr;
|
||||
|
||||
SAFE_BEGIN();
|
||||
return app::BaseEntity_get_gameObject(m_RawEntity, nullptr);
|
||||
return app::MoleMole_BaseEntity_get_gameObject(m_RawEntity, nullptr);
|
||||
SAFE_ERROR();
|
||||
return nullptr;
|
||||
SAFE_END();
|
||||
@ -222,7 +222,7 @@ namespace cheat::game
|
||||
if (m_RawEntity == nullptr)
|
||||
return {};
|
||||
|
||||
return app::BaseEntity_GetForward(m_RawEntity, nullptr);
|
||||
return app::MoleMole_BaseEntity_GetForward(m_RawEntity, nullptr);
|
||||
}
|
||||
|
||||
app::Vector3 Entity::back()
|
||||
@ -235,7 +235,7 @@ namespace cheat::game
|
||||
if (m_RawEntity == nullptr)
|
||||
return {};
|
||||
|
||||
return app::BaseEntity_GetRight(m_RawEntity, nullptr);
|
||||
return app::MoleMole_BaseEntity_GetRight(m_RawEntity, nullptr);
|
||||
}
|
||||
|
||||
app::Vector3 Entity::left()
|
||||
@ -248,7 +248,7 @@ namespace cheat::game
|
||||
if (m_RawEntity == nullptr)
|
||||
return {};
|
||||
|
||||
return app::BaseEntity_GetUp(m_RawEntity, nullptr);
|
||||
return app::MoleMole_BaseEntity_GetUp(m_RawEntity, nullptr);
|
||||
}
|
||||
|
||||
app::Vector3 Entity::down()
|
||||
|
@ -53,7 +53,7 @@ namespace cheat::game
|
||||
|
||||
SAFE_BEGIN();
|
||||
|
||||
auto logicComponentsRaw = app::BaseEntity_GetAllLogicComponents(m_RawEntity, nullptr);
|
||||
auto logicComponentsRaw = app::MoleMole_BaseEntity_GetAllLogicComponents(m_RawEntity, nullptr);
|
||||
auto logicComponents = TO_UNI_LIST(logicComponentsRaw, app::BaseComponent*);
|
||||
if (logicComponents == nullptr)
|
||||
return nullptr;
|
||||
|
@ -16,11 +16,11 @@ namespace cheat::game
|
||||
|
||||
std::vector<app::BaseEntity*> EntityManager::rawEntities()
|
||||
{
|
||||
auto entityManager = GET_SINGLETON(EntityManager);
|
||||
auto entityManager = GET_SINGLETON(MoleMole_EntityManager);
|
||||
if (entityManager == nullptr)
|
||||
return {};
|
||||
|
||||
auto entities = TO_UNI_LIST(app::EntityManager_GetEntities(entityManager, nullptr), app::BaseEntity*);
|
||||
auto entities = TO_UNI_LIST(app::MoleMole_EntityManager_GetEntities(entityManager, nullptr), app::BaseEntity*);
|
||||
if (entities == nullptr)
|
||||
return {};
|
||||
|
||||
@ -29,7 +29,7 @@ namespace cheat::game
|
||||
|
||||
for (const auto& entity : *entities)
|
||||
{
|
||||
if (entity != nullptr && app::BaseEntity_IsActive(entity, nullptr))
|
||||
if (entity != nullptr && app::MoleMole_BaseEntity_IsActive(entity, nullptr))
|
||||
aliveEntities.push_back(entity);
|
||||
}
|
||||
return aliveEntities;
|
||||
@ -73,11 +73,11 @@ namespace cheat::game
|
||||
|
||||
cheat::game::Entity* EntityManager::entity(uint32_t runtimeID, bool unsafe)
|
||||
{
|
||||
auto entityManager = GET_SINGLETON(EntityManager);
|
||||
auto entityManager = GET_SINGLETON(MoleMole_EntityManager);
|
||||
if (entityManager == nullptr)
|
||||
return nullptr;
|
||||
|
||||
auto rawEntity = app::EntityManager_GetValidEntity(entityManager, runtimeID, nullptr);
|
||||
auto rawEntity = app::MoleMole_EntityManager_GetValidEntity(entityManager, runtimeID, nullptr);
|
||||
if (unsafe)
|
||||
return new Entity(rawEntity);
|
||||
|
||||
@ -86,18 +86,18 @@ namespace cheat::game
|
||||
|
||||
cheat::game::Entity* EntityManager::avatar()
|
||||
{
|
||||
auto entityManager = GET_SINGLETON(EntityManager);
|
||||
auto entityManager = GET_SINGLETON(MoleMole_EntityManager);
|
||||
if (entityManager == nullptr)
|
||||
return s_EmptyEntity;
|
||||
|
||||
auto avatarRaw = app::EntityManager_GetCurrentAvatar(entityManager, nullptr);
|
||||
auto avatarRaw = app::MoleMole_EntityManager_GetLocalAvatarEntity(entityManager, nullptr);
|
||||
if (m_AvatarEntity.raw() != avatarRaw)
|
||||
m_AvatarEntity = Entity(avatarRaw);
|
||||
|
||||
return &m_AvatarEntity;
|
||||
}
|
||||
|
||||
bool EntityManager_RemoveEntity_Hook(app::EntityManager* __this, app::BaseEntity* entity, uint32_t specifiedRuntimeID, MethodInfo* method)
|
||||
bool EntityManager_RemoveEntity_Hook(app::MoleMole_EntityManager* __this, app::BaseEntity* entity, uint32_t specifiedRuntimeID, MethodInfo* method)
|
||||
{
|
||||
EntityManager::instance().OnRawEntityDestroy(entity);
|
||||
return CALL_ORIGIN(EntityManager_RemoveEntity_Hook, __this, entity, specifiedRuntimeID, method);
|
||||
@ -121,12 +121,12 @@ namespace cheat::game
|
||||
|
||||
EntityManager::EntityManager() : m_AvatarEntity(nullptr)
|
||||
{
|
||||
HookManager::install(app::EntityManager_RemoveEntity, EntityManager_RemoveEntity_Hook);
|
||||
HookManager::install(app::MoleMole_EntityManager_RemoveEntity, EntityManager_RemoveEntity_Hook);
|
||||
}
|
||||
|
||||
cheat::game::Entity* EntityManager::entity(app::BaseEntity* rawEntity)
|
||||
{
|
||||
if (rawEntity == nullptr || !app::BaseEntity_IsActive(rawEntity, nullptr))
|
||||
if (rawEntity == nullptr || !app::MoleMole_BaseEntity_IsActive(rawEntity, nullptr))
|
||||
return s_EmptyEntity;
|
||||
|
||||
std::lock_guard<std::mutex> lock(m_EntityCacheLock);
|
||||
@ -142,7 +142,7 @@ namespace cheat::game
|
||||
entityDestroyEvent(entry.first);
|
||||
}
|
||||
|
||||
if (app::BaseEntity_get_rootGameObject(rawEntity, nullptr) == nullptr)
|
||||
if (app::MoleMole_BaseEntity_get_rootGameObject(rawEntity, nullptr) == nullptr)
|
||||
return s_EmptyEntity;
|
||||
|
||||
Entity* ent = new Entity(rawEntity);
|
||||
@ -158,11 +158,11 @@ namespace cheat::game
|
||||
|
||||
app::CameraEntity* EntityManager::mainCamera()
|
||||
{
|
||||
auto entityManager = GET_SINGLETON(EntityManager);
|
||||
auto entityManager = GET_SINGLETON(MoleMole_EntityManager);
|
||||
if (entityManager == nullptr)
|
||||
return nullptr;
|
||||
|
||||
auto cameraEntity = app::EntityManager_GetMainCameraEntity(entityManager, nullptr);
|
||||
auto cameraEntity = app::MoleMole_EntityManager_GetMainCameraEntity(entityManager, nullptr);
|
||||
return cameraEntity;
|
||||
}
|
||||
}
|
@ -8,7 +8,7 @@ namespace cheat::game
|
||||
{
|
||||
std::vector<WaypointInfo> GetUnlockedWaypoints(uint32_t targetSceneId)
|
||||
{
|
||||
auto mapModule = GET_SINGLETON(MapModule);
|
||||
auto mapModule = GET_SINGLETON(MoleMole_MapModule);
|
||||
if (mapModule == nullptr)
|
||||
return {};
|
||||
|
||||
@ -29,8 +29,8 @@ namespace cheat::game
|
||||
continue;
|
||||
|
||||
auto& config = waypoint.config->fields;
|
||||
uint16_t areaId = app::SimpleSafeUInt16_get_Value(config.areaIdRawNum, nullptr);
|
||||
bool isAreaUnlocked = app::MapModule_IsAreaUnlock(mapModule, sceneId, areaId, nullptr);
|
||||
uint16_t areaId = app::MoleMole_SimpleSafeUInt16_get_Value(config.areaIdRawNum, nullptr);
|
||||
bool isAreaUnlocked = app::MoleMole_MapModule_IsAreaUnlock(mapModule, sceneId, areaId, nullptr);
|
||||
|
||||
if (waypoint.isUnlocked && isAreaUnlocked && !config._unlocked && !waypoint.isGroupLimit && !waypoint.isModelHidden)
|
||||
result.push_back(WaypointInfo{ sceneId, waypointId, waypoint.config->fields._tranPos, (app::MapModule_ScenePointData*)&waypoint });
|
||||
@ -57,7 +57,7 @@ namespace cheat::game
|
||||
|
||||
uint32_t GetCurrentPlayerSceneID()
|
||||
{
|
||||
auto playerModule = GET_SINGLETON(PlayerModule);
|
||||
auto playerModule = GET_SINGLETON(MoleMole_PlayerModule);
|
||||
if (playerModule == nullptr)
|
||||
return 0;
|
||||
|
||||
@ -66,7 +66,7 @@ namespace cheat::game
|
||||
|
||||
uint32_t GetCurrentMapSceneID()
|
||||
{
|
||||
auto mapManager = GET_SINGLETON(MapManager);
|
||||
auto mapManager = GET_SINGLETON(MoleMole_MapManager);
|
||||
if (mapManager == nullptr)
|
||||
return 0;
|
||||
|
||||
@ -118,7 +118,7 @@ namespace cheat::game
|
||||
|
||||
app::AccountDataItem* GetAccountData()
|
||||
{
|
||||
auto playerModule = GET_SINGLETON(PlayerModule);
|
||||
auto playerModule = GET_SINGLETON(MoleMole_PlayerModule);
|
||||
if (playerModule == nullptr || playerModule->fields._accountData_k__BackingField == nullptr)
|
||||
return nullptr;
|
||||
|
||||
|
@ -97,9 +97,9 @@ namespace cheat::feature
|
||||
|
||||
// Hooking
|
||||
HookManager::install(app::MonoMiniMap_Update, InteractiveMap::MonoMiniMap_Update_Hook);
|
||||
HookManager::install(app::GadgetModule_OnGadgetInteractRsp, InteractiveMap::GadgetModule_OnGadgetInteractRsp_Hook);
|
||||
HookManager::install(app::InLevelMapPageContext_UpdateView, InteractiveMap::InLevelMapPageContext_UpdateView_Hook);
|
||||
HookManager::install(app::InLevelMapPageContext_ZoomMap, InteractiveMap::InLevelMapPageContext_ZoomMap_Hook);
|
||||
HookManager::install(app::MoleMole_GadgetModule_OnGadgetInteractRsp, InteractiveMap::GadgetModule_OnGadgetInteractRsp_Hook);
|
||||
HookManager::install(app::MoleMole_InLevelMapPageContext_UpdateView, InteractiveMap::InLevelMapPageContext_UpdateView_Hook);
|
||||
HookManager::install(app::MoleMole_InLevelMapPageContext_ZoomMap, InteractiveMap::InLevelMapPageContext_ZoomMap_Hook);
|
||||
}
|
||||
|
||||
const FeatureGUIInfo& InteractiveMap::GetGUIInfo() const
|
||||
@ -1274,11 +1274,11 @@ namespace cheat::feature
|
||||
|
||||
static bool IsMapActive()
|
||||
{
|
||||
auto uimanager = GET_SINGLETON(UIManager);
|
||||
auto uimanager = GET_SINGLETON(MoleMole_UIManager);
|
||||
if (uimanager == nullptr)
|
||||
return false;
|
||||
|
||||
return app::UIManager_HasEnableMapCamera(uimanager, nullptr);
|
||||
return app::MoleMole_UIManager_HasEnableMapCamera(uimanager, nullptr);
|
||||
}
|
||||
|
||||
static app::Rect s_MapViewRect = { 0, 0, 1, 1 };
|
||||
@ -1382,7 +1382,7 @@ namespace cheat::feature
|
||||
if (!mapActive)
|
||||
return;
|
||||
|
||||
auto mapManager = GET_SINGLETON(MapManager);
|
||||
auto mapManager = GET_SINGLETON(MoleMole_MapManager);
|
||||
if (mapManager == nullptr)
|
||||
return;
|
||||
|
||||
@ -1549,7 +1549,7 @@ namespace cheat::feature
|
||||
|
||||
UPDATE_DELAY_VAR(ImCircle, _miniMapCircle, 2000);
|
||||
|
||||
auto uiManager = GET_SINGLETON(UIManager);
|
||||
auto uiManager = GET_SINGLETON(MoleMole_UIManager);
|
||||
if (uiManager == nullptr || uiManager->fields._sceneCanvas == nullptr)
|
||||
return {};
|
||||
|
||||
@ -1576,7 +1576,7 @@ namespace cheat::feature
|
||||
if (_monoMiniMap == nullptr || _monoMiniMap->fields.context == nullptr)
|
||||
return 1.0f;
|
||||
|
||||
return app::InLevelMainPageContext_get_miniMapScale(_monoMiniMap->fields.context, nullptr);
|
||||
return app::MoleMole_InLevelMainPageContext_get_miniMapScale(_monoMiniMap->fields.context, nullptr);
|
||||
}
|
||||
|
||||
static float GetMinimapRotation()
|
||||
|
@ -28,9 +28,9 @@ namespace cheat::feature
|
||||
Debug::Debug() : Feature()
|
||||
{
|
||||
events::GameUpdateEvent += FUNCTION_HANDLER(OnGameUpdate);
|
||||
HookManager::install(app::ActorAbilityPlugin_OnEvent, ActorAbilityPlugin_OnEvent_Hook);
|
||||
// HookManager::install(app::LuaShellManager_ReportLuaShellResult, LuaShellManager_ReportLuaShellResult_Hook);
|
||||
// HookManager::install(app::LuaShellManager_DoString, LuaShellManager_DoString_Hook);
|
||||
HookManager::install(app::MoleMole_ActorAbilityPlugin_OnEvent, ActorAbilityPlugin_OnEvent_Hook);
|
||||
// HookManager::install(app::MoleMole_LuaShellManager_ReportLuaShellResult, LuaShellManager_ReportLuaShellResult_Hook);
|
||||
// HookManager::install(app::MoleMole_LuaShellManager_DoString, LuaShellManager_DoString_Hook);
|
||||
// HookManager::install(app::LuaEnv_DoString, LuaEnv_DoString_Hook);
|
||||
// HookManager::install(app::Lua_xlua_pushasciistring, Lua_xlua_pushasciistring_Hook);
|
||||
|
||||
@ -53,7 +53,7 @@ namespace cheat::feature
|
||||
|
||||
// Raise when player start game log in (after press a door)
|
||||
// Contains information about player system and game integrity
|
||||
static void SendInfo_Hook(app::NetworkManager_1* __this, app::GKOJAICIOPA* info, MethodInfo* method)
|
||||
static void SendInfo_Hook(app::MoleMole_NetworkManager* __this, app::GKOJAICIOPA* info, MethodInfo* method)
|
||||
{
|
||||
LOG_TRACE("Game sending game info to server.");
|
||||
LOG_TRACE("Content: ");
|
||||
@ -128,7 +128,7 @@ namespace cheat::feature
|
||||
return;
|
||||
}
|
||||
|
||||
auto singleton = GET_SINGLETON(MapModule);
|
||||
auto singleton = GET_SINGLETON(MoleMole_MapModule);
|
||||
|
||||
for (const auto& [sceneId, waypoints] : waypointsGrops->pairs())
|
||||
{
|
||||
@ -152,9 +152,9 @@ namespace cheat::feature
|
||||
ImGui::Text("Object position: %s", il2cppi_to_string(location._pos).c_str());
|
||||
ImGui::Text("_unlocked: %s", location._unlocked ? "true" : "false");
|
||||
ImGui::Text("_groupLimit: %s", location._groupLimit ? "true" : "false");
|
||||
uint16_t areaId = app::SimpleSafeUInt16_get_Value(location.areaIdRawNum, nullptr);
|
||||
uint16_t areaId = app::MoleMole_SimpleSafeUInt16_get_Value(location.areaIdRawNum, nullptr);
|
||||
ImGui::Text("areaId: %u", areaId);
|
||||
ImGui::Text("areaUnlocked: %s", app::MapModule_IsAreaUnlock(singleton, sceneId, areaId, nullptr) ? "true" : "false");
|
||||
ImGui::Text("areaUnlocked: %s", app::MoleMole_MapModule_IsAreaUnlock(singleton, sceneId, areaId, nullptr) ? "true" : "false");
|
||||
ImGui::Text("gadgetIdRawNum: %u", location.gadgetIdRawNum);
|
||||
}
|
||||
|
||||
@ -169,7 +169,7 @@ namespace cheat::feature
|
||||
|
||||
void DrawManagerData()
|
||||
{
|
||||
auto singleton = GET_SINGLETON(MapModule);
|
||||
auto singleton = GET_SINGLETON(MoleMole_MapModule);
|
||||
if (singleton == nullptr)
|
||||
{
|
||||
ImGui::Text("Manager not initialized.");
|
||||
@ -236,10 +236,10 @@ namespace cheat::feature
|
||||
auto combat = entity->combat();
|
||||
if (combat != nullptr) {
|
||||
auto combatProp = combat->fields._combatProperty_k__BackingField;
|
||||
auto maxHP = app::SafeFloat_GetValue(combatProp->fields.maxHP, nullptr);
|
||||
auto HP = app::SafeFloat_GetValue(combatProp->fields.HP, nullptr);
|
||||
auto isLockHp = combatProp->fields.islockHP == nullptr || app::FixedBoolStack_get_value(combatProp->fields.islockHP, nullptr);
|
||||
auto isInvincible = combatProp->fields.isInvincible == nullptr || app::FixedBoolStack_get_value(combatProp->fields.isInvincible, nullptr);
|
||||
auto maxHP = app::MoleMole_SafeFloat_get_Value(combatProp->fields.maxHP, nullptr);
|
||||
auto HP = app::MoleMole_SafeFloat_get_Value(combatProp->fields.HP, nullptr);
|
||||
auto isLockHp = combatProp->fields.islockHP == nullptr || app::MoleMole_FixedBoolStack_get_value(combatProp->fields.islockHP, nullptr);
|
||||
auto isInvincible = combatProp->fields.isInvincible == nullptr || app::MoleMole_FixedBoolStack_get_value(combatProp->fields.isInvincible, nullptr);
|
||||
ImGui::BeginTooltip();
|
||||
ImGui::Text("Combat: %s", combat == nullptr ? "No" : "Yes");
|
||||
ImGui::Text("Combat Prop: %s", combatProp == nullptr ? "No" : "Yes");
|
||||
@ -841,7 +841,7 @@ namespace cheat::feature
|
||||
|
||||
void DrawMapManager()
|
||||
{
|
||||
auto mapManager = GET_SINGLETON(MapManager);
|
||||
auto mapManager = GET_SINGLETON(MoleMole_MapManager);
|
||||
if (mapManager == nullptr)
|
||||
return;
|
||||
|
||||
@ -952,7 +952,7 @@ namespace cheat::feature
|
||||
|
||||
void DrawScenePropManager()
|
||||
{
|
||||
auto scenePropManager = GET_SINGLETON(ScenePropManager);
|
||||
auto scenePropManager = GET_SINGLETON(MoleMole_ScenePropManager);
|
||||
if (scenePropManager == nullptr)
|
||||
{
|
||||
ImGui::Text("Scene prop manager not loaded.");
|
||||
@ -980,7 +980,7 @@ namespace cheat::feature
|
||||
|
||||
auto pattern = config._._.scenePropPatternName;
|
||||
app::MoleMole_Config_TreeType__Enum value;
|
||||
bool result = app::ScenePropManager_GetTreeTypeByPattern(scenePropManager, pattern, &value, nullptr);
|
||||
bool result = app::MoleMole_ScenePropManager_GetTreeTypeByPattern(scenePropManager, pattern, &value, nullptr);
|
||||
if (!result)
|
||||
continue;
|
||||
|
||||
|
@ -24,8 +24,8 @@ namespace cheat::feature
|
||||
{
|
||||
sniffer::MessageManager::Connect("genshin_packet_pipe");
|
||||
|
||||
HookManager::install(app::KcpNative_kcp_client_send_packet, KcpNative_kcp_client_send_packet_Hook);
|
||||
HookManager::install(app::KcpClient_TryDequeueEvent, KcpClient_TryDequeueEvent_Hook);
|
||||
HookManager::install(app::Kcp_KcpNative_kcp_client_send_packet, KcpNative_kcp_client_send_packet_Hook);
|
||||
HookManager::install(app::MoleMole_KcpClient_TryDequeueEvent, KcpClient_TryDequeueEvent_Hook);
|
||||
}
|
||||
|
||||
const FeatureGUIInfo& PacketSniffer::GetGUIInfo() const
|
||||
@ -183,7 +183,7 @@ namespace cheat::feature
|
||||
byteArray->max_length = length;
|
||||
memcpy_s(byteArray->vector, length, content, length);
|
||||
|
||||
app::Packet_XorEncrypt(&byteArray, length, nullptr);
|
||||
app::MoleMole_Packet_XorEncrypt(&byteArray, length, nullptr);
|
||||
|
||||
auto result = new char[length];
|
||||
memcpy_s(result, length, byteArray->vector, length);
|
||||
|
@ -12,7 +12,7 @@ namespace cheat::feature
|
||||
GodMode::GodMode() : Feature(),
|
||||
NFEX(f_Enabled, "God mode", "m_GodMode", "Player", false, false)
|
||||
{
|
||||
// HookManager::install(app::LCBaseCombat_FireBeingHitEvent, LCBaseCombat_FireBeingHitEvent_Hook);
|
||||
// HookManager::install(app::MoleMole_LCBaseCombat_FireBeingHitEvent, LCBaseCombat_FireBeingHitEvent_Hook);
|
||||
HookManager::install(app::VCHumanoidMove_NotifyLandVelocity, VCHumanoidMove_NotifyLandVelocity_Hook);
|
||||
HookManager::install(app::Miscs_CheckTargetAttackable, Miscs_CheckTargetAttackable_Hook);
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ namespace cheat::feature
|
||||
NF(f_Enabled, "Infinite stamina", "InfiniteStamina", false),
|
||||
NF(f_PacketReplacement, "Move sync packet replacement", "InfiniteStamina", false)
|
||||
{
|
||||
HookManager::install(app::DataItem_HandleNormalProp, DataItem_HandleNormalProp_Hook);
|
||||
HookManager::install(app::MoleMole_DataItem_HandleNormalProp, DataItem_HandleNormalProp_Hook);
|
||||
|
||||
events::MoveSyncEvent += MY_METHOD_HANDLER(InfiniteStamina::OnMoveSync);
|
||||
}
|
||||
|
@ -23,11 +23,11 @@ namespace cheat::feature
|
||||
NF(f_Sprint, "No Sprint Cooldown", "NoCD", false),
|
||||
NF(f_InstantBow, "Instant bow", "NoCD", false)
|
||||
{
|
||||
HookManager::install(app::LCAvatarCombat_IsEnergyMax, LCAvatarCombat_IsEnergyMax_Hook);
|
||||
HookManager::install(app::LCAvatarCombat_IsSkillInCD_1, LCAvatarCombat_IsSkillInCD_1);
|
||||
HookManager::install(app::MoleMole_LCAvatarCombat_IsEnergyMax, LCAvatarCombat_IsEnergyMax_Hook);
|
||||
HookManager::install(app::MoleMole_LCAvatarCombat_IsSkillInCD_1, LCAvatarCombat_IsSkillInCD_1);
|
||||
|
||||
HookManager::install(app::HumanoidMoveFSM_CheckSprintCooldown, HumanoidMoveFSM_CheckSprintCooldown_Hook);
|
||||
HookManager::install(app::ActorAbilityPlugin_AddDynamicFloatWithRange, ActorAbilityPlugin_AddDynamicFloatWithRange_Hook);
|
||||
HookManager::install(app::MoleMole_HumanoidMoveFSM_CheckSprintCooldown, HumanoidMoveFSM_CheckSprintCooldown_Hook);
|
||||
HookManager::install(app::MoleMole_ActorAbilityPlugin_AddDynamicFloatWithRange, ActorAbilityPlugin_AddDynamicFloatWithRange_Hook);
|
||||
}
|
||||
|
||||
const FeatureGUIInfo& NoCD::GetGUIInfo() const
|
||||
@ -128,11 +128,11 @@ namespace cheat::feature
|
||||
NoCD& noCD = NoCD::GetInstance();
|
||||
if (noCD.f_AbilityReduce)
|
||||
{
|
||||
auto cdTimer = app::SafeFloat_GetValue(skillInfo->fields.cdTimer, nullptr);
|
||||
auto cdTimer = app::MoleMole_SafeFloat_get_Value(skillInfo->fields.cdTimer, nullptr);
|
||||
|
||||
if (cdTimer > noCD.f_TimerReduce * 5.0f)
|
||||
{
|
||||
struct app::SafeFloat MyValueProtect = app::SafeFloat_SetValue(noCD.f_TimerReduce * 5.0f, nullptr);
|
||||
struct app::SafeFloat MyValueProtect = app::MoleMole_SafeFloat_set_Value(noCD.f_TimerReduce * 5.0f, nullptr);
|
||||
skillInfo->fields.cdTimer = MyValueProtect;
|
||||
}
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ namespace cheat::feature
|
||||
NF(f_AltSpeedEnabled, "Alt speed enabled", "NoClip", false),
|
||||
NF(f_AltSpeed, "Alt speed", "NoClip", 1.0f)
|
||||
{
|
||||
HookManager::install(app::HumanoidMoveFSM_LateTick, HumanoidMoveFSM_LateTick_Hook);
|
||||
HookManager::install(app::MoleMole_HumanoidMoveFSM_LateTick, HumanoidMoveFSM_LateTick_Hook);
|
||||
|
||||
events::GameUpdateEvent += MY_METHOD_HANDLER(NoClip::OnGameUpdate);
|
||||
events::MoveSyncEvent += MY_METHOD_HANDLER(NoClip::OnMoveSync);
|
||||
|
@ -22,7 +22,7 @@ namespace cheat::feature
|
||||
NF(f_MultiTarget, "Multi-target", "RapidFire", false),
|
||||
NF(f_MultiTargetRadius, "Multi-target Radius", "RapidFire", 20.0f)
|
||||
{
|
||||
HookManager::install(app::LCBaseCombat_DoHitEntity, LCBaseCombat_DoHitEntity_Hook);
|
||||
HookManager::install(app::MoleMole_LCBaseCombat_DoHitEntity, LCBaseCombat_DoHitEntity_Hook);
|
||||
}
|
||||
|
||||
const FeatureGUIInfo& RapidFire::GetGUIInfo() const
|
||||
@ -121,7 +121,7 @@ namespace cheat::feature
|
||||
return f_Multiplier;
|
||||
|
||||
auto safeHP = baseCombat->fields._combatProperty_k__BackingField->fields.HP;
|
||||
auto HP = app::SafeFloat_GetValue(safeHP, nullptr);
|
||||
auto HP = app::MoleMole_SafeFloat_get_Value(safeHP, nullptr);
|
||||
int attackCount = (int)ceil(HP / attackDamage);
|
||||
return std::clamp(attackCount, 1, 200);
|
||||
}
|
||||
@ -140,7 +140,7 @@ namespace cheat::feature
|
||||
int countOfAttacks = f_Multiplier;
|
||||
if (f_OnePunch)
|
||||
{
|
||||
app::Formula_CalcAttackResult(targetEntity, combat->fields._combatProperty_k__BackingField,
|
||||
app::MoleMole_Formula_CalcAttackResult(combat->fields._combatProperty_k__BackingField,
|
||||
baseCombat->fields._combatProperty_k__BackingField,
|
||||
attackResult, manager.avatar()->raw(), targetEntity->raw(), nullptr);
|
||||
countOfAttacks = CalcCountToKill(attackResult->fields.damage, targetID);
|
||||
@ -162,7 +162,7 @@ namespace cheat::feature
|
||||
while (entity.isGadget())
|
||||
{
|
||||
game::Entity temp = entity;
|
||||
entity = game::Entity(app::GadgetEntity_GetOwnerEntity(reinterpret_cast<app::GadgetEntity*>(entity.raw()), nullptr));
|
||||
entity = game::Entity(app::MoleMole_GadgetEntity_GetOwnerEntity(reinterpret_cast<app::GadgetEntity*>(entity.raw()), nullptr));
|
||||
if (entity.runtimeID() == avatarID)
|
||||
return true;
|
||||
}
|
||||
|
@ -12,8 +12,8 @@ namespace cheat::feature
|
||||
static void InLevelMapPageContext_OnMarkClicked_Hook(app::InLevelMapPageContext* __this, app::MonoMapMark* mark, MethodInfo* method);
|
||||
static app::Vector3 LocalEntityInfoData_get_initPos_Hook(app::LocalEntityInfoData* __this, MethodInfo* method);
|
||||
|
||||
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,
|
||||
static bool LoadingManager_NeedTransByServer_Hook(app::MoleMole_LoadingManager* __this, uint32_t sceneId, app::Vector3 position, MethodInfo* method);
|
||||
static void LoadingManager_PerformPlayerTransmit_Hook(app::MoleMole_LoadingManager* __this, app::Vector3 position, app::EnterType__Enum someEnum,
|
||||
uint32_t someUint1, app::EvtTransmitAvatar_EvtTransmitAvatar_TransmitType__Enum teleportType, uint32_t someUint2, MethodInfo* method);
|
||||
static void Entity_SetRelativePosition_Hook(app::BaseEntity* __this, app::Vector3 position, bool someBool, MethodInfo* method);
|
||||
|
||||
@ -24,18 +24,18 @@ namespace cheat::feature
|
||||
NF(f_Key, "Teleport key", "MapTeleport", Hotkey('T'))
|
||||
{
|
||||
// Map touch
|
||||
HookManager::install(app::InLevelMapPageContext_OnMarkClicked, InLevelMapPageContext_OnMarkClicked_Hook);
|
||||
HookManager::install(app::InLevelMapPageContext_OnMapClicked, InLevelMapPageContext_OnMapClicked_Hook);
|
||||
HookManager::install(app::MoleMole_InLevelMapPageContext_OnMarkClicked, InLevelMapPageContext_OnMarkClicked_Hook);
|
||||
HookManager::install(app::MoleMole_InLevelMapPageContext_OnMapClicked, InLevelMapPageContext_OnMapClicked_Hook);
|
||||
|
||||
// Stage 1
|
||||
HookManager::install(app::LocalEntityInfoData_get_initPos, LocalEntityInfoData_get_initPos_Hook);
|
||||
HookManager::install(app::LoadingManager_NeedTransByServer, LoadingManager_NeedTransByServer_Hook);
|
||||
HookManager::install(app::MoleMole_LocalEntityInfoData_get_initPos, LocalEntityInfoData_get_initPos_Hook);
|
||||
HookManager::install(app::MoleMole_LoadingManager_NeedTransByServer, LoadingManager_NeedTransByServer_Hook);
|
||||
|
||||
// Stage 2
|
||||
HookManager::install(app::LoadingManager_PerformPlayerTransmit, LoadingManager_PerformPlayerTransmit_Hook);
|
||||
HookManager::install(app::MoleMole_LoadingManager_PerformPlayerTransmit, LoadingManager_PerformPlayerTransmit_Hook);
|
||||
|
||||
// Stage 3
|
||||
HookManager::install(app::Entity_SetRelativePosition, Entity_SetRelativePosition_Hook);
|
||||
HookManager::install(app::MoleMole_BaseEntity_SetRelativePosition, Entity_SetRelativePosition_Hook);
|
||||
|
||||
events::GameUpdateEvent += MY_METHOD_HANDLER(MapTeleport::OnGameUpdate);
|
||||
}
|
||||
@ -88,8 +88,8 @@ namespace cheat::feature
|
||||
if (taskInfo.waitingThread)
|
||||
{
|
||||
taskInfo.waitingThread = false;
|
||||
auto someSingleton = GET_SINGLETON(LoadingManager);
|
||||
app::LoadingManager_RequestSceneTransToPoint(someSingleton, taskInfo.sceneId, taskInfo.waypointId, nullptr, nullptr);
|
||||
auto someSingleton = GET_SINGLETON(MoleMole_LoadingManager);
|
||||
app::MoleMole_LoadingManager_RequestSceneTransToPoint(someSingleton, taskInfo.sceneId, taskInfo.waypointId, nullptr, nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
@ -122,7 +122,7 @@ namespace cheat::feature
|
||||
if (!mapBackground)
|
||||
return false;
|
||||
|
||||
auto uimanager = GET_SINGLETON(UIManager);
|
||||
auto uimanager = GET_SINGLETON(MoleMole_UIManager);
|
||||
if (uimanager == nullptr)
|
||||
return false;
|
||||
|
||||
@ -267,7 +267,7 @@ namespace cheat::feature
|
||||
return result;
|
||||
}
|
||||
|
||||
static bool LoadingManager_NeedTransByServer_Hook(app::LoadingManager* __this, uint32_t sceneId, app::Vector3 position, MethodInfo* method)
|
||||
static bool LoadingManager_NeedTransByServer_Hook(app::MoleMole_LoadingManager* __this, uint32_t sceneId, app::Vector3 position, MethodInfo* method)
|
||||
{
|
||||
auto result = CALL_ORIGIN(LoadingManager_NeedTransByServer_Hook, __this, sceneId, position, method);
|
||||
|
||||
@ -278,7 +278,7 @@ namespace cheat::feature
|
||||
}
|
||||
|
||||
|
||||
static void LoadingManager_PerformPlayerTransmit_Hook(app::LoadingManager* __this, app::Vector3 position, app::EnterType__Enum someEnum,
|
||||
static void LoadingManager_PerformPlayerTransmit_Hook(app::MoleMole_LoadingManager* __this, app::Vector3 position, app::EnterType__Enum someEnum,
|
||||
uint32_t someUint1, app::EvtTransmitAvatar_EvtTransmitAvatar_TransmitType__Enum teleportType, uint32_t someUint2, MethodInfo* method)
|
||||
{
|
||||
MapTeleport& mapTeleport = MapTeleport::GetInstance();
|
||||
|
@ -12,7 +12,7 @@ namespace cheat::feature
|
||||
NFEX(f_Enabled, "Camera Zoom", "CameraZoom", "Visuals", false, false),
|
||||
NF(f_Zoom, "Zoom", "CameraZoom", 200)
|
||||
{
|
||||
HookManager::install(app::SCameraModuleInitialize_SetWarningLocateRatio, SCameraModuleInitialize_SetWarningLocateRatio_Hook);
|
||||
HookManager::install(app::MoleMole_SCameraModuleInitialize_SetWarningLocateRatio, SCameraModuleInitialize_SetWarningLocateRatio_Hook);
|
||||
}
|
||||
|
||||
const FeatureGUIInfo& CameraZoom::GetGUIInfo() const
|
||||
|
@ -11,7 +11,7 @@ namespace cheat::feature
|
||||
ChestIndicator::ChestIndicator() : Feature(),
|
||||
NF(f_Enabled, "Show Chest Indicator", "ShowChest", false)
|
||||
{
|
||||
HookManager::install(app::LCIndicatorPlugin_DoCheck, IndicatorPlugin_DoCheck);
|
||||
HookManager::install(app::MoleMole_LCIndicatorPlugin_DoCheck, IndicatorPlugin_DoCheck);
|
||||
}
|
||||
|
||||
const FeatureGUIInfo& ChestIndicator::GetGUIInfo() const
|
||||
@ -48,7 +48,7 @@ namespace cheat::feature
|
||||
if (__this->fields._dataItem != nullptr)
|
||||
{
|
||||
// Base Chest not found, try improve
|
||||
app::LCIndicatorPlugin_ShowIcon(__this, nullptr);
|
||||
app::MoleMole_LCIndicatorPlugin_ShowIcon(__this, nullptr);
|
||||
}
|
||||
}
|
||||
return CALL_ORIGIN(IndicatorPlugin_DoCheck, __this, method);
|
||||
|
@ -6,8 +6,8 @@
|
||||
|
||||
namespace cheat::feature
|
||||
{
|
||||
static void PlayerModule_RequestPlayerCook(app::PlayerModule* __this, uint32_t recipeId, uint32_t avatarId, uint32_t qteQuality, uint32_t count, MethodInfo* method);
|
||||
static void PlayerModule_OnPlayerCookRsp(app::PlayerModule* __this, app::PlayerCookRsp* rsp, MethodInfo* method);
|
||||
static void PlayerModule_RequestPlayerCook(app::MoleMole_PlayerModule* __this, uint32_t recipeId, uint32_t avatarId, uint32_t qteQuality, uint32_t count, MethodInfo* method);
|
||||
static void PlayerModule_OnPlayerCookRsp(app::MoleMole_PlayerModule* __this, app::PlayerCookRsp* rsp, MethodInfo* method);
|
||||
|
||||
static void CookingQtePageContext_UpdateProficiency(app::CookingQtePageContext* __this, MethodInfo* method);
|
||||
static void CookingQtePageContext_SetProficiencyInfo(app::CookingQtePageContext* __this, MethodInfo* method);
|
||||
@ -18,9 +18,9 @@ namespace cheat::feature
|
||||
NF(f_Count, "Count Item", "AutoCook", 1),
|
||||
NF(f_Quality, "Quality", "AutoCook", 1)
|
||||
{
|
||||
HookManager::install(app::PlayerModule_RequestPlayerCook, PlayerModule_RequestPlayerCook);
|
||||
HookManager::install(app::PlayerModule_OnPlayerCookRsp, PlayerModule_OnPlayerCookRsp);
|
||||
HookManager::install(app::CookingQtePageContext_UpdateProficiency, CookingQtePageContext_UpdateProficiency);
|
||||
HookManager::install(app::MoleMole_PlayerModule_RequestPlayerCook, PlayerModule_RequestPlayerCook);
|
||||
HookManager::install(app::MoleMole_PlayerModule_OnPlayerCookRsp, PlayerModule_OnPlayerCookRsp);
|
||||
HookManager::install(app::MoleMole_CookingQtePageContext_UpdateProficiency, CookingQtePageContext_UpdateProficiency);
|
||||
HookManager::install(app::CookRecipeExcelConfig_get_maxProficiency, CookRecipeExcelConfig_get_maxProficiency);
|
||||
}
|
||||
|
||||
@ -57,7 +57,7 @@ namespace cheat::feature
|
||||
|
||||
// Auto Cooking | RyujinZX#6666
|
||||
|
||||
static void PlayerModule_RequestPlayerCook(app::PlayerModule* __this, uint32_t recipeId, uint32_t avatarId, uint32_t qteQuality, uint32_t count, MethodInfo* method)
|
||||
static void PlayerModule_RequestPlayerCook(app::MoleMole_PlayerModule* __this, uint32_t recipeId, uint32_t avatarId, uint32_t qteQuality, uint32_t count, MethodInfo* method)
|
||||
{
|
||||
AutoCook& autoCook = AutoCook::GetInstance();
|
||||
if (autoCook.f_Enabled)
|
||||
@ -69,7 +69,7 @@ namespace cheat::feature
|
||||
return CALL_ORIGIN(PlayerModule_RequestPlayerCook, __this, recipeId, avatarId, qteQuality, count, method);
|
||||
}
|
||||
|
||||
static void PlayerModule_OnPlayerCookRsp(app::PlayerModule* __this, app::PlayerCookRsp* rsp, MethodInfo* method) {
|
||||
static void PlayerModule_OnPlayerCookRsp(app::MoleMole_PlayerModule* __this, app::PlayerCookRsp* rsp, MethodInfo* method) {
|
||||
AutoCook& autoCook = AutoCook::GetInstance();
|
||||
if (autoCook.f_Enabled)
|
||||
{
|
||||
@ -99,7 +99,7 @@ namespace cheat::feature
|
||||
AutoCook& autoCook = AutoCook::GetInstance();
|
||||
if (autoCook.f_Enabled)
|
||||
{
|
||||
uint32_t maxCount = app::SimpleSafeUInt32_get_Value(__this->fields.maxProficiencyRawNum, nullptr);
|
||||
uint32_t maxCount = app::MoleMole_SimpleSafeUInt32_get_Value(__this->fields.maxProficiencyRawNum, nullptr);
|
||||
autoCook.CookCount = maxCount;
|
||||
}
|
||||
return CALL_ORIGIN(CookRecipeExcelConfig_get_maxProficiency, __this, method);
|
||||
|
@ -20,7 +20,7 @@ namespace cheat::feature
|
||||
NF(f_DestroyDoodads, "Destroy Doodads", "AutoDestroy", false),
|
||||
NF(f_Range, "Range", "AutoDestroy", 10.0f)
|
||||
{
|
||||
HookManager::install(app::LCAbilityElement_ReduceModifierDurability, LCAbilityElement_ReduceModifierDurability_Hook);
|
||||
HookManager::install(app::MoleMole_LCAbilityElement_ReduceModifierDurability, LCAbilityElement_ReduceModifierDurability_Hook);
|
||||
}
|
||||
|
||||
const FeatureGUIInfo& AutoDestroy::GetGUIInfo() const
|
||||
|
@ -17,12 +17,12 @@ namespace cheat::feature
|
||||
{
|
||||
events::GameUpdateEvent += MY_METHOD_HANDLER(AutoFish::OnGameUpdate);
|
||||
|
||||
HookManager::install(app::FishingModule_RequestFishCastRod, FishingModule_RequestFishCastRod_Hook);
|
||||
HookManager::install(app::FishingModule_onFishChosenNotify, FishingModule_onFishChosenNotify_Hook);
|
||||
HookManager::install(app::FishingModule_OnFishBiteRsp, FishingModule_OnFishBiteRsp_Hook);
|
||||
HookManager::install(app::FishingModule_OnFishBattleBeginRsp, FishingModule_OnFishBattleBeginRsp_Hook);
|
||||
HookManager::install(app::FishingModule_OnFishBattleEndRsp, FishingModule_OnFishBattleEndRsp_Hook);
|
||||
HookManager::install(app::FishingModule_OnExitFishingRsp, FishingModule_OnExitFishingRsp_Hook);
|
||||
HookManager::install(app::MoleMole_FishingModule_RequestFishCastRod, FishingModule_RequestFishCastRod_Hook);
|
||||
HookManager::install(app::MoleMole_FishingModule_onFishChosenNotify, FishingModule_onFishChosenNotify_Hook);
|
||||
HookManager::install(app::MoleMole_FishingModule_OnFishBiteRsp, FishingModule_OnFishBiteRsp_Hook);
|
||||
HookManager::install(app::MoleMole_FishingModule_OnFishBattleBeginRsp, FishingModule_OnFishBattleBeginRsp_Hook);
|
||||
HookManager::install(app::MoleMole_FishingModule_OnFishBattleEndRsp, FishingModule_OnFishBattleEndRsp_Hook);
|
||||
HookManager::install(app::MoleMole_FishingModule_OnExitFishingRsp, FishingModule_OnExitFishingRsp_Hook);
|
||||
}
|
||||
|
||||
const FeatureGUIInfo& AutoFish::GetGUIInfo() const
|
||||
@ -66,7 +66,7 @@ namespace cheat::feature
|
||||
if (!autoFish.f_Enabled)
|
||||
return;
|
||||
|
||||
app::FishingModule_RequestFishBite(__this, nullptr);
|
||||
app::MoleMole_FishingModule_RequestFishBite(__this, nullptr);
|
||||
}
|
||||
|
||||
void AutoFish::FishingModule_OnFishBiteRsp_Hook(void* __this, app::FishBiteRsp* rsp, MethodInfo* method)
|
||||
@ -78,7 +78,7 @@ namespace cheat::feature
|
||||
return;
|
||||
}
|
||||
|
||||
app::FishingModule_RequestFishBattleBegin(__this, nullptr);
|
||||
app::MoleMole_FishingModule_RequestFishBattleBegin(__this, nullptr);
|
||||
}
|
||||
|
||||
void AutoFish::FishingModule_OnFishBattleBeginRsp_Hook(void* __this, app::FishBattleBeginRsp* rsp, MethodInfo* method)
|
||||
@ -91,7 +91,7 @@ namespace cheat::feature
|
||||
}
|
||||
|
||||
std::lock_guard<std::mutex> catchLock(autoFish.m_BattleFinishTimestampMutex);
|
||||
autoFish.m_BattleFinishTimestamp = app::TimeUtil_get_NowTimeStamp(nullptr) + autoFish.f_DelayBeforeCatch;
|
||||
autoFish.m_BattleFinishTimestamp = app::MoleMole_TimeUtil_get_NowTimeStamp(nullptr) + autoFish.f_DelayBeforeCatch;
|
||||
}
|
||||
|
||||
void AutoFish::FishingModule_OnFishBattleEndRsp_Hook(void* __this, app::FishBattleEndRsp* rsp, MethodInfo* method)
|
||||
@ -115,7 +115,7 @@ namespace cheat::feature
|
||||
{
|
||||
LOG_WARNING("Failed to catch fish, retrying in %u ms", autoFish.f_DelayBeforeCatch);
|
||||
std::lock_guard<std::mutex> catchLock(autoFish.m_BattleFinishTimestampMutex);
|
||||
autoFish.m_BattleFinishTimestamp = app::TimeUtil_get_NowTimeStamp(nullptr) + autoFish.f_DelayBeforeCatch;
|
||||
autoFish.m_BattleFinishTimestamp = app::MoleMole_TimeUtil_get_NowTimeStamp(nullptr) + autoFish.f_DelayBeforeCatch;
|
||||
return;
|
||||
}
|
||||
|
||||
@ -123,7 +123,7 @@ namespace cheat::feature
|
||||
return;
|
||||
|
||||
std::lock_guard<std::mutex> _lock(autoFish.m_RecastTimestampMutex);
|
||||
autoFish.m_RecastTimestamp = app::TimeUtil_get_NowTimeStamp(nullptr) + autoFish.f_DelayBeforeRecast;
|
||||
autoFish.m_RecastTimestamp = app::MoleMole_TimeUtil_get_NowTimeStamp(nullptr) + autoFish.f_DelayBeforeRecast;
|
||||
}
|
||||
|
||||
void AutoFish::FishingModule_OnExitFishingRsp_Hook(void* __this, void* rsp, MethodInfo* method)
|
||||
@ -154,7 +154,7 @@ namespace cheat::feature
|
||||
|
||||
void AutoFish::OnGameUpdate()
|
||||
{
|
||||
auto timestamp = app::TimeUtil_get_NowTimeStamp(nullptr);
|
||||
auto timestamp = app::MoleMole_TimeUtil_get_NowTimeStamp(nullptr);
|
||||
|
||||
std::lock_guard<std::mutex> _lock(m_BattleFinishTimestampMutex);
|
||||
std::lock_guard<std::mutex> _lock2(m_RecastTimestampMutex);
|
||||
@ -166,7 +166,7 @@ namespace cheat::feature
|
||||
{
|
||||
m_BattleFinishTimestamp = 0;
|
||||
|
||||
app::FishingModule_RequestFishBattleEnd(m_LastCastData.fishingModule, app::FishBattleResult__Enum::Succ, f_DelayBeforeCatch == 4.0f,
|
||||
app::MoleMole_FishingModule_RequestFishBattleEnd(m_LastCastData.fishingModule, app::FishBattleResult__Enum::Succ, f_DelayBeforeCatch == 4.0f,
|
||||
static_cast<float>(f_DelayBeforeCatch / 1000), nullptr);
|
||||
}
|
||||
|
||||
@ -174,7 +174,7 @@ namespace cheat::feature
|
||||
{
|
||||
m_RecastTimestamp = 0;
|
||||
|
||||
app::FishingModule_RequestFishCastRod(m_LastCastData.fishingModule, m_LastCastData.baitId,
|
||||
app::MoleMole_FishingModule_RequestFishCastRod(m_LastCastData.fishingModule, m_LastCastData.baitId,
|
||||
m_LastCastData.rodId, m_LastCastData.pos, m_LastCastData.rodEntityId, nullptr);
|
||||
}
|
||||
}
|
||||
|
@ -27,9 +27,9 @@ namespace cheat::feature
|
||||
toBeLootedItems(), nextLootTime(0)
|
||||
{
|
||||
// Auto loot
|
||||
HookManager::install(app::LCSelectPickup_AddInteeBtnByID, LCSelectPickup_AddInteeBtnByID_Hook);
|
||||
HookManager::install(app::LCSelectPickup_IsInPosition, LCSelectPickup_IsInPosition_Hook);
|
||||
HookManager::install(app::LCSelectPickup_IsOutPosition, LCSelectPickup_IsOutPosition_Hook);
|
||||
HookManager::install(app::MoleMole_LCSelectPickup_AddInteeBtnByID, LCSelectPickup_AddInteeBtnByID_Hook);
|
||||
HookManager::install(app::MoleMole_LCSelectPickup_IsInPosition, LCSelectPickup_IsInPosition_Hook);
|
||||
HookManager::install(app::MoleMole_LCSelectPickup_IsOutPosition, LCSelectPickup_IsOutPosition_Hook);
|
||||
|
||||
events::GameUpdateEvent += MY_METHOD_HANDLER(AutoLoot::OnGameUpdate);
|
||||
}
|
||||
@ -128,14 +128,14 @@ namespace cheat::feature
|
||||
if (!f_AutoPickup)
|
||||
return false;
|
||||
|
||||
auto itemModule = GET_SINGLETON(ItemModule);
|
||||
auto itemModule = GET_SINGLETON(MoleMole_ItemModule);
|
||||
if (itemModule == nullptr)
|
||||
return false;
|
||||
|
||||
auto entityId = entity->fields._runtimeID_k__BackingField;
|
||||
if (f_DelayTime == 0)
|
||||
{
|
||||
app::ItemModule_PickItem(itemModule, entityId, nullptr);
|
||||
app::MoleMole_ItemModule_PickItem(itemModule, entityId, nullptr);
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -149,7 +149,7 @@ namespace cheat::feature
|
||||
if (currentTime < nextLootTime)
|
||||
return;
|
||||
|
||||
auto entityManager = GET_SINGLETON(EntityManager);
|
||||
auto entityManager = GET_SINGLETON(MoleMole_EntityManager);
|
||||
if (entityManager == nullptr)
|
||||
return;
|
||||
|
||||
@ -199,15 +199,15 @@ namespace cheat::feature
|
||||
if (!entityId)
|
||||
return;
|
||||
|
||||
auto itemModule = GET_SINGLETON(ItemModule);
|
||||
auto itemModule = GET_SINGLETON(MoleMole_ItemModule);
|
||||
if (itemModule == nullptr)
|
||||
return;
|
||||
|
||||
auto entity = app::EntityManager_GetValidEntity(entityManager, *entityId, nullptr);
|
||||
auto entity = app::MoleMole_EntityManager_GetValidEntity(entityManager, *entityId, nullptr);
|
||||
if (entity == nullptr)
|
||||
return;
|
||||
|
||||
app::ItemModule_PickItem(itemModule, *entityId, nullptr);
|
||||
app::MoleMole_ItemModule_PickItem(itemModule, *entityId, nullptr);
|
||||
nextLootTime = currentTime + (int)f_DelayTime;
|
||||
}
|
||||
|
||||
|
@ -68,7 +68,7 @@ namespace cheat::feature
|
||||
|
||||
std::unordered_set<app::SceneTreeObject*> GetTreeSet()
|
||||
{
|
||||
auto scenePropManager = GET_SINGLETON(ScenePropManager);
|
||||
auto scenePropManager = GET_SINGLETON(MoleMole_ScenePropManager);
|
||||
if (scenePropManager == nullptr)
|
||||
return {};
|
||||
|
||||
@ -126,13 +126,13 @@ namespace cheat::feature
|
||||
static std::unordered_set<app::SceneTreeObject*> s_AttackQueueSet;
|
||||
static uint64_t s_LastAttackTimestamp = 0;
|
||||
|
||||
uint64_t timestamp = app::TimeUtil_get_NowTimeStamp(nullptr);
|
||||
uint64_t timestamp = app::MoleMole_TimeUtil_get_NowTimeStamp(nullptr);
|
||||
if (!m_Enabled || s_LastAttackTimestamp + m_AttackDelay > timestamp)
|
||||
return;
|
||||
|
||||
auto& manager = game::EntityManager::instance();
|
||||
auto scenePropManager = GET_SINGLETON(ScenePropManager);
|
||||
auto networkManager = GET_SINGLETON(NetworkManager_1);
|
||||
auto scenePropManager = GET_SINGLETON(MoleMole_ScenePropManager);
|
||||
auto networkManager = GET_SINGLETON(MoleMole_NetworkManager);
|
||||
if (networkManager == nullptr || scenePropManager == nullptr)
|
||||
return;
|
||||
|
||||
@ -168,7 +168,7 @@ namespace cheat::feature
|
||||
|
||||
app::MoleMole_Config_TreeType__Enum treeType;
|
||||
auto pattern = tree->fields._config->fields._._.scenePropPatternName;
|
||||
if (!app::ScenePropManager_GetTreeTypeByPattern(scenePropManager, pattern, &treeType, nullptr))
|
||||
if (!app::MoleMole_ScenePropManager_GetTreeTypeByPattern(scenePropManager, pattern, &treeType, nullptr))
|
||||
continue;
|
||||
|
||||
if (m_AttackPerTree > 0)
|
||||
@ -183,7 +183,7 @@ namespace cheat::feature
|
||||
}
|
||||
|
||||
tree->fields._lastTreeDropTimeStamp = timestamp;
|
||||
app::NetworkManager_1_RequestHitTreeDropNotify(networkManager, position, position, treeType, nullptr);
|
||||
app::MoleMole_NetworkManager_RequestHitTreeDropNotify(networkManager, position, position, treeType, nullptr);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -16,8 +16,8 @@ namespace cheat::feature
|
||||
NF(f_FastDialog, "Fast dialog", "AutoTalk", false),
|
||||
NF(f_TimeSpeedup, "Time Speed", "AutoTalk", 5.0f)
|
||||
{
|
||||
HookManager::install(app::InLevelCutScenePageContext_UpdateView, InLevelCutScenePageContext_UpdateView_Hook);
|
||||
HookManager::install(app::InLevelCutScenePageContext_ClearView, InLevelCutScenePageContext_ClearView_Hook);
|
||||
HookManager::install(app::MoleMole_InLevelCutScenePageContext_UpdateView, InLevelCutScenePageContext_UpdateView_Hook);
|
||||
HookManager::install(app::MoleMole_InLevelCutScenePageContext_ClearView, InLevelCutScenePageContext_ClearView_Hook);
|
||||
}
|
||||
|
||||
const FeatureGUIInfo& DialogSkip::GetGUIInfo() const
|
||||
@ -108,10 +108,10 @@ namespace cheat::feature
|
||||
int32_t value = 0;
|
||||
auto object = il2cpp_value_box((Il2CppClass*)*app::Int32__TypeInfo, &value);
|
||||
auto notify = app::Notify_CreateNotify_1(app::MoleMole_NotifyTypes__Enum::DialogSelectItemNotify, (app::Object*)object, nullptr);
|
||||
app::TalkDialogContext_OnDialogSelectItem(talkDialog, ¬ify, nullptr);
|
||||
app::MoleMole_TalkDialogContext_OnDialogSelectItem(talkDialog, ¬ify, nullptr);
|
||||
}
|
||||
else if (!talkDialog->fields._inSelect)
|
||||
app::InLevelCutScenePageContext_OnFreeClick(context, nullptr);
|
||||
app::MoleMole_InLevelCutScenePageContext_OnFreeClick(context, nullptr);
|
||||
}
|
||||
|
||||
static void InLevelCutScenePageContext_UpdateView_Hook(app::InLevelCutScenePageContext* __this, MethodInfo* method)
|
||||
|
@ -10,7 +10,7 @@ namespace cheat::feature
|
||||
DumbEnemies::DumbEnemies() : Feature(),
|
||||
NF(f_Enabled, "Dumb Enemies", "DumbEnemies", false)
|
||||
{
|
||||
HookManager::install(app::VCMonsterAIController_TryDoSkill, VCMonsterAIController_TryDoSkill_Hook);
|
||||
HookManager::install(app::MoleMole_VCMonsterAIController_TryDoSkill, VCMonsterAIController_TryDoSkill_Hook);
|
||||
}
|
||||
|
||||
const FeatureGUIInfo& DumbEnemies::GetGUIInfo() const
|
||||
|
@ -10,7 +10,7 @@ namespace cheat::feature
|
||||
ElementalSight::ElementalSight() : Feature(),
|
||||
NF(f_Enabled, "Permanent Elemental Sight", "ElementalSight", false)
|
||||
{
|
||||
HookManager::install(app::LevelSceneElementViewPlugin_Tick, LevelSceneElementViewPlugin_Tick_Hook);
|
||||
HookManager::install(app::MoleMole_LevelSceneElementViewPlugin_Tick, LevelSceneElementViewPlugin_Tick_Hook);
|
||||
}
|
||||
|
||||
const FeatureGUIInfo& ElementalSight::GetGUIInfo() const
|
||||
|
@ -23,7 +23,7 @@ namespace cheat::feature
|
||||
NF(f_RepeatDelay, "Repeat delay time (in ms)", "KillAura", 1000)
|
||||
{
|
||||
events::GameUpdateEvent += MY_METHOD_HANDLER(KillAura::OnGameUpdate);
|
||||
HookManager::install(app::BaseMoveSyncPlugin_ConvertSyncTaskToMotionInfo, BaseMoveSyncPlugin_ConvertSyncTaskToMotionInfo_Hook);
|
||||
HookManager::install(app::MoleMole_BaseMoveSyncPlugin_ConvertSyncTaskToMotionInfo, BaseMoveSyncPlugin_ConvertSyncTaskToMotionInfo_Hook);
|
||||
}
|
||||
|
||||
const FeatureGUIInfo& KillAura::GetGUIInfo() const
|
||||
@ -84,8 +84,8 @@ namespace cheat::feature
|
||||
if (!f_Enabled || !f_DamageMode)
|
||||
return;
|
||||
|
||||
auto eventManager = GET_SINGLETON(EventManager);
|
||||
if (eventManager == nullptr || *app::CreateCrashEvent__MethodInfo == nullptr)
|
||||
auto eventManager = GET_SINGLETON(MoleMole_EventManager);
|
||||
if (eventManager == nullptr || *app::MoleMole_EventHelper_Allocate_103__MethodInfo == nullptr)
|
||||
return;
|
||||
|
||||
auto currentTime = util::GetCurrentTimeMillisec();
|
||||
@ -112,10 +112,10 @@ namespace cheat::feature
|
||||
if (combatProp == nullptr)
|
||||
continue;
|
||||
|
||||
auto maxHP = app::SafeFloat_GetValue(combatProp->fields.maxHP, nullptr);
|
||||
auto isLockHp = combatProp->fields.islockHP == nullptr || app::FixedBoolStack_get_value(combatProp->fields.islockHP, nullptr);
|
||||
auto isInvincible = combatProp->fields.isInvincible == nullptr || app::FixedBoolStack_get_value(combatProp->fields.isInvincible, nullptr);
|
||||
auto HP = app::SafeFloat_GetValue(combatProp->fields.HP, nullptr);
|
||||
auto maxHP = app::MoleMole_SafeFloat_get_Value(combatProp->fields.maxHP, nullptr);
|
||||
auto isLockHp = combatProp->fields.islockHP == nullptr || app::MoleMole_FixedBoolStack_get_value(combatProp->fields.islockHP, nullptr);
|
||||
auto isInvincible = combatProp->fields.isInvincible == nullptr || app::MoleMole_FixedBoolStack_get_value(combatProp->fields.isInvincible, nullptr);
|
||||
auto HP = app::MoleMole_SafeFloat_get_Value(combatProp->fields.HP, nullptr);
|
||||
if (maxHP < 10 || HP < 2 || isLockHp || isInvincible)
|
||||
continue;
|
||||
|
||||
@ -151,15 +151,15 @@ namespace cheat::feature
|
||||
attackSet.erase(monster->runtimeID());
|
||||
|
||||
auto combat = monster->combat();
|
||||
auto maxHP = app::SafeFloat_GetValue(combat->fields._combatProperty_k__BackingField->fields.maxHP, nullptr);
|
||||
auto maxHP = app::MoleMole_SafeFloat_get_Value(combat->fields._combatProperty_k__BackingField->fields.maxHP, nullptr);
|
||||
|
||||
auto crashEvt = app::CreateCrashEvent(*app::CreateCrashEvent__MethodInfo);
|
||||
app::EvtCrash_Init(crashEvt, monster->runtimeID(), nullptr);
|
||||
auto crashEvt = app::MoleMole_EventHelper_Allocate_103(*app::MoleMole_EventHelper_Allocate_103__MethodInfo);
|
||||
app::MoleMole_EvtCrash_Init(crashEvt, monster->runtimeID(), nullptr);
|
||||
crashEvt->fields.maxHp = maxHP;
|
||||
crashEvt->fields.velChange = 1000;
|
||||
crashEvt->fields.hitPos = monster->absolutePosition();
|
||||
|
||||
app::EventManager_FireEvent(eventManager, reinterpret_cast<app::BaseEvent*>(crashEvt), false, nullptr);
|
||||
app::MoleMole_EventManager_FireEvent(eventManager, reinterpret_cast<app::BaseEvent*>(crashEvt), false, nullptr);
|
||||
|
||||
monsterRepeatTimeMap[monster->runtimeID()] = currentTime + (int)f_RepeatDelay + distribution(generator);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user