mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-01 10:14:04 +01:00
70 lines
1.6 KiB
Plaintext
70 lines
1.6 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
|
|
notransform = 1
|
|
canmove = 0
|
|
icon = null
|
|
invisibility = 101
|
|
|
|
animation = new(loc)
|
|
animation.icon_state = "blank"
|
|
animation.icon = 'icons/mob/mob.dmi'
|
|
animation.master = src
|
|
|
|
flick("gibbed-r", animation)
|
|
robogibs(loc, viruses)
|
|
|
|
living_mob_list -= src
|
|
dead_mob_list -= src
|
|
spawn(15)
|
|
if(animation) qdel(animation)
|
|
if(src) qdel(src)
|
|
|
|
/mob/living/silicon/robot/dust()
|
|
death(1)
|
|
var/atom/movable/overlay/animation = null
|
|
notransform = 1
|
|
canmove = 0
|
|
icon = null
|
|
invisibility = 101
|
|
|
|
animation = new(loc)
|
|
animation.icon_state = "blank"
|
|
animation.icon = 'icons/mob/mob.dmi'
|
|
animation.master = src
|
|
|
|
flick("dust-r", animation)
|
|
new /obj/effect/decal/remains/robot(loc)
|
|
if(mmi) qdel(mmi) //Delete the MMI first so that it won't go popping out.
|
|
|
|
dead_mob_list -= src
|
|
spawn(15)
|
|
if(animation) qdel(animation)
|
|
if(src) qdel(src)
|
|
|
|
|
|
/mob/living/silicon/robot/death(gibbed)
|
|
if(stat == DEAD) return
|
|
if(!gibbed)
|
|
emote("deathgasp")
|
|
stat = DEAD
|
|
update_canmove()
|
|
if(camera)
|
|
camera.status = 0
|
|
|
|
if(in_contents_of(/obj/machinery/recharge_station))//exit the recharge station
|
|
var/obj/machinery/recharge_station/RC = loc
|
|
RC.go_out()
|
|
|
|
if(blind) blind.layer = 0
|
|
sight |= SEE_TURFS|SEE_MOBS|SEE_OBJS
|
|
see_in_dark = 8
|
|
see_invisible = SEE_INVISIBLE_LEVEL_TWO
|
|
updateicon()
|
|
update_fire()
|
|
tod = worldtime2text() //weasellos time of death patch
|
|
if(mind) mind.store_memory("Time of death: [tod]", 0)
|
|
|
|
sql_report_cyborg_death(src)
|
|
|
|
return ..(gibbed) |