Jump to content
  • 0

Why won't the item fall off?


ZeroCheckMate

Question

I set this monster to drop his sunglasses when he dies, but he doesn't. I thought maybe these sunglasses were a problem, so I changed them to Cell, but they still don't come off. What's the problem?

zhem.png

20200710_004706.png

Test.zip

Edited by ZeroCheckMate

Share this post


Link to post

1 answer to this question

Recommended Posts

  • 1

It looks like it's because the drop chance is only set to 2. Setting the 2 to 256 will make it a guaranteed drop.

https://zdoom.org/wiki/DropItem

 

Edit: That only fixes its low chance. You need the death state to call the A_NoBlocking function. You really should have that set anyway otherwise corpses will block the player.

Edited by UndeadRyker
clarification

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
Answer this question...

×   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...