Having trouble recycling broken itemsSolved

my players cant recycle broken items, it just make the grind sound and ends with turret bleep, and the broken gun still in.. also tried it with longsword, same problem. so it might be for all broken items. i unloaded plugin to be sure, and that fixed the problem.  

Oops, I was going to install the plugin, I'll wait for an update.

Everything works as intended, this is done so that players do not have the opportunity to accumulate items, on PVE servers there are always problems with the accumulation of items.
I didn't make it possible to disable this, if you need it then I can enable it in the next plugin update.

seriously recycling broken items is essential

If you need to turn it off completely, here's a quick fix, find this paragraph in the plugin and change it.

       #region Hooks OnRecycleItem

        private object OnRecycleItem(Recycler recycler, Item item)
        {
            if (item == null || recycler == null) return null;
            if (item.conditionNormalized == 0)
            {
                Effect.server.Run("assets/prefabs/npc/autoturret/effects/targetlost.prefab", recycler.transform.position);
                recycler.StopRecycling();
                return false;
            }

            return null;
        }

        #endregion​

 

as below

       /*#region Hooks OnRecycleItem

        private object OnRecycleItem(Recycler recycler, Item item)
        {
            if (item == null || recycler == null) return null;
            if (item.conditionNormalized == 0)
            {
                Effect.server.Run("assets/prefabs/npc/autoturret/effects/targetlost.prefab", recycler.transform.position);
                recycler.StopRecycling();
                return false;
            }

            return null;
        }

        #endregion*/​

 

Or change this value, up
item.conditionNormalized == 0

For example so.
item.conditionNormalized == 10

thanks, i understand.. very cool plugin eitherway. my pop wanted to keep it even if you couldnt recycle any broken items. if you could make this an option its even better. ill wait for your update sir!

Merged post

i havent mentioned, but it was a broken mp5 and longsword, so not armor related. i figured if it couldnt recycle these items, then prolly non of the items that can break could be recycled

Wait a bit, I'll test and post an update.

sure thing

thanks i changed it

I have updated the plugin, sorry it took so long.

I made additional settings in the config file.

Such as the:
Enable or disable blocking of broken items, (this parameter affects items that are listed in the lists "List [Head]" "List [Body]" "List [Pants]").

Also added another list:
"Entity Short Prefab Name" - List of entities that can reduce armor durability (ShortPrefabName).
I warn you that not all types of damage inflicted on the player can be processed to reduce the strength of the armor.
I have not studied what types of damage are processed, and what are not, if you find something, then write, maybe I will find a solution to fix it.
Thanks for understanding.

pretty fast in my book, thx allot!

Locked automatically