Docs · Engineering reference
Gang radio (#4215)
docs/features/gang-radio.mdEdit on GitHub
- ✅ Gang bands (GA-C7, #4215, LOGIC
comms/gang-radio-band):LF_GangRadio.BandFor(orgId)gives an organization its own hidden band on the native R148 radio, a random free channel fromConfigs/Comms/LF_GangRadio.conf(44000 to 54000 kHz in 200 kHz steps, 51 channels; the R148 factory channel 38000 and the police and medic service frequencies are never given) plus a fresh encryption key, so a rival who dials the frequency by hand hears nothing. Two gangs never hold one band. The band goes back to the free set when the organization loses its last member (LF_OnOrganizationEmptied, the disband) and only then can another gang get it, with a new key. Server only, in memory: after a restart a gang is assigned again on first use and the radio item retunes. With every channel held a new gang is refused with an[LFDebug:GangRadio]error. Not done: dropping the channel on leave (GA-C9). - ✅ Gang radio item and "Tune to gang channel" (GA-C8, #4221, WORLD
comms/gang-radio-tune):LF_GangRadio(pack,Prefabs/Items/Comms/LF_GangRadio.et) is a copy of the native R148. A gang member carrying it picks "Tune to gang channel" from its action list; the server checks the carrier and the membership, then sets the band's frequency and encryption key and switches the set on (LF_GangRadioTune.ServerTune). Members on the band hear each other through vanilla radio voice; an outsider who dials the frequency has no key and hears nothing. Someone outside a gang sees the action greyed out with "Gang members only". When a member leaves or is kicked (LF_OnOrganizationMemberLeft), the band is drawn again with a new frequency and key: the radios of online members move over, the leaver's radio comes off the band, and a member who was offline retunes from the action list. The band lives in memory, so after a restart every radio retunes the same way (a stale frequency or key is overwritten). Not done: the $60 sale row (the north outpost quartermaster) and the three-client session proof.