ampersand38 / ride-where-you-look

Select vehicle seat in Arma 3
Other
3 stars 2 forks source link

Some vehicles don't switch you to the seat you look at. #9

Closed ampersand38 closed 1 year ago

ampersand38 commented 3 years ago

Some vehicles (esp big helicopters) have mis-ordered cargo proxy indexes, for example UK3CB_BAF_Merlin_HC4_18_GPMG

config  cargoProxyIndexes[] = {1,2,3,8,9 ,10,11,12,15,16,17,18,19,20,23,24};
moveInCargo cargo index        0,1,2,3,4 ,5 ,6 ,7 ,8 ,9 ,10,11,12,13,14,15
correct cargoProxyIndexes[] = {1,2,3,8,24,23,20,19,9 ,10,11,12,18,17,16,15};

The config cargoProxyIndexes[] contains the correct seat proxies, but in an order that does not match the order for moveInCargo. player moveInCargo [_heli, 4] actually moves you to seat proxy 24, not 9.

https://github.com/ampersand38/ride-where-you-look/issues/3#issuecomment-759588934

Solution could be yet another quasi-config entry to specify a cargoProxyIndexes array to use, or to ask the mod makers to update the config entry.

ampersand38 commented 3 years ago

https://github.com/ampersand38/ride-where-you-look/commit/9f3ca797f0ff05aa62f88f2177a25409c3b44aab

ampersand38 commented 3 years ago

Vanilla vehicles like HEMTT and Typhoon also have this issue, where the FFV seats are left out of the config cargoProxyIndexes, so I'll be using RWYL_cargoProxyIndexes to store the indexes that work.

Please report any inconsistencies of this type here.