StarRuler2-Source icon indicating copy to clipboard operation
StarRuler2-Source copied to clipboard

Unlimited remnant pickups exploit

Open l29ah opened this issue 6 years ago • 1 comments

https://steamcommunity.com/app/282590/discussions/0/1290691937710672216/ Reproduced it on ba99a9a30875a4b76ff60b919d11a2e13a32c4e7 I've took a look on the corresponding .as files that govern pickup mechanics, but they all look innocent. Maybe there's some resource locking at play?

l29ah avatar Sep 24 '18 11:09 l29ah

The way pickups were coded is that they destroy themselves when they get picked up, but destroy isn't an instant operation, it will take at the very least one tick to finish destroying itself (and even after that the object will linger until it can be garbage collected usually).

So if you queue multiple orders on the pickup they will all trigger on the pickup before it gets destroyed, triggering the effect multiple times.

Best solution would be for the pickup to track whether it has already been picked up internally and just early-out if it's attempted multiple times.

Lucas7211 avatar Sep 26 '18 18:09 Lucas7211