update 2.7 (#46): fix God mode

This commit is contained in:
CallowBlack 2022-05-31 12:45:56 +03:00
parent bc59508cd9
commit 34fe0dfdaf
2 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ DO_APP_FUNC(0x016189E0, void, MoleMole_DataItem_HandleNormalProp, (DataItem* __t
// God mode // God mode
DO_APP_FUNC(0x027DB100, void, VCHumanoidMove_NotifyLandVelocity, (VCHumanoidMove* __this, Vector3 velocity, float reachMaxDownVelocityTime, MethodInfo* method)); 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(0x036889B0, bool, Miscs_CheckTargetAttackable, (BaseEntity* attackerEntity, BaseEntity* targetEntity, MethodInfo* method));
// DO_APP_FUNC(0x00D0CA90, void, MoleMole_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));

View File

@ -6,7 +6,7 @@
namespace cheat::feature namespace cheat::feature
{ {
static bool Miscs_CheckTargetAttackable_Hook(void* __this, app::BaseEntity* attacker, app::BaseEntity* target, MethodInfo* method); static bool Miscs_CheckTargetAttackable_Hook(app::BaseEntity* attacker, app::BaseEntity* target, MethodInfo* method);
static void VCHumanoidMove_NotifyLandVelocity_Hook(app::VCHumanoidMove* __this, app::Vector3 velocity, float reachMaxDownVelocityTime, MethodInfo* method); static void VCHumanoidMove_NotifyLandVelocity_Hook(app::VCHumanoidMove* __this, app::Vector3 velocity, float reachMaxDownVelocityTime, MethodInfo* method);
GodMode::GodMode() : Feature(), GodMode::GodMode() : Feature(),
@ -47,7 +47,7 @@ namespace cheat::feature
} }
// Attack immunity (return false when target is avatar, that mean avatar entity isn't attackable) // Attack immunity (return false when target is avatar, that mean avatar entity isn't attackable)
static bool Miscs_CheckTargetAttackable_Hook(void* __this, app::BaseEntity* attacker, app::BaseEntity* target, MethodInfo* method) static bool Miscs_CheckTargetAttackable_Hook(app::BaseEntity* attacker, app::BaseEntity* target, MethodInfo* method)
{ {
auto& gm = GodMode::GetInstance(); auto& gm = GodMode::GetInstance();
auto& manager = game::EntityManager::instance(); auto& manager = game::EntityManager::instance();
@ -55,7 +55,7 @@ namespace cheat::feature
if (gm.f_Enabled && entity->isAvatar()) if (gm.f_Enabled && entity->isAvatar())
return false; return false;
return CALL_ORIGIN(Miscs_CheckTargetAttackable_Hook, __this, attacker, target, method); return CALL_ORIGIN(Miscs_CheckTargetAttackable_Hook, attacker, target, method);
} }
// Raised when avatar fall on ground. // Raised when avatar fall on ground.