AVS installed and working for vehicles using ammo listed in default config, but having issues trying to add A164.
Is this some trick other than just adding its ammo classes?
This is what i have now.
// Costs of individual magazines.
AVS_RearmCosts =
[
// ["MagazineClassName", cost]
["Laserbatteries", 0], // Laser Designator Batteries
["SmokeLauncherMag", 20], // Smoke CM magazine
["200Rnd_127x99_mag_Tracer_Yellow", 400], // Strider HMG gun
["200Rnd_127x99_mag_Tracer_Red", 400], // Hunter HMG gun
["168Rnd_CMFlare_Chaff_Magazine", 20], // Helicopter/Y-32 flares
["2000Rnd_65x39_Belt_Tracer_Red", 4000], // Ghosthawk & Huron guns
["100Rnd_127x99_mag_Tracer_Yellow", 200], // Armed Offroad magazine.
["5000Rnd_762x51_Belt", 6000], // Pawnee belt
["5000Rnd_762x51_Yellow_Belt", 6000], // Hellcat belt
["2000Rnd_65x39_Belt_Tracer_Green_Splash", 4000], // Orca belt
["200Rnd_762x51_Belt_Green", 500], // BRDM2_HQ
["50Rnd_127x107_DSHKM_M", 350], // BTR40_MG
["2000Rnd_762x51_Belt", 2400], // HMMWV_M134
["500Rnd_65x39_Belt_Tracer_Green_Splash", 1000], // Qilin belt
["100Rnd_127x99_mag_Tracer_Red", 200], // Prowler HMG mag
["130Rnd_338_Mag", 260], // Prowler MMG mag
["240Rnd_CMFlare_Chaff_Magazine", 29], // Blackfish flares
["240Rnd_40mm_GPR_Tracer_Red_shells", 430], // Blackfish autocannon
["160Rnd_40mm_APFSDS_Tracer_Red_shells", 290], // Blackfish autocannon
["100Rnd_105mm_HEAT_MP", 480], // Blackfish cannon 105mm
["4000Rnd_20mm_Tracer_Red_shells", 4800], // Blackfish gatling 20mm
["250Rnd_30mm_HE_shells_Tracer_Green", 860], // Y-32 gatling 30mm
//added by me for A164
["1000Rnd_Gatling_30mm_Plane_CAS_01_F",0],
["120Rnd_CMFlare_Chaff_Magazine",120],
["PylonRack_1Rnd_Missile_AA_04_F",2],
["PylonRack_7Rnd_Rocket_04_HE_F",7],
["PylonRack_3Rnd_Missile_AGM_02_F",6],
["PylonMissile_1Rnd_BombCluster_01_F",4],
["PylonRack_7Rnd_Rocket_04_AP_F",7]
];
did some more testing.
I reduced the added ammo to this
//added by me for A164
["1000Rnd_Gatling_30mm_Plane_CAS_01_F",1000],
["120Rnd_CMFlare_Chaff_Magazine",1200]
It seems to only trigger a rearm after all ammo is used, that includes the missiles etc also.
but it then rearms all weapons not just those listed.