mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 02:57:48 +01:00
* 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>
33 lines
730 B
Plaintext
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)
|