HidDest scripting issue(backpack index issue)

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Silentdarkness12
Posts: 1555
Joined: Thu Aug 15, 2013 5:34 pm
Location: Plains of Pride

HidDest scripting issue(backpack index issue)

Post by Silentdarkness12 »

I'm trying to add something for my gear crate addon for Hideous Destructor that makes it so that weapons and inventory items that are not usually placeable into a backpack(In other words, items that are lacking

Code: Select all

bfitsinbackpack
) can still be put into the Gear Crate. However, i've been utterly unable to get it to work. I removed all checks for bfitsinbackpack, but it's still not adding those items to the index of items that can go inside, no matter what I do.

https://github.com/MatthewTheGlutton/Hi ... ackpack.zs

https://pastebin.com/GNym1JPr

The pastebin is my file, the first link is HidDest's backpack zscript which this is based on. I'm not sure why the items aren't showing up in the backpack index.
User avatar
Cherno
Posts: 1337
Joined: Tue Dec 06, 2016 11:25 am

Re: HidDest scripting issue(backpack index issue)

Post by Cherno »

As an alternative, consider creating dummy inventory actors for those items which CAN be put into a backpack (and crate), and use those as substitutes. When getting stuff from the crate, just give the appropriate "real" item instead, and remove the dummy.
Post Reply

Return to “Scripting”