Enabling a pickup state for weapons
I noticed that weapon actor definitions cannot have pickup states unlike inventory items. Would it be possible to implement this?
Comments (5)
-
-
reporter Oh nothing much, I just wanted to have the weapon play two sounds at once when being collected. I can most certainly do without it, however.
-
reporter I guess I could create a weapon giver item that is able to have a pickup state and upon its activation, it would give the weapon to the player and play the sounds if that is possible.
-
You can give a weapon and play sounds with CustomInventory. It would have some quirks if multiplayer was supported, but given that any mod for now would be designed for single player that shouldn't be an issue. Honestly the best thing to do for that is to just combine the sounds into one.
With that said, I'm rejecting this for the reason stated in my last comment.
-
- changed status to wontfix
- Log in to comment
Technically possible yes, but the fact that the states are tied to CustomInventory is a deliberate design decision made when ZDoom introduced DECORATE as it is now. The rational being that doing it generically could get in the way of an actual scripting language.
Out of curiousity, what are you trying to accomplish with Weapons and PICKUP states?