mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +00:00
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:
11
code/modules/mob/living/carbon/human/death_vr.dm
Normal file
11
code/modules/mob/living/carbon/human/death_vr.dm
Normal 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?
|
||||||
|
|
||||||
|
. = ..()
|
||||||
@@ -158,7 +158,7 @@ You can also set the stat of a NIF to NIF_TEMPFAIL without any issues to disable
|
|||||||
SC.brainmobs = list()
|
SC.brainmobs = list()
|
||||||
stat = NIF_PREINSTALL
|
stat = NIF_PREINSTALL
|
||||||
vis_update()
|
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
|
H.nif = null
|
||||||
human = null
|
human = null
|
||||||
install_done = 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
|
durability -= wear
|
||||||
|
|
||||||
if(durability <= 0)
|
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
|
stat = NIF_TEMPFAIL
|
||||||
update_icon()
|
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
|
//Attackby proc, for maintenance
|
||||||
/obj/item/device/nif/attackby(obj/item/weapon/W, mob/user as mob)
|
/obj/item/device/nif/attackby(obj/item/weapon/W, mob/user as mob)
|
||||||
if(open == 0 && istype(W,/obj/item/weapon/screwdriver))
|
if(open == 0 && istype(W,/obj/item/weapon/screwdriver))
|
||||||
|
|||||||
@@ -2014,6 +2014,7 @@
|
|||||||
#include "code\modules\mob\living\carbon\brain\say.dm"
|
#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\appearance.dm"
|
||||||
#include "code\modules\mob\living\carbon\human\death.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.dm"
|
||||||
#include "code\modules\mob\living\carbon\human\emote_vr.dm"
|
#include "code\modules\mob\living\carbon\human\emote_vr.dm"
|
||||||
#include "code\modules\mob\living\carbon\human\examine.dm"
|
#include "code\modules\mob\living\carbon\human\examine.dm"
|
||||||
|
|||||||
Reference in New Issue
Block a user