We've moved! Join us as we continue development on our new site at umod.org!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  1. Please add

    Code:
      public void Reload()
      {
      if (Interface.CallHook("OnTurretReload", (object) this) != null)
      return;
        foreach (Item obj in this.inventory.itemList)
        {
          if (obj.info.itemid == this.ammoType.itemid && obj.amount > 0)
          {
            this.ammoItem = obj;
            break;
          }
        }
      }
    
    Code:
    AutoTurret:
    
      public bool HasAmmo()
      {
        if (this.ammoItem != null && this.ammoItem.amount > 0)
          return this.ammoItem.parent == this.inventory;
        return false;
      }
    
    and this prevents using items not from selfstorage, so could this possibly be changed to
    Code:
    AutoTurret:
    
      public bool HasAmmo()
      {
        if (this.ammoItem != null && this.ammoItem.amount > 0)
          return true;
        return false;
      }
    
     
  2. so, could this happen?