mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 03:51:49 +01:00
Exosuit Passenger Compartments (#7890)
* passenger compartments * added to mechfab
This commit is contained in:
@@ -57,6 +57,7 @@
|
||||
idle_power_usage = 0
|
||||
active_power_usage = 0 //It'd be hard to handle, so for now all power is consumed by mech sleeper object
|
||||
interact_offline = TRUE
|
||||
display_loading_message = FALSE
|
||||
|
||||
/obj/machinery/sleeper/mounted/ui_interact(var/mob/user, var/ui_key = "main", var/datum/nanoui/ui = null, var/force_open = 1, var/datum/topic_state/state = mech_state)
|
||||
. = ..()
|
||||
|
||||
@@ -383,4 +383,39 @@
|
||||
src.damtype = "fire"
|
||||
update_icon()
|
||||
START_PROCESSING(SSprocessing, src)
|
||||
..()
|
||||
..()
|
||||
|
||||
// Kinda hacky, but hey, avoids some severe shitcode later on - geeves
|
||||
/obj/item/mecha_equipment/sleeper/passenger_compartment
|
||||
name = "\improper mounted passenger compartment"
|
||||
desc = "An exosuit-mounted passenger compartment that can comfortably hold a single humanoid."
|
||||
icon_state = "mecha_passenger_open"
|
||||
mech_layer = MECH_GEAR_LAYER
|
||||
restricted_hardpoints = list(HARDPOINT_LEFT_HAND, HARDPOINT_RIGHT_HAND)
|
||||
restricted_software = null
|
||||
origin_tech = list(TECH_MATERIAL = 2, TECH_ENGINEERING = 2)
|
||||
passive_power_use = 15
|
||||
|
||||
/obj/item/mecha_equipment/sleeper/passenger_compartment/uninstalled()
|
||||
. = ..()
|
||||
icon_state = "mecha_passenger_open"
|
||||
update_icon()
|
||||
owner.update_icon()
|
||||
|
||||
/obj/item/mecha_equipment/sleeper/passenger_compartment/attack_self(var/mob/user)
|
||||
if(!sleeper.occupant)
|
||||
to_chat(user, span("warning", "There's no one to eject!"))
|
||||
else
|
||||
visible_message(span("notice", "\The [src] ejects [sleeper.occupant.name]."))
|
||||
sleeper.go_out()
|
||||
icon_state = "mecha_passenger_open"
|
||||
update_icon()
|
||||
owner.update_icon()
|
||||
return
|
||||
|
||||
/obj/item/mecha_equipment/sleeper/passenger_compartment/afterattack(var/atom/target, var/mob/living/user, var/inrange, var/params)
|
||||
. = ..()
|
||||
if(.)
|
||||
icon_state = "mecha_passenger"
|
||||
update_icon()
|
||||
owner.update_icon()
|
||||
@@ -346,3 +346,9 @@
|
||||
id = "mech_flare"
|
||||
materials = list(DEFAULT_WALL_MATERIAL = 10000)
|
||||
build_path = /obj/item/mecha_equipment/mounted_system/flarelauncher
|
||||
|
||||
/datum/design/item/mechfab/exosuit/passenger_compartment
|
||||
name = "mounted passenger compartment"
|
||||
id = "mech_pass_comp"
|
||||
materials = list(DEFAULT_WALL_MATERIAL = 10000)
|
||||
build_path = /obj/item/mecha_equipment/sleeper/passenger_compartment
|
||||
Reference in New Issue
Block a user