I am helping out Ability (creator of NOTD) with fixing a persistent issue that has been plaguing the map since the 1.5.0 patch.
It seems that some changes in 1.5.0 have broken our inventory handling script and cause it to give out free ammo to players.
I've had a look at broth Triggers and Data but those seemed to be fine.
What happened pre-1.5.0:
Player drops a magazine from their equipped section which reduces equipped section by 3 and creates a stack of 1 magazines in inventory.
Magazines in inventory can stack up to 3 before it creates a new stack. If inventory is full, drops a stack of 1 magazine on the floor.
What happened post-1.5.0:
When player drops a magazine while all inventory slots are occupied but there is a stack of 1 magazines present (i.e. stackable) the game stacks it to 3 instead of 2 and drops a NEGATIVE magazine stack on the floor. If that stack is not picked up, the player just received a free magazine.
Also, if the player has a full inventory of stacks of 2 magazines, dropping a magazine fills randomly 3 of the stacks to 3 without dropping a magazine on the floor (i.e. 3 free magazines), which can be repeated and abused.
On observation, if you have only 3 stacks or no magazines in inventory, dropping a magazine gives you 1.
If you have a stack of 1, dropping a magazine seems to increment the existing stack by 1 as well as add a -1 magazine stack to your inventory for a split second.
If you have a stack of 2, dropping a magazine seems to increment the existing stack to 3 as well as add a 0 magazine stack to your inventory for a split second.
Note that what may be related to this is that pre-1.5.0 if your inventory was full but stackable, items would drop on the floor regardless and you had to make a space in your inventory first to stack things. 1.5.0 somehow made it ignore the inventory full limitation and just allow you to stack items with a full inventory when you click to pick something up. So that may be causative.
Another thing that has been bothersome is that if you stack items with a full but stackable inventory (i.e. some stacks in inventory are not filled) it will fill them with the picked up item but not update the stack count until you change something with the inventory (use/drop something)
Hi,
I am helping out Ability (creator of NOTD) with fixing a persistent issue that has been plaguing the map since the 1.5.0 patch. It seems that some changes in 1.5.0 have broken our inventory handling script and cause it to give out free ammo to players.
I've had a look at broth Triggers and Data but those seemed to be fine.
What happened pre-1.5.0: Player drops a magazine from their equipped section which reduces equipped section by 3 and creates a stack of 1 magazines in inventory. Magazines in inventory can stack up to 3 before it creates a new stack. If inventory is full, drops a stack of 1 magazine on the floor.
What happened post-1.5.0: When player drops a magazine while all inventory slots are occupied but there is a stack of 1 magazines present (i.e. stackable) the game stacks it to 3 instead of 2 and drops a NEGATIVE magazine stack on the floor. If that stack is not picked up, the player just received a free magazine. Also, if the player has a full inventory of stacks of 2 magazines, dropping a magazine fills randomly 3 of the stacks to 3 without dropping a magazine on the floor (i.e. 3 free magazines), which can be repeated and abused.
On observation, if you have only 3 stacks or no magazines in inventory, dropping a magazine gives you 1. If you have a stack of 1, dropping a magazine seems to increment the existing stack by 1 as well as add a -1 magazine stack to your inventory for a split second. If you have a stack of 2, dropping a magazine seems to increment the existing stack to 3 as well as add a 0 magazine stack to your inventory for a split second.
Note that what may be related to this is that pre-1.5.0 if your inventory was full but stackable, items would drop on the floor regardless and you had to make a space in your inventory first to stack things. 1.5.0 somehow made it ignore the inventory full limitation and just allow you to stack items with a full inventory when you click to pick something up. So that may be causative.
Another thing that has been bothersome is that if you stack items with a full but stackable inventory (i.e. some stacks in inventory are not filled) it will fill them with the picked up item but not update the stack count until you change something with the inventory (use/drop something)
Thank you for any help/pointers you can offer.
Inventory backbone:
Code for dropping a magazine
Code for stacking items
Any ideas for help? Thanks