Skip to content

Commit

Permalink
Revert "feat: flush out npc idles"
Browse files Browse the repository at this point in the history
This reverts commit edf8f5f.
  • Loading branch information
RobbeBryssinck committed Mar 9, 2022
1 parent d764a31 commit f7ab817
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
9 changes: 0 additions & 9 deletions Code/client/Games/Skyrim/Actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,15 +418,6 @@ void Actor::SetFactionRank(const TESFaction* apFaction, int8_t aRank) noexcept
ThisCall(s_setFactionRankInternal, this, apFaction, aRank);
}

void Actor::EvaluatePackage(bool aImmediate, bool aResetAI) noexcept
{
TP_THIS_FUNCTION(TEvaluatePackage, void, Actor, bool, bool);

POINTER_SKYRIMSE(TEvaluatePackage, s_evalPack, 37401);

ThisCall(s_evalPack, this, aImmediate, aResetAI);
}

void Actor::UnEquipAll() noexcept
{
// For each change
Expand Down
1 change: 0 additions & 1 deletion Code/client/Games/Skyrim/Actor.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ struct Actor : TESObjectREFR
void RemoveFromAllFactions() noexcept;
void QueueUpdate() noexcept;
bool InitiateMountPackage(Actor* apMount) noexcept;
void EvaluatePackage(bool aImmediate, bool aResetAI) noexcept;

bool IsDead() noexcept;
void Kill() noexcept;
Expand Down
4 changes: 0 additions & 4 deletions Code/client/Services/Generic/CharacterService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,6 @@ void CharacterService::OnAssignCharacter(const AssignCharacterResponse& acMessag
InterpolationSystem::Setup(m_world, cEntity);
AnimationSystem::Setup(m_world, cEntity);

pActor->EvaluatePackage(true, true);

pActor->SetActorValues(acMessage.AllActorValues);

// TODO: verify this code path too while you're at it
Expand Down Expand Up @@ -410,8 +408,6 @@ void CharacterService::OnRemoteSpawnDataReceived(const NotifySpawnData& acMessag
if (!pActor)
return;

pActor->EvaluatePackage(true, true);

pActor->SetActorValues(remoteComponent.SpawnRequest.InitialActorValues);
pActor->SetInventory(remoteComponent.SpawnRequest.InventoryContent);

Expand Down

0 comments on commit f7ab817

Please sign in to comment.