Smart Scavenger - A Resource/Mod (V2 Released 12/28/12)

For in-development or completed ZDoom projects
Forum rules
Got a cool project idea but nothing else? This forum is NOT for you! Put it in this thread instead!
Please read the full rules for more details.

Smart Scavenger - A Resource/Mod (V2 Released 12/28/12)

Postby amv2k9 » Thu Dec 27, 2012 6:51 pm

Image
As a (belated) Christmas gift to the ZDoom community, I'm releasing this mod/resource wad. It's something I've wanted to do for a while, but never had the knowledge on how to do it properly.

Have you even come across an unavoidable large ammo or health pickup in a narrow hallway or right in front of a switch, and were forced to pick it up, even though you were only a few rounds short of maxed out, or just a tad below 100 health? Ever kicked yourself later for having done that when you came face-to-face with some mean S.O.B that wanted to eat your face off, and you just didn't have enough ammo or the health to survive the enounters after? With Smart Scavenger, those large pickups now break down into smaller pickups if you have more ammo or health than the amount that the pickup would normally refill, leaving the odd clip, handful of shells, rocket, cell or Stimpack on the ground to pick up when you need it. Smart Scavenger also comes in versions for Heretic, Strife, and Chex Quest.

Smart Scavenger works through a combination of ACS, MAPINFO, and DECORATE:
-MAPINFO assigns a value to each skill through the ACSReturn property.
-An ACS script retrieves this value and gives a ResultValue that can be used in DECORATE expressions.
-The actors that replace the large ammo pickups check this value to determine whether the current difficulty is one with a 2x ammofactor, along with the presence or abscence of a Backpack, to aid in properly determining whether the player's ammo stores for the applicable type are depleted enough to give a large ammo pickup, and if not, drop several small ones.

Changelog:
Spoiler:
Known Issues:
-When you run over one of these pickups, the screen will flash as if you acquired something, even if your ammo for that type is full.
-Any small ammo or health pickups will spawn at your feet, rather than at the spot of the large pickup.
-In Strife, ammo you buy won't split into small ammo pickups.

Download Smart Scavenger - Version 2
Last edited by amv2k9 on Fri Dec 28, 2012 4:30 pm, edited 3 times in total.
User avatar
amv2k9
MSX:MISP, Satanic Redux, and Weapons of Rebellion Series Dev
 
Joined: 10 Jan 2010
Location: Southern California

Re: Smart Scavenger- A Resource/Mod

Postby Springy » Thu Dec 27, 2012 6:53 pm

Hmm, interesting concept. I do actually find it very annoying when you are forced to pickup an ammo box and have its full contents instead of some of it. Thanks for this.
User avatar
Springy
Yes indeed ladies and gentlemen.
 
Joined: 08 Mar 2012
Location: Earth

Re: Smart Scavenger- A Resource/Mod

Postby Enjay » Thu Dec 27, 2012 6:54 pm

I haven't tried it yet, but it sounds like a really neat idea. I think we've all been in the situation that you described.

A similar thing would be nice for health. I think, even more than ammo, I've been forced to pick up a full medpack when I had something like 99 health.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
Joined: 15 Jul 2003
Location: Scotland

Re: Smart Scavenger- A Resource/Mod

Postby Springy » Thu Dec 27, 2012 7:07 pm

Enjay wrote:I haven't tried it yet, but it sounds like a really neat idea. I think we've all been in the situation that you described.

A similar thing would be nice for health. I think, even more than ammo, I've been forced to pick up a full medpack when I had something like 99 health.

I fully agree with that. I often find myself in that situation as well and it's pretty annoying. Also (but very rare situation) with powerups such as megasphere. Would be quite a nice idea if there was a mod which would not allow a powerup to be picked up if it's in use or is not necessary an example would be invulnerability.
User avatar
Springy
Yes indeed ladies and gentlemen.
 
Joined: 08 Mar 2012
Location: Earth

Re: Smart Scavenger- A Resource/Mod

Postby Snarboo » Thu Dec 27, 2012 7:15 pm

I've been dying to see someone do this ever since the days of Immoral Conduct! This implementation seems to be pretty efficient, too.
User avatar
Snarboo
Cool Frog
 
Joined: 29 Nov 2005

Re: Smart Scavenger- A Resource/Mod

Postby Lava Grunt » Thu Dec 27, 2012 8:42 pm

Really nice title pic. Reminds me of an opened chest/bomb box from Spelunky.

Anyways, really good idea man, I can think of many instances where this can be used. However, does the ammo that comes out of the large ammo do a tiny little bounce like a clip dropped from a zombieman in Zdoom? I always thought that that sort of detail needed to happen more in Doom.
User avatar
Lava Grunt
*insert avatar related pun here*
 
Joined: 05 Sep 2011
Location: Roseville, MI

Re: Smart Scavenger- A Resource/Mod

Postby amv2k9 » Thu Dec 27, 2012 8:48 pm

Lava Grunt wrote:...does the ammo that comes out of the large ammo do a tiny little bounce like a clip dropped from a zombieman in Zdoom?
The ammo dropped by enemies doesn't bounce per se, but yes, in this mod a random z velocity between 1 & 4 is applied to the ammo when it is spawned, along with random x & y velocities between -4 & 4, so that the ammos can be expected to fall somewhere apart from each other.
User avatar
amv2k9
MSX:MISP, Satanic Redux, and Weapons of Rebellion Series Dev
 
Joined: 10 Jan 2010
Location: Southern California

Re: Smart Scavenger- A Resource/Mod

Postby -Ghost- » Thu Dec 27, 2012 9:03 pm

Seems like a cool little mod. I think Hideous Destructor does this as well, right? It's a good feature
User avatar
-Ghost-
 
Joined: 08 Sep 2010

Re: Smart Scavenger- A Resource/Mod

Postby Pisstepank » Fri Dec 28, 2012 9:27 am

Work great. Its usefull, good job !
I think you should make the empty boxes stay, instead of instantly disappear :p
User avatar
Pisstepank
Yo
 
Joined: 17 Jun 2009
Location: France

Re: Smart Scavenger- A Resource/Mod

Postby Vaecrius » Fri Dec 28, 2012 1:05 pm

-Ghost- wrote:Seems like a cool little mod. I think Hideous Destructor does this as well, right? It's a good feature
Only for shotgun shells (E: and medikits for next version) - everything else just spawns several small ammo pickups from the start.

Definitely considering this for the autoloads.
Last edited by Vaecrius on Tue Jan 01, 2013 1:31 am, edited 1 time in total.
User avatar
Vaecrius
Team Bad Allocation, blast off at the speed of light!
 
Joined: 04 Jan 2004
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia

Re: Smart Scavenger - A Resource/Mod (V2 Released 12/28/12)

Postby amv2k9 » Fri Dec 28, 2012 4:28 pm

Version 2 is now up! Check the first post for the download.

Changelog:

Version 2:
-Doom's Medikit now has a Smart Scavenger equivalent; if you have over seventy-five health, it will spawn a MiniStim (+5 health), then two Stimpacks.
-Similar to the above, Chex Quest's Vegetable Bowl is now a fruit & veggie bowl; if you have more than seventy-five health, it will spawn a random fruit or veggie restoring 5 health, then two fruit bowls. The PickupMessage for the item has been changed to reflect its new usage; it wouldn't make sense to get fruit from a bowl of veggies, right?

I was going to include replacements for the Soulsphere & Megasphere in this update, but the latter is tricky; you can't just check for the player having BlueArmor or GreenArmor. If I could use ACS to check for the SavePercent rating of the player's current armor, this could work.
User avatar
amv2k9
MSX:MISP, Satanic Redux, and Weapons of Rebellion Series Dev
 
Joined: 10 Jan 2010
Location: Southern California

Re: Smart Scavenger - A Resource/Mod (V2 Released 12/28/12)

Postby Springy » Fri Dec 28, 2012 7:21 pm

Excellent, health is done now. Thanks for that downloading right away.
User avatar
Springy
Yes indeed ladies and gentlemen.
 
Joined: 08 Mar 2012
Location: Earth

Re: Smart Scavenger - A Resource/Mod (V2 Released 12/28/12)

Postby Blue Shadow » Fri Dec 28, 2012 7:59 pm

amv2k9 wrote:you can't just check for the player having BlueArmor or GreenArmor. If I could use ACS to check for the SavePercent rating of the player's current armor, this could work.

Yes, you can... :wink:
User avatar
Blue Shadow
 
Joined: 14 Nov 2010

Re: Smart Scavenger - A Resource/Mod (V2 Released 12/28/12)

Postby Lava Grunt » Mon Dec 31, 2012 6:50 pm

After playing around with this mod a good deal, I'm definitely all for making the ammo/medikits not to spawn underneath my feet. Many instances were I'm in a part where I don't want to move much and I accidently shove into medikit (occasionally an ammo box) only for me to use most/all of it up due to it being spawned underneath my feet.

Great mod though. Animations are quite nice.
User avatar
Lava Grunt
*insert avatar related pun here*
 
Joined: 05 Sep 2011
Location: Roseville, MI

Re: Smart Scavenger - A Resource/Mod (V2 Released 12/28/12)

Postby Lava Grunt » Sun Jan 13, 2013 2:59 pm

Idea bump: Allow medikits to be picked up and carried around in your inventory? It would work nicely with how all the large pickups spawn opening at your feet.
User avatar
Lava Grunt
*insert avatar related pun here*
 
Joined: 05 Sep 2011
Location: Roseville, MI

Next

Return to Projects

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], GooberMan, ILSS, Pixel_Crusher and 20 guests