const string EN_MBG = "_mbg_bgrm"; const string EN_MBG_DEAD = "_mm_end"; const string EN_GT_MBG_LEFT = "_gt_end_mbgleft"; /** * Make sure there are no bodyguards left. */ void FireIfMbgAreDead(CBaseEntity@ pActivator, CBaseEntity@ caller, USE_TYPE useType, float flValue) { CBaseEntity@ bg = g_EntityFuncs.FindEntityByTargetname(null, EN_MBG); if (bg is null) { g_EntityFuncs.FireTargets(EN_MBG_DEAD, null, null, USE_ON); } else { g_EntityFuncs.FireTargets(EN_GT_MBG_LEFT, null, null, USE_ON); } }