int UTIL_GetTeam(edict_t *pEntity) { char t = g_engfuncs.pfnInfoKeyValue(g_engfuncs.pfnGetInfoKeyBuffer(pEntity), "model")[2]; if (t == 'r' || t == 'a' || t == 'e' || t == 'c') return TEAM_TERRORIST; return TEAM_CT; }