#  ![](https://www.realm667.com/media/kunena/topic_icons/realm667_repo/user/rep_approved.png) \[Submission\] Uberpack

##

- **Salahmander**
- ![Salahmander's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar1650.png?1601326422) Topic Author
- Wicked
- ![Wicked](https://www.realm667.com/media/kunena/ranks/rank_81_wicked.png)

 Less More- Posts: 213
-
-
-
-

   1 year 11 months ago - 1 year 11 months ago [\#12445](#12445) by Salahmander  *[\[Submission\] Uberpack](https://www.realm667.com/forum/closed-submissions/2146-submission-uberpack#12445 "Hiya, while the Megapack is an interesting powerup, I feel the megapack giving you a backpack having infinite ammo is a touch pointless given the ammo sphere exists, so instead, I felt it'd be better...")* was created by *Salahmander*

 Hiya, while the Megapack is an interesting powerup, I feel the megapack giving you a backpack having infinite ammo is a touch pointless given the ammo sphere exists, so instead, I felt it'd be better for it to completely max out your ammo upon pick up. I kept the original DECORATE in unless you feel it's not needed. Has been sorted into PK3.

Description: Increases carrying capacity like a normal backpack and gives the maximum ammo. Modders should add their mod's ammo types to it, as well.

- [ BPK2A0.png ![BPK2A0.png](https://www.realm667.com/forum/attachment/2448?download=1) ](https://www.realm667.com/forum/attachment/2448?download=1 "BPK2A0.png") [ ](https://www.realm667.com/forum/attachment/2448?download=1 "BPK2A0.png")
- [ Megapack.zip ](https://www.realm667.com/forum/attachment/2449?download=1 "Megapack.zip") [ ](https://www.realm667.com/forum/attachment/2449?download=1 "Megapack.zip")

 Last edit: 1 year 11 months ago by Salahmander.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8yMTQ2LXN1Ym1pc3Npb24tdWJlcnBhY2s/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **DeVloek**
- ![DeVloek's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar11145.png?1542216928)
- Arachnotron
- ![Arachnotron](https://www.realm667.com/media/kunena/ranks/rank_10_arachno.png)

 Less More- Posts: 416
-
-

   1 year 11 months ago [\#12446](#12446) by DeVloek  Replied by *DeVloek* on topic *[\[Update\] Megapack](https://www.realm667.com/forum/closed-submissions/2146-submission-uberpack#12446 "Hiya, while the Megapack is an interesting powerup, I feel the megapack giving you a backpack having infinite ammo is a touch pointless given the ammo sphere exists, so instead, I felt it'd be better...")*

> I feel the megapack giving you a backpack having infinite ammo is a touch pointless given the ammo sphere exists, so instead, I felt it'd be better for it to completely max out your ammo upon pick up

I totally agree. Although Pillowblaster mentioned in the description that it's a magical/demonic backpack, I think such an item would make more sense if it came in the form of a powerup/artifact, maybe a "Super Ammo Sphere" or something like that.... Your idea for this particular item (which doesn't look very magical tbh, after all it's just an oversized backpack) makes more sense to me than infinite ammo for a minute.

However, if you do this in Zscript you have access to the **AllActorClasses** global variable. This can be used to go through all ammotypes currently available in the game, including custom ammo, and give them to the player.

Here is how I'd do it (tested with custom ammo types from my custom weapons) Code:

class Megapack : CustomInventory { Default { Inventory.PickupMessage "Megapack!"; Inventory.Amount 1; Inventory.PickupSound "misc/megapack"; +INVENTORY.FANCYPICKUPSOUND; +INVENTORY.AUTOACTIVATE; +INVENTORY.ALWAYSPICKUP; +COUNTITEM; } States { Spawn: BPK2 A -1; Stop; Use: TNT1 A 0 { A_GiveInventory("Backpack"); for (int i = 0; i &lt; AllActorClasses.Size(); i++) { let amm = Ammo(GetDefaultByType(AllActorClasses[i])); if (amm) A_GiveInventory(amm.GetClassName(),amm.BackpackMaxAmount); } } Stop; } }

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8yMTQ2LXN1Ym1pc3Npb24tdWJlcnBhY2s/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Salahmander**
- ![Salahmander's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar1650.png?1601326422) Topic Author
- Wicked
- ![Wicked](https://www.realm667.com/media/kunena/ranks/rank_81_wicked.png)

 Less More- Posts: 213
-
-
-
-

   1 year 11 months ago - 1 year 11 months ago [\#12447](#12447) by Salahmander  Replied by *Salahmander* on topic *[\[Update\] Megapack](https://www.realm667.com/forum/closed-submissions/2146-submission-uberpack#12447 "Hiya, while the Megapack is an interesting powerup, I feel the megapack giving you a backpack having infinite ammo is a touch pointless given the ammo sphere exists, so instead, I felt it'd be better...")*

 Ohhhh perfect. I'll use that for sure, is it still worth keeping the original DECORATE or just have it as that one and possibly have some sort of new fitting sprite that could function similarly to the original?

Also if it's gonna lose it's out of place demonic part of it, is it worth keeping it's GLDEFs? I commented it out for now.

Edit: Here's the updated version with your ZScript in, so much better and easier!

- [ Megapack.zip ](https://www.realm667.com/forum/attachment/2450?download=1 "Megapack.zip") [ ](https://www.realm667.com/forum/attachment/2450?download=1 "Megapack.zip")

 Last edit: 1 year 11 months ago by Salahmander.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8yMTQ2LXN1Ym1pc3Npb24tdWJlcnBhY2s/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **DeVloek**
- ![DeVloek's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar11145.png?1542216928)
- Arachnotron
- ![Arachnotron](https://www.realm667.com/media/kunena/ranks/rank_10_arachno.png)

 Less More- Posts: 416
-
-

   1 year 11 months ago [\#12448](#12448) by DeVloek  Replied by *DeVloek* on topic *[\[Update\] Megapack](https://www.realm667.com/forum/closed-submissions/2146-submission-uberpack#12448 "Hiya, while the Megapack is an interesting powerup, I feel the megapack giving you a backpack having infinite ammo is a touch pointless given the ammo sphere exists, so instead, I felt it'd be better...")*

> Ohhhh perfect. I'll use that for sure, is it still worth keeping the original DECORATE or just have it as that one and possibly have some sort of new fitting sprite that could function similarly to the original?

I guess it's up to the admins/mods to decide, but I think splitting this into two different items would make the most sense at this point. Would be a shame if Pillowblaster's idea and work was scrubbed altogether, so I'd make a new sprite for the original Decorate, find a new name ("Mega Ammo Sphere" sounds good too), and submit that as a separate item. If anyone has ideas for that, let me know, I got some time to work on it.> Also if it's gonna lose it's out of place demonic part of it, is it worth keeping it's GLDEFs? I commented it out for now.

Oh I thought that's supposed to be a shadow, that it represents the demonic part of the item didn't really occur to me until you mentioned it ![':-J](https://www.realm667.com/media/kunena/emoticons/cacrol.gif "':-J")
Also I just saw in the GLDEFS that it's a Pulselight, but the pulse is tiny so it isn't really noticable in-game. I guess I'd keep the shadow but change it to a simple Pointlight.

btw just a minor thing, but the Megapack's code could be optimized a little bit by changing the **Use** state to **Pickup** and deleting the **AUTOACTIVATE** flag. One less line of code, yay! ![:-)](https://www.realm667.com/media/kunena/emoticons/cacsmi.gif ":-)")

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8yMTQ2LXN1Ym1pc3Npb24tdWJlcnBhY2s/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **DeVloek**
- ![DeVloek's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar11145.png?1542216928)
- Arachnotron
- ![Arachnotron](https://www.realm667.com/media/kunena/ranks/rank_10_arachno.png)

 Less More- Posts: 416
-
-

   1 year 11 months ago - 1 year 11 months ago [\#12449](#12449) by DeVloek  Replied by *DeVloek* on topic *[\[Update\] Megapack](https://www.realm667.com/forum/closed-submissions/2146-submission-uberpack#12449 "Hiya, while the Megapack is an interesting powerup, I feel the megapack giving you a backpack having infinite ammo is a touch pointless given the ammo sphere exists, so instead, I felt it'd be better...")*

 OK I got another idea, not sure if its a good one.

Keep the Megapack as it was originally. But make a new item with the new code and a new sprite. Here are some sprites that I found in my resources folder, plus an edit of Mor'ladim's sprite by me.

 [ ![backpack4 by Sonik.O.fan.png](https://www.realm667.com/forum/attachment/2454) ](https://www.realm667.com/forum/attachment/2454 "...onik.O.fan.png")

 [ ![backpack3 by Nmn.png](https://www.realm667.com/forum/attachment/2453) ](https://www.realm667.com/forum/attachment/2453 "...ck3 by Nmn.png")

 [ ![backpack2 by Nmn.png](https://www.realm667.com/forum/attachment/2452) ](https://www.realm667.com/forum/attachment/2452 "...ck2 by Nmn.png")

 [ ![backpack1 by Mor'ladim (edit by DeVloek).png](https://www.realm667.com/forum/attachment/2456) ](https://www.realm667.com/forum/attachment/2456 "...y DeVloek).png")

 Last edit: 1 year 11 months ago by DeVloek. Reason: updated the edited sprite, the colors should look better now

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8yMTQ2LXN1Ym1pc3Npb24tdWJlcnBhY2s/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Salahmander**
- ![Salahmander's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar1650.png?1601326422) Topic Author
- Wicked
- ![Wicked](https://www.realm667.com/media/kunena/ranks/rank_81_wicked.png)

 Less More- Posts: 213
-
-
-
-

   1 year 11 months ago [\#12450](#12450) by Salahmander  Replied by *Salahmander* on topic *[\[Update\] Megapack](https://www.realm667.com/forum/closed-submissions/2146-submission-uberpack#12450 "Hiya, while the Megapack is an interesting powerup, I feel the megapack giving you a backpack having infinite ammo is a touch pointless given the ammo sphere exists, so instead, I felt it'd be better...")*

 Well one thing I got in mind is what you're suggesting, but if I can find some sort of hell corrupted backpack and have it for the original Megapack along with finding a more fitting name for it and have the Megapack name go to the new one, then everything will work out nicely in my eyes. How does that sound?

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8yMTQ2LXN1Ym1pc3Npb24tdWJlcnBhY2s/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **DeVloek**
- ![DeVloek's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar11145.png?1542216928)
- Arachnotron
- ![Arachnotron](https://www.realm667.com/media/kunena/ranks/rank_10_arachno.png)

 Less More- Posts: 416
-
-

   1 year 11 months ago [\#12451](#12451) by DeVloek  Replied by *DeVloek* on topic *[\[Update\] Megapack](https://www.realm667.com/forum/closed-submissions/2146-submission-uberpack#12451 "Hiya, while the Megapack is an interesting powerup, I feel the megapack giving you a backpack having infinite ammo is a touch pointless given the ammo sphere exists, so instead, I felt it'd be better...")*

 I agree that would be ideal.
I'll keep a lookout for sprites that fit the "backpack from hell" theme, or I might try to edit one of the existing sprites if I can find the time. One idea that comes to mind is making a caco-style red/skin-colored backpack, with an eye in the middle and a few horns left and right ![:lol:](https://www.realm667.com/media/kunena/emoticons/caclaf.gif ":lol:")

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8yMTQ2LXN1Ym1pc3Npb24tdWJlcnBhY2s/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Salahmander**
- ![Salahmander's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar1650.png?1601326422) Topic Author
- Wicked
- ![Wicked](https://www.realm667.com/media/kunena/ranks/rank_81_wicked.png)

 Less More- Posts: 213
-
-
-
-

   1 year 11 months ago [\#12452](#12452) by Salahmander  Replied by *Salahmander* on topic *[\[Update\] Megapack](https://www.realm667.com/forum/closed-submissions/2146-submission-uberpack#12452 "Hiya, while the Megapack is an interesting powerup, I feel the megapack giving you a backpack having infinite ammo is a touch pointless given the ammo sphere exists, so instead, I felt it'd be better...")*

 No worries, I'll keep a lookout myself. Until then, I say this'll be a submission. Could rename the original Megapack the "HellPack" possibly.

- [ Megapack.zip ](https://www.realm667.com/forum/attachment/2457?download=1 "Megapack.zip") [ ](https://www.realm667.com/forum/attachment/2457?download=1 "Megapack.zip")

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8yMTQ2LXN1Ym1pc3Npb24tdWJlcnBhY2s/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Gothic**
- ![Gothic's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar320.png?1619787674)
- Moderator
- ![Moderator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1329
-
-
-

   1 year 11 months ago [\#12455](#12455) by Gothic  Replied by *Gothic* on topic *[\[Update\] Megapack](https://www.realm667.com/forum/closed-submissions/2146-submission-uberpack#12455 "Hiya, while the Megapack is an interesting powerup, I feel the megapack giving you a backpack having infinite ammo is a touch pointless given the ammo sphere exists, so instead, I felt it'd be better...")*

 If the Megapack would get an update, I would add an indicator to show how much time left has the infinite ammo effect. As for the new item, how about calling it the "Gigapack".

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8yMTQ2LXN1Ym1pc3Npb24tdWJlcnBhY2s/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Salahmander**
- ![Salahmander's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar1650.png?1601326422) Topic Author
- Wicked
- ![Wicked](https://www.realm667.com/media/kunena/ranks/rank_81_wicked.png)

 Less More- Posts: 213
-
-
-
-

   1 year 11 months ago [\#12456](#12456) by Salahmander  Replied by *Salahmander* on topic *[\[Update\] Megapack](https://www.realm667.com/forum/closed-submissions/2146-submission-uberpack#12456 "Hiya, while the Megapack is an interesting powerup, I feel the megapack giving you a backpack having infinite ammo is a touch pointless given the ammo sphere exists, so instead, I felt it'd be better...")*

 I was thinking maybe an Uberback, in my eyes, giga is bigger than mega so wouldn't go as well, but that's just me.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8yMTQ2LXN1Ym1pc3Npb24tdWJlcnBhY2s/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

[Powered by](https://www.realm667.com/forum/credits) [Kunena Forum](https://www.kunena.org)
