Skip to content

Commit

Permalink
Add Actor::InitiateDoNothingPackage
Browse files Browse the repository at this point in the history
  • Loading branch information
powerof3 committed Aug 21, 2023
1 parent a98e90d commit 7048056
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
3 changes: 2 additions & 1 deletion include/RE/A/Actor.h
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ namespace RE
InventoryEntryData* GetAttackingWeapon();
const InventoryEntryData* GetAttackingWeapon() const;
bhkCharacterController* GetCharController() const;
uint32_t GetCollisionFilterInfo(uint32_t& a_outCollisionFilterInfo);
std::uint32_t GetCollisionFilterInfo(std::uint32_t& a_outCollisionFilterInfo);
NiPointer<Actor> GetCommandingActor() const;
TESFaction* GetCrimeFaction();
const TESFaction* GetCrimeFaction() const;
Expand Down Expand Up @@ -559,6 +559,7 @@ namespace RE
bool HasPerk(BGSPerk* a_perk) const;
bool HasShout(TESShout* a_shout) const;
bool HasSpell(SpellItem* a_spell) const;
void InitiateDoNothingPackage();
void InterruptCast(bool a_restoreMagicka) const;
bool IsAttacking() const;
bool IsAIEnabled() const;
Expand Down
9 changes: 8 additions & 1 deletion include/RE/T/TESPackage.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,14 @@ namespace RE
kPickPocketWarning = 35,
kMovementBlocked = 36,
kVampireFeed = 37,
kCannibal = 38
kCannibal = 38,
kUnk39 = 39,
kUnk40 = 40,
kUnk41 = 41,
kUnk42 = 42,
kUnk43 = 43,
kUnk44 = 44,
kUnk45 = 45,
};

enum class PACK_EVENT_ACTION_TYPE
Expand Down
9 changes: 8 additions & 1 deletion src/RE/A/Actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,14 @@ namespace RE
return func(this, a_spell);
}

void Actor::InterruptCast(bool a_restoreMagicka) const
void Actor::InitiateDoNothingPackage()
{
using func_t = decltype(&Actor::InitiateDoNothingPackage);
REL::Relocation<func_t> func{ RELOCATION_ID(36408, 37402) };
return func(this);
}

void Actor::InterruptCast(bool a_restoreMagicka) const
{
using func_t = decltype(&Actor::InterruptCast);
REL::Relocation<func_t> func{ RELOCATION_ID(37808, 38757) };
Expand Down

0 comments on commit 7048056

Please sign in to comment.