mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-16 17:44:25 +01:00
20a0443b8e
* Removes stack_origin_tech * Goodbye * I HATE MAP EDITS
36 lines
914 B
Plaintext
36 lines
914 B
Plaintext
/obj/item/grenade/supermatter
|
|
name = "supermatter grenade"
|
|
icon_state = "banana"
|
|
item_state = "emergency_engi"
|
|
arm_sound = 'sound/effects/3.wav'
|
|
var/implode_at
|
|
|
|
/obj/item/grenade/supermatter/Destroy()
|
|
if(implode_at)
|
|
STOP_PROCESSING(SSobj, src)
|
|
. = ..()
|
|
|
|
/obj/item/grenade/supermatter/detonate()
|
|
..()
|
|
START_PROCESSING(SSobj, src)
|
|
implode_at = world.time + 10 SECONDS
|
|
update_icon()
|
|
playsound(src, 'sound/weapons/wave.ogg', 100)
|
|
|
|
/obj/item/grenade/supermatter/update_icon()
|
|
cut_overlays()
|
|
if(implode_at)
|
|
add_overlay(image(icon = 'icons/rust.dmi', icon_state = "emfield_s1"))
|
|
|
|
/obj/item/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)
|