-
Member
Remove this code for my game
how do I remove these codes?
-
-
Grand Master
Re: Remove this code for my game
#ifndef FINAL_BUILD
// draw player CustomerID/gamertag for admins
if(!NetworkLocal && gUserProfile.ProfileData.isDevAccount && Keyboard->IsPressed(kbsLeftAlt))
{
float dist = (gCam - GetPosition()).Length();
int a = int(R3D_MAX(1.0f - (dist / 300.0f), 0.1f)*255.0f);
r3dPoint3D scrCoord;
if(r3dProjectToScreen(GetPosition() + r3dPoint3D(0, 1.8f, 0), &scrCoord))
{
char plrUserName[64]; GetUserName(plrUserName);
Font_Editor->PrintF(scrCoord.x, scrCoord.y+12, r3dColor(255,255,255,a), "ID:%d", CustomerID);
Font_Editor->PrintF(scrCoord.x, scrCoord.y, r3dColor(255,255,255,a), "%s", plrUserName);
}
}
#endif