Example #1
0
        /// <summary>
        /// Configures the bot based on the vehicle information
        /// </summary>
        protected virtual void configureBot()
        {               //Are we using any equipment?
            foreach (int item in _type.InventoryItems)
            {
                ItemInfo.UtilityItem util = AssetManager.Manager.getItemByID(item) as ItemInfo.UtilityItem;
                if (util == null)
                {
                    continue;
                }

                _activeEquip.Add(util);
            }
        }
Example #2
0
 /// <summary>
 /// Configures the bot based on the vehicle information
 /// </summary>
 protected virtual void configureBot()
 {               //Are we using any equipment?
     foreach (int item in _type.InventoryItems)
     {
         if (item != 0)
         {
             ItemInfo.UtilityItem util = AssetManager.Manager.getItemByID(item) as ItemInfo.UtilityItem;
             if (util == null)
             {
                 //Log.write(TLog.Inane, "configureBot(): bot inventory item ({0}) not found", item);
                 continue;
             }
             else
             {
                 _activeEquip.Add(util);
             }
         }
     }
 }