mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +00:00
Amendments to previous commit.
This commit is contained in:
@@ -1,25 +1,23 @@
|
|||||||
//This is the proc for gibbing a mob. Cannot gib ghosts.
|
//This is the proc for gibbing a mob. Cannot gib ghosts.
|
||||||
//added different sort of gibs and animations. N
|
//added different sort of gibs and animations. N
|
||||||
/mob/proc/gib(var/anim,var/do_gibs)
|
/mob/proc/gib(anim="gibbed-m",do_gibs)
|
||||||
death(1)
|
death(1)
|
||||||
var/atom/movable/overlay/animation = null
|
|
||||||
monkeyizing = 1
|
monkeyizing = 1
|
||||||
canmove = 0
|
canmove = 0
|
||||||
icon = null
|
icon = null
|
||||||
invisibility = 101
|
invisibility = 101
|
||||||
|
update_canmove()
|
||||||
|
dead_mob_list -= src
|
||||||
|
|
||||||
|
var/atom/movable/overlay/animation = null
|
||||||
animation = new(loc)
|
animation = new(loc)
|
||||||
animation.icon_state = "blank"
|
animation.icon_state = "blank"
|
||||||
animation.icon = 'icons/mob/mob.dmi'
|
animation.icon = 'icons/mob/mob.dmi'
|
||||||
animation.master = src
|
animation.master = src
|
||||||
|
|
||||||
update_canmove()
|
flick(anim, animation)
|
||||||
|
if(do_gibs) gibs(loc, viruses, dna)
|
||||||
|
|
||||||
flick((anim ? anim : "gibbed-m"), animation)
|
|
||||||
if(do_gibs)
|
|
||||||
gibs(loc, viruses, dna)
|
|
||||||
|
|
||||||
dead_mob_list -= src
|
|
||||||
spawn(15)
|
spawn(15)
|
||||||
if(animation) del(animation)
|
if(animation) del(animation)
|
||||||
if(src) del(src)
|
if(src) del(src)
|
||||||
@@ -27,7 +25,7 @@
|
|||||||
//This is the proc for turning a mob into ash. Mostly a copy of gib code (above).
|
//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.
|
//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
|
//Dusting robots does not eject the MMI, so it's a bit more powerful than gib() /N
|
||||||
/mob/proc/dust(var/anim,var/remains)
|
/mob/proc/dust(anim="dust-m",remains=/obj/effect/decal/cleanable/ash)
|
||||||
death(1)
|
death(1)
|
||||||
var/atom/movable/overlay/animation = null
|
var/atom/movable/overlay/animation = null
|
||||||
monkeyizing = 1
|
monkeyizing = 1
|
||||||
@@ -40,11 +38,8 @@
|
|||||||
animation.icon = 'icons/mob/mob.dmi'
|
animation.icon = 'icons/mob/mob.dmi'
|
||||||
animation.master = src
|
animation.master = src
|
||||||
|
|
||||||
flick(anim ? anim : "dust-m", animation)
|
flick(anim, animation)
|
||||||
if(remains)
|
new remains(loc)
|
||||||
new remains(loc)
|
|
||||||
else
|
|
||||||
new /obj/effect/decal/cleanable/ash(loc)
|
|
||||||
|
|
||||||
dead_mob_list -= src
|
dead_mob_list -= src
|
||||||
spawn(15)
|
spawn(15)
|
||||||
@@ -52,13 +47,13 @@
|
|||||||
if(src) del(src)
|
if(src) del(src)
|
||||||
|
|
||||||
|
|
||||||
/mob/proc/death(gibbed,deathmessage)
|
/mob/proc/death(gibbed,deathmessage="seizes up and falls limp...")
|
||||||
|
|
||||||
if(stat == DEAD)
|
if(stat == DEAD)
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
if(!gibbed)
|
if(!gibbed)
|
||||||
src.visible_message("<b>\The [src.name]</b> [deathmessage ? deathmessage : "seizes up and falls limp..."]")
|
src.visible_message("<b>\The [src.name]</b> [deathmessage]")
|
||||||
|
|
||||||
stat = DEAD
|
stat = DEAD
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
message = "<B>[src]</B> burps."
|
message = "<B>[src]</B> burps."
|
||||||
m_type = 2
|
m_type = 2
|
||||||
if("deathgasp")
|
if("deathgasp")
|
||||||
message = "<B>The [src.name] lets out a waning guttural screech, green blood bubbling from its maw."
|
message = "<B>The [src.name]</B> lets out a waning guttural screech, green blood bubbling from its maw."
|
||||||
m_type = 2
|
m_type = 2
|
||||||
if("scratch")
|
if("scratch")
|
||||||
if (!src.restrained())
|
if (!src.restrained())
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
/mob/living/carbon/brain/death(gibbed)
|
/mob/living/carbon/brain/death(gibbed)
|
||||||
if(!gibbed && container && istype(container, /obj/item/device/mmi)) //If not gibbed but in a container.
|
if(!gibbed && istype(container, /obj/item/device/mmi)) //If not gibbed but in a container.
|
||||||
container.icon_state = "mmi_dead"
|
container.icon_state = "mmi_dead"
|
||||||
return ..(gibbed,"beeps shrilly as the MMI flatlines!")
|
return ..(gibbed,"beeps shrilly as the MMI flatlines!")
|
||||||
|
|
||||||
/mob/living/carbon/brain/gib()
|
/mob/living/carbon/brain/gib()
|
||||||
|
if(istype(container, /obj/item/device/mmi))
|
||||||
if(container && istype(container, /obj/item/device/mmi))
|
|
||||||
del(container)//Gets rid of the MMI if there is one
|
del(container)//Gets rid of the MMI if there is one
|
||||||
if(loc)
|
if(loc)
|
||||||
if(istype(loc,/obj/item/organ/brain))
|
if(istype(loc,/obj/item/organ/brain))
|
||||||
|
|||||||
Reference in New Issue
Block a user