mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-30 03:05:29 +00:00
36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
/obj/item/weapon/grenade/supermatter
|
|
name = "supermatter grenade"
|
|
icon_state = "banana"
|
|
item_state = "emergency_engi"
|
|
origin_tech = list(TECH_BLUESPACE = 5, TECH_MAGNET = 4, TECH_ENGINEERING = 5)
|
|
arm_sound = 'sound/effects/3.wav'
|
|
var/implode_at
|
|
|
|
/obj/item/weapon/grenade/supermatter/Destroy()
|
|
if(implode_at)
|
|
STOP_PROCESSING(SSobj, src)
|
|
. = ..()
|
|
|
|
/obj/item/weapon/grenade/supermatter/detonate()
|
|
..()
|
|
START_PROCESSING(SSobj, src)
|
|
implode_at = world.time + 10 SECONDS
|
|
update_icon()
|
|
playsound(src, 'sound/weapons/wave.ogg', 100)
|
|
|
|
/obj/item/weapon/grenade/supermatter/update_icon()
|
|
overlays.Cut()
|
|
if(implode_at)
|
|
overlays += image(icon = 'icons/rust.dmi', icon_state = "emfield_s1")
|
|
|
|
/obj/item/weapon/grenade/supermatter/process()
|
|
if(!isturf(loc))
|
|
if(ismob(loc))
|
|
var/mob/M = loc
|
|
M.drop_from_inventory(src)
|
|
forceMove(get_turf(src))
|
|
playsound(src, 'sound/effects/supermatter.ogg', 100)
|
|
supermatter_pull(src, world.view, STAGE_THREE)
|
|
if(world.time > implode_at)
|
|
explosion(loc, 1, 3, 5, 4)
|
|
qdel(src) |