-
Notifications
You must be signed in to change notification settings - Fork 548
Object rotation verb and alt click code cutdown #38439
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
base: Bleeding-Edge
Are you sure you want to change the base?
Object rotation verb and alt click code cutdown #38439
Conversation
i swear if this breaks alt-clicking windows under grilles for the fourth time |
this works fine here
Adjacent() already handled all of that as normal |
finally, proper atmospherics/disposals alt-rotation(assuming it won't break other shit) |
[cleanup][consistency]
What this does
Reduces these duplicated verbs down to the object level, making them usable on alt click or right click if set as a variable.
Ports the functionality from railings and windows that allows alt click rotating items underneath if unrotatable to anything else, with suitable type checks.
Ports functionality from chairs to let ghost rotate objects, off on everything else by default but admins can enable it.
Suggestions for objects that could use them are welcome, by the way.
Puts a lot of stuff updated from these rotate verbs into change_dir() so they work elsewhere too.
Closes #16569. (but I could probably leave that in if people want it, one line change as mentoned above)
Why it's good
Allows coding this for more items to be much easier.
How it was tested
Putting windows down, fastening some, then alt click rotating some underneath, alt clicking emitters anchored and unanchored, creating pipes and disposal pipes with an RPD and rotating them, using the hobo shack, connecting an emitter to a beam and prism and then alt click rotating them by varediting rotates_anchored to be true.
Changelog
🆑