Skip to content

Commit

Permalink
adds external atmospherics control
Browse files Browse the repository at this point in the history
  • Loading branch information
fighterslam committed Sep 5, 2024
1 parent 9d41577 commit 38e39c4
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 91 deletions.
180 changes: 89 additions & 91 deletions _maps/shuttles/nanotrasen/nanotrasen_ranger.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -1303,14 +1303,13 @@
/obj/effect/turf_decal/techfloor{
dir = 1
},
/obj/structure/rack,
/obj/item/storage/toolbox/mechanical,
/obj/item/storage/toolbox/electrical{
pixel_x = 3;
pixel_y = 7
/obj/machinery/airalarm/directional/west,
/obj/machinery/computer/atmos_control/external{
dir = 4;
icon_state = "computer-right"
},
/turf/open/floor/plasteel/mono/dark,
/area/ship/engineering)
/area/ship/external)
"jv" = (
/obj/structure/closet/cabinet,
/obj/item/clothing/shoes/jackboots,
Expand Down Expand Up @@ -1623,6 +1622,12 @@
/obj/effect/turf_decal/corner/opaque/orange/full,
/obj/effect/turf_decal/siding/yellow,
/obj/effect/turf_decal/siding/yellow,
/obj/structure/rack,
/obj/item/storage/toolbox/mechanical,
/obj/item/storage/toolbox/electrical{
pixel_x = 3;
pixel_y = 7
},
/turf/open/floor/plasteel/tech,
/area/ship/engineering)
"mh" = (
Expand Down Expand Up @@ -1875,76 +1880,6 @@
/turf/open/floor/plating,
/area/ship/maintenance/starboard)
"or" = (
/obj/structure/closet/crate/secure/plasma{
name = "Relay Parts Crate"
},
/obj/item/storage/box/stockparts/basic,
/obj/item/circuitboard/machine/telecomms/relay{
pixel_x = -5;
pixel_y = 9
},
/obj/item/circuitboard/machine/telecomms/relay{
pixel_x = -5;
pixel_y = 9
},
/obj/item/circuitboard/machine/telecomms/relay{
pixel_x = -5;
pixel_y = 9
},
/obj/item/encryptionkey/nanotrasen{
pixel_x = -1
},
/obj/item/encryptionkey/nanotrasen{
pixel_x = 3
},
/obj/item/encryptionkey/nanotrasen{
pixel_x = 7
},
/obj/item/stack/cable_coil/cyan{
pixel_x = 6
},
/obj/item/stock_parts/subspace/filter{
pixel_x = -8
},
/obj/item/stock_parts/subspace/filter{
pixel_x = -8
},
/obj/item/stock_parts/subspace/filter{
pixel_x = -8
},
/obj/item/stock_parts/subspace/filter{
pixel_x = -8
},
/obj/item/stock_parts/subspace/filter{
pixel_x = -8
},
/obj/item/stock_parts/subspace/filter{
pixel_x = -8
},
/obj/item/stock_parts/manipulator{
pixel_x = 7;
pixel_y = 7
},
/obj/item/stock_parts/manipulator{
pixel_x = 7;
pixel_y = 7
},
/obj/item/stock_parts/manipulator{
pixel_x = 7;
pixel_y = 7
},
/obj/item/stock_parts/manipulator{
pixel_x = 7;
pixel_y = 7
},
/obj/item/stock_parts/manipulator{
pixel_x = 7;
pixel_y = 7
},
/obj/item/stock_parts/manipulator{
pixel_x = 7;
pixel_y = 7
},
/obj/machinery/atmospherics/components/unary/vent_scrubber/on/layer4,
/turf/open/floor/plating,
/area/ship/engineering)
Expand Down Expand Up @@ -2042,18 +1977,13 @@
/turf/open/floor/plasteel/lightgrey,
/area/ship/hallway/central)
"pp" = (
/obj/structure/sink{
dir = 8;
pixel_x = 13;
pixel_y = 2
},
/obj/structure/mirror{
pixel_x = 24
},
/obj/machinery/atmospherics/components/unary/vent_scrubber/on/layer4{
dir = 1
},
/obj/structure/window/reinforced/tinted,
/obj/structure/dresser{
dir = 1
},
/turf/open/floor/plasteel/showroomfloor,
/area/ship/crew/toilet)
"ps" = (
Expand Down Expand Up @@ -5062,10 +4992,8 @@
/obj/machinery/camera/autoname{
dir = 1
},
/obj/machinery/light/floor,
/obj/machinery/airalarm/directional/south{
pixel_x = 3
},
/obj/machinery/air_sensor/external,
/obj/machinery/light/dim/directional/south,
/turf/open/floor/engine/hull,
/area/ship/external)
"Om" = (
Expand Down Expand Up @@ -5414,9 +5342,79 @@
/turf/open/floor/plasteel/dark,
/area/ship/bridge)
"Sl" = (
/obj/machinery/light/dim/directional/east,
/obj/machinery/atmospherics/components/unary/vent_pump/on/layer2,
/obj/structure/closet/crate/secure/plasma{
name = "Relay Parts Crate"
},
/obj/item/storage/box/stockparts/basic,
/obj/item/circuitboard/machine/telecomms/relay{
pixel_x = -5;
pixel_y = 9
},
/obj/item/circuitboard/machine/telecomms/relay{
pixel_x = -5;
pixel_y = 9
},
/obj/item/circuitboard/machine/telecomms/relay{
pixel_x = -5;
pixel_y = 9
},
/obj/item/encryptionkey/nanotrasen{
pixel_x = -1
},
/obj/item/encryptionkey/nanotrasen{
pixel_x = 3
},
/obj/item/encryptionkey/nanotrasen{
pixel_x = 7
},
/obj/item/stack/cable_coil/cyan{
pixel_x = 6
},
/obj/item/stock_parts/subspace/filter{
pixel_x = -8
},
/obj/item/stock_parts/subspace/filter{
pixel_x = -8
},
/obj/item/stock_parts/subspace/filter{
pixel_x = -8
},
/obj/item/stock_parts/subspace/filter{
pixel_x = -8
},
/obj/item/stock_parts/subspace/filter{
pixel_x = -8
},
/obj/item/stock_parts/subspace/filter{
pixel_x = -8
},
/obj/item/stock_parts/manipulator{
pixel_x = 7;
pixel_y = 7
},
/obj/item/stock_parts/manipulator{
pixel_x = 7;
pixel_y = 7
},
/obj/item/stock_parts/manipulator{
pixel_x = 7;
pixel_y = 7
},
/obj/item/stock_parts/manipulator{
pixel_x = 7;
pixel_y = 7
},
/obj/item/stock_parts/manipulator{
pixel_x = 7;
pixel_y = 7
},
/obj/item/stock_parts/manipulator{
pixel_x = 7;
pixel_y = 7
},
/obj/structure/crate_shelf,
/obj/machinery/atmospherics/components/unary/vent_pump/on/layer2,
/obj/machinery/light/dim/directional/east,
/turf/open/floor/plating,
/area/ship/engineering)
"So" = (
Expand Down Expand Up @@ -5865,7 +5863,7 @@
"WZ" = (
/obj/machinery/computer/telecomms/server{
dir = 4;
icon_state = "computer-right"
icon_state = "computer-middle"
},
/obj/machinery/light/dim/directional/west,
/turf/open/floor/plasteel/mono/dark,
Expand Down
2 changes: 2 additions & 0 deletions code/__DEFINES/atmospherics.dm
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@
#define ATMOS_GAS_MONITOR_WASTE_ENGINE "engine-waste_out"
#define ATMOS_GAS_MONITOR_WASTE_ATMOS "atmos-waste_out"

#define GAS_MONITOR_SENSOR_EXTERNAL "GAS_MONITOR_SENSOR_EXTERNAL"

//AIRLOCK CONTROLLER TAGS

//RnD toxins burn chamber
Expand Down
8 changes: 8 additions & 0 deletions code/game/machinery/computer/atmos_control.dm
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
/obj/machinery/air_sensor/atmos/incinerator_tank
name = "incinerator chamber gas sensor"
id_tag = ATMOS_GAS_MONITOR_SENSOR_INCINERATOR
/obj/machinery/air_sensor/external
name = "external atmosphere sensor"
id_tag = GAS_MONITOR_SENSOR_EXTERNAL

/obj/machinery/air_sensor/update_icon_state()
icon_state = "gsensor[on]"
Expand Down Expand Up @@ -306,6 +309,11 @@ GLOBAL_LIST_EMPTY(atmos_air_controllers)
icon_state = "computer-solgov"
deconpath = /obj/structure/frame/computer/solgov

/obj/machinery/computer/atmos_control/external
sensors = list(GAS_MONITOR_SENSOR_EXTERNAL = "External Atmospherics Monitoring")
name = "External Atmospherics Monitoring"
// tbh I would love it if someone could make this like. Unique like ship camera networks & etc.

Check failure on line 315 in code/game/machinery/computer/atmos_control.dm

View workflow job for this annotation

GitHub Actions / Run Linters

Check Regex

superflous whitespace added to here, remove or update check_regex.yml

// This hacky madness is the evidence of the fact that a lot of machines were never meant to be constructable, im so sorry you had to see this
/obj/machinery/computer/atmos_control/tank/proc/reconnect(mob/user)
var/list/IO = list()
Expand Down

0 comments on commit 38e39c4

Please sign in to comment.