mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-25 08:51:41 +00:00
51 lines
1.0 KiB
Plaintext
51 lines
1.0 KiB
Plaintext
/mob/living/silicon/gib()
|
|
death(1)
|
|
var/atom/movable/overlay/animation = null
|
|
notransform = 1
|
|
canmove = 0
|
|
icon = null
|
|
invisibility = 101
|
|
|
|
animation = new(loc)
|
|
animation.icon_state = "blank"
|
|
animation.icon = 'icons/mob/mob.dmi'
|
|
animation.master = src
|
|
|
|
playsound(src.loc, 'sound/goonstation/effects/robogib.ogg', 50, 1)
|
|
|
|
// flick("gibbed-r", animation)
|
|
robogibs(loc)
|
|
|
|
GLOB.dead_mob_list -= src
|
|
spawn(15)
|
|
if(animation) qdel(animation)
|
|
if(src) qdel(src)
|
|
|
|
/mob/living/silicon/dust()
|
|
if(!death(TRUE) && stat != DEAD)
|
|
return FALSE
|
|
notransform = 1
|
|
canmove = 0
|
|
icon = null
|
|
invisibility = 101
|
|
dust_animation()
|
|
GLOB.dead_mob_list -= src
|
|
QDEL_IN(src, 15)
|
|
return TRUE
|
|
|
|
/mob/living/silicon/dust_animation()
|
|
//hmmm
|
|
var/atom/movable/overlay/animation = null
|
|
|
|
animation = new(loc)
|
|
animation.icon_state = "blank"
|
|
animation.icon = 'icons/mob/mob.dmi'
|
|
animation.master = src
|
|
QDEL_IN(animation, 15)
|
|
|
|
/mob/living/silicon/death(gibbed)
|
|
. = ..()
|
|
if(!gibbed)
|
|
if(death_sound)
|
|
playsound(get_turf(src), death_sound, 200, 1)
|