From c19599d16f946e78a9835ebcb622bf457f61e195 Mon Sep 17 00:00:00 2001 From: powerof3 <32599957+powerof3@users.noreply.github.com> Date: Wed, 29 May 2024 05:16:01 +0530 Subject: [PATCH] Add `bhkCharacterController::ProcessHurtfulBody` --- include/RE/B/bhkCharacterController.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/RE/B/bhkCharacterController.h b/include/RE/B/bhkCharacterController.h index 776da24e2..3750266e0 100644 --- a/include/RE/B/bhkCharacterController.h +++ b/include/RE/B/bhkCharacterController.h @@ -96,6 +96,20 @@ namespace RE inline void GetPosition(hkVector4& a_pos, bool a_applyCenterOffset) const { return GetPositionImpl(a_pos, a_applyCenterOffset); } + static bool IsHurtfulBody(hkpRigidBody* a_body) + { + using func_t = decltype(&bhkCharacterController::IsHurtfulBody); + REL::Relocation func{ RELOCATION_ID(76456, 78298) }; + return func(a_body); + } + + void ProcessHurtfulBody(hkpRigidBody* a_body, const hkContactPoint& a_contactPoint) + { + using func_t = decltype(&bhkCharacterController::ProcessHurtfulBody); + REL::Relocation func{ RELOCATION_ID(76460, 78302) }; + func(this, a_body, a_contactPoint); + } + // members //std::uint64_t pad068; // 068 hkVector4 forwardVec; // 070