Arma 3
[SCRIPT] Addon-Free ArmA Radio
Showing 1-10 of 20 entries
< 1  2 >
Update: Jul 2, 2023 @ 7:43pm

(02.JUL.2023) v0.99
Size: 132 KB

  • Added: Global Mobilization DLC support for radio backpacks
  • Added: Mouse-buttons can now be used for PushToTalk keys
  • Added: Players can now cycle to Direct channel via keybinds/radio UI
  • Added: Respawning/exiting vehicles cache prior selected channel
  • Added: "r_ptt" global variable in "dn.sqf" and "up.sqf"
  • Added: _ch variable in "up.sqf" uses channel stored in r_ptt

  • Changed: Radio interface is opened by double-clicking your equipped radio
  • Changed: Radio "in" functions call "r_out2" for better radio state handling
  • Tweaked: Increased volume of all AFAR sounds
  • Tweaked: Explanation on how to view the radio interface in the briefing

  • Possibly Fixed: "out" related functions breaking
  • Possibly Fixed: RPT errors related to "dialogs.hpp" and "defines.hpp" files
  • Fixed: Displays other than 46 & 312 will pause AFAR eventHandlers until it exits
  • Fixed: Converted "r_f" global variable to an object variable, so deleteAt works
  • Fixed: Unnecessary quotation within string in "vOut.sqf"
  • Fixed: Missing semi-colons in "dialogs.hpp"
  • Fixed: Possible memory leaks related to non-private local variables
  • Fixed: Some functions may propagate local variables due to no arguments defined
  • Fixed: _p switch case return was out of scope in "out2.sqf"

  • Optimized: Much less "KeyDown" displayEventHandlers
  • Optimized: EventHandlers are no longer being deleted/recreated
  • Optimized: Channel cycling code has less code chunks per channel
  • Optimized: Replaced apply with forEach in "out.sqf"
  • Optimized: _p variable is now the return of switch case in "out2.sqf"

  • Replaced: DisplayAddEventHandler code with BIS_fnc_addStackedEventHandler
  • Removed: "Diary" keybind no longer opens radio UI
  • Removed: "eh.sqf" script
  • Removed: "Z.sqf" script


    KNOWN BUGS:
    • None. (Please report any with as much details as you can)

Update: Sep 3, 2021 @ 4:35pm

(03.SEP.2021) v0.98
Size: 130 KB

  • Added: Compatibility with the new SOG:PF CDLC radio backpacks
  • Added: Compatibility with the new SOG:PF CDLC radios
    • Can only use your own side's radios (Enemy radios give no benefit)
    • Vietnam-era themed radio for SOG:PF radios
  • Added: Radio range extends to 9600m when in a military vehicle
    • Only while in the Driver seat, any turret, or first cargo seat

  • Tweaked: Reduced VON volume check to 10%, down from 50%
  • Tweaked: SystemChat messages on init are now more obvious

  • Fixed: SOG:PF aircrew slots weren't recognized
  • Fixed: Detection of player's living/breathing status on KeyPress & KeyRelease
  • Fixed: Dead and unable-to-breathe players could transmit squelches
  • Fixed: Detection of radio backpack
  • Fixed: Dropping radio backpack isn't properly detected
  • Fixed: Outdated reference to unused "r_dis" global variable in "up.sqf"

  • Optimized: CUP & SOG:PF RTO backpacks removed from "r_RTOBP" unless detected
  • Optimized: RemoteExec JIP queue
  • Optimized: isAbleToBreathe checks on keypress/release
  • Optimized: Wrapped condition in the "hasRadio.sqf" with parenthesis

  • Removed: N/A


    KNOWN BUGS:
    • Displays other than 46 & 312 will pause AFAR eventHandlers until it exits

Update: Mar 1, 2021 @ 6:47pm

(01.MAR.2021) v0.97
Size: 127 KB

NOTE: Installation instructions slightly changed, no longer need RscTitles.

  • Added: Distance and terrain factors impact radio interference
  • Added: Volume control knob to radio interface
  • Added: "vol.sqf" script to handle local radio volume for players
  • Added: "volu.sqf" script to scale squelch and noise volumes
  • Added: Volume knob handles radio VON, squelches and noise
  • Added: Custom squelch-out noise for receiving players (+4kb)
  • Added: Beep noise when clicking "Mode" button on radio interface
  • Added: Radio interface can now be dragged around screen, position is cached
  • Added: Dropping radio will reset cached radio UI position

  • Changed: Radio range is dictated by radio used, instead of channel
  • Improved: Positioning/scale of radio interface across more screen varieties
  • Merged: Scripted radio screen controls into "dialogs.hpp"
  • Tweaked: Buttons are highlighted first few times you open the radio
  • Tweaked: Squelches are only audible to client who is transmitting
  • Tweaked: Increased long-range radio range from 8000m to 9600m
  • Tweaked: Reduced short-range radio range from 3500m to 3200m
  • Tweaked: Moved spawning of global squelch/noise code to "d.sqf"
  • Tweaked: Opening radio while dead now switches you to Spectator channel
  • Tweaked: '_p' is no longer a private variable in "M_In.sqf"
  • Tweaked: Condensed help text in radio UI

  • Fixed: Check for radio or RTO backpack was broken in "d.sqf"
  • Fixed: Talking in Spectator channel while respawning would soft-break AFAR
  • Fixed: Opening radio when in Global channel would block channel switching
  • Fixed: AFAR init muted Speech volume, which muted sounds like Tactical Ping
  • Fixed: Players without a radio still heard VOIP in channels other than Direct
  • Fixed: Radio no longer on top of "Press 'Esc' key to put away radio" text

  • Optimized: Changed backpack to unitBackpack in multiple scripts
  • Optimized: Squelch-outs no longer checks receiver's incapacitated state
  • Optimized: All controls are committed within a forEach, instead of individually
  • Optimized: Replaced code to check for radio with 'r_rC' function in "out.sqf"

  • Replaced: 3D radio with a 2D image of a AN/PRC-148 Thales radio (+65kb)
  • Replaced: Global squelch-out sound with more realistic end of transmission noise
  • Removed: "Toggle 3D pop-up radio" option from AFAR options menu
  • Removed: RscTitles reference from "Description.ext"
  • Removed: "titles.hpp"
  • Removed: "3DLR.sqf"
  • Removed: r_3DR global variable
  • Removed: Placeholder comments in UI code


    KNOWN BUGS:
    • Displays other than 46 & 312 will pause AFAR eventHandlers until it exits

Update: Feb 6, 2021 @ 5:54pm

No changes, republished due to Steam Workshop page error.

Update: Feb 6, 2021 @ 5:43pm

(06.FEB.2021) v0.96a [HOTFIX]
Size: 52 KB

  • Added: Some initialization debug info to be logged to RPT

  • Tweaked: Changed the radio help icon image and its position

  • Fixed: Custom channels weren't being created
  • Fixed: Headless-client and JIP compatibility checks
  • Fixed: Forced script to waitUntil custom channels are created to avoid errors
  • Fixed: Clicking the radio help icon by mistake would block the knob function
  • Fixed: Typo in Arma Radio Instructions Manual briefing

  • Optimized: Improved getPlayerUID code by merging variable code in "fuzz.sqf"

  • Removed: N/A

    KNOWN BUGS:
    • Displays other than 46 and 312 will pause AFAR eventHandlers until it exits

Update: Oct 30, 2020 @ 12:24am

(30.OCT.2020) v0.96
Size: 52 KB

  • Added: Reintroduced distance factors!
  • Added: Opening radio UI will fix broken eventHandler variables, if detected
  • Added: Player is given an "itemRadio" upon init
  • Added: Icons to screen on radio representing current channel permissions
  • Added: Icon to screen on radio representing signal strength
  • Added: Icon to screen on radio representing battery (Cosmetic)
  • Added: "PT" and "FM" text to bottom of radio screen (Cosmetic)
  • Added: Modified sound effect for cycling channels on radio
  • Added: Upon init, player is notified to raise their VON volume if it's below 50%
  • Added: Speech volume is set to 100% upon init (Unsure if it even does anything)
  • Added: Mouse cursor is moved to center of screen when radio interface is opened
  • Added: Dropping your radio will stop radio noise from playing
  • Added: Briefing includes info about radio ranges

  • Changed: Radio noise no longer changes by distance, time of day, or weather
  • Changed: Repositioned the cycle channels button to the correct knob on radio
  • Changed: Font of radio text to "LCD14", instead of "LucidiaConsoleB"
  • Improved: JIP Compatibility
  • Improved: Arma Radio Instructions Manual fits briefing window slightly better
  • Improved: Admin is muted globally if speaking in Global channel and cant breathe
  • Improved: AFAR initializes much faster now
  • Improved: Clicking buttons/knobs on the radio UI is much more responsive
  • Merged: "fuzz2.sqf" with "fuzz.sqf"
  • Merged: "Next Channel" and "Previous Channel" radio UI buttons into one
  • Merged: r_mCHName and r_mCHShort into one global variable
  • Tweaked: Increased volume of all radio effects
  • Tweaked: Height and width of text in radio UI to fit in the radio screen better
  • Tweaked: Ear icon in the AFAR Information briefing is now smaller to fit better
  • Tweaked: Help text pop-up when opening radio is now aligned to the right
  • Tweaked: Adjusted the order some code is executed in all of the "in" functions

  • Fixed: Old Arma VON bug which would block a specific player from being audible
  • Fixed: "r_f" global variable is reset more reliably on death now
  • Fixed: Side channel did not process PushToTalk functions properly
  • Fixed: Cycling channels via keybinds when chOn is true now works properly
  • Fixed; Functions would break if default setting for r_incap was changed
  • Fixed: Parameters weren't always being passed to "out2.sqf"
  • Fixed: Potential script error in "out2.sqf"
  • Fixed: East faction's RTO channel wasn't using custom variables from "CFG.sqf"
  • Fixed: Custom channel displays correct text in radio UI, instead of "SUPPORT"
  • Fixed: Detection of whether player could or couldn't breathe underwater
  • Fixed: Radio UI and channel switching wasn't fully supported in Zeus
  • Fixed: Handling of r_incap and r_sideCH variables
  • Fixed: "Show Chat" option now toggles chat visibility instead of radio messages
  • Fixed: Arma Radio's Instruction Manual didn't always initialize for JIP
  • Fixed: Exiting a vehicle would switch you to Group channel
  • Fixed: Exploit that allowed players to switch channels while in the Escape menu

  • Optimized: Collection of players in group for 'G_In.sqf' (31% faster)
  • Optimized: Collection of leaders for 'C_In.sqf' (10% faster)
  • Optimized: Check if player is in a vehicle for 'V_In.sqf' (10% faster)
  • Optimized: Removed some extra channel checking code from the next/prev functions
  • Optimized: Removed excess parenthesis in 'fuzz.sqf'
  • Optimized: Removed redundant placeholder variable from "Killed" eventHandler
  • Optimized: Removed redundant font changes in radio interface code
  • Optimized: Replaced apply with forEach (5% faster)
  • Optimized: Replaced code for playing more static during rain with simpler code
  • Optimized: Replaced preprocessFile with loadFile when intializing some scripts
  • Optimized: Replaced !isServer with didJIP in headless client check
  • Optimized: Replaced hasInterface&&isNull player with didJIP

  • Removed: "Next Channel" button from the radio UI
  • Removed: "Previous Channel" button from the radio UI
  • Removed: "Put away radio" button from the radio UI
  • Removed: "fuzz2.sqf"
  • Removed: "snd.sqf"
  • Removed: Rain, overcast, and sun interference factors
  • Removed: All variations of radio noise effects from "SFX.hpp" (Only 1 is used)
  • Removed: All comments from scripts, except from "init.sqf" and "CFG.sqf"

    KNOWN BUGS:
    • Displays other than 46 and 312 will pause AFAR eventHandlers until it exits

Update: Jul 5, 2020 @ 1:32am

(07.JUL.2020) v0.95
Size: 52 KB

  • Added: Allies channel for INDEP to talk directly with Blufor/Opfor, if allied
  • Added: Option to allow players to use radio while incapacitated
  • Added: Mouse button inputs now block PushToTalk keybinds
  • Added: Text advising player to equip a radio, if trying to talk without one

  • Tweaked: "fuzz.sqf" & "fuzz2.sqf" now takes incapacitation into consideration
  • Tweaked: Replaced name with getPlayerUID in fuzz functions and "out.sqf"

  • Fixed: Code didn't block talking in radio channels without a radio equipped
  • Fixed: Radio UI would pop-up from channel switch keys, when r_chOn is enabled
  • Fixed: Issues when multiple players connected with the same name
  • Fixed: Script error upon being killed, due to invalid argument with "r_out2"
  • Fixed: Possible script error due to inconsistent disabling of Spectator channel

  • Optimized: N/A

  • Removed: Text pop-up when pressing channel switch keybinds

KNOWN BUGS:
  • High ping players, server, or desync can cause effect delays

Update: Mar 28, 2020 @ 2:57am

(28.MAR.2020) v0.94b ***[HOTFIX]***
Size: 52 KB

  • Added: Admins will be forced into Direct channel, if they talk in Global channel

  • Changed: Clicking the "Mode" button in the radio UI toggles the options menu
  • Improved: Talking in RTO channel without meeting parameters disables itself
  • Improved: Efficiency of code for all "in" and "out" scripts
  • Improved: Radio options within radio UI are now color-coded
  • Tweaked: CurrentChannel parameter is now passed to "out2.sqf"
  • Tweaked: "_p" is now a private variable
  • Tweaked: "_seat" is now a private variable

  • Fixed: Script error related to storing display 46 as global variable "r_dis"
  • Fixed: Script errors related to script path typos
  • Fixed: Client-side RPT errors related to missing ; and } in UI code
  • Fixed: Script / RPT error from talking on radio while no friendly players on
  • Fixed: Abrupt ending of transmissions should transmit more reliably now
  • Fixed: Side channel was using the RTO channel's permission in some cases
  • Fixed: Talking in the RTO channel while incapacitated would broadcast a squelch
  • Fixed: Clicking "Mode" button on radio interface would duplicate buttons

  • Optimized: Talking in radio channels without players to receive won't alert AI
  • Optimized: Trimmed unnecessary code from "G_in.sqf"
  • Optimized: Replaced toUpper with toUpperANSI in the AFAR "init.sqf"

  • Removed: Removed "r_dis" global variable
  • Removed "V_in.sqf" no longer calls "r_out2"
  • Removed: Redundant isAbleToBreathe check in some "in" scripts
  • Replaced: Redundant "_hasBP" local variable in 'M_in.sqf'

KNOWN BUGS:
  • Mouse button inputs (LMB, MMB, RMB) are not supported

Update: Mar 10, 2020 @ 11:33pm

(11.MAR.2020) v0.94a ***[HOTFIX]***
Size: 53 KB

  • Added: "r_RTOBP" global variable to 'CFG.sqf' (Add backpacks to RTO check)

  • Tweaked: Attempting to open radio UI while it is already opened will close it

  • Fixed: eventHandlers and "r_dn_" wouldn't reset upon respawn
  • Fixed: After respawn, unable to switch radio channels via radio interface
  • Fixed: Radio text showed "true" instead of actual current radio channel
  • Fixed: Talking in Spectator channel would break PushToTalk eventHandlers
  • Fixed: Potential script error related to undefined "r_up_" global variable

  • Optimized: Removed more unnecessary semi-colons

  • Removed: Suspended code from Respawn eventHandler

KNOWN BUGS:
  • Mouse button inputs (LMB, MMB, RMB) are not supported

Update: Mar 7, 2020 @ 8:43pm

(08.MAR.2020) v0.94
Size: 52 KB

  • Added: waitUntil in beginning of code init for JIP compatibility
  • Added: Support for CUP radio backpacks
  • Added: Side channel support (Optional, disabled by default)
  • Added: "r_sideCH" global variable to 'CFG.sqf'
  • Added: "r_mCH" global variable to 'CFG.sqf' (Used for modified "Air Channel")
  • Added: New function 'hasRadio.sqf' which checks player if they have a radio
  • Added: If "r_chOn" = FALSE, using cycle channel keybind will open radio UI
  • Added: Radio interface shows which channel you are currently in
  • Added: Player is given a radio upon connecting, if no radio equipped

  • Improved: AFAR briefing information
  • Changed: Channel switching keybinds are disabled by default
  • Tweaked: Script no longer initializes on headless clients
  • Tweaked: "r_CH" global variable is now a publicVariable
  • Tweaked: "dn.sqf"/"up.sqf" do some basic checks, instead of each channel script
  • Tweaked: "Air Channel" refers to the new "r_mCH" variable, instead of "r_sCH"
  • Tweaked: Arma Radio briefing shows info corresponding with 'CFG.sqf' variables
  • Tweaked: Default "Air Channel" in 'CFG.sqf' is now "Air channel"

  • Fixed: JIP issues related to player and "r_p" variable
  • Fixed: Zeus eventHandlers caused leak, gradually degrading FPS
  • Fixed: Typo in 'S_In.sqf' ("_ap" should now be "_p")
  • Fixed: "_p" variable was undefined in some scopes
  • Fixed: All caps TRUE/FALSE values in 'CFG.sqf' are now lower-case
  • Fixed: Script error related to serialization of "r_dis" variable
  • Fixed: Script error related to improper admin check
  • Fixed: 'out2.sqf' was still referencing the outdated "RTO" unitTrait
  • Fixed: 'noCHS.sqf'
  • Fixed: 'prevCH.sqf' / 'nextCH.sqf' could switch to own channel

  • Optimized: Merged check for "ItemRadio" / radio backpack into a small function
  • Optimized: Method custom radio channels' variables are made into publicVariables
  • Optimized: Removed many unnecessary semi-colons

  • Removed: "r_RTO" global variable (Add radio backpack to unit for RTO capability)
  • Removed: Redundant params["_c"] from 'out2.sqf'
  • Removed: Redundant exitWith code at beginning of 'sOut.sqf'

KNOWN BUGS:
  • Mouse button inputs (LMB, MMB, RMB) are not supported
  • Boolean values set in 'CFG.sqf' may be ignored if not in all lower-case letters