Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show all channels a headset has on examining it. (#7943)
# About the pull request Tl:DR: If you examine your headset the same ui will pop up that pops up when you normally click it. Shift click a headset to examine it. And it will have a pop up listing it's frequencies open up. The pop up shows you all frequencies it has and is always updated based upon the keys inserted. The first line I override the examine proc. The second line we ensure you cannot remotely interact with it. Or get the menu if you normally would not get the menu. So a shift click cannot be used to bypass checks on the pop up. Such as remote interaction from far away. Yautja and synths still/also get the pop up. Next we ensure we stop updating changes if the user closes the window. Then we open the window. And last we make sure to always call the parent proc so that we also display the description. It also fixes "Fixes issue #7918 " # Explain why it's good for the game This is good because currently the channels are listed in the description when clicking the headset. Now, there is no need to manually add it to each headset it's description. And it updates when keys are inserted or removed. Currently, some descriptions are missing some channels. And some headsets do not have any channels in their description. This helps also helps newer players, because it's more obvious, always correct/self updating. Because it's a pop up it won't get lost in the chat log and is also easier to see/write down. # Testing Photographs and Procedure Unless I also managed to tape my inputs you would not know what buttons I was pressing. But, I spawned in as Human and shift clicked a headset in my hand, one I was wearing, one in a backpack and one on the floor twice. Once next to me and once remotely. I got the expected result each time. I also did the same as a synth, a yautja and a monkey. The results were as expected. As a xeno I could not pick it up only slash it. # Changelog :cl:Awan qol: If you examine a radio that is on your person it's menu listing all frequencies will now pop up. /:cl:
- Loading branch information