mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Merge pull request #7674 from VOREStation/aro-phoronvoice
Add airlock vox to phoronlocks too
This commit is contained in:
@@ -243,6 +243,7 @@ obj/machinery/airlock_sensor/phoron/airlock_exterior
|
|||||||
if(STATE_PREPARE)
|
if(STATE_PREPARE)
|
||||||
if (check_doors_secured())
|
if (check_doors_secured())
|
||||||
if(target_state == TARGET_INOPEN)
|
if(target_state == TARGET_INOPEN)
|
||||||
|
playsound(master, 'sound/AI/airlockin.ogg', 100, 0)
|
||||||
if(memory["chamber_sensor_phoron"] > memory["target_phoron"])
|
if(memory["chamber_sensor_phoron"] > memory["target_phoron"])
|
||||||
state = STATE_CLEAN
|
state = STATE_CLEAN
|
||||||
signalScrubber(tag_scrubber, 1) // Start cleaning
|
signalScrubber(tag_scrubber, 1) // Start cleaning
|
||||||
@@ -256,11 +257,13 @@ obj/machinery/airlock_sensor/phoron/airlock_exterior
|
|||||||
else if(memory["pump_status"] != "off")
|
else if(memory["pump_status"] != "off")
|
||||||
signalPump(tag_airpump, 0)
|
signalPump(tag_airpump, 0)
|
||||||
else
|
else
|
||||||
|
playsound(master, 'sound/AI/airlockout.ogg', 100, 0)
|
||||||
cycleDoors(target_state)
|
cycleDoors(target_state)
|
||||||
state = STATE_IDLE
|
state = STATE_IDLE
|
||||||
target_state = TARGET_NONE
|
target_state = TARGET_NONE
|
||||||
|
|
||||||
if(STATE_CLEAN)
|
if(STATE_CLEAN)
|
||||||
|
playsound(master, 'sound/machines/2beep.ogg', 100, 0)
|
||||||
if(!check_doors_secured())
|
if(!check_doors_secured())
|
||||||
//the airlock will not allow itself to continue to cycle when any of the doors are forced open.
|
//the airlock will not allow itself to continue to cycle when any of the doors are forced open.
|
||||||
stop_cycling()
|
stop_cycling()
|
||||||
@@ -271,12 +274,14 @@ obj/machinery/airlock_sensor/phoron/airlock_exterior
|
|||||||
state = STATE_PRESSURIZE
|
state = STATE_PRESSURIZE
|
||||||
|
|
||||||
if(STATE_PRESSURIZE)
|
if(STATE_PRESSURIZE)
|
||||||
|
playsound(master, 'sound/machines/2beep.ogg', 100, 0)
|
||||||
if(!check_doors_secured())
|
if(!check_doors_secured())
|
||||||
//the airlock will not allow itself to continue to cycle when any of the doors are forced open.
|
//the airlock will not allow itself to continue to cycle when any of the doors are forced open.
|
||||||
stop_cycling()
|
stop_cycling()
|
||||||
else if(memory["chamber_sensor_pressure"] >= memory["target_pressure"] * 0.95)
|
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.
|
signalPump(tag_airpump, 0) // send a signal to stop pumping. No need to wait for it tho.
|
||||||
cycleDoors(target_state)
|
cycleDoors(target_state)
|
||||||
|
playsound(master, 'sound/AI/airlockdone.ogg', 100, 0)
|
||||||
state = STATE_IDLE
|
state = STATE_IDLE
|
||||||
target_state = TARGET_NONE
|
target_state = TARGET_NONE
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user