Cyborgs finally drop their MMI when gibbed like they were supposed to back when I added MMIs. Round-start cyborgs use whatever name you have selected for your character for the brain that gets spawned for them.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1575 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
n3ophyt3
2011-05-12 22:59:49 +00:00
parent d095d82697
commit 8d71536127
4 changed files with 17 additions and 6 deletions
+1 -1
View File
@@ -25,7 +25,7 @@
brain.brainmob.container = src
brain.brainmob.stat = 0
locked = 1
name = "Man-Machine Interface:[brain.brainmob.real_name]"
name = "Man-Machine Interface: [brain.brainmob.real_name]"
icon_state = "mmi_full"
return
@@ -41,6 +41,7 @@
if(brain)
brain.loc = loc
mind.transfer_to(brain.brain.brainmob)
brain = null
..()
//If there's an MMI in the robot, have it ejected when the mob goes away. --NEO
+6 -5
View File
@@ -1977,12 +1977,13 @@ proc/isobserver(A)
flick("gibbed-r", animation)
if (src.client)
var/mob/dead/observer/newmob
if(!isrobot(src))
var/mob/dead/observer/newmob
newmob = new/mob/dead/observer(src)
src:client:mob = newmob
if (src.mind)
src.mind.transfer_to(newmob)
newmob = new/mob/dead/observer(src)
src:client:mob = newmob
if (src.mind)
src.mind.transfer_to(newmob)
var/virus = src.virus
if (istype(src, /mob/living/silicon))
+9
View File
@@ -202,6 +202,15 @@
O.job = "Cyborg"
O.brain = new /obj/item/device/mmi(O)
O.brain.name = "Man-Machine Interface: [src.name]"
O.brain.icon_state = "mmi_full"
O.brain.brain = new /obj/item/brain(O.brain)
O.brain.brain.name = "[src.name]'s brain"
O.brain.brain.brainmob = new /mob/living/carbon/brain(O.brain.brain)
O.brain.brain.brainmob.name = "[src.name]"
O.brain.brain.brainmob.container = O.brain
del(src)