Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- C_BaseEntity *scanner[256];
- int ent_count = UTIL_EntitiesInSphere(scanner, 256,
- local->GetAbsOrigin(), fMaxDist, 0);
- for (int i = 0; i < ent_count; i++)
- {
- if ((scanner[i] != NULL)
- && scanner[i]->IsAlive() && scanner[i]->IsNPC())
- {
- /*Vector vec;
- AimbotGetAimPos(scanner[i], vec);
- debugoverlay->AddTextOverlayRGB(vec, 0, 0.05f, 0, 0, 255, 200, "^");*/
- CCollisionProperty *pCollide = scanner[i]->CollisionProp();
- if (pCollide == 0) continue;
- debugoverlay->AddBoxOverlay(scanner[i]->GetAbsOrigin(),
- pCollide->OBBMins(), pCollide->OBBMaxs(),
- scanner[i]->GetAbsAngles(), 255, 0, 0, 5, 0.1f);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement