ayyware antiaim knife fix
Hey,
I made a Ayyware paste and dont write learn C++ or smth I want only a fix. So if I have AntiAim on and when I put my Knife out the AntiAim is still enabled.. Why? I already looked into the WeaponInfo but it seems to be fine. Can someone help me?
Ragebot.cpp
UTIL Functions.cpp
Would be nice if someone could help me,
Regards
I made a Ayyware paste and dont write learn C++ or smth I want only a fix. So if I have AntiAim on and when I put my Knife out the AntiAim is still enabled.. Why? I already looked into the WeaponInfo but it seems to be fine. Can someone help me?
Ragebot.cpp
Code:
CBaseCombatWeapon* pWeapon = (CBaseCombatWeapon*)Interfaces::EntList->GetClientEntityFromHandle(hackManager.pLocal()->GetActiveWeaponHandle());
if (pWeapon)
{
CSWeaponInfo* pWeaponInfo = pWeapon->GetCSWpnData();
// Knives or grenades
if (!GameUtils::IsBallisticWeapon(pWeapon))
return;
}
Code:
bool GameUtils::IsBallisticWeapon(void* weapon)
{
if (weapon == nullptr) return false;
IClientEntity* weaponEnt = (IClientEntity*)weapon;
ClientClass* pWeaponClass = weaponEnt->GetClientClass();
if (pWeaponClass->m_ClassID == (int)CSGOClassID::CKnife || pWeaponClass->m_ClassID == (int)CSGOClassID::CHEGrenade || pWeaponClass->m_ClassID == (int)CSGOClassID::CDecoyGrenade || pWeaponClass->m_ClassID == (int)CSGOClassID::CIncendiaryGrenade || pWeaponClass->m_ClassID == (int)CSGOClassID::CSmokeGrenade || pWeaponClass->m_ClassID == (int)CSGOClassID::CC4)
return false;
else
return true;
}
Regards