Is there a mod that implements random drops ?

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
User avatar
Buckethell II
Posts: 52
Joined: Mon Jun 04, 2018 2:26 am
Operating System Version (Optional): Windows 10
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: Italy

Is there a mod that implements random drops ?

Post by Buckethell II »

Hello everyone

As the title says, I would like to know if there is a mod that adds a "random" drop feature from enemies, something like this:

- Weaker enemies drops +10 health, minor ammo and smaller powerups
- Medium enemies drops an increased number of the above loot plus mid tier weapons and ammo
- Stronger enemies drops high tier power-ups, weapons and larger ammo boxes, plus armor

If something like this exist, I would like to contact whoever made it to ask permission for a mod I would like to make (eventually you'll see the thread in Gameplay Mods section)

Thanks in advice
User avatar
Cherno
Posts: 1291
Joined: Tue Dec 06, 2016 11:25 am

Re: Is there a mod that implements random drops ?

Post by Cherno »

I am thinking about how to implement this in a way that makes it compatible with any mods which change monster actors... I think you could override the Event WorldThingDied, check if it's a monster, and then spawn a certain item based on the health of the monster (or any other value or values for determining a monster's power).

Edit: I quickly threw this together, it should be easily adaptable even for people who don't zScript.

https://www.dropbox.com/s/7uxyy9htnj24b ... omdrop.pk3
Last edited by Cherno on Thu Oct 06, 2022 11:34 am, edited 1 time in total.
User avatar
Buckethell II
Posts: 52
Joined: Mon Jun 04, 2018 2:26 am
Operating System Version (Optional): Windows 10
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: Italy

Re: Is there a mod that implements random drops ?

Post by Buckethell II »

Cherno wrote:I am thinking about how to implement this in a way that makes it compatible with any mods which change monster actors... I think you could override the Event WorldThingDied, check if it's a monster, and then spawn a certain item based on the health of the monster (or any other value or values for determining a monster's power).

Edit: I quickly threw this together, it should be easily adaptable even for people who don't zScript.

https://www.dropbox.com/s/r9wfj4omcuwbe ... omdrop.pk3
I love the DooM modding community, I swear.

Thanks for your help, that was exactly the problem, I can't ZScript and there are some features I have in mind that cannot be implemented without it

I'll update this thread if I manage to get most of the stuff for the mod I want to make, so you and every other person interested in it will know, let's see how it goes ^^
Haikus0258
Posts: 6
Joined: Tue Dec 03, 2019 5:52 pm
Graphics Processor: Intel (Legacy GZDoom)

Re: Is there a mod that implements random drops ?

Post by Haikus0258 »

Please could you re-upload the file?
User avatar
openroadracer
Posts: 435
Joined: Mon Sep 23, 2019 1:03 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 7 Professional 64-bit SP1
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: Martinez, GA, 30907

Re: Is there a mod that implements random drops ?

Post by openroadracer »

Haikus0258 wrote:Please could you re-upload the file?
Make a post linking back to this thread over here.
User avatar
Cherno
Posts: 1291
Joined: Tue Dec 06, 2016 11:25 am

Re: Is there a mod that implements random drops ?

Post by Cherno »

Re-uploaded.

Return to “General”