mirror of
https://github.com/qwertyuiop3/Storm.git
synced 2025-07-18 09:27:56 +08:00
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"
This commit is contained in:
@ -1,27 +1,10 @@
|
||||
struct Global_Variables_Structure
|
||||
{
|
||||
__int8 Additional_Bytes_1[12];
|
||||
|
||||
float Current_Time;
|
||||
|
||||
float Frame_Time;
|
||||
|
||||
__int8 Additional_Bytes_2[8];
|
||||
|
||||
float Interval_Per_Tick;
|
||||
};
|
||||
|
||||
void* Original_Interpolate_Caller;
|
||||
|
||||
__int8 __thiscall Redirected_Interpolate(void* Entity, float Time)
|
||||
__int8 __thiscall Redirected_Interpolate(void* Entity, void* Unknown_Parameter)
|
||||
{
|
||||
if (Entity == *(void**)((unsigned __int32)Client_Module + 7498712))
|
||||
{
|
||||
Time = (*(Global_Variables_Structure**)((unsigned __int32)Client_Module + 7096744))->Current_Time;
|
||||
|
||||
*(__int32*)((unsigned __int32)Entity + 5328) -= *(__int32*)((unsigned __int32)Entity + 16);
|
||||
|
||||
return (decltype(&Redirected_Interpolate)(Original_Interpolate_Caller))(Entity, Time);
|
||||
return (decltype(&Redirected_Interpolate)(Original_Interpolate_Caller))(Entity, Unknown_Parameter);
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user