Closed rlex closed 9 years ago
@rlex I was going to merge this one today as well but the patch with the updated formatting needs to be applied. :smile:
Doesn't have a lot of time to rebase it, but i'll do this. Question here: We can add vehicles from most used mods (RHS). I wrote simple check for if exists CfgVehicle, so it blocks request and warns player if mod is not installed. Already included in my DUWS Modified fork, waiting for feedback... So, should i include them as well?
If I understand correctly the warning blocks the thread until the user provides feedback. I assume that's clicking an "OK" button or something. If that is true I'd say don't add that in. It would give users without the mods a worse experience than they have now.
If that's not the case feel free to add it to the PR and I'll review it once again.
No, warning shows "mod X is not installed" and blocks CP deduction from CP pool. It does not affect gameplay at all, and RHS seems to be most popular addon for A3.
Here: https://github.com/rlex/a3-duws-unofficial in vehicle_request.sqf
Okay. I think I understand now. I think it's a bad experience to show the player an option in a menu that they cannot use because they do not have a mod installed. I can see two options here...
1.) Don't add the RHS stuff to this PR and add it in a future PR. (Also, just apply that patch linked above so the formatting is "nice"
2.) Add the RHS vehicle code but include the check using CfgVehicle
in both places; The spot where the vehicles are added to the purchase list and the spot in the purchase logic that blocks the purchase.
I thought about hiding units from request menu, but this will completely break request array. So i think i'll maintain my "modded" version and just PR clean list without modded vehicles.
Closing this PR as I have created a new one with the requested patch above already applied. The new PR is located at https://github.com/DUWS-R-Team/DUWS-R/pull/102
Issues
Fixes #73
Summary
Add more vehicles into vehicle requests menu, including Heli DLC ones.