Skip to content

Commit

Permalink
tweak: disable temp base form spawning system
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbeBryssinck committed May 6, 2022
1 parent 7dc48a1 commit 2907b92
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Code/client/Games/References.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -714,8 +714,10 @@ bool TP_MAKE_THISCALL(HookSpeakSoundFunction, Actor, const char* apName, uint32_
spdlog::debug("a3: {:X}, a4: {}, a5: {}, a6: {}, a7: {}, a8: {:X}, a9: {:X}, a10: {}, a11: {:X}, a12: {}, a13: {}, a14: {}",
(uint64_t)a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);

/*
if (apThis->GetExtension()->IsLocal())
World::Get().GetRunner().Trigger(DialogueEvent(apThis->formID, apName));
*/

return ThisCall(RealSpeakSoundFunction, apThis, apName, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);
}
Expand Down
2 changes: 1 addition & 1 deletion Code/client/Services/Generic/CharacterService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@ void CharacterService::RequestServerAssignment(const entt::entity aEntity) const
message.IsDead = pActor->IsDead();
message.IsWeaponDrawn = pActor->actorState.IsWeaponFullyDrawn();

if (isTemporary && !isNpcTemporary)
if (isTemporary /* && !isNpcTemporary */)
{
if (!m_world.GetModSystem().GetServerModId(pNpc->formID, message.FormId))
{
Expand Down
4 changes: 3 additions & 1 deletion Code/client/Services/Generic/MagicService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ void MagicService::OnNotifySpellCast(const NotifySpellCast& acMessage) const noe
pDesiredTargetForm = TESForm::GetById(formIdComponent.Id);
}
}

}

TESObjectREFR* pDesiredTarget = Cast<TESObjectREFR>(pDesiredTargetForm);
Expand Down Expand Up @@ -244,6 +243,9 @@ void MagicService::OnInterruptCastEvent(const InterruptCastEvent& acEvent) const

InterruptCastRequest request;
request.CasterId = localComponent.Id;

spdlog::debug("Sending out interrupt cast");

m_transport.Send(request);
#endif
}
Expand Down

0 comments on commit 2907b92

Please sign in to comment.