Advertisement
tonti666

Untitled

Oct 8th, 2017
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. Menu.cpp
  2. AutoRevolver.SetFileId("aim_autdopistol8");
  3. AimbotGroup.PlaceLabledControl("Auto Revolver", this, &AutoRevolver);
  4.  
  5.  
  6.  
  7. __________________________________________________________________________________
  8.  
  9. Menu.h
  10. CCheckBox AutoRevolver
  11.  
  12. ___________________________________________________________________________________
  13.  
  14. Ragebot.cpp | DoAimbot
  15.  
  16. if (GameUtils::IsRevolver(pWeapon) && Menu::Window.RageBotTab.AutoRevolver.GetState())
  17. {
  18. static int delay = 0;
  19. delay++;
  20.  
  21. if (delay <= 15)
  22. pCmd->buttons |= IN_ATTACK;
  23. else
  24. delay = 0;
  25. }
  26.  
  27. ______________________________________________________________________________________
  28. Entities.h | CSWeaponInfo
  29.  
  30. bool bIsRevolver; // 0x022C
  31.  
  32. _______________________________________________________________________________________
  33. UTIL Functions.h | namespace GameUtils
  34. bool IsRevolver(void* weapon);
  35.  
  36. _______________________________________________________________________________________
  37. UTIL Functions.cpp
  38. bool GameUtils::IsRevolver(void* weapon)
  39. {
  40. if (weapon == nullptr) return false;
  41. CBaseCombatWeapon *pWeapon = (CBaseCombatWeapon*)weapon;
  42. int id = *pWeapon->m_AttributeManager()->m_Item()->ItemDefinitionIndex();
  43. static const std::vector<int> v = { WEAPON_REVOLVER };
  44. return (std::find(v.begin(), v.end(), id) != v.end());
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement