Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saves 34s of Init Time By Fucking Setting Waitfor on Airlock Init To False #598

Merged
merged 1 commit into from
Jun 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions code/game/machinery/airlock/custom_airlock_controller.dm
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/airlock_controller/autoset/hallway, 2
icon_state = "doorin"

/obj/effect/mapping_helpers/airlock_controller_helper/airlock/interior/payload(obj/machinery/door/bulkhead/airlock)
set waitfor = FALSE
airlock.id_tag = "custom_airlock_interior_[base_tag_name]"
airlock.set_frequency(FREQ_AIRLOCK_CONTROL)
airlock.close(TRUE)
Expand All @@ -92,6 +93,7 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/airlock_controller/autoset/hallway, 2
icon_state = "doorout"

/obj/effect/mapping_helpers/airlock_controller_helper/airlock/exterior/payload(obj/machinery/door/bulkhead/airlock)
set waitfor = FALSE
airlock.id_tag = "custom_airlock_exterior_[base_tag_name]"
airlock.set_frequency(FREQ_AIRLOCK_CONTROL)
airlock.open(TRUE)
Expand All @@ -101,6 +103,7 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/airlock_controller/autoset/hallway, 2
affected_type = /obj/machinery/airlock_sensor

/obj/effect/mapping_helpers/airlock_controller_helper/sensor/payload(obj/machinery/airlock_sensor/sensor)
set waitfor = FALSE
sensor.frequency = FREQ_AIRLOCK_CONTROL
sensor.master_tag = "custom_airlock_controller_[base_tag_name]"

Expand All @@ -109,6 +112,7 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/airlock_controller/autoset/hallway, 2
icon_state = "sens"

/obj/effect/mapping_helpers/airlock_controller_helper/sensor/chamber/payload(obj/machinery/airlock_sensor/sensor)
set waitfor = FALSE
. = ..()
sensor.id_tag = "custom_airlock_sensor_chamber_[base_tag_name]"

Expand All @@ -117,6 +121,7 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/airlock_controller/autoset/hallway, 2
icon_state = "sensin"

/obj/effect/mapping_helpers/airlock_controller_helper/sensor/interior/payload(obj/machinery/airlock_sensor/sensor)
set waitfor = FALSE
. = ..()
sensor.id_tag = "custom_airlock_sensor_interior_[base_tag_name]"

Expand All @@ -129,6 +134,7 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/airlock_controller/autoset/hallway, 2
icon_state = "sensout"

/obj/effect/mapping_helpers/airlock_controller_helper/sensor/exterior/payload(obj/machinery/airlock_sensor/sensor)
set waitfor = FALSE
. = ..()
sensor.id_tag = "custom_airlock_sensor_exterior_[base_tag_name]"

Expand All @@ -142,6 +148,7 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/airlock_controller/autoset/hallway, 2
affected_type = /obj/machinery/atmospherics/components/binary/dp_vent_pump

/obj/effect/mapping_helpers/airlock_controller_helper/pump/payload(obj/machinery/atmospherics/components/binary/dp_vent_pump/pump)
set waitfor = FALSE
pump.id_tag = "custom_airlock_pump_[base_tag_name]"
pump.frequency = FREQ_AIRLOCK_CONTROL

Expand Down
Loading