Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fuse box with main switch for all lights in a building #189

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

Fusselwurm
Copy link
Member

@Fusselwurm Fusselwurm commented Sep 28, 2021

Buildings may contain lights. To date, these can't be turned off except by destroying them.

This addon

  • when under a roof & looking at a wall, adds a self interact menu to reveal a building's main fuse box
  • the fuse box will be spawned at some wall in the building
  • the fuse box has interactions for open/close and switching off/on all the lights

https://youtu.be/gLXW9F4A4tk

TODO:

  • test even more houses (any vanilla buildings with interior lighting)?
  • [x] add a preflight self action "find fuse box" that creates a temporary ball helper at the center of the building where the switch action gets attached to because:
    • i dont have a fuse box model
    • i dont want ot dive into the rabbit hole of trying to find a generic way to get a good place where to attach a fuse box
    • i want predictability in TvTs . accessing the main switch is a thing that must be possible in one place only
  • add progress bar. make it 3s
  • remove debug logging
  • make sure everything is network-safe
  • ensure fuse boxes dont get spawned in bad places (windows, doors, stairs)
  • decide if this should be in gruppe_adler_mod or run as a stand-alone

to be extended with:

  • switches for each single light

* while in a house, use self interact/equipment to look for the fuse box
* fuse box will appear as a helper object that will have actions for
turning off/on all lights in the house
@Fusselwurm Fusselwurm marked this pull request as ready for review September 30, 2021 14:11
@Fusselwurm Fusselwurm marked this pull request as draft October 4, 2021 19:29
@Fusselwurm Fusselwurm changed the title (virtual) main switch for lights in a building fuse box with main switch for all lights in a building Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants