mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 02:24:11 +01:00
875937ce81
* this PR was brought to you by hate * fuck you fuck you fuck you fuck you fuck you * oops
168 lines
4.9 KiB
Plaintext
168 lines
4.9 KiB
Plaintext
/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 = ITEM_SLOT_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 = ITEM_SLOT_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[ITEM_SLOT_2_INDEX(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
|