Files
Paradise/code/game/objects/items/weapons/grenades/smokebomb.dm
T
1f3e991b2a Smoke Grenade Module + Blob Buff (#24224)
* is good for you

* DESCRIPTION

* fix

* Update code/modules/mod/modules/modules_security.dm

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

---------

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
2024-03-01 12:38:09 +00:00

33 lines
730 B
Plaintext

/obj/item/grenade/smokebomb
desc = "It is set to detonate in 2 seconds."
name = "smoke bomb"
icon = 'icons/obj/grenade.dmi'
icon_state = "smoke"
det_time = 20
item_state = "smoke"
slot_flags = SLOT_FLAG_BELT
var/datum/effect_system/smoke_spread/bad/smoke
/obj/item/grenade/smokebomb/Initialize(mapload)
. = ..()
smoke = new /datum/effect_system/smoke_spread/bad
smoke.attach(src)
/obj/item/grenade/smokebomb/Destroy()
QDEL_NULL(smoke)
return ..()
/obj/item/grenade/smokebomb/prime()
playsound(src.loc, 'sound/effects/smoke.ogg', 50, 1, -3)
smoke.set_up(10, FALSE)
spawn(0)
src.smoke.start()
sleep(10)
src.smoke.start()
sleep(10)
src.smoke.start()
sleep(10)
src.smoke.start()
sleep(80)
qdel(src)