mirror of
https://github.com/qwertyuiop3/Storm.git
synced 2024-12-22 06:40:04 +08:00
prediction redesignment (details in description)
my plan to use constant buffering to instantize actions (as healing, reviving) turned out ill-fated: - many things are using server relative timing: rock stuns, lagcompensation and many of interactables (they're all getting delayed by 150*(1/30) seconds) - there's always undefined behaviour no matter whether i'm constantly buffering or periodically - implementing logic that prevents buffering on when you're about to get hit by rock or to use something would adjust weapon timings (they're all getting delayed by 150*(1/30) seconds) thus i've removed some of things i've worked on (as exploits, viewmodel timing correction) mostly same thing about extra commands up to 21 while exploiting (my old trick doesn't works anymore): it's either undefined behaviour or feature cuttage but on good note: - prediction got hardened against timing fluctations - prediction now respects network timing updates - speedhacking issued undefined behaviour is significantly mitigated (not completely but i'd prefer to not bloat my code over such rare cases) i'll be working on features from now, here's potential list (anything that involves guessing is very low priority): rock prediction (involves guessing, it's not lagcompensated) tongue cutter (involves guessing) tongue aimbot/triggerbot (i've actually forgot to adjust lagcompensation for it but i'm not playing versus anyway) animation cycles prediction (involves guessing, u-rates are synced already so it's just about latency adjustments now) minigun aimbot (i'd like to work on it but just one thing that it's angle is limited thus impossibility to compensate spread accurately ruins it for me) visual improvements (such as visually removing m_duckUntilOnGround)
This commit is contained in:
parent
f26e099d55
commit
338a781f22
931
Copy_Command.hpp
931
Copy_Command.hpp
File diff suppressed because it is too large
Load Diff
@ -291,9 +291,6 @@ __int32 __stdcall DllMain(HMODULE This_Module, unsigned __int32 Call_Reason, voi
|
||||
Byte_Manager::Set_Bytes(1, (void*)((unsigned __int32)Client_Module + 2655546), 1, 216);
|
||||
|
||||
*(void**)((unsigned __int32)Client_Module + 8115120) = (void*)((unsigned __int32)Client_Module + 955708);
|
||||
|
||||
//rem: there is annoying "power bounce" effect (extremely noticeable with broken lerp)
|
||||
//actually it's m_duckUntilOnGround
|
||||
}
|
||||
|
||||
_putws(L"[ + ] Paint");
|
||||
|
13
Move.hpp
13
Move.hpp
@ -1,21 +1,16 @@
|
||||
void Run_Prediction()
|
||||
{
|
||||
using Run_Prediction_Type = void(__cdecl*)();
|
||||
|
||||
Run_Prediction_Type((unsigned __int32)Engine_Module + 527776)();
|
||||
}
|
||||
|
||||
__int32 Extra_Commands;
|
||||
|
||||
void* Original_Move_Caller;
|
||||
|
||||
void Redirected_Move(float Unknown_Parameter, __int8 Final)
|
||||
{
|
||||
using Run_Prediction_Type = void(__cdecl*)();
|
||||
|
||||
if (*(void**)((unsigned __int32)Client_Module + 7498712) != nullptr)
|
||||
{
|
||||
Redirected_Read_Packets(Final);
|
||||
|
||||
Run_Prediction();
|
||||
Run_Prediction_Type((unsigned __int32)Engine_Module + 527776)();
|
||||
|
||||
using Update_Animations_Type = void(__cdecl*)();
|
||||
|
||||
@ -40,7 +35,7 @@ void Redirected_Move(float Unknown_Parameter, __int8 Final)
|
||||
{
|
||||
(decltype(&Redirected_Move)(Original_Move_Caller))(Unknown_Parameter, Final);
|
||||
|
||||
Run_Prediction();
|
||||
Run_Prediction_Type((unsigned __int32)Engine_Module + 527776)();
|
||||
|
||||
if (Extra_Commands > 0)
|
||||
{
|
||||
|
@ -8,9 +8,7 @@ struct Command_Structure
|
||||
|
||||
float Angles[3];
|
||||
|
||||
float Move[2];
|
||||
|
||||
__int32 Frame_Number;
|
||||
float Move[3];
|
||||
|
||||
__int32 Buttons;
|
||||
|
||||
@ -30,13 +28,13 @@ Extended_Command_Structure Extended_Commands[150];
|
||||
|
||||
void* Original_Run_Command_Caller;
|
||||
|
||||
void __thiscall Redirected_Run_Command(void* Prediction, void* Player, Command_Structure* Command, void* Unknown_Parameter)
|
||||
void __thiscall Redirected_Run_Command(void* Prediction, void* Player, Command_Structure* Command, void* Move_Helper)
|
||||
{
|
||||
Extended_Command_Structure* Extended_Command = &Extended_Commands[Command->Frame_Number];
|
||||
Extended_Command_Structure* Extended_Command = &Extended_Commands[*(__int32*)((unsigned __int32)Player + 5620) % 150];
|
||||
|
||||
*(__int32*)((unsigned __int32)Player + 5324) -= Extended_Command->Extra_Commands + Extended_Command->Sequence_Shift;
|
||||
|
||||
(decltype(&Redirected_Run_Command)(Original_Run_Command_Caller))(Prediction, Player, Command, Unknown_Parameter);
|
||||
(decltype(&Redirected_Run_Command)(Original_Run_Command_Caller))(Prediction, Player, Command, Move_Helper);
|
||||
|
||||
if (__builtin_return_address(0) == (void*)((unsigned __int32)Client_Module + 423107))
|
||||
{
|
||||
|
@ -62,7 +62,7 @@ void Redirected_Send_Move()
|
||||
|
||||
void* Network_Channel = *(void**)(*(unsigned __int32*)((unsigned __int32)Engine_Module + 4352236) + 24);
|
||||
|
||||
*(__int32*)((unsigned __int32)Network_Channel + 28) -= Extra_Commands_Queue; //td: should do same thing i'm doing in v34 instead
|
||||
*(__int32*)((unsigned __int32)Network_Channel + 28) -= Extra_Commands_Queue;
|
||||
|
||||
using Send_Network_Message_Type = void(__thiscall**)(void* Network_Channel, void* Message, void* Unknown_Parameter_1, void* Unknown_Parameter_2);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user