-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rack - API and Usability Improvements #1334
base: master
Are you sure you want to change the base?
Rack - API and Usability Improvements #1334
Conversation
Preserving PTTs when re-entering vehicles works, so does re-using Racks, but the latter doesn't properly handle seat switching yet. |
Managed to fix the vehicle info text overflowing, was caused by |
I thought a bit more about how the rack-reusing feature should work in relation to how seat switching influences Rack usage. My re-use implementation works as follows: In the end, I think that this implementation is ok, with storage per-seat being the best option, avoiding situations in which stopping usage from any seat would remove its stored state from every other seat. |
When merged this pull request will:
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 API manipulation of vehicle racks on dedicated servers (removeRackfromVehicle not functioning as expected) #1312.
acre_api_fnc_removeAllRacksFromVehicle
:It removes all Racks from a Vehicle after handling the preceding initialization (if necessary).
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.
Will close Text goes out of interface #1311.