mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-27 18:51:53 +00:00
62 lines
1.3 KiB
Plaintext
62 lines
1.3 KiB
Plaintext
/mob/dead/observer/create_mob_hud()
|
|
if(client && !hud_used)
|
|
hud_used = new /datum/hud/ghost(src)
|
|
|
|
/obj/screen/ghost
|
|
icon = 'icons/mob/screen_ghost.dmi'
|
|
|
|
/obj/screen/ghost/MouseEntered()
|
|
flick(icon_state + "_anim", src)
|
|
|
|
/obj/screen/ghost/jumptomob
|
|
name = "Jump to mob"
|
|
icon_state = "jumptomob"
|
|
|
|
/obj/screen/ghost/jumptomob/Click()
|
|
var/mob/dead/observer/G = usr
|
|
G.jumptomob()
|
|
|
|
/obj/screen/ghost/orbit
|
|
name = "Orbit"
|
|
icon_state = "orbit"
|
|
|
|
/obj/screen/ghost/orbit/Click()
|
|
var/mob/dead/observer/G = usr
|
|
G.follow()
|
|
|
|
/obj/screen/ghost/reenter_corpse
|
|
name = "Re-enter corpse"
|
|
icon_state = "reenter_corpse"
|
|
|
|
/obj/screen/ghost/reenter_corpse/Click()
|
|
var/mob/dead/observer/G = usr
|
|
G.reenter_corpse()
|
|
|
|
/obj/screen/ghost/teleport
|
|
name = "Teleport"
|
|
icon_state = "teleport"
|
|
|
|
/obj/screen/ghost/teleport/Click()
|
|
var/mob/dead/observer/G = usr
|
|
G.dead_tele()
|
|
|
|
/datum/hud/ghost/New(mob/owner)
|
|
..()
|
|
var/obj/screen/using
|
|
|
|
using = new /obj/screen/ghost/jumptomob()
|
|
using.screen_loc = ui_ghost_jumptomob
|
|
static_inventory += using
|
|
|
|
using = new /obj/screen/ghost/orbit()
|
|
using.screen_loc = ui_ghost_orbit
|
|
static_inventory += using
|
|
|
|
using = new /obj/screen/ghost/reenter_corpse()
|
|
using.screen_loc = ui_ghost_reenter_corpse
|
|
static_inventory += using
|
|
|
|
using = new /obj/screen/ghost/teleport()
|
|
using.screen_loc = ui_ghost_teleport
|
|
static_inventory += using
|