mob/zombie
name = "Zombie"
icon = 'zombie.dmi'
icon_state = "zombie"
hp = 50
speed = 50
New()
.=..()
spawn(30)
Look()
Bump(mob/M)
if(M.client)
M << "GOTCHA!"
mob
proc
Look()
var/mob/Player/M
while(src)
if(M in oview(5))
walk_to(src,M,1,40)
if(M in oview(1))
step_towards(src,M)
else
step_rand(src)
break
else
for(M in view(src))
break
sleep(20)
spawn(20)
Look()
Problem description: The above code is from a resource, in case you didn't realize...
The only problem I'm having out of it, is that every so often, when I get far enough away from the zombie, it will TELEPORT near me.
What's going wrong here?