mirror of
https://github.com/qwertyuiop3/Storm.git
synced 2025-07-18 09:27:56 +08:00
revert to old approach
i've got problem with imagination regarding reliable method of relative correction on networking errors so old approach is preferable for moment currently focusing on gmod-x64 fork of segregation so probably won't update l4d2 for period of time [^\S\r\n]+(?=\r?$)
This commit is contained in:
@ -96,7 +96,7 @@ void __thiscall Redirected_Copy_Command(void* Unknown_Parameter, Command_Structu
|
||||
|
||||
float* Velocity = (float*)((unsigned __int32)Local_Player + 256);
|
||||
|
||||
if (__builtin_fabsf(Difference) < __builtin_atan2f(30, __builtin_hypotf(Velocity[0], Velocity[1])) * 180.f / 3.1415927f)
|
||||
if (__builtin_fabsf(Difference) < __builtin_atan2f(30.f, __builtin_hypotf(Velocity[0], Velocity[1])) * 180.f / 3.1415927f)
|
||||
{
|
||||
float Strafe_Angle = __builtin_remainderf(Move_Angles[1] - __builtin_atan2f(Velocity[1], Velocity[0]) * 180.f / 3.1415927f, 360.f);
|
||||
|
||||
@ -739,7 +739,7 @@ void __thiscall Redirected_Copy_Command(void* Unknown_Parameter, Command_Structu
|
||||
float Maximum_Spread = *(float*)((unsigned __int32)Weapon + 3340);
|
||||
|
||||
float* Recoil = (float*)((unsigned __int32)Local_Player + 4612);
|
||||
|
||||
|
||||
Command->Angles[0] -= Random_Type((unsigned __int32)Client_Module + 1756592)((char*)"CTerrorGun::FireBullet HorizSpread", -Maximum_Spread, Maximum_Spread, nullptr) + Recoil[0];
|
||||
|
||||
Command->Angles[1] -= Random_Type((unsigned __int32)Client_Module + 1756592)((char*)"CTerrorGun::FireBullet VertSpread", -Maximum_Spread, Maximum_Spread, nullptr) + Recoil[1];
|
||||
|
Reference in New Issue
Block a user