mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-19 20:06:28 +01:00
SCC Engines now output exhaust out the back instead of inside themselves.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user