mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-26 01:52:29 +00:00
76 lines
1.7 KiB
Plaintext
76 lines
1.7 KiB
Plaintext
/mob/living/silicon/robot/gib()
|
|
//robots don't die when gibbed. instead they drop their MMI'd brain
|
|
var/atom/movable/overlay/animation = null
|
|
monkeyizing = 1
|
|
canmove = 0
|
|
icon = null
|
|
invisibility = 101
|
|
|
|
animation = new(loc)
|
|
animation.icon_state = "blank"
|
|
animation.icon = 'mob.dmi'
|
|
animation.master = src
|
|
|
|
flick("gibbed-r", animation)
|
|
robogibs(loc, viruses)
|
|
|
|
spawn(15)
|
|
if(animation) del(animation)
|
|
if(src) del(src)
|
|
|
|
/mob/living/silicon/robot/dust()
|
|
death(1)
|
|
var/atom/movable/overlay/animation = null
|
|
monkeyizing = 1
|
|
canmove = 0
|
|
icon = null
|
|
invisibility = 101
|
|
|
|
animation = new(loc)
|
|
animation.icon_state = "blank"
|
|
animation.icon = 'mob.dmi'
|
|
animation.master = src
|
|
|
|
flick("dust-r", animation)
|
|
new /obj/effect/decal/remains/robot(loc)
|
|
if(mmi) del(mmi) //Delete the MMI first so that it won't go popping out.
|
|
|
|
spawn(15)
|
|
if(animation) del(animation)
|
|
if(src) del(src)
|
|
|
|
|
|
/mob/living/silicon/robot/death(gibbed)
|
|
if (!gibbed)
|
|
src.emote("deathgasp")
|
|
src.stat = 2
|
|
src.canmove = 0
|
|
|
|
tension_master.death(src)
|
|
|
|
src.camera.status = 0.0
|
|
|
|
if(src.in_contents_of(/obj/machinery/recharge_station))//exit the recharge station
|
|
var/obj/machinery/recharge_station/RC = src.loc
|
|
RC.go_out()
|
|
|
|
if(src.blind)
|
|
src.blind.layer = 0
|
|
src.sight |= SEE_TURFS
|
|
src.sight |= SEE_MOBS
|
|
src.sight |= SEE_OBJS
|
|
|
|
src.see_in_dark = 8
|
|
src.see_invisible = 2
|
|
src.updateicon()
|
|
|
|
var/tod = time2text(world.realtime,"hh:mm:ss") //weasellos time of death patch
|
|
store_memory("Time of death: [tod]", 0)
|
|
|
|
// sql_report_cyborg_death(src)
|
|
|
|
if (src.key)
|
|
spawn(50)
|
|
if(src.key && src.stat == 2)
|
|
src.verbs += /mob/proc/ghost
|
|
return ..(gibbed) |