Enabling a pickup state for weapons

Issue #69 wontfix
Belmondo created an issue

I noticed that weapon actor definitions cannot have pickup states unlike inventory items. Would it be possible to implement this?

Comments (5)

  1. Braden Obrzut

    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?

  2. Belmondo 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.

  3. Belmondo 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.

  4. Braden Obrzut

    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.

  5. Log in to comment