hh
This commit is contained in:
parent
67552efe70
commit
020120822c
@ -62,6 +62,8 @@ void CachedEntity::Update(int idx) {
|
||||
m_iTeam = Var<int>(eoffsets.iTeamNum); // TODO
|
||||
m_bEnemy = (m_iTeam != g_pLocalPlayer->team);
|
||||
m_bIsVisible = (IsEntityVisible(m_pEntity, 0) || IsEntityVisible(m_pEntity, 4));
|
||||
if (m_bIsVisible) m_lLastSeen = 0;
|
||||
else m_lLastSeen++;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -40,6 +40,7 @@ public:
|
||||
bool m_bEnemy;
|
||||
|
||||
bool m_bIsVisible;
|
||||
unsigned long m_lLastSeen;
|
||||
|
||||
|
||||
// CBaseEntity
|
||||
|
@ -54,6 +54,8 @@ void HEsp::Create() {
|
||||
this->v_bShowFriendID = CreateConVar("u_esp_friendid", "0", "Show friend ID");
|
||||
this->v_bShowFriends = CreateConVar("u_esp_friends", "1", "Show friends");
|
||||
this->v_bVisCheck = CreateConVar("u_esp_vischeck", "1", "Visibility Checking");
|
||||
this->v_bLegit = CreateConVar("u_esp_legit", "0", "'legit' esp mode");
|
||||
this->v_bLegitSeenTicks = CreateConVar("u_esp_legit_seenticks", "800", "Ticks the entity is 'predicted'");
|
||||
}
|
||||
|
||||
#define ESP_HEIGHT 14
|
||||
|
@ -36,6 +36,8 @@ public:
|
||||
ConVar* v_bShowFriendID;
|
||||
ConVar* v_bShowFriends;
|
||||
ConVar* v_bVisCheck;
|
||||
ConVar* v_bLegit;
|
||||
ConVar* v_bLegitSeenTicks;
|
||||
//ConVar* v_bModelInfo;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user