Here is a video of my monster freezing when trying to melee attack me in a corner.
And here is the monsters code. Any help or advice on how to prevent this please?
Code: Select all
ACTOR Cherub 2009
{
XScale 0.8
Health 50
PainChance 180
Speed 15
Radius 10
Height 40
Mass 40
Monster
+FLOORCLIP
SeeSound "cherub/sight"
AttackSound "cherub/melee"
PainSound "cherub/pain"
DeathSound "cherub/death"
ActiveSound "cherub/active"
Obituary "%o was slashed by a cherub."
States
{
Spawn:
CHRB AB 10 A_Look
Loop
See:
CHRB AABBCCDD 2 Fast A_Chase
Loop
Melee:
TNT1 A 0 A_JumpIfCloser(200, "JumpAttack")
CHRB EF 3 Fast A_FaceTarget
CHRB GG 3 Fast A_SargAttack
Goto See
JumpAttack:
CHRB E 1 A_FaceTarget
TNT1 A 0 A_JumpIfCloser(50, "Melee")
TNT1 A 0
CHRB CD 4
TNT1 A 0
TNT1 A 0 ThrustThingZ(0,25,0,1)
TNT1 A 0 A_FaceTarget
TNT1 A 0 A_Recoil (-10)
TNT1 D 0
CHRB E 2
CHRB F 2
TNT1 A 0 //A_GiveInventory ("IsJumping")
TNT1 A 0 A_FaceTarget
CHRB F 6
TNT1 A 0 A_SargAttack
CHRB G 1
CHRB GG 2 A_SargAttack
CHRB G 1
TNT1 A 0
Goto See
Pain:
CHRB H 2 Fast
CHRB H 2 Fast A_Pain
Goto See
JumpUp:
CHRB E 8
JumpDown:
CHRB F 1 A_CheckFloor ("Land")
loop
Land:
CHRB A 2 A_Stop
goto See
Death:
CHRB I 8
CHRB J 8 A_Scream
CHRB K 4
CHRB L 4 A_NoBlocking
CHRB M 4
CHRB N -1
Stop
Raise:
CHRB N 5
CHRB MLKJI 5
Goto See
}
}Thanks in advance.
