Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void DoTraceline()
- {
- if (!Features::bTraceLine) return;
- if (!Interfaces.Engine->IsInGame()) return;
- for (int iEntity = 0; iEntity < Interfaces.ClientEntList->GetHighestEntityIndex(); iEntity++)
- {
- CBaseEntity* CurrentEntity = Interfaces.ClientEntList->GetClientEntity(iEntity);
- if (CurrentEntity == me) continue;
- if (CurrentEntity->Index() == Interfaces.Engine->GetLocalPlayer()) continue;
- if (CurrentEntity->Health() <= 0) continue;
- if (CurrentEntity->IsDormant()) continue;
- Vector W2Screen_Position;
- if (WorldToScreen(CurrentEntity->Position(), W2Screen_Position))
- {
- Interfaces.Surface->DrawLine(ScreenW/2, 0, W2Screen_Position.x, W2Screen_Position.y);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement