obj
Time_Bomb
name = "Time bomb"
icon = 'bomb.dmi'//dont have a base icon so cant make icon!lol
icon_state = "time"
verb
set_bomb()
set src in oview(1)
if(usr.fired == 0)
view()<<"Time bomb has been planted"
sleep(10)
usr<<"Bomb will explode in 5"
sleep(10)
usr<<"Bomb will explode in 4"
sleep(10)
usr<<"Bomb will explode in 3"
sleep(10)
usr<<"Bomb will explode in 2"
sleep(10)
usr<<"Bomb will explode in 1"
sleep(10)
usr<<"*click*"
Explode(new /Effect/BasicBoom(src.loc,1,2))
for(var/mob/M in view(src,2))
M.hp -= 100
usr.deathcheck(M)
del(src)
del(src)
pick_up()
set src in oview(1)
src.loc = usr
drop()
src.loc = usr.loc
Problem description:
I played around with this but cant really spot why this time bomb only hurts one mob in its range and not all mobs. and it does not dissapear after exploding. -.-
flame me not pl0x
2) You're deleting the bomb after you damage 1 person, not after you damage them all.