Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Menu.cpp
- AutoRevolver.SetFileId("aim_autdopistol8");
- AimbotGroup.PlaceLabledControl("Auto Revolver", this, &AutoRevolver);
- __________________________________________________________________________________
- Menu.h
- CCheckBox AutoRevolver
- ___________________________________________________________________________________
- Ragebot.cpp | DoAimbot
- if (GameUtils::IsRevolver(pWeapon) && Menu::Window.RageBotTab.AutoRevolver.GetState())
- {
- static int delay = 0;
- delay++;
- if (delay <= 15)
- pCmd->buttons |= IN_ATTACK;
- else
- delay = 0;
- }
- ______________________________________________________________________________________
- Entities.h | CSWeaponInfo
- bool bIsRevolver; // 0x022C
- _______________________________________________________________________________________
- UTIL Functions.h | namespace GameUtils
- bool IsRevolver(void* weapon);
- _______________________________________________________________________________________
- UTIL Functions.cpp
- bool GameUtils::IsRevolver(void* weapon)
- {
- if (weapon == nullptr) return false;
- CBaseCombatWeapon *pWeapon = (CBaseCombatWeapon*)weapon;
- int id = *pWeapon->m_AttributeManager()->m_Item()->ItemDefinitionIndex();
- static const std::vector<int> v = { WEAPON_REVOLVER };
- return (std::find(v.begin(), v.end(), id) != v.end());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement