public static bool IsPlayer(EntityPrototype other) { if (other == null || !other.IsValid) { return(false); } return(other.m_ClientClass.ClassID == CLASSID.Value); }
public static bool IsWeapon(EntityPrototype other) { if (other == null || !other.IsValid) { return(false); } return(idsAll.Value.Any(x => x == other.m_ClientClass.ClassID)); }