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.
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]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
}
}[/code]
Why is it dropping more than one?
Thanks in advance.