Horizon engines now actually shoot fire (#27287)

* Code part of it

* Maps

* Compile options

* more space

* Tweaks

* Atmos

* Veers' Horizon

* Horizon map conflicts

* Fixes conflicts in tgm

* Remove

* .dme
This commit is contained in:
ShiftyRail
2020-08-23 18:10:55 +02:00
committed by GitHub
parent fe842a396f
commit dfafc846f2
14 changed files with 469 additions and 248 deletions

View File

@@ -0,0 +1,30 @@
var/datum/subsystem/engines/SSengines
/datum/subsystem/engines
name = "Engines"
wait = SS_WAIT_ENGINES
flags = SS_NO_INIT | SS_KEEP_TIMING
priority = SS_PRIORITY_ENGINES
display_order = SS_DISPLAY_ENGINES
/datum/subsystem/engines/New()
NEW_SS_GLOBAL(SSengines)
/datum/subsystem/engines/fire(resumed = FALSE)
if(flags & SS_NO_FIRE)
return
if(map.has_engines)
if (!ship_has_power)
return FALSE
for (var/obj/structure/shuttle/engine/propulsion/horizon/engine in large_engines)
if (!istype(get_area(engine), /area/maintenance/engine))
continue
spawn() // So that they fire all at once.
engine.shoot_exhaust(3, 0)
else
flags |= SS_NO_FIRE
pause()
message_admins("Engines subsystem was paused due to lack of engines.")