




if (strstr(studioHeader->name, "ied")){
if (WorldToScreen(c4Pos, w2sC4))
DrawString(w2sC4.x - 20, w2sC4.y, Color::LightBlue(), s_HFontPlayer, "C4");
}
else if (strstr(studioHeader->name, "chicken")){
if (WorldToScreen(c4Pos, w2sC4))
DrawString(w2sC4.x, w2sC4.y, Color::White(), s_HFontPlayer, "chicken");
}
else if (strstr(studioHeader->name, "c4_planted")){
if (WorldToScreen(c4Pos, w2sC4))
DrawString(w2sC4.x, w2sC4.y, Color::Red(), s_HFontPlayer, "C4_Planted");
}
else if (strstr(studioHeader->name, "weapon")){
CBaseHandle WeaponHandle = pBaseEntity->GetRefEHandle();
C_BaseCombatWeapon* DroppedWeapon = (C_BaseCombatWeapon*)entitylist->GetClientEntityFromHandle(WeaponHandle);
if (DroppedWeapon)
if (WorldToScreen(c4Pos, w2sC4)){
std::string drop_s = DroppedWeapon->WeaponName();
const char *dropChar = drop_s.c_str();
if (!DroppedWeapon->m_hOwnerEntity.IsValid() && !strstr(dropChar, "Predicted")){
int distance = Get3dDistance(c4Pos, pLocalEntity->GetAbsOrigin());
distance = distance / 10;
if (distance < 60){
Vector WepPos[26];
Vector w2sWep[25];
if (!strstr(studioHeader->name, "BaseAn"))
DrawString(w2sC4.x, w2sC4.y, Color::Red(), s_HFontPlayer, dropChar);
else
DrawString(w2sC4.x, w2sC4.y, Color::Red(), s_HFontPlayer, "Defuse Kit");
}
}
}
}