Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- struct Structure_User_Command
- {
- __int8 Add_Bytes_1[12];
- float View_Angles[3];
- __int8 Add_Bytes_2[40];
- };
- struct Structure_Verified_User_Command : Structure_User_Command
- {
- unsigned int Checksum;
- };
- void __fastcall Redirected_Create_Move(void* ECX, void* EDX, int Sequence_Number, float Last_Frame_Time, __int8 Is_Fully_Connected)
- {
- unsigned long int Previous_Access_Rights;
- Remove_Redirection(Original_Create_Move, Previous_Access_Rights, Original_Create_Move_Bytes, 1);
- using Create_Move_Type = void(__thiscall**)(void* ECX, int Sequence_Number, float Last_Frame_Time, __int8 Is_Fully_Connected);
- (*Create_Move_Type(*(unsigned long int*)ECX + 84))(ECX, Sequence_Number, Last_Frame_Time, Is_Fully_Connected);
- void* Local_Player = *(void**)((unsigned long int)Client_Module + 12817536);
- if (Local_Player != nullptr)
- {
- if (*(__int8*)((unsigned long int)Local_Player + 165) == 0)
- {
- Structure_User_Command* User_Command = (Structure_User_Command*)(*(unsigned long int*)((unsigned long int)Input + 252) + (Sequence_Number % 90 << 6));
- Structure_Verified_User_Command* Verified_User_Command = (Structure_Verified_User_Command*)(*(unsigned long int*)((unsigned long int)Input + 256) + sizeof Structure_Verified_User_Command * (Sequence_Number % 90));
- User_Command->View_Angles[0] = 89;
- using Set_Verified_User_Command_To_User_Command = void(__thiscall*)(Structure_Verified_User_Command* ECX, Structure_User_Command* User_Command);
- Set_Verified_User_Command_To_User_Command((unsigned long int)Client_Module + 1268416)(Verified_User_Command, User_Command);
- using Get_Checksum_Type = unsigned int(__thiscall*)(Structure_User_Command* ECX);
- Verified_User_Command->Checksum = Get_Checksum_Type((unsigned long int)Client_Module + 2437824)(User_Command);
- }
- }
- Restore_Redirection(Original_Create_Move, Redirected_Create_Move, Previous_Access_Rights, 1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement