Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. if (c_config :: get (). xdesync) {
  2. Globals :: DesyncEnabledSpecialChecks = false;
  3. }
  4. else {
  5. Globals :: DesyncEnabledSpecialChecks = false;
  6. }
  7. if (c_config :: get (). xdesync && Globals :: LocalPlayer-> AnimState ()) {
  8. flutuante desync = Globals :: LocalPlayer-> DesyncValue ();
  9. balanço flutuante = 1,0f;
  10.  
  11. int type = 2;
  12. if (tipo == 2)
  13. saldo = -1.0f;
  14.  
  15. if (g_pGlobalVars-> curtime <= next_lby_update (Globais :: pCmd-> viewangles.y, Globals :: pCmd)) {
  16.  
  17. auto net_channel = g_pEngine-> GetNetChannel ();
  18.  
  19. if (! net_channel)
  20. retorna;
  21.  
  22. if (net_channel-> m_nChokedPackets> = 10) {
  23. Globais :: pCmd-> viewangles.y = g_Math.NormalizeYaw (Globais :: pCmd-> viewangles.y);
  24. retorno;
  25. }
  26. if (type == 1)
  27. Globals :: pCmd-> viewangles.y - = 180.0f;
  28. else
  29. Globals :: pCmd-> viewangles.y + = (saldo * 60.0f);
  30. }
  31.  
  32. else if (tipo! = 1) {
  33. int jitter_side = 1;
  34. Globals :: pCmd-> viewangles.y + = 180.0f;
  35.  
  36. float desync = Globals :: LocalPlayer-> DesyncValue ();
  37. float lby_delta = 60.0f - desync + 58.0f;
  38. float desync_length = 60.0f - lby_delta * 60.0f;
  39. flutuação de flutuação = 60.0f * jitter_side;
  40. auto net_channel = g_pEngine-> GetNetChannel ();
  41.  
  42. if (! net_channel)
  43. retorna;
  44. if (net_channel-> m_nChokedPackets> = 10) {
  45. Globais :: pCmd-> viewangles.y = g_Math.NormalizeYaw (Globais :: pCmd-> viewangles.y);
  46. retorno;
  47. }
  48. if (jitter_side == 1)
  49. Globais :: pCmd-> viewangles.y + = desync_length;
  50.  
  51. else if (jitter_side == -1)
  52. Globals :: pCmd-> viewangles.y - = desync_length;
  53.  
  54.  
  55. int v19 = 0;
  56. if (g_pGlobalVars-> curtime <g_pGlobalVars-> curtime <= next_lby_update (Globais :: pCmd-> viewangles.y, Globals :: pCmd)) {
  57. v19 = m_iJitter;
  58. }
  59. else {
  60. m_iJitter = 0;
  61. }
  62.  
  63. int v20 = v19 - 1;
  64. if (v20) {
  65. se (v20 == 1) {
  66. if (jitter_side == 1)
  67. Globais :: pCmd-> viewangles.y + = lby_delta;
  68. mais
  69. Globals :: pCmd-> viewangles.y + = desync - 68;
  70. }
  71. }
  72. else {
  73. if (jitter_side == 1)
  74. Globals :: pCmd-> viewangles.y + = desync - 68;
  75. else
  76. Globals :: pCmd-> viewangles.y + = lby_delta;
  77. Globals :: bSendPacket = false;
  78. }
  79.  
  80. if (++ m_iJitter> = 3)
  81. m_iJitter = 0;
  82.  
  83. Globals :: pCmd-> viewangles.y = g_Math.NormalizeYaw (Globals :: pCmd-> viewangles.y);
  84. }
  85. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement