From e814ca7ea3b80db9560735a41391b4f4eb466a70 Mon Sep 17 00:00:00 2001 From: vincibrv Date: Fri, 26 Jul 2024 13:42:32 +0200 Subject: [PATCH] air senzors removal --- code/game/machinery/air_sensor.dm | 64 ------------------------------- colonialmarines.dme | 1 - 2 files changed, 65 deletions(-) delete mode 100644 code/game/machinery/air_sensor.dm diff --git a/code/game/machinery/air_sensor.dm b/code/game/machinery/air_sensor.dm deleted file mode 100644 index 55963bae979a..000000000000 --- a/code/game/machinery/air_sensor.dm +++ /dev/null @@ -1,64 +0,0 @@ -/obj/structure/machinery/air_sensor - icon = 'icons/obj/structures/props/stationobjs.dmi' - icon_state = "gsensor1" - name = "Gas Sensor" - - anchored = TRUE - var/state = 0 - - var/id_tag - var/frequency = 1439 - - var/on = 1 - var/output = 3 - //Flags: - // 1 for pressure - // 2 for temperature - // Output >= 4 includes gas composition - // 4 for oxygen concentration - // 8 for phoron concentration - // 16 for nitrogen concentration - // 32 for carbon dioxide concentration - - var/datum/radio_frequency/radio_connection - -/obj/structure/machinery/air_sensor/update_icon() - icon_state = "gsensor[on]" - -/obj/structure/machinery/air_sensor/process() - if(on) - var/datum/signal/signal = new - signal.transmission_method = 1 //radio signal - signal.data["tag"] = id_tag - signal.data["timestamp"] = world.time - - var/turf/T = loc - var/pressure_ = T.return_pressure() - var/temperature_ = T.return_temperature() - - if(output&1) - signal.data["pressure"] = num2text(round(pressure_,0.1),) - if(output&2) - signal.data["temperature"] = round(temperature_,0.1) - - if(output>4) - signal.data["oxygen"] = 0 - signal.data["phoron"] = 0 - signal.data["nitrogen"] = 0 - signal.data["carbon_dioxide"] = 0 - signal.data["sigtype"]="status" - radio_connection.post_signal(src, signal, filter = RADIO_ATMOSIA) - - -/obj/structure/machinery/air_sensor/proc/set_frequency(new_frequency) - SSradio.remove_object(src, frequency) - frequency = new_frequency - radio_connection = SSradio.add_object(src, frequency, RADIO_ATMOSIA) - -/obj/structure/machinery/air_sensor/Initialize() - . = ..() - set_frequency(frequency) - -/obj/structure/machinery/air_sensor/Destroy() - SSradio.remove_object(src, frequency) - return ..() diff --git a/colonialmarines.dme b/colonialmarines.dme index b479f0af62c5..40131e3e9ef8 100644 --- a/colonialmarines.dme +++ b/colonialmarines.dme @@ -837,7 +837,6 @@ #include "code\game\jobs\job\special\weyland_yutani.dm" #include "code\game\machinery\aicore_lockdown.dm" #include "code\game\machinery\air_alarm.dm" -#include "code\game\machinery\air_sensor.dm" #include "code\game\machinery\autolathe.dm" #include "code\game\machinery\autolathe_datums.dm" #include "code\game\machinery\Beacon.dm"