Exemplo n.º 1
0
        public bool IsWeaponInSlot(int configId)
        {
            EWeaponSlotType slotType = WeaponUtil.GetEWeaponSlotTypeById(configId);

            if (slotType == EWeaponSlotType.None)
            {
                return(false);
            }
            return(this[slotType].ConfigId == configId);
        }
Exemplo n.º 2
0
        public bool IsWeaponInSlot(int configId, int bagIndex = -1)
        {
            EWeaponSlotType slotType = WeaponUtil.GetEWeaponSlotTypeById(configId);

            if (slotType == EWeaponSlotType.None)
            {
                return(false);
            }
            if (bagIndex < 0)
            {
                bagIndex = HeldBagPointer;
            }
            return(CreateGetWeaponAgent(bagIndex, slotType).ConfigId == configId);
        }