QoL interaction event broadcasting to container #32841
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
About the PR
Added System to broadcast interaction events to entities in containers and from entities in container
I used it to make a ninja headset which can copy encryption keys from other headsets or keys. But component of copying exists only on key.
Similar thing were made for a agent id card: now you can copy accesses from a pda with id or by interaction with pda or id card by the pda with agent card.
Look media to see how it works.
ToDo things:
Why / Balance
This reduce minor grief of stealing headsets or throwing out someone's id while using agent card.
About copying by PDA with agent ID. I made it just to check if system of broadcasting works correct with events from entity in container to another entity in container. Its only a suggestion and can be removed besides without it wont be less changes.
Technical details
Added 3 components each one is responsible for broadcast interaction event in different stages of interaction.
Added System which copy channels from keys/headsets.
Moved AgentIDCardComponent to shared due to prediction issue
Added method to EncryptionKeySystem which adds channels to key
Changed event methods to use Entity, because I used them.
Media
qol_pr_compress.mp4
Requirements
Breaking changes
Added 3 components each one is responsible for broadcast interaction event in different stages of interaction. Also comes with interaction from container/ to container events! Highly recommend to use included whitelist/blacklist to prevent making too much events.
Moved AgentIDCardComponent to Shared.
Added System/Component which can copy channels from headsets/encryption keys
Changelog
🆑 AlwyAnri, Stalengd