mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-13 21:30:53 +01:00
24 lines
711 B
C++
24 lines
711 B
C++
|
|
#include <TiltedOnlinePCH.h>
|
||
|
|
|
||
|
|
#include <Forms/TESNPC.h>
|
||
|
|
|
||
|
|
TP_THIS_FUNCTION(TSetLeveledNpc, TESNPC*, TESNPC, TESNPC*);
|
||
|
|
static TSetLeveledNpc* RealSetLeveledNpc = nullptr;
|
||
|
|
|
||
|
|
TESNPC* TP_MAKE_THISCALL(HookSetLeveledNpc, TESNPC, TESNPC* apSelectedNpc)
|
||
|
|
{
|
||
|
|
spdlog::info("For TESNPC: {}, spawning: {}", apThis->fullName.value, apSelectedNpc->fullName.value);
|
||
|
|
|
||
|
|
return TiltedPhoques::ThisCall(RealSetLeveledNpc, apThis, Cast<TESNPC>(TESForm::GetById(0x3B547)));
|
||
|
|
}
|
||
|
|
|
||
|
|
static TiltedPhoques::Initializer s_npcInitHooks(
|
||
|
|
[]()
|
||
|
|
{
|
||
|
|
POINTER_SKYRIMSE(TSetLeveledNpc, s_SetLeveledNpc, 14375);
|
||
|
|
|
||
|
|
RealSetLeveledNpc = s_SetLeveledNpc.Get();
|
||
|
|
|
||
|
|
// TP_HOOK(&RealSetLeveledNpc, HookSetLeveledNpc);
|
||
|
|
});
|