Fixed a few map bugs on MiniStation.

Added the missing mini-hoe and hatchet to the garden area.
Added reverse stations which will send pods in the opposite direction, after their stop.
Added tube terminators for you to put on the end of non-looping tubes.
This commit is contained in:
Giacomand
2014-02-04 20:13:07 +00:00
parent 39eceac465
commit b8329e7f2b
3 changed files with 2905 additions and 2918 deletions

View File

@@ -24,6 +24,7 @@
// Mappers: use "Generate Instances from Directions" for this
// one.
/obj/structure/transit_tube/station
name = "station tube station"
icon = 'icons/obj/pipes/transit_tube_station.dmi'
icon_state = "closed"
exit_delay = 2
@@ -32,10 +33,15 @@
var/automatic_launch_time = 100
var/cooldown_delay = 30
var/launch_cooldown = 0
var/reverse_launch = 0
var/const/OPEN_DURATION = 6
var/const/CLOSE_DURATION = 6
// Stations which will send the tube in the opposite direction after their stop.
/obj/structure/transit_tube/station/reverse
reverse_launch = 1
/obj/structure/transit_tube_pod
@@ -171,12 +177,13 @@ obj/structure/ex_act(severity)
/obj/structure/transit_tube/station/proc/launch_pod()
for(var/obj/structure/transit_tube_pod/pod in loc)
if(!pod.moving && pod.dir in directions())
if(!pod.moving && turn(pod.dir, (reverse_launch ? 180 : 0)) in directions())
spawn(5)
pod_moving = 1
close_animation()
sleep(CLOSE_DURATION + 2)
if(icon_state == "closed" && pod && launch_cooldown < world.time)
pod.dir = turn(pod.dir, (reverse_launch ? 180 : 0))
pod.follow_tube()
pod_moving = 0