For example i made black listed all weapon mods to prevent add them to back pack. But if you add weapon in backpack, then you able to add these mods in to a weapon slots which is in back pack. Possible to fix it ? For example if weapon already has mods, then ok to place it to back pack, but if weapon had no mods added and weapon mods listed in black list then keep preventing them to add in to it?
Weapon mods black list can be exploited
It should be pretty straight forward for me to check the attachments inside of any item when it is being added to the backpack (I don't recall if this is already handled), but it would still be exploitable as you could then add the attachment to the item that is already inside the backpack, as you called out.
I could lock the inventory of items while they are inside the backpack, but it could interfere with plugins such as Bag of Holding which dynamically lock item internal inventories.
It's possible for me to hook all item move events in order to block moving a restricted attachment into a weapon that is already in a backpack, but there are real performance implications to using such hooks as they are called frequently, though I don't see any other way without being generally prohibitive or causing conflicts.
If you blacklist attachments, then none should be allowed. Why would you want to allow weapons with them in backpacks? All you are doing is adding an extra step to me of removing the weapon from backpack(or not) loading it with attachments and allowing me to put it in.
hom3rSIMPIf you blacklist attachments, then none should be allowed. Why would you want to allow weapons with them in backpacks? All you are doing is adding an extra step to me of removing the weapon from backpack(or not) loading it with attachments and allowing me to put it in.
Well i have plugin that with out permission players have to be next to work bench to be able add weapon mods, i using this thing as skill, when player learn it, he get this permission, but backpack kill my idea because player add gun in back pack, then drag mod on that gun and thats it.... I know you guys cant make it just because its handy for me, just tried my luck if possible to prevent add weapon mod to weapon when its in back pack when i black listed weapon modds to be stored in back pack. Sorry if i cause troubles rising this question
No issue, just trying to understand it better. It did not make a lot of sense to me.