SCC Engines now output exhaust out the back instead of inside themselves.

This commit is contained in:
mikomyazaki
2022-03-07 01:38:19 +00:00
parent 89216b2221
commit c16664df7b
@@ -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)