From c16664df7b5ca3ec911f8d5d82eef0aa3d9597f7 Mon Sep 17 00:00:00 2001 From: mikomyazaki Date: Mon, 7 Mar 2022 01:38:19 +0000 Subject: [PATCH] SCC Engines now output exhaust out the back instead of inside themselves. --- code/modules/overmap/ships/engines/gas_thruster.dm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/code/modules/overmap/ships/engines/gas_thruster.dm b/code/modules/overmap/ships/engines/gas_thruster.dm index 6b6ffcbf833..00dadd2e7bd 100644 --- a/code/modules/overmap/ships/engines/gas_thruster.dm +++ b/code/modules/overmap/ships/engines/gas_thruster.dm @@ -72,6 +72,8 @@ var/boot_time = 35 var/next_on var/blockage + var/exhaust_offset = 1 // for engines that are longer + var/exhaust_width = 1 //for engines that are wider /obj/machinery/atmospherics/unary/engine/scc_ship_engine name = "ship thruster" @@ -79,6 +81,7 @@ icon_state = "engine_0" opacity = FALSE pixel_x = -64 + exhaust_offset = 3 /obj/machinery/atmospherics/unary/engine/scc_ship_engine/check_blockage() return 0 @@ -158,7 +161,9 @@ /obj/machinery/atmospherics/unary/engine/proc/check_blockage() blockage = FALSE var/exhaust_dir = reverse_direction(dir) - var/turf/A = get_step(src, exhaust_dir) + var/turf/A = get_turf(src) + for(var/i in 1 to exhaust_offset) + A = get_step(A, exhaust_dir) var/turf/B = A while(isturf(A) && !(isspace(A) || isopenspace(A))) if((B.c_airblock(A)) & AIR_BLOCKED) @@ -185,7 +190,9 @@ network.update = 1 var/exhaust_dir = reverse_direction(dir) - var/turf/T = get_step(src,exhaust_dir) + var/turf/T = get_turf(src) + for(var/i in 1 to exhaust_offset) + T = get_step(T, exhaust_dir) if(T) T.assume_air(removed) new/obj/effect/engine_exhaust(T, exhaust_dir, air_contents.check_combustability() && air_contents.temperature >= PHORON_MINIMUM_BURN_TEMPERATURE)