From daa62a8cfa3f81c4e46ee899dc3e0272a8c0b5f9 Mon Sep 17 00:00:00 2001 From: CallowBlack Date: Tue, 31 May 2022 12:45:56 +0300 Subject: [PATCH] update 2.7 (#46): fix `God mode` --- cheat-library/src/user/cheat/player/GodMode.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cheat-library/src/user/cheat/player/GodMode.cpp b/cheat-library/src/user/cheat/player/GodMode.cpp index a5021c7..0a93b2e 100644 --- a/cheat-library/src/user/cheat/player/GodMode.cpp +++ b/cheat-library/src/user/cheat/player/GodMode.cpp @@ -6,7 +6,7 @@ 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); 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) - 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& manager = game::EntityManager::instance(); @@ -55,7 +55,7 @@ namespace cheat::feature if (gm.f_Enabled && entity->isAvatar()) 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.