예제 #1
0
        public static bool IsPlayer(EntityPrototype other)
        {
            if (other == null || !other.IsValid)
            {
                return(false);
            }

            return(other.m_ClientClass.ClassID == CLASSID.Value);
        }
예제 #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));
        }