diff --git a/code/datums/hud.dm b/code/datums/hud.dm index 4d251c0cdca..2114b97841c 100644 --- a/code/datums/hud.dm +++ b/code/datums/hud.dm @@ -166,6 +166,7 @@ var/datum/global_hud/global_hud = new() var/show_intent_icons = 0 var/hotkey_ui_hidden = 0 //This is to hide the buttons that can be used via hotkeys. (hotkeybuttons list of buttons) + var/obj/screen/blobdisplay var/obj/screen/r_hand_hud_object var/obj/screen/l_hand_hud_object var/obj/screen/action_intent @@ -257,4 +258,6 @@ datum/hud/New(mob/owner) else if(isrobot(mymob)) robot_hud() else if(isobserver(mymob)) - ghost_hud() \ No newline at end of file + ghost_hud() + else if(isovermind(mymob)) + blob_hud() \ No newline at end of file diff --git a/code/game/gamemodes/blob/hud.dm b/code/game/gamemodes/blob/hud.dm new file mode 100644 index 00000000000..b7bf27ada69 --- /dev/null +++ b/code/game/gamemodes/blob/hud.dm @@ -0,0 +1,11 @@ +/datum/hud/proc/blob_hud(ui_style = 'icons/mob/screen_midnight.dmi') + + blobdisplay = new /obj/screen() + blobdisplay.name = "blob power display" + blobdisplay.icon_state = "block" + blobdisplay.screen_loc = ui_nutrition + blobdisplay.layer = 20 + + mymob.client.screen = null + + mymob.client.screen += list(blobdisplay) \ No newline at end of file diff --git a/code/game/gamemodes/blob/overmind.dm b/code/game/gamemodes/blob/overmind.dm index dcfc59e1e72..03f5d966574 100644 --- a/code/game/gamemodes/blob/overmind.dm +++ b/code/game/gamemodes/blob/overmind.dm @@ -21,6 +21,10 @@ real_name = new_name ..() +mob/camera/blob/Life() + hud_used.blobdisplay.maptext = "
[src.blob_points]
" + return + /mob/camera/blob/say(var/message) return//No talking for you diff --git a/code/modules/mob/mob_helpers.dm b/code/modules/mob/mob_helpers.dm index ec3a2e2de24..2fee0fbc86a 100644 --- a/code/modules/mob/mob_helpers.dm +++ b/code/modules/mob/mob_helpers.dm @@ -115,6 +115,11 @@ proc/isobserver(A) return 1 return 0 +proc/isovermind(A) + if(istype(A, /mob/camera/blob)) + return 1 + return 0 + proc/isorgan(A) if(istype(A, /datum/limb)) return 1