Jump to content

(GZDoom) Unable to pick up multiple puzzle items in multiplayer


Kloki38

Recommended Posts

I have a problem with this decorate. I made a coin players can use in shops to buy stuff.  I set the inventory max amount to 99, but it only works fine in single player. In MP all players can only pick up one coin and the rest is ignored/can´t be picked up.

 

ACTOR coin1 : puzzleitem 20059
{
  Inventory.PickupMessage "coin"
  Inventory.PickupSound "coin"
  Inventory.Icon "COINA0"
  Inventory.MaxAmount 99
  scale 0.3
  +Inventory.alwayspickup
  States
  {
  Spawn:
    COIN A -1
    loop
  }
}

 

Edited by Kloki38

Share this post


Link to post

That's a limitation of PuzzleItem. Hexem blocks multiple pickups of this in MP, and this was copied by ZDoom from where GZDoom inherited it. Do you need this to be a puzzle item?

 

Share this post


Link to post

No, not at all. The only reason I set it as a puzzleitem is because I could not figure out another proper way how to make an unusable inventory item.  

Share this post


Link to post

Just inherit from Inventory instead of PuzzleItem. If you want to have it show up in the inventory bar, add the +Inventory.InvBar flag as well.

 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...