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

Mounted Objects System #3882

Open
Konclan opened this issue Aug 14, 2021 · 3 comments
Open

Mounted Objects System #3882

Konclan opened this issue Aug 14, 2021 · 3 comments
Labels
Enhancement Improvement or tweak to the mod Long-Term This will be slowly implemented across multiple updates New Feature A new item, option, or other feature

Comments

@Konclan
Copy link
Collaborator

Konclan commented Aug 14, 2021

A system for mounting various objects to piston platforms, wall platforms, angled panels, and other moving item.

@vrad-exe
Copy link
Member

The way this would probably work is with an invisible item that's basically a "piston mounter", you'd connect it to the piston platform, place it at the same location as another item, then it would move that item on top of the piston platform. This should probably work with other panel-type items like angled panels as well. Not all items would be able to be attached to moving surfaces, this would probably be indicated by a new icon in the item's context window.

Internally, items would need to specify in their config that they were movable, and any instances would need to have a $parent parameter, which the compiler would set to the name of the parent if moving. Templates used by a moving item would be automatically switched to func_brushes if they were world or detail, and would also have their parent set. An IsMoving condition or the like would also be added, to allow items to switch to an alternate instance or make other modifications if moving.

@Konclan
Copy link
Collaborator Author

Konclan commented Aug 14, 2021

We should have an icon in the BEEmod app for which items can be mounted to pistons.

@Konclan Konclan changed the title Piston Mounted Objects Mounted Objects System Aug 14, 2021
This was referenced Aug 14, 2021
@Konclan Konclan added the New Feature A new item, option, or other feature label Aug 15, 2021
@vrad-exe
Copy link
Member

Partial blocks would be treated a bit specially since they don't have collisions in the editor, so placing one in the same space as an item would automatically move the item onto the partial block without needing the mounting item. Because of this, and because partial blocks are solid, they could also potentially have embedded items like funnels attached, though that would require converting partial blocks to be generated entirely by the precompiler instead of using templates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Improvement or tweak to the mod Long-Term This will be slowly implemented across multiple updates New Feature A new item, option, or other feature
Projects
None yet
Development

No branches or pull requests

2 participants