From 686366fe98f0cc6cc8cd5915dbd33dec323361f8 Mon Sep 17 00:00:00 2001 From: AnturK Date: Wed, 11 Nov 2015 17:39:42 +0100 Subject: [PATCH] Revert "Makes mechs use some of pilot huds (job,wanted,loyalty,antag)" --- code/game/mecha/mecha.dm | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/code/game/mecha/mecha.dm b/code/game/mecha/mecha.dm index f3af3bfa817..f318ec85e7f 100644 --- a/code/game/mecha/mecha.dm +++ b/code/game/mecha/mecha.dm @@ -77,7 +77,7 @@ var/datum/action/innate/mecha/mech_toggle_lights/lights_action = new var/datum/action/innate/mecha/mech_view_stats/stats_action = new - hud_possible = list (DIAG_STAT_HUD, DIAG_BATT_HUD, DIAG_MECH_HUD,ANTAG_HUD,ID_HUD,WANTED_HUD,IMPLOYAL_HUD,ANTAG_HUD) + hud_possible = list (DIAG_STAT_HUD, DIAG_BATT_HUD, DIAG_MECH_HUD) /obj/mecha/New() ..() @@ -727,18 +727,6 @@ playsound(src, 'sound/machines/windowdoor.ogg', 50, 1) if(!internal_damage) occupant << sound('sound/mecha/nominal.ogg',volume=50) - - //transfer HUD icons - for(var/hud_type in occupant.hud_possible) - if(hud_type in hud_possible) - var/image/mech_hud = hud_list[hud_type] - var/image/occupant_hud = occupant.hud_list[hud_type] - mech_hud.icon_state = occupant_hud.icon_state - //add mech to the huds - for(var/datum/atom_hud/hud in huds) - if(occupant in hud.hudatoms) - hud.add_to_hud(src) - return 1 else return 0 @@ -813,14 +801,6 @@ if(ishuman(occupant)) mob_container = occupant RemoveActions(occupant, human_occupant=1) - for(var/hud_type in occupant.hud_possible) - if(hud_type in hud_possible) - var/image/holder = hud_list[hud_type] - holder.icon_state = "" - //remove mech from huds - for(var/datum/atom_hud/hud in huds) - if(occupant in hud.hudatoms) - hud.remove_from_hud(src) else if(istype(occupant, /mob/living/carbon/brain)) var/mob/living/carbon/brain/brain = occupant RemoveActions(brain)