Advertisement
captmicro

Untitled

Nov 10th, 2012
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  C_BaseEntity *scanner[256];
  2.         int ent_count = UTIL_EntitiesInSphere(scanner, 256,
  3.                 local->GetAbsOrigin(), fMaxDist, 0);
  4.         for (int i = 0; i < ent_count; i++)
  5.         {
  6.                 if ((scanner[i] != NULL)
  7.                         && scanner[i]->IsAlive() && scanner[i]->IsNPC())
  8.                 {
  9.                         /*Vector vec;
  10.                         AimbotGetAimPos(scanner[i], vec);
  11.                         debugoverlay->AddTextOverlayRGB(vec, 0, 0.05f, 0, 0, 255, 200, "^");*/
  12.                         CCollisionProperty *pCollide = scanner[i]->CollisionProp();
  13.                         if (pCollide == 0) continue;
  14.                         debugoverlay->AddBoxOverlay(scanner[i]->GetAbsOrigin(),
  15.                                 pCollide->OBBMins(), pCollide->OBBMaxs(),
  16.                                 scanner[i]->GetAbsAngles(), 255, 0, 0, 5, 0.1f);
  17.                 }
  18.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement