Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Kloki38

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

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
  }
}

 

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×