/atom/movable/screen/alien icon = 'icons/mob/screen_alien.dmi' /atom/movable/screen/alien/leap name = "toggle leap" icon_state = "leap_off" /atom/movable/screen/alien/leap/Click() if(isalienadult(usr)) var/mob/living/carbon/alien/humanoid/hunter/AH = usr AH.toggle_leap() /atom/movable/screen/alien/nightvision name = "toggle night-vision" icon_state = "nightvision1" /atom/movable/screen/alien/nightvision/Click() var/mob/living/carbon/alien/humanoid/A = usr A.night_vision_toggle() /mob/living/carbon/alien/proc/night_vision_toggle() if(!nightvision) see_in_dark = 8 lighting_alpha = LIGHTING_PLANE_ALPHA_MOSTLY_INVISIBLE nightvision = TRUE hud_used.nightvisionicon.icon_state = "nightvision1" else see_in_dark = initial(see_in_dark) lighting_alpha = initial(lighting_alpha) nightvision = FALSE hud_used.nightvisionicon.icon_state = "nightvision0" update_sight() /atom/movable/screen/alien/plasma_display icon = 'icons/mob/screen_gen.dmi' icon_state = "power_display2" name = "plasma stored" screen_loc = ui_alienplasmadisplay /datum/hud/alien/New(mob/living/carbon/alien/humanoid/owner) ..() var/atom/movable/screen/using var/atom/movable/screen/inventory/inv_box using = new /atom/movable/screen/language_menu using.screen_loc = ui_alien_language_menu static_inventory += using using = new /atom/movable/screen/act_intent/alien() using.icon_state = (mymob.a_intent == "hurt" ? INTENT_HARM : mymob.a_intent) using.screen_loc = ui_acti static_inventory += using action_intent = using using = new /atom/movable/screen/mov_intent() using.icon = 'icons/mob/screen_alien.dmi' using.icon_state = (mymob.m_intent == MOVE_INTENT_RUN ? "running" : "walking") using.screen_loc = ui_movi static_inventory += using move_intent = using if(isalienhunter(mymob)) mymob.leap_icon = new /atom/movable/screen/alien/leap() mymob.leap_icon.icon = 'icons/mob/screen_alien.dmi' mymob.leap_icon.screen_loc = ui_alien_storage_r static_inventory += mymob.leap_icon //equippable shit inv_box = new /atom/movable/screen/inventory/hand() inv_box.name = "r_hand" inv_box.icon = 'icons/mob/screen_alien.dmi' inv_box.icon_state = "hand_r" inv_box.screen_loc = ui_rhand inv_box.slot_id = SLOT_HUD_RIGHT_HAND static_inventory += inv_box inv_box = new /atom/movable/screen/inventory/hand() inv_box.name = "l_hand" inv_box.icon = 'icons/mob/screen_alien.dmi' inv_box.icon_state = "hand_l" inv_box.screen_loc = ui_lhand inv_box.slot_id = SLOT_HUD_LEFT_HAND static_inventory += inv_box using = new /atom/movable/screen/swap_hand() using.name = "hand" using.icon = 'icons/mob/screen_alien.dmi' using.icon_state = "hand1" using.screen_loc = ui_swaphand1 static_inventory += using using = new /atom/movable/screen/swap_hand() using.name = "hand" using.icon = 'icons/mob/screen_alien.dmi' using.icon_state = "hand2" using.screen_loc = ui_swaphand2 static_inventory += using //end of equippable shit using = new /atom/movable/screen/resist() using.name = "resist" using.icon = 'icons/mob/screen_alien.dmi' using.icon_state = "act_resist" using.screen_loc = ui_pull_resist static_inventory += using using = new /atom/movable/screen/drop() using.name = "drop" using.icon = 'icons/mob/screen_alien.dmi' using.icon_state = "act_drop" using.screen_loc = ui_drop_throw static_inventory += using mymob.throw_icon = new /atom/movable/screen/throw_catch() mymob.throw_icon.icon = 'icons/mob/screen_alien.dmi' mymob.throw_icon.screen_loc = ui_drop_throw static_inventory += mymob.throw_icon mymob.healths = new /atom/movable/screen/healths/alien() infodisplay += mymob.healths nightvisionicon = new /atom/movable/screen/alien/nightvision() infodisplay += nightvisionicon mymob.pullin = new /atom/movable/screen/pull() mymob.pullin.icon = 'icons/mob/screen_alien.dmi' mymob.pullin.hud = src mymob.pullin.update_icon(UPDATE_ICON_STATE) mymob.pullin.screen_loc = ui_pull_resist hotkeybuttons += mymob.pullin alien_plasma_display = new /atom/movable/screen/alien/plasma_display() infodisplay += alien_plasma_display zone_select = new /atom/movable/screen/zone_sel/alien() zone_select.hud = src zone_select.update_icon(UPDATE_OVERLAYS) static_inventory += zone_select for(var/atom/movable/screen/inventory/inv in (static_inventory + toggleable_inventory)) if(inv.slot_id) inv.hud = src inv_slots[inv.slot_id] = inv inv.update_icon() /datum/hud/alien/persistent_inventory_update(mob/viewer) if(!mymob) return var/mob/living/carbon/alien/humanoid/H = mymob var/mob/screenmob = viewer || H if(hud_version != HUD_STYLE_NOHUD) if(H.r_hand) H.r_hand.screen_loc = ui_rhand screenmob.client.screen += H.r_hand if(H.l_hand) H.l_hand.screen_loc = ui_lhand screenmob.client.screen += H.l_hand else if(H.r_hand) H.r_hand.screen_loc = null screenmob.client.screen -= H.r_hand if(H.l_hand) H.l_hand.screen_loc = null screenmob.client.screen -= H.l_hand