mob
proc
BijuuLostControlNew()
lulwut
if(src.indemon||src.BLC)
var/negro
for(var/mob/M in oview(5))
if(M.client)
negro=M
walk_towards(src,negro,0)
for(var/mob/P in oview(1))
var/damage=src.tai*1.2
view(src)<<"<font color=red><b>[src] lashes out in rage, hitting [P] for [damage]"
P.health-=damage
sleep(15)
spawn(300)
if(negro in oview(src))
..()
else
goto lulwut
else
return
ID:906546
|
|
Code:
|
Aug 1 2012, 12:28 pm
Best response
|
|
Err this is very sloppy coding but hey, I'll give helping you a go. First using negro as a variable name is a little odd but that's up to you. Now The way your going about this is very disjointed, using goto is generally frowned upon because there are other ways to reproduce the same effect that are just better. I would suggest using while(), I'm gonna go ahead and show you. I would also implement a piece of mob/bump() specific for this situation.
|
In response to Joejoe13
|
|
Perhaps you're endlessly calling BijuuLostControlNew()? Show us how you call it.
|
mob |