//This is the proc for gibbing a mob. Cannot gib ghosts. //added different sort of gibs and animations. N /mob/proc/gib() death(1) var/atom/movable/overlay/animation = null monkeyizing = 1 canmove = 0 icon = null invisibility = 101 animation = new(loc) animation.icon_state = "blank" animation.icon = 'icons/mob/mob.dmi' animation.master = src // flick("gibbed-m", animation) gibs(loc, viruses, dna) dead_mob_list -= src spawn(15) if(animation) del(animation) if(src) del(src) //This is the proc for turning a mob into ash. Mostly a copy of gib code (above). //Originally created for wizard disintegrate. I've removed the virus code since it's irrelevant here. //Dusting robots does not eject the MMI, so it's a bit more powerful than gib() /N /mob/proc/dust() death(1) var/atom/movable/overlay/animation = null monkeyizing = 1 canmove = 0 icon = null invisibility = 101 animation = new(loc) animation.icon_state = "blank" animation.icon = 'icons/mob/mob.dmi' animation.master = src // flick("dust-m", animation) new /obj/effect/decal/cleanable/ash(loc) dead_mob_list -= src spawn(15) if(animation) del(animation) if(src) del(src) /mob/proc/death(gibbed) timeofdeath = world.time var/cancel = 0 for(var/mob/M in player_list) if(M.stat != DEAD) cancel = 1 break if(!cancel) world << "Everyone is dead! Resetting in 30 seconds!" spawn(300) for(var/mob/M in player_list) if(M.stat != DEAD) world << "Aborting world restart!" return feedback_set_details("end_error","no live players") if(blackbox) blackbox.save_all_data_to_sql() sleep(50) log_game("Rebooting because of no live players") world.Reboot() return living_mob_list -= src dead_mob_list += src return ..(gibbed)