mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
52 lines
1.3 KiB
Plaintext
52 lines
1.3 KiB
Plaintext
//This is the proc for gibbing a mob. Cannot gib ghosts.
|
|
//added different sort of gibs and animations. N
|
|
/mob/proc/gib()
|
|
death(1)
|
|
monkeyizing = 1
|
|
canmove = 0
|
|
icon = null
|
|
invisibility = 101
|
|
|
|
// anim(target = src, a_icon = 'icons/mob/mob.dmi', /*flick_anim = "dust-m"*/, sleeptime = 15)
|
|
gibs(loc, viruses, dna)
|
|
|
|
dead_mob_list -= src
|
|
|
|
qdel(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)
|
|
monkeyizing = 1
|
|
canmove = 0
|
|
icon = null
|
|
invisibility = 101
|
|
|
|
// anim(target = src, a_icon = 'icons/mob/mob.dmi', /*flick_anim = "dust-m"*/, sleeptime = 15)
|
|
new /obj/effect/decal/cleanable/ash(loc)
|
|
|
|
dead_mob_list -= src
|
|
|
|
qdel(src)
|
|
|
|
|
|
/mob/proc/death(gibbed)
|
|
timeofdeath = world.time
|
|
|
|
living_mob_list -= src
|
|
dead_mob_list += src
|
|
for(var/obj/item/I in src)
|
|
I.OnMobDeath(src)
|
|
return ..(gibbed)
|
|
|
|
//This proc should be used when you're restoring a guy to life. It will remove him from the dead mob list, and add him to the living mob list. It will also remove any verbs
|
|
//that his dead body has
|
|
/mob/proc/resurrect()
|
|
living_mob_list |= src
|
|
dead_mob_list -= src
|
|
|
|
verbs -= /mob/living/proc/butcher
|