* fuck pubby * fuck you too ceres * ree * this is going to be a disaster isn't it * disaster * dme * -_- * tg * woops * proper sync * Welcome to conflict hell. * lets hope this fixes more things than it breaks * gdi * goddamnit
32 lines
767 B
Plaintext
32 lines
767 B
Plaintext
/obj/item/grenade/smokebomb
|
|
name = "smoke grenade"
|
|
desc = "The word 'Dank' is scribbled on it in crayon."
|
|
icon = 'icons/obj/grenade.dmi'
|
|
icon_state = "smokewhite"
|
|
det_time = 20
|
|
item_state = "flashbang"
|
|
slot_flags = SLOT_BELT
|
|
var/datum/effect_system/smoke_spread/bad/smoke
|
|
|
|
/obj/item/grenade/smokebomb/New()
|
|
..()
|
|
src.smoke = new /datum/effect_system/smoke_spread/bad
|
|
src.smoke.attach(src)
|
|
|
|
/obj/item/grenade/smokebomb/Destroy()
|
|
qdel(smoke)
|
|
return ..()
|
|
|
|
/obj/item/grenade/smokebomb/prime()
|
|
update_mob()
|
|
playsound(src.loc, 'sound/effects/smoke.ogg', 50, 1, -3)
|
|
smoke.set_up(4, src)
|
|
smoke.start()
|
|
|
|
|
|
for(var/obj/structure/blob/B in view(8,src))
|
|
var/damage = round(30/(get_dist(B,src)+1))
|
|
B.take_damage(damage, BURN, "melee", 0)
|
|
sleep(80)
|
|
qdel(src)
|