Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. // some shit i wanna see what it does exactly
  2. void FixWalk(CUserCmd* pCmd)
  3. {
  4. if (g_Menu.Config.fixlegsmeme)
  5. return;
  6.  
  7. if (pCmd->buttons & IN_FORWARD)
  8. {
  9. pCmd->forwardmove = 450;
  10. pCmd->buttons &= ~IN_FORWARD;
  11. }
  12. else if (pCmd->buttons & IN_BACK)
  13. {
  14. pCmd->forwardmove = -450;
  15. pCmd->buttons &= ~IN_BACK;
  16. }
  17. if (pCmd->buttons & IN_MOVELEFT)
  18. {
  19. pCmd->sidemove = -450;
  20. pCmd->buttons &= ~IN_MOVELEFT;
  21. }
  22. else if (pCmd->buttons & IN_MOVERIGHT)
  23. {
  24. pCmd->sidemove = 450;
  25. pCmd->buttons &= ~IN_MOVERIGHT;
  26. }
  27. }
  28.  
  29.  
  30. // killfeed
  31. template<class T>
  32. static T* FindHudElement(const char* name)
  33. {
  34. static auto pThis = *reinterpret_cast<DWORD * *> (Utils::FindSignature("client_panorama.dll", "B9 ? ? ? ? E8 ? ? ? ? 8B 5D 08") + 1); //(Utilities::Memory::FindPatternV2("client_panorama.dll", "B9 ? ? ? ? 68 ? ? ? ? E8 ? ? ? ? 89 46 24") + 1);
  35.  
  36. static auto find_hud_element = reinterpret_cast<DWORD(__thiscall*)(void*, const char*)>(Utils::FindSignature("client_panorama.dll", "55 8B EC 53 8B 5D 08 56 57 8B F9 33 F6 39 77 28"));
  37. return (T*)find_hud_element(pThis, name);
  38. }
  39. void PreserveKillFeed()
  40. {
  41. static void(__thiscall * ClearDeathNotices)(DWORD);
  42. static DWORD* deathNotice;
  43.  
  44. if (g::pLocalEntity && g_pEngine->IsInGame() && g_pEngine->IsConnected())
  45. {
  46. if (g::pLocalEntity) {
  47. if (!deathNotice) deathNotice = FindHudElement<DWORD>("CCSGO_HudDeathNotice");
  48. if (deathNotice) {
  49. float* localDeathNotice = (float*)((DWORD)deathNotice + 0x50);
  50. if (localDeathNotice)* localDeathNotice = g_Menu.Config.bPreserveKillFeed ? FLT_MAX : 1.5f;
  51. if (g::preservedelete && deathNotice - 20) {
  52. if (!ClearDeathNotices) ClearDeathNotices = (void(__thiscall*)(DWORD))Utils::FindSignature("client_panorama.dll", "55 8B EC 83 EC 0C 53 56 8B 71 58");
  53. if (ClearDeathNotices) { ClearDeathNotices(((DWORD)deathNotice - 20)); g::preservedelete = false; }
  54.  
  55. }
  56. }
  57. }
  58. }
  59. }
  60.  
  61.  
  62.  
  63. //auto resolver
  64. void AutoRevolver(CUserCmd* cmd, C_BaseEntity* local_player)
  65. {
  66. if (!g_Menu.Config.bAutoRevolver)
  67. return;
  68.  
  69. C_BaseCombatWeapon* weapon = local_player->GetActiveWeapon();
  70. if (!weapon || weapon->GetItemDefinitionIndex() != ItemDefinitionIndex::WEAPON_REVOLVER)
  71. return;
  72.  
  73. static float delay = 0.f;
  74. if (delay < 0.15f)
  75. {
  76. delay += g_pGlobalVars->intervalPerTick;
  77. cmd->buttons |= IN_ATTACK;
  78. }
  79. else
  80. delay = 0.f;
  81. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement