-
Notifications
You must be signed in to change notification settings - Fork 579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Object Duplication #4604
Comments
That sounds less like the object being duplicated and more it being in two places at once I knew we couldn' trust throw code |
More like BYOND bug, it can happen via other ways too if you're doing things faster than code can process your actions. The second (duplicated) stack should be moved to nullspace on second deletion attempt, though, so there's an issue with objects that failed to get qdel'd. |
@Huffie56 I was not able to reproduce the bug in a round by throwing and picking up money in the way described. |
# About the pull request This PR resolves the unresolved issues in #5337 and should fix #4604 See testing for more details. One note is that we aren't actually doing anything different for mob/proc/u_equip for nomoveupdate. I attempted a few things including a snippet from tg's code (https://github.com/tgstation/tgstation/blob/master/code/modules/mob/inventory.dm#L377-L381) but at least for thrown items it would just make them poof; so for now I just corrected a misused call of it. # Explain why it's good for the game No more funny business nor weird inventory overlays (atleast for cards and stacks - let me know if there is anything else that has this behavior) # Testing Photographs and Procedure <details> <summary>Screenshots & Videos</summary> Busted: https://github.com/cmss13-devs/cmss13/assets/76988376/a596d661-49f0-4f3e-b77e-51046676408c Fixed: https://github.com/cmss13-devs/cmss13/assets/76988376/98bc6680-d0b5-4ce8-b7a0-22629274d8ad </details> # Changelog :cl: Drathek fix: Fixed more item exploits fix: Fixed lingering overlays in inventories for metal stacks and cards /:cl:
Testmerges
N/A
Description of the bug
Any object that can be picked up, can be duplicated. This seems to be a shallow object copy, i.e. you can throw the object, and then throw the duplicate, and the original thrown object "disappears". Due to it not being a full copy, it seems this would have limited use other than being able to throw something far away repeatedly without going to pick it up.
Also, this can be used to get infinite money from ATMs.
What's the difference with what should have happened?
You shouldn't be able to pseudo-duplicate items. For example duplicating an M41A will then make your character sprite appear to be holding 2 guns, although in the hands only one gun shows (but the other has the invisible copy).
It might also be unrealistic for an ATM to hold over $45 trillion in cash.
How do we reproduce this bug?
ATM Heist:
Issue Bingo
The text was updated successfully, but these errors were encountered: