If you're editing the map or tweaking access codes in game by var editing you'll need to know the new access levels. Bay stores all its access levels in a big clumsy list and I wiped most of it down to make way for stuff we actually need. So say goodbye to HONK! access that nobody was ever gonna use again. Doors, locked chests, and so on are all controlled by two variables: "req_access_txt" and "req_one_access_txt". There are also 'req_access' and 'req_one_access' vars, but these are used in-code and shouldn't be touched.
To set an access requirement, simply edit the item in question and find one of those _txt variables, and change it to "<number>", in quotes. The difference between req_access and req_one_access is that of AND and OR. req_access requires -all- access levels specified and req_one_access requires -any- of the access levels. You specify more than one by using semicolons, such as "5;6;12". Most doors should only require one, and so it doesn't matter which var you use.
If you absolutely need a new access level, it can be done, but please try to just squeeze in whichever we already have. It's much easier.
The current access numbers are as follows:
1: Captain stuff
2: Logistics
3: Brig/security
4: Armory
5: CMO
6: CE, supermatter chamber
7: Engineering
8: Medbay, surgery, medical storage
9: Marine prep
10: Marine medic prep
11: Marine engi prep
12: Marine leader
13: Marine specialist
14: Sulaco research, also mechs and bots
15: Alpha squad
16: bravo squad
17: charlie squad
18: delta squad
19: bridge
20: chemistry
100: generic "civilian" stuff. Most ground map buildings have this, and currently nobody spawns with it.
101: civilian command - used in ground map commander and RD's bedroom doors. Nobody spawns with it either (yet)
102: Civilian engineering stuff
103: Civilian research stuff - mostly used on the sealed doors on the ground map.
200: All centcomm access. Centcomm used to be divided into multiple access's but they've all been consolidated here.
201: Generic "syndicate" access. Actually can just be used for any type of badguy place.
The squads and marine prep rooms are the one exception to requiring more than one level of access to the doors. Alpha squad prep room should have req_access "9;15", while a delta squad medic-only room would have req_access "11;18". Previously we had seperate access levels for every job and every squad, which was cumbersome to say the least.
If you're not involved in mapmaking than none of this will mean anything to you. Sorry for wasting your time!
New Door Access (for alpha devtest repo)
- Abbysynth
- Registered user
- Posts: 465
- Joined: 30 Apr 2015, 21:15
- Location: Ottawa, Ontario
- apophis775
- Host
- Posts: 6985
- Joined: 22 Aug 2014, 18:05
- Location: Ice Colony
- Byond: Apophis775
- Contact:
Re: New Door Access (for alpha devtest repo)
Should we document this somewhere else?
flamecow wrote: "unga dunga me want the attachment" - average marine