Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool CLegitBot::SmokeCheck()
- {
- int localIndex;
- int i;
- CBaseEntity* pEntity = I::ClientEntList->GetClientEntity(i);
- typedef bool(__cdecl* GoesThroughSmoke)(Vector, Vector);
- static uint32_t GoesThroughSmokeOffset = (uint32_t)U::FindPattern("client.dll", "55 8B EC 83 EC 44 8B 15");
- static GoesThroughSmoke GoesThroughSmokeFunction = (GoesThroughSmoke)GoesThroughSmokeOffset;
- CBaseEntity* pLocalEntity = I::ClientEntList->GetClientEntity1<CBaseEntity>(localIndex);
- if (GoesThroughSmokeFunction(pLocalEntity->GetEyePosition(), pEntity->GetBonePosition(6)));
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement