mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Shuttle doors now lock on transit.
This commit is contained in:
@@ -130,9 +130,10 @@ datum/shuttle_controller
|
|||||||
|
|
||||||
start_location.move_contents_to(end_location, null, NORTH)
|
start_location.move_contents_to(end_location, null, NORTH)
|
||||||
|
|
||||||
for(var/obj/machinery/door/D in world)
|
for(var/obj/machinery/door/unpowered/D in world)
|
||||||
if( get_area(D) == end_location )
|
if( get_area(D) == end_location )
|
||||||
spawn(0)
|
spawn(0)
|
||||||
|
D.locked = 0
|
||||||
D.open()
|
D.open()
|
||||||
|
|
||||||
for(var/mob/M in end_location)
|
for(var/mob/M in end_location)
|
||||||
@@ -291,9 +292,10 @@ datum/shuttle_controller
|
|||||||
// Just before it leaves, close the damn doors!
|
// Just before it leaves, close the damn doors!
|
||||||
if(timeleft == 2 || timeleft == 1)
|
if(timeleft == 2 || timeleft == 1)
|
||||||
var/area/start_location = locate(/area/shuttle/escape/station)
|
var/area/start_location = locate(/area/shuttle/escape/station)
|
||||||
for(var/obj/machinery/door/D in start_location)
|
for(var/obj/machinery/door/unpowered/shuttle/D in start_location)
|
||||||
spawn(0)
|
spawn(0)
|
||||||
D.close()
|
D.close()
|
||||||
|
D.locked = 1
|
||||||
|
|
||||||
if(timeleft>0)
|
if(timeleft>0)
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user