mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 13:30:42 +01:00
Turbo Lifts Tweak (#10593)
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
var/list/doors = list() // Doors inside the lift structure.
|
||||
var/list/queued_floors = list() // Where are we moving to next?
|
||||
var/list/floors = list() // All floors in this system.
|
||||
var/move_delay = 45 // Time between floor changes.
|
||||
var/move_delay = 15 // Time between floor changes.
|
||||
var/floor_wait_delay = 95 // Time to wait at floor stops.
|
||||
var/obj/structure/lift/panel/control_panel_interior // Lift control panel.
|
||||
var/doors_closing = 0 // Whether doors are in the process of closing
|
||||
@@ -54,7 +54,7 @@
|
||||
if(!doors_closing)
|
||||
close_doors()
|
||||
doors_closing = 1
|
||||
queue_movement()
|
||||
queue_movement(move_delay / 2)
|
||||
return 1
|
||||
|
||||
else // We failed to close the doors - probably, someone is blocking them; stop trying to move
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
var/depth = 1 // Number of floors to generate, including the initial floor.
|
||||
var/lift_size_x = 2 // Number of turfs on each axis to generate in addition to the first
|
||||
var/lift_size_y = 2 // ie. a 3x3 lift would have a value of 2 in each of these variables.
|
||||
var/no_first_z_level = TRUE
|
||||
|
||||
// Various turf and door types used when generating the turbolift floors.
|
||||
var/wall_type = /turf/simulated/wall/elevator
|
||||
@@ -119,7 +120,7 @@
|
||||
light_y2 = uy + lift_size_y - 1
|
||||
|
||||
// Generate each floor and store it in the controller datum.
|
||||
if(uz != 1)
|
||||
if(no_first_z_level && uz != 1)
|
||||
for(var/i = 1, i < uz, i++)
|
||||
lift.floors += null // This silly hack allows lifts to not start on the first zlevel
|
||||
|
||||
|
||||
Reference in New Issue
Block a user