Skip to content

Commit

Permalink
Add bhkCharacterController::ProcessHurtfulBody
Browse files Browse the repository at this point in the history
  • Loading branch information
powerof3 committed May 28, 2024
1 parent 07b6ba2 commit ff75176
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions include/RE/B/bhkCharacterController.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,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_t> 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_t> func{ RELOCATION_ID(76460, 78302) };
func(this, a_body, a_contactPoint);
}

// members
//std::uint64_t pad068; // 068
hkVector4 forwardVec; // 070
Expand Down

0 comments on commit ff75176

Please sign in to comment.