Commit Graph

7 Commits

Author SHA1 Message Date
Kupie e2467bf858
Redirects :h to department radio channel for headsets (#13026) 2022-12-31 22:20:04 -08:00
Leon Friedrich 881a2b2ece
PopupSystem public methods rejig (#12830) 2022-12-19 08:41:47 +11:00
Tom Richardson 49183abef2
Make department radio messages work in default radio (#12834) 2022-12-14 12:24:49 +11:00
Leon Friedrich 0b5a58001c
IListener and IRadio purge (#11980) 2022-11-15 15:09:27 +11:00
Tomás Alves f8c18c0b41
SanitizeMessagePeriod: Add Period at the end of sentences (#10710)
Co-authored-by: Visne <39844191+Visne@users.noreply.github.com>
2022-08-31 05:42:46 -07:00
Kara 7e57dd987e
Chat fixes (#10051) 2022-07-26 16:49:23 -07:00
metalgearsloth 3da454140d
Add department-specific radio channels (#9061)
* Add department-specific radio channels

This commit adds working department-specific radio channels, while
minimizing damage to the current codebase. It is expected that a future
refactor will clean this up a bit.

ChatSystem now has a RadioPrefix() method that recognizes
department-specific channels (e.g. ":e" and ":m") in addition to the
global channel (";"). It strips the prefix from the message and assigns
messages an integer representing the destination channel, if any.

IListen and IRadio now accept optional 'channel' arguments with this
channel in mind.

The ugly is that the integer channel number is hard-coded and also shows
up in chat.

Comms are not modeled at this time. You cannot break comms (yet).

All headsets have channels soldered into them. You cannot change
encryption keys to hop on new channels. Steal a headset instead.

* Remove debugging print

* Convert to prototypes

* Use prototype names in headset prototype

* Adjust list style

* Document prototype fields

* cringe

* some cleanup

* colours

* Remove alphas at least

* cc

Co-authored-by: Kevin Zheng <kevinz5000@gmail.com>
2022-06-23 20:11:03 +10:00