MAPPERS: New feature: lazy bump cycle airlocks.

Mapping Ideas and Sprite Galleries
Post Reply
User avatar
MrStonedOne
Host
Joined: Mon Apr 14, 2014 10:56 pm
Byond Username: MrStonedOne
Github Username: MrStonedOne

MAPPERS: New feature: lazy bump cycle airlocks.

Post by MrStonedOne » #199659

So in this pr: https://github.com/tgstation/tgstation/pull/19509 I coded a feature that lets you make it so when opening one of a pair of airlocks, the other closes or attempts to close. ie, the two airlocks seen any time something goes to space.

To add this to a given set of airlocks on your maps, simply map edit cyclelinkeddir to the direction of the other airlock. both have to be pointed at eachother, and be in view() of eachother.

This system won't activate if there is a shuttle docked, so you can add it to escape airlocks without annoying people because doors are attempting to close, HOWEVER! If the shuttle starts out docked, the var on the airlock to disable this won't get set (as it's set on docking) so in the case of things like pods, you have to change the airlock next to the shuttle (but not on it) to have shuttledocked set to 1.

This has already been added to box station so you can look at the airlocks there for an example. It also works on pair'ed doors that don't go to space, like the two going into bridge on box station, or engine room, or brig.


Last bumped by MrStonedOne on Thu Aug 11, 2016 3:13 am.
Forum/Wiki Administrator, Server host, Database King, Master Coder
MrStonedOne on digg(banned), Steam, IRC, Skype Discord. (!vAKvpFcksg)
Image
NSFW:
Image
Post Reply

Who is online

Users browsing this forum: No registered users