Randomspawner does not pass DROPPED flag onto dropped items

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!
User avatar
Zhs2
Posts: 1245
Joined: Fri Nov 07, 2008 3:29 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: Maryland, USA, but probably also in someone's mod somewhere

Randomspawner does not pass DROPPED flag onto dropped items

Post by Zhs2 »

I'm not sure if this ever made it into the ZScripted version of the Randomspawner class, but as it stands the Randomspawner will only ensure that an item's DROPPED flag is false if its own DROPPED flag is false - it makes no attempt otherwise to pass the DROPPED flag onto a spawned item. This is problematic in the case that you want to replace ammo enemies drop and expect them to be affected by the DropAmmoFactor.

See example file, wherein clips have been replaced with a randomspawner that drops clips, shells, or cells, but none of them are affected by DropAmmoFactor.
You do not have the required permissions to view the files attached to this post.

Return to “Bugs [GZDoom]”