Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (c_config :: get (). xdesync) {
- Globals :: DesyncEnabledSpecialChecks = false;
- }
- else {
- Globals :: DesyncEnabledSpecialChecks = false;
- }
- if (c_config :: get (). xdesync && Globals :: LocalPlayer-> AnimState ()) {
- flutuante desync = Globals :: LocalPlayer-> DesyncValue ();
- balanço flutuante = 1,0f;
- int type = 2;
- if (tipo == 2)
- saldo = -1.0f;
- if (g_pGlobalVars-> curtime <= next_lby_update (Globais :: pCmd-> viewangles.y, Globals :: pCmd)) {
- auto net_channel = g_pEngine-> GetNetChannel ();
- if (! net_channel)
- retorna;
- if (net_channel-> m_nChokedPackets> = 10) {
- Globais :: pCmd-> viewangles.y = g_Math.NormalizeYaw (Globais :: pCmd-> viewangles.y);
- retorno;
- }
- if (type == 1)
- Globals :: pCmd-> viewangles.y - = 180.0f;
- else
- Globals :: pCmd-> viewangles.y + = (saldo * 60.0f);
- }
- else if (tipo! = 1) {
- int jitter_side = 1;
- Globals :: pCmd-> viewangles.y + = 180.0f;
- float desync = Globals :: LocalPlayer-> DesyncValue ();
- float lby_delta = 60.0f - desync + 58.0f;
- float desync_length = 60.0f - lby_delta * 60.0f;
- flutuação de flutuação = 60.0f * jitter_side;
- auto net_channel = g_pEngine-> GetNetChannel ();
- if (! net_channel)
- retorna;
- if (net_channel-> m_nChokedPackets> = 10) {
- Globais :: pCmd-> viewangles.y = g_Math.NormalizeYaw (Globais :: pCmd-> viewangles.y);
- retorno;
- }
- if (jitter_side == 1)
- Globais :: pCmd-> viewangles.y + = desync_length;
- else if (jitter_side == -1)
- Globals :: pCmd-> viewangles.y - = desync_length;
- int v19 = 0;
- if (g_pGlobalVars-> curtime <g_pGlobalVars-> curtime <= next_lby_update (Globais :: pCmd-> viewangles.y, Globals :: pCmd)) {
- v19 = m_iJitter;
- }
- else {
- m_iJitter = 0;
- }
- int v20 = v19 - 1;
- if (v20) {
- se (v20 == 1) {
- if (jitter_side == 1)
- Globais :: pCmd-> viewangles.y + = lby_delta;
- mais
- Globals :: pCmd-> viewangles.y + = desync - 68;
- }
- }
- else {
- if (jitter_side == 1)
- Globals :: pCmd-> viewangles.y + = desync - 68;
- else
- Globals :: pCmd-> viewangles.y + = lby_delta;
- Globals :: bSendPacket = false;
- }
- if (++ m_iJitter> = 3)
- m_iJitter = 0;
- Globals :: pCmd-> viewangles.y = g_Math.NormalizeYaw (Globals :: pCmd-> viewangles.y);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement