obj
ice
icon = 'Hitsuyaga.dmi'
icon_state = ""
density = 1
layer = 60
New()
spawn(100)
del src
Del()
for(var/obj/icetrail/X in world)
if(X.owner == src)
del X
..()
Move()
..()
var/obj/icetrail/K = new /obj/icetrail
if(src.dir == NORTH)
K.loc = locate(src.x,src.y-1,src.z)
if(src.dir == WEST)
K.loc = locate(src.x+1,src.y,src.z)
if(src.dir == EAST)
K.loc = locate(src.x-1,src.y,src.z)
if(src.dir == SOUTH)
K.loc = locate(src.x,src.y+1,src.z)
K.dir = src.dir
K.owner = src
obj/ice/Bump(mob/M)
if(ismob(M) && M != src.Gowner && !M.ispedal) // Qualify instead of reject.
var/mob/O = src.Gowner
var/damage = round(O.Rei * 2.2 - M.Rei / 2)
if(damage >= 1)
M.Health -= damage
view(O,8) << "<b><font color = red>[O] hit [M] with his Ice Dragon for [damage] damage!"
if(M.Health<=0)
M.Death()
del src
------deathcheck---------
proc
Death(mob/M as mob)
if(src.inko==1)
return
if(src.enemy&&src.Health <= 0)
var/mob/L = src
var/mob/A = usr
L << "<b>[A] has defeated a [L]! You gained [src.expgive] experience!"
A.Exp+=L.expgive
del(L)
if(src.client&&src.Health<=0)
src<<"You got knocked out"
src.overlays+='ko.dmi'
src.move=0
src.Spirit+=40
src.inko=1
sleep(100)
src.inko=0
src.overlays-='ko.dmi'
src.Health=src.Mhealth
src.move=1
src<<"You gained concious" //death proc with M as usr or as the creature you killed
if(src.client&&src.Spirit>=99)
src<<"Good job, You got owned"
src.loc = locate(32,24,4) //sends M to 1,1,1 on map
src.Spirit=0
src.Health = src.Mhealth
src.Rei=src.Mrei
Problem description:
Id like to warn you before this, that it has nothing to do with Death proc because other techniques i have that kill the monster/human work perfectly. So it has to do with the beam and how I am calling the Death proc, any help?