Author Topic: [Event] Door restrictions (More privacy)  (Read 7159 times)

This was ripped from my CityRPG mod, so I'll mind as well package it and release this because it's pretty useful in my opinion.

[X] [0ms] [onBlah] > [Self] > [doorCheck] > [PopupMenu] [DoorMenu]

Options on PopupMenu:
[Admin] - Only the corrupted can go through this door. (Door is admin only)
[SuperAdmin] - If you really feel this odd, go ahead. (Door is super admin only)
[BLIDAllow] - Creates a whitelist of people you love. (Ex: 1234 4333 666 1337) (Each ID needs only a space)
[BLIDDeny] - Creates a blacklist of people you don't like. (Ex: 1234 4333 666 1337) (Each ID needs only a space)
[Build] - People that have your build trust can go through.
[Full] - Only trust your friends into your house only..
[Self] - Want to be a selfish person and make it only to yourself? Then this is your option.

Options on DoorMenu: (Same as the door event)
Toggle
ToggleCCW
OpenCW
OpenCCW
Close

If the door fails to open, there's a onDoorRestricted input.

Event_DoorCheck
« Last Edit: July 03, 2017, 10:40:15 AM by Kyuande »

November is officially the month of the best addons in 2015.

This is a loving amazing add-on thanks viso

Wasn't this one of the reasons why badspot hated JVS doors? It's a neat mod but still the implications of it.

Wasn't this one of the reasons why badspot hated JVS doors? It's a neat mod but still the implications of it.
Well, one of the lesser reasons anyways.
The major reason was that there were far too many input and output events cluttering it. onDoorOpen, onDoorOpened, onDoorClose, onDoorClosed, etc.

Wasn't this one of the reasons why badspot hated JVS doors? It's a neat mod but still the implications of it.
This is for the default door system. But yeah, he hated it because JVS doors needed so many events for it to work correctly. This only needs 1 event.

Problems with JVS doors:

  • 16 events to open a door.
  • Horrible AIM sounds
  • A "jvs" tab instead of being in the special/interactive tab where they belong
  • Backwards loop structure that causes the brick loading times to increase for all bricks for each jvs door that you have installed.  If you have 50 JVS doors installed, you're looking at a 10x increase in loading times.  This alone is reason to remove it from the game permanently.  I regret not CRC failing when I discovered this issue years ago.
  • Overly complicated door blocking system that requires a taxing container radius search every time someone opens a door.  Door disabling can easily be implemented via toggleEventEnabled or setRayCastingEnabled.
  • Overly complicated ID restriction system that serves no purpose except providing yet another way for power starved pre-teens to give themselves special privileges over other users so they can have some semblance of empowerment in their otherwise impotent lives.

yet there's still no add-on to block the default events from being added after loading a save

ot: good add-on, perfect for RPs or cityRPGs

Mmmmm finally. Restricted doors that aren't broken

This is nice for people who don't understand/use VCE

This add-on is great for admin rooms/houses

This is nice for people who don't understand/use VCE
It's better than using VCE because VCE doesn't support multiple IDs separated by spaces.

Thank you ive been wanting this no more resorting to old jvs stuff

Are players always able to open their own doors? Or could I create a room that is admin only even if I'm not an admin.

Are players always able to open their own doors? Or could I create a room that is admin only even if I'm not an admin.
The latter.