Search for
Code:
if (gUserProfile.ProfileData.isDevAccount && d_show_dev_event_info->GetBool()) {
r3dColor clanTagColor;
switch (ClanTagColor)
{
default: clanTagColor = r3dColor::yellow;
case 1: clanTagColor = r3dColor24(170,0,0); break;
case 2: clanTagColor = r3dColor24(166,120,12); break;
case 3: clanTagColor = r3dColor24(16,164,158); break;
case 4: clanTagColor = r3dColor24(32,164,20); break;
case 5: clanTagColor = r3dColor24(16,78,164); break;
case 6: clanTagColor = r3dColor24(150,16,164); break;
case 7: clanTagColor = r3dColor24(68,68,68); break;
case 8: clanTagColor = r3dColor24(164,164,164); break;
}
r3dPoint3D scrCoord;
if(r3dProjectToScreen(GetPosition() + r3dPoint3D(0, 1.8f, 0), &scrCoord))
{
char plrUserName[64]; GetUserName(plrUserName);
if(ClanID!=0)
Font_Editor->PrintF(scrCoord.x - 50, scrCoord.y, clanTagColor, "[%s]", ClanTag);
Font_Editor->PrintF(scrCoord.x, scrCoord.y, r3dColor::yellow, "%s", plrUserName);
r3dColor health = r3dColor::yellow;
if (CurLoadout.Health < 25)
health = r3dColor::red;
else if (CurLoadout.Health < 50)
health = r3dColor::orange;
Font_Editor->PrintF(scrCoord.x, scrCoord.y + 20, health, "%.0f", CurLoadout.Health);
}
}
ADD BELLOW
Code:
//DouglasPRO:: DEV ESP CustomerID/gamertag for admins if(!NetworkLocal && gUserProfile.ProfileData.isDevAccount && d_dev_show_player_names->GetBool())
{
float dist = (gCam - GetPosition()).Length();
int a = int(R3D_MAX(1.0f - (dist / 300.0f), 0.1f)*255.0f);
r3dPoint3D scrCoord; //DouglasPRO
if(r3dProjectToScreen(GetPosition() + r3dPoint3D(0, 1.8f, 0), &scrCoord))
{
char plrUserName[64]; GetUserName(plrUserName);
if(!d_dev_do_not_show_player_id->GetBool())
Font_Editor->PrintF(scrCoord.x, scrCoord.y+12, r3dColor(255,255,255,a), "ID:%d", CustomerID);
if(ClanID!=0)
Font_Editor->PrintF(scrCoord.x, scrCoord.y, r3dColor(255,255,255,a), "[%s]%s", ClanTag, plrUserName);
else
Font_Editor->PrintF(scrCoord.x, scrCoord.y, r3dColor(255,255,255,a), "%s", plrUserName); //DouglasPRO
}
}