Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. if(animstate)
  2. {
  3. Сheat::player->client_side_animation() = true;
  4. auto curtime = Cheat::i.global->curtime;
  5. auto frametime = Cheat::i.global->frametime;
  6. auto frametimne = Cheat::i.global->frametime;
  7. auto absoluteframtime = Cheat::i.global->absoluteframetime;
  8. auto interp_amount = Cheat::i.global->interpolation_amount;
  9. auto framecount = Cheat::i.global->framecount;
  10. auto tickcount = Cheat::i.global->tickcount;
  11. auto simtime = Сheat::player->get_simulation_time();
  12. Cheat::i.global->realtime = simtime;
  13. Cheat::i.global->curtime = simtime;
  14. Cheat::i.global->frametime = Cheat::i.global->interval_per_tick;
  15. Cheat::i.global->absoluteframetime = Cheat::i.global->interval_per_tick;
  16. Cheat::i.global->framecount = TIME_TO_TICKS(simtime);
  17. Cheat::i.global->tickcount = TIME_TO_TICKS(simtime);
  18. Cheat::i.global->interpolation_amount = 0.0f;
  19. Cheat::i.global->curtime = Сheat::player->get_simulation_time();
  20.  
  21. if ( animstate->m_iLastClientSideAnimationUpdateFramecount >= TIME_TO_TICKS(simtime))
  22. animstate->m_iLastClientSideAnimationUpdateFramecount = TIME_TO_TICKS(simtime) - 1;
  23.  
  24. player->update_client_side_animation();
  25. player->client_side_animation() = false;
  26. Cheat::i.global->curtime = old_curtime;
  27. Cheat::i.global->frametime = old_frametime;
  28. Cheat::i.global->realtime = realtime;
  29. Cheat::i.global->curtime = curtime;
  30. Cheat::i.global->frametime = frametimne;
  31. Cheat::i.global->absoluteframetime = absoluteframtime;
  32. Cheat::i.global->interpolation_amount = interp_amount;
  33. Cheat::i.global->framecount = framecount;
  34. Cheat::i.global->tickcount = tickcount;
  35.  
  36. //Cheat::player->InvalidateBoneCache();
  37. //Cheat::player->setup_bones(nullptr, -1, 0x7FF00, G::interfaces.globaldata->curtime);// ch1rk00f + soufiv podarok
  38.  
  39. Matrix3x4 bones[128];
  40. Cheat::player->setup_bones(bones, 128, BONE_USED_BY_ANYTHING, Cheat::player->get_simulation_time());// opulence
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement