Add enemy target brackets + off-screen arrows

This commit is contained in:
vottozi committed 2026-02-19 01:13:08 +06:00
1 parent b56fafa0e0
commit 528c94e921
2 files changed
+296 -3

No files matched your search

+11
View File
@@ -133,7 +133,18 @@ namespace ZL {
std::unordered_set<int> deadRemotePlayers;
// --- Target HUD (brackets + offscreen arrow) ---
int trackedTargetId = -1;
bool targetWasVisible = false;
float targetAcquireAnim = 0.0f; // 0..1 схлопывание (0 = далеко, 1 = на месте)
// временный меш для HUD (будем перезаливать VBO маленькими порциями)
VertexRenderStruct hudTempMesh;
// helpers
bool projectToNDC(const Vector3f& world, float& ndcX, float& ndcY, float& ndcZ, float& clipW) const;
void drawTargetHud(); // рисует рамку или стрелку
int pickTargetId() const; // выбирает цель (пока: ближайший живой удаленный игрок)
};