My monster is dropping too many of the same item.

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: My monster is dropping too many of the same item.

Re: My monster is dropping too many of the same item.

by Hidden Hands » Fri Jun 14, 2019 3:34 pm

Blue Shadow wrote:You're calling [wiki]A_NoBlocking[/wiki] twice, that's why.
Well how about that... thank you so much. Dunno how I missed that! THANKS!

Re: My monster is dropping too many of the same item.

by Blue Shadow » Fri Jun 14, 2019 3:29 pm

You're calling [wiki]A_NoBlocking[/wiki] twice, that's why.

My monster is dropping too many of the same item.

by Hidden Hands » Fri Jun 14, 2019 3:27 pm

My monster, when killed, is supposed to drop a decorative item (it can't be picked up, it's just for show). However, when they are killed, they seem to drop two or more of it. Not just the one. Here is my code:

Code: Select all

ACTOR FloatingClown : Cacodemon replaces Cacodemon
{
  Health 400
  Radius 31
  Height 56
  Mass 400
  Speed 8
  PainChance 128
  BloodColor Pink
  DropItem "GoldenLamp"
  Monster
  +FLOATBOB
  +NOGRAVITY
  +DONTHARMCLASS
  SeeSound "FloatClown/Sight"
  PainSound "FloatClown/Pain"
  DeathSound "FloatClown/Death"
  ActiveSound "FloatClown/Active"
  Obituary "%0 was cursed by a floating clown."
  HitObituary "%0 was hexed by a floating clown."
  States
  {
  Spawn:
    LAMP ABCB 10 A_Look
    Loop
  See:
    LAMP ABCB 8 A_Chase
    Loop
  Missile:
    LAMP EF 5 A_FaceTarget
    LAMP G 5 Bright A_HeadAttack
    Goto See
  Pain:
    LAMP D 3
    LAMP D 3 A_Pain
    LAMP D 6
    Goto See
  Death:
    LAMP D 6
    LAMP H 6 A_Scream
    LAMP IJ 6
    LAMP KL 6 A_NoBlocking
	LAMP M -1 A_SetFloorClip
    Stop
  Raise:
    LAMP M 8 A_UnSetFloorClip
    LAMP LKJIHD 8
    Goto See
  }
}
Why is it dropping more than one?

Thanks in advance.

Top