Ejemplo n.º 1
0
        public static bool IsPlayer(EntityPrototype other)
        {
            if (other == null || !other.IsValid)
            {
                return(false);
            }

            return(other.m_ClientClass.ClassID == CLASSID.Value);
        }
Ejemplo n.º 2
0
        public static bool IsWeapon(EntityPrototype other)
        {
            if (other == null || !other.IsValid)
            {
                return(false);
            }

            return(idsAll.Value.Any(x => x == other.m_ClientClass.ClassID));
        }