Storm/Perform_Shove_Trace.hpp
explorer 485ff54642 extend interpolation history; events ordering
intentionally was kept until "something" along with watermark inside of datamap lol

jitters in certain scenarios due to interpolation history not being filled which doesn't bothers anyone (probably) so i've removed "fading"
2024-12-06 03:11:27 +03:00

23 lines
552 B
C++
Executable File

void __thiscall Perform_Shove_Trace(void* Stack)
{
void* Entity = *(void**)((unsigned __int32)Stack + 332);
if (Entity == Perform_Trace_Target)
{
Perform_Trace_Damage = 1;
}
}
void* Original_Perform_Shove_Trace_Caller;
__attribute__((naked)) void Redirected_Perform_Shove_Trace()
{
asm("leal -304(%ebp), %eax");
asm("pushl %eax");
asm("calll *%edx");
asm("pushal");
asm("movl %esp, %ecx");
asm("calll %0" : : "m"(Perform_Shove_Trace));
asm("popal");
asm("jmpl *%0" : : "m"(Original_Perform_Shove_Trace_Caller));
}