Merge pull request #7674 from VOREStation/aro-phoronvoice

Add airlock vox to phoronlocks too
This commit is contained in:
Aronai Sieyes
2020-05-06 22:51:31 -04:00
committed by GitHub

View File

@@ -243,6 +243,7 @@ obj/machinery/airlock_sensor/phoron/airlock_exterior
if(STATE_PREPARE)
if (check_doors_secured())
if(target_state == TARGET_INOPEN)
playsound(master, 'sound/AI/airlockin.ogg', 100, 0)
if(memory["chamber_sensor_phoron"] > memory["target_phoron"])
state = STATE_CLEAN
signalScrubber(tag_scrubber, 1) // Start cleaning
@@ -256,11 +257,13 @@ obj/machinery/airlock_sensor/phoron/airlock_exterior
else if(memory["pump_status"] != "off")
signalPump(tag_airpump, 0)
else
playsound(master, 'sound/AI/airlockout.ogg', 100, 0)
cycleDoors(target_state)
state = STATE_IDLE
target_state = TARGET_NONE
if(STATE_CLEAN)
playsound(master, 'sound/machines/2beep.ogg', 100, 0)
if(!check_doors_secured())
//the airlock will not allow itself to continue to cycle when any of the doors are forced open.
stop_cycling()
@@ -271,12 +274,14 @@ obj/machinery/airlock_sensor/phoron/airlock_exterior
state = STATE_PRESSURIZE
if(STATE_PRESSURIZE)
playsound(master, 'sound/machines/2beep.ogg', 100, 0)
if(!check_doors_secured())
//the airlock will not allow itself to continue to cycle when any of the doors are forced open.
stop_cycling()
else if(memory["chamber_sensor_pressure"] >= memory["target_pressure"] * 0.95)
signalPump(tag_airpump, 0) // send a signal to stop pumping. No need to wait for it tho.
cycleDoors(target_state)
playsound(master, 'sound/AI/airlockdone.ogg', 100, 0)
state = STATE_IDLE
target_state = TARGET_NONE