Page 1 of 1

My monster is dropping too many of the same item.

PostPosted: Fri Jun 14, 2019 4:27 pm
by Hidden Hands
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 allExpand view
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.

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

PostPosted: Fri Jun 14, 2019 4:29 pm
by Blue Shadow
You're calling A_NoBlocking twice, that's why.

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

PostPosted: Fri Jun 14, 2019 4:34 pm
by Hidden Hands
Blue Shadow wrote:You're calling A_NoBlocking twice, that's why.

Well how about that... thank you so much. Dunno how I missed that! THANKS!