Salut,
Depuis tanto, j'essaye d'ajouter le vehicule "hayon" pour les rangs 2 ou plus, et le vehicule hayon sport pour les + de rangs 3..
Voici comment je procède:
Modification du fn_vehicleColorCfg :
case "C_Hatchback_01_F":
{
_ret =
[
["\a3\soft_f_gamma\Hatchback_01\data\hatchback_01_ext_base01_co.paa","civ"],
["\a3\soft_f_gamma\Hatchback_01\data\hatchback_01_ext_base02_co.paa","civ"],
["\a3\soft_f_gamma\Hatchback_01\data\hatchback_01_ext_base03_co.paa","civ"],
["\a3\soft_f_gamma\Hatchback_01\data\hatchback_01_ext_base04_co.paa","civ"],
["\a3\soft_f_gamma\Hatchback_01\data\hatchback_01_ext_base06_co.paa","civ"],
["\a3\soft_f_gamma\Hatchback_01\data\hatchback_01_ext_base07_co.paa","civ"],
["\a3\soft_f_gamma\Hatchback_01\data\hatchback_01_ext_base08_co.paa","civ"],
["\a3\soft_f_gamma\Hatchback_01\data\hatchback_01_ext_base09_co.paa","civ"],
["textures\ayon_police.jpg","cop"] //ajout de cette ligne
];
};
Modification du fn_vehicleListCfg :
case "cop_car":
{
_return set[count _return,
["C_Offroad_01_F",5000]];
if(__GETC__(life_coplevel) > 1) then // j'ai ajouter ça
{
_return set[count _return,
["C_Hatchback_01_F",20000]];
}; // jusqu'ici
if(__GETC__(life_coplevel) > 2) then
{
_return set[count _return,
["C_SUV_01_F",20000]];
};
if(__GETC__(life_coplevel) > 4) then
{
_return set[count _return,
["B_MRAP_01_F",30000]];
};
};
Modification fn_vehicleColorStr :
case "C_Hatchback_01_F":
{
switch (_index) do
{
case 0: {_color = "Beige";};
case 1: {_color = "Vert";};
case 2: {_color = "Bleu";};
case 3: {_color = "Bleu Fonce";};
case 4: {_color = "Jaune";};
case 5: {_color = "Blanc"};
case 6: {_color = "Gris"};
case 7: {_color = "Noir"};
case 8: {_color = "Police"}; //ajout de cette ligne
};
};
Je ne trouve pas mon erreur... le véhicule shop bug complétement.
A t'il un autres fichier a modifier?
Merci d'avance pour votre aide :-)