Radio - Replace inventory PFH with CBA loadout handler#1015
Radio - Replace inventory PFH with CBA loadout handler#1015Freddo3000 wants to merge 19 commits intoIDI-Systems:masterfrom
Conversation
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
|
maybe make a note in |
a5283b0 to
7f1b494
Compare
|
Does this interfere with Basic Mission Setup module? This particular functionality of it is broken atm (ref. #574), but we should still think about it. |
|
So one of the complexities of moving away from PFH is This exists because when right clicking radios on the ground (also crate/other person's inventory etc) they would typically take the assigned item slot. This is less of an issue now that radios inherit from a misc item so they can't go there except So a test case for this is ensuring |
Changed API function to wrapper for sys_core
jonpas
left a comment
There was a problem hiding this comment.
How does this work in combination with Basic Setup module? I think default radios in the module are kind of broken currently anyways.
Co-authored-by: jonpas <jonpas33@gmail.com>
This question remains and should be looked at. It kind of partly replaces that part of the module as far as I understand. @Sniperhid can you look at recent changes regarding replacement of PFH with EH? |
Haven't tried it in game yet
|
Just as a heads up I haven't tested the last few commits in game |
|
|
||
| ["ace_arsenal_displayClosed", { | ||
| EGVAR(sys_core,arsenalOpen) = false; | ||
| [] call DFUNC(monitorRadiosHandler); |
There was a problem hiding this comment.
Leaving a note here: We have to think about API for this, copy-pasting those lines is far from ideal.
|
Will probably take a look at finishing this for 2.10.0. |
|
This is almost done, but I don't want to risk it release in v2.11.0, will be part of dev-build after though. |
Split that off into #1283 so we can merge the important part and leave below for further testing.
As noted in a comment above, problem is we are potentially not catching all cases of radio replacement with the handler. If we need a special call to handle it for Arsenal, then who knows how many 3rd party systems would need to do the same - that's not reliable. System needs to catch it all without a new API requiring this. PFH as it is shouldn't be expensive in most cases anyways. |
When merged this pull request will:
Add setting for setting the replacement radioRadio - Add radio item replacement CBA Setting #1283Add option for simply removing the radio instead without replacementRadio - Add radio item replacement CBA Setting #1283Tested in vanilla arsenal