Files
SyncIt21 27e868a3da Refactors how air sensors & atmos monitors connect (#92849)
## About The Pull Request
**1. Qol**
- Air sensors(maploaded & hand crafted) now auto connect to any input
ports & output valves that are within a 4 tile radius from it meaning
there is no need for these ports to have unique IDs attached to them &
you don't need a multitool to link them together if you first placed
those ports & then placed the air sensor close to them
- Atmos control monitors now finds all air sensors that are closest to
it within the same z level meaning you can have/place multiple air
sensors of the same type on the same z level & the monitor will locate
them correctly without any ambiguity

**2. Refactor**
- Removed var `chamber_id` from both injectors & vents meaning you don't
need to have unique ids assigned to them. As long as mappers/players put
them within 4 tile radius from the air sensor it will auto connect to
them
- Removed var `GLOB.map_loaded_sensors`

## Changelog
🆑
qol: hand crafted air sensors now auto connect to input & output ports
if they are located within a 4 tile radius from it
qol: atmos control monitors now locate all air sensors nearest to in on
that same z level meaning you can have multiple air sensors of the same
type on the same map
refactor: refactored how air sensors & atmos monitors connect to each
other. Please report any atmos computers that have missing input
valves/output ports on their connected air sensors or those that don't
list any air sensors at all on github
/🆑

---------

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
2025-09-10 01:06:36 -07:00

94 lines
3.8 KiB
Plaintext

/obj/machinery/atmospherics/components/unary/vent_pump/siphon/monitored
on = TRUE
icon_state = "vent_map_siphon_on-3"
/obj/machinery/atmospherics/components/unary/vent_pump/siphon/monitored/Initialize(mapload)
. = ..()
//we dont want people messing with these special vents using the air alarm interface
disconnect_from_area()
/obj/machinery/atmospherics/components/unary/vent_pump/siphon/monitored/plasma_output
name = "plasma tank output inlet"
/obj/machinery/atmospherics/components/unary/vent_pump/siphon/monitored/oxygen_output
name = "oxygen tank output inlet"
/obj/machinery/atmospherics/components/unary/vent_pump/siphon/monitored/nitrogen_output
name = "nitrogen tank output inlet"
/obj/machinery/atmospherics/components/unary/vent_pump/siphon/monitored/mix_output
name = "mix tank output inlet"
/obj/machinery/atmospherics/components/unary/vent_pump/siphon/monitored/nitrous_output
name = "nitrous oxide tank output inlet"
/obj/machinery/atmospherics/components/unary/vent_pump/siphon/monitored/carbon_output
name = "carbon dioxide tank output inlet"
/obj/machinery/atmospherics/components/unary/vent_pump/siphon/monitored/bz_output
name = "bz tank output inlet"
/obj/machinery/atmospherics/components/unary/vent_pump/siphon/monitored/freon_output
name = "freon tank output inlet"
/obj/machinery/atmospherics/components/unary/vent_pump/siphon/monitored/halon_output
name = "halon tank output inlet"
/obj/machinery/atmospherics/components/unary/vent_pump/siphon/monitored/healium_output
name = "healium tank output inlet"
/obj/machinery/atmospherics/components/unary/vent_pump/siphon/monitored/hydrogen_output
name = "hydrogen tank output inlet"
/obj/machinery/atmospherics/components/unary/vent_pump/siphon/monitored/hypernoblium_output
name = "hypernoblium tank output inlet"
/obj/machinery/atmospherics/components/unary/vent_pump/siphon/monitored/miasma_output
name = "miasma tank output inlet"
/obj/machinery/atmospherics/components/unary/vent_pump/siphon/monitored/nitrium_output
name = "nitrium tank output inlet"
/obj/machinery/atmospherics/components/unary/vent_pump/siphon/monitored/pluoxium_output
name = "pluoxium tank output inlet"
/obj/machinery/atmospherics/components/unary/vent_pump/siphon/monitored/proto_nitrate_output
name = "proto-nitrate tank output inlet"
/obj/machinery/atmospherics/components/unary/vent_pump/siphon/monitored/tritium_output
name = "tritium tank output inlet"
/obj/machinery/atmospherics/components/unary/vent_pump/siphon/monitored/water_vapor_output
name = "water vapor tank output inlet"
/obj/machinery/atmospherics/components/unary/vent_pump/siphon/monitored/zauker_output
name = "zauker tank output inlet"
/obj/machinery/atmospherics/components/unary/vent_pump/siphon/monitored/helium_output
name = "helium tank output inlet"
/obj/machinery/atmospherics/components/unary/vent_pump/siphon/monitored/antinoblium_output
name = "antinoblium tank output inlet"
/obj/machinery/atmospherics/components/unary/vent_pump/siphon/monitored/incinerator_output
name = "incinerator chamber output inlet"
/obj/machinery/atmospherics/components/unary/vent_pump/siphon/monitored/ordnance_burn_chamber_output
name = "ordnance burn chamber output inlet"
/obj/machinery/atmospherics/components/unary/vent_pump/siphon/monitored/ordnance_freezer_chamber_output
name = "ordnance freezer chamber output inlet"
/obj/machinery/atmospherics/components/unary/vent_pump/high_volume/siphon/monitored
on = TRUE
icon_state = "vent_map_siphon_on-3"
// Same as the rest, but bigger volume.
/obj/machinery/atmospherics/components/unary/vent_pump/high_volume/siphon/monitored/Initialize(mapload)
. = ..()
//we dont want people messing with these special vents using the air alarm interface
disconnect_from_area()
/obj/machinery/atmospherics/components/unary/vent_pump/high_volume/siphon/monitored/air_output
name = "air mix tank output inlet"