The problem is, sometimes, it just doesn't track the player, it faces the player but continues to run endlessly outside the map.
So how can I fix this weird behavior?
Also is there a way to set a fixed tid when this monster is spawned? the way I'm summoning it is by A_PainAttack("Specimen10_Tracer")
Code: Select all
actor Specimen10_Tracer
{
Monster
Damage 0
-NOGRAVITY +LOOKALLAROUND -SOLID +DROPOFF
+NOCLIP
Speed 24
Scale 0.2
States
{
Spawn:
SP10 M 1 Bright A_Look
Loop
See:
SP10 M 0 A_FaceTarget
SP10 MN 2 A_Chase
SP10 M 0 A_FaceTarget
SP10 OP 2 A_Chase
SP10 M 0 A_FaceTarget
SP10 QRS 2 A_Chase
Loop
Missile:
SP10 M 1
Goto See
Melee:
SP10 M 0 A_FaceTarget
SP10 M 2 A_CustomMeleeAttack(12,"SNDHIT","","Melee",false)
Goto Death
Death:
TNT1 A 1
Stop
}
}