Drop NIFs when gibbed

And when you die as a promethean (which always gibs you) cus Cheri is a whiner
This commit is contained in:
Arokha Sieyes
2018-09-30 22:44:26 -04:00
parent 08c3550f3a
commit 29d4a3b80c
3 changed files with 18 additions and 4 deletions

View File

@@ -0,0 +1,11 @@
/mob/living/carbon/human/gib()
//Drop the NIF, they're expensive, why not recover them? Also important for prometheans.
if(nif)
var/obj/item/device/nif/deadnif = nif //Unimplant removes the reference on the mob
deadnif.unimplant(src)
deadnif.forceMove(drop_location())
deadnif.throw_at(get_edge_target_turf(src,pick(alldirs)), rand(1,3), round(30/deadnif.w_class))
deadnif.wear(10) //Presumably it's gone through some shit if they got gibbed?
. = ..()

View File

@@ -158,7 +158,7 @@ You can also set the stat of a NIF to NIF_TEMPFAIL without any issues to disable
SC.brainmobs = list()
stat = NIF_PREINSTALL
vis_update()
H.verbs |= /mob/living/carbon/human/proc/set_nif_examine
H.verbs -= /mob/living/carbon/human/proc/set_nif_examine
H.nif = null
human = null
install_done = null
@@ -188,11 +188,13 @@ You can also set the stat of a NIF to NIF_TEMPFAIL without any issues to disable
durability -= wear
if(durability <= 0)
notify("Danger! General system insta#^!($",TRUE)
to_chat(human,"<span class='danger'>Your NIF vision overlays disappear and your head suddenly seems very quiet...</span>")
stat = NIF_TEMPFAIL
update_icon()
if(human)
notify("Danger! General system insta#^!($",TRUE)
to_chat(human,"<span class='danger'>Your NIF vision overlays disappear and your head suddenly seems very quiet...</span>")
//Attackby proc, for maintenance
/obj/item/device/nif/attackby(obj/item/weapon/W, mob/user as mob)
if(open == 0 && istype(W,/obj/item/weapon/screwdriver))

View File

@@ -2014,6 +2014,7 @@
#include "code\modules\mob\living\carbon\brain\say.dm"
#include "code\modules\mob\living\carbon\human\appearance.dm"
#include "code\modules\mob\living\carbon\human\death.dm"
#include "code\modules\mob\living\carbon\human\death_vr.dm"
#include "code\modules\mob\living\carbon\human\emote.dm"
#include "code\modules\mob\living\carbon\human\emote_vr.dm"
#include "code\modules\mob\living\carbon\human\examine.dm"