acre2
acre2 copied to clipboard
Rack - API and Usability Improvements
When merged this pull request will:
- Fix object variable
acre_sys_rack_initialized
not being a reliable indicator for whether the Racks are fully initialized and added to the vehicle. This seems to have been the main cause behind past Rack-API jankiness.
Will close #1312. - Add API function
acre_api_fnc_removeAllRacksFromVehicle
:
It removes all Racks from a Vehicle after handling the preceding initialization (if necessary). - Add API function
acre_api_fnc_replaceRacksOnVehicle
:
It replaces all Config-defined Racks on a vehicle of a specific type with a given other type, while preserving other config properties like Name/Shortname, allowed/denied positions and Wired Intercom.
Use case: for an old-school scenario, put just this function into your APC/Helicopters' Init fields in 3DEN to replace all of its default VRC-103 Racks with VRC-64s. Eliminates the need to initialize, delete all Racks and add new VRC-64s with a custom script. - Add documentation for new API functions.
- Improve German and Italian translations of short "Dash", to reduce overflow in the rack/intercom info dialog.
- Fix text wrapping of the rack/intercom info dialog in order to prevent content overflows.
Will close #1311. - Improve handling of a player's connection to Racks when exiting and re-entering a vehicle:
- Don't reset the custom PTT order of Rack Radios;
- Automatically Re-"Use" Racks;
- Fix Rack-mounted AN/PRC-77 interaction showing "Channel: 1" instead of frequency in MHz.