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!

Randomspawner does not pass DROPPED flag onto dropped items

Postby Zhs2 » Mon Sep 20, 2021 8:21 am

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.
User avatar
Power of meh.
Joined: 07 Nov 2008
Location: Maryland, USA, but probably also in someone's mod somewhere
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: ATI/AMD with Vulkan Support

Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests