Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. bool CLegitBot::SmokeCheck()
  2. {
  3. int localIndex;
  4. int i;
  5. CBaseEntity* pEntity = I::ClientEntList->GetClientEntity(i);
  6. typedef bool(__cdecl* GoesThroughSmoke)(Vector, Vector);
  7. static uint32_t GoesThroughSmokeOffset = (uint32_t)U::FindPattern("client.dll", "55 8B EC 83 EC 44 8B 15");
  8. static GoesThroughSmoke GoesThroughSmokeFunction = (GoesThroughSmoke)GoesThroughSmokeOffset;
  9. CBaseEntity* pLocalEntity = I::ClientEntList->GetClientEntity1<CBaseEntity>(localIndex);
  10.  
  11. if (GoesThroughSmokeFunction(pLocalEntity->GetEyePosition(), pEntity->GetBonePosition(6)));
  12. return true;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement