Files
Bubberstation/code/modules/mapping/mapping_helpers.dm
SkyratBot 5e2d5210ae [MIRROR] Abusing Generosity - Unrestricted Airlock Access Flip [MDB IGNORE] (#15021)
* Abusing Generosity - Unrestricted Airlock Access Flip (#68096)

* Abusing Generosity - Unrestricted Airlock Access Flip

Hey there,

We now have a lot of unrestricted access helpers on airlocks, which are neato. However, while spitballing ideas in regards to this a few months ago, someone suggested to make it such that you can use the airlock wires to "flip" the directional way. I decided to sit down and code it in today.

The high details are this: You can only do it if the airlock has a directional Request-to-Exit sensor (which is just a thing I made up, you can't get this in-game outside of mapping it in via a directional helper). You can tell if a door has it the same way you can tell if any door is a directional door, or you can simply just check to see if the Unrestricted Access Display is "on" in any capcity (the airlock will not have the sensor if the display is off).

It's effectively a dud without the "sensor". However, if it does have it, you can either pulse it (to switch the direction by 180 degrees) or cut the wire (to disable the direction entirely). When you mend the wire though, it'll activate to a random direction (could even be inside a wall). You can keep cutting and mending until you get what you want, though. If it gets stuck in a wall though... shouldn't have cut it.

While in the area, I alphabetized a bunch of lists, added a new color of airlock wire, and probably some other stuff.

* Adds this behavior to building new airlocks

I also renamed it to "sensor" so it's a bit clearer across all the potential contexts.

It does seem to handle setting multiple directions on creating a new mapload, cutting/pulsing will condense the nice multi-directional stuff into one direction (i am okay with this).

Co-authored-by: spookydonut <github@ spooksoftware.com>

Co-authored-by: John Willard <53777086+JohnFulpWillard@ users.noreply.github.com>

* Abusing Generosity - Unrestricted Airlock Access Flip

Co-authored-by: san7890 <the@san7890.com>
Co-authored-by: John Willard <53777086+JohnFulpWillard@ users.noreply.github.com>
2022-07-18 08:35:05 -07:00

25 KiB