Bump(atom/a)
if(ismob(a))
if(usr.chidori==1)
a:damage(90)
usr.chidori=0
usr.injutsu=0
else if(usr.cherry==1)
if(usr.dir==EAST)
a:dir=WEST
a:vel_x=40
a:damage(50)
a:knocked=1
view() << 'punch1.wav'
spawn(10)
a:knocked=0
else if(usr.dir==WEST)
a:dir=EAST
a:vel_x=-40
a:damage(50)
a:knocked=1
view() << 'punch1.wav'
spawn(10)
a:knocked=0
else if(usr.needler==1)
usr.needler=0
usr.needled=1
usr.injutsu=1
a:injutsu=1
var/obj/thousandneedles/t=new/obj/thousandneedles(a.loc)
spawn(30)
a:damage(80)
a:injutsu=0
usr.needled=0
usr.injutsu=0
del t
else if(usr.capturing==1)
a:injutsu=1
usr.capturing=0
usr.captured=1
var/obj/waterprison/w=new/obj/waterprison(a:loc)
spawn(20)
del w
new/obj/inwaterprison(a:loc)
if(a:knocked==1||usr.knocked==1)
a:injutsu=0
usr.captured=0
spawn(620)
a:injutsu=0
usr.captured=0
else
return
Problem description:
Evereything compiles fine but the Bump() proc isnt working in the game. Anyone know what's wrong?
I make the assumption that this is a mob procedure.
1. You're not bumping properly when you test it.
2. You could probably make life a lot easier for yourself if you'd use the . operator instead of the : operator.