From fc8c50ba10db77b751dfdf0e2deadcfa299cd65f Mon Sep 17 00:00:00 2001 From: Joaquin <67109235+Taiga74164@users.noreply.github.com> Date: Tue, 30 Aug 2022 10:51:13 -0600 Subject: [PATCH] Temporary fix #593, --- cheat-library/src/user/cheat/player/RapidFire.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cheat-library/src/user/cheat/player/RapidFire.cpp b/cheat-library/src/user/cheat/player/RapidFire.cpp index ea78ca7..4a2c9cc 100644 --- a/cheat-library/src/user/cheat/player/RapidFire.cpp +++ b/cheat-library/src/user/cheat/player/RapidFire.cpp @@ -201,8 +201,9 @@ namespace cheat::feature auto& manager = game::EntityManager::instance(); auto avatarID = manager.avatar()->raw()->fields._configID_k__BackingField; auto attackerID = attacker.raw()->fields._configID_k__BackingField; + // LOG_DEBUG("configID = %d", attackerID); // Taiga#5555: IDs can be found in ConfigAbility_Avatar_*.json or GadgetExcelConfigData.json - bool bulletID = attackerID >= 40000160 && attackerID <= 41069999; + bool bulletID = attackerID >= 40000160 && attackerID <= 41079999; return avatarID == attackerID || bulletID || attacker.type() == app::EntityType__Enum_1::Bullet; } @@ -270,6 +271,8 @@ namespace cheat::feature } else CALL_ORIGIN(LCBaseCombat_DoHitEntity_Hook, __this, entity->runtimeID(), attackResult, ignoreCheckCanBeHitInMP, method); } + + CALL_ORIGIN(LCBaseCombat_DoHitEntity_Hook, __this, targetID, attackResult, ignoreCheckCanBeHitInMP, method); } static void VCAnimatorEvent_HandleProcessItem_Hook(app::MoleMole_VCAnimatorEvent* __this,