mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-21 15:42:35 +00:00
This PR converts ZAS' c_airblock procs into a single macro for performance reasons, as well as allows CanPass to be bypassed for atoms that do not require special air blocking behavior. Appears to have a significant effect on performance, needs more detailed testing. Some objects are likely missing canpass flags, I only set the obvious ones. Please comment if you find one I missed. Might fix #2152.
51 lines
1.1 KiB
Plaintext
51 lines
1.1 KiB
Plaintext
/obj/structure/shuttle
|
|
name = "shuttle"
|
|
icon = 'icons/turf/shuttle.dmi'
|
|
|
|
/obj/structure/shuttle/window
|
|
name = "shuttle window"
|
|
icon = 'icons/obj/podwindows.dmi'
|
|
icon_state = "1"
|
|
density = 1
|
|
opacity = 0
|
|
anchored = 1
|
|
atmos_canpass = CANPASS_NEVER
|
|
|
|
CanPass(atom/movable/mover, turf/target, height, air_group)
|
|
if(!height || air_group) return 0
|
|
else return ..()
|
|
|
|
/obj/structure/shuttle/engine
|
|
name = "engine"
|
|
density = 1
|
|
anchored = 1.0
|
|
atmos_canpass = CANPASS_NEVER
|
|
|
|
/obj/structure/shuttle/engine/heater
|
|
name = "heater"
|
|
icon_state = "heater"
|
|
|
|
/obj/structure/shuttle/engine/platform
|
|
name = "platform"
|
|
icon_state = "platform"
|
|
|
|
/obj/structure/shuttle/engine/propulsion
|
|
name = "propulsion"
|
|
icon_state = "propulsion"
|
|
opacity = 1
|
|
|
|
/obj/structure/shuttle/engine/propulsion/burst
|
|
name = "burst"
|
|
|
|
/obj/structure/shuttle/engine/propulsion/burst/left
|
|
name = "left"
|
|
icon_state = "burst_l"
|
|
|
|
/obj/structure/shuttle/engine/propulsion/burst/right
|
|
name = "right"
|
|
icon_state = "burst_r"
|
|
|
|
/obj/structure/shuttle/engine/router
|
|
name = "router"
|
|
icon_state = "router"
|