# RedCarDriver :
Also, if you're up to a challenge: the yellow and red paint colors, among others, only came on the 1998-2000 version of the Skyline R34; I bet you could figure out how to make that work by looking at the R33 scripts. 😉
It is already done (I made it a bit different from the R33)
According to gtr-registry, only the VSpec comes with the yellow and red colors, so I have made this:
Spoiler:
getCar_LocalVersion();
if (the_car.model == MODEL_GTR_VSpec)
{
if ( paint_color_randomizer < 0.011 ) model_paint_color = Lightning_Yellow; //0.011-0.000 = 1.1%, 19 cars
else
if ( paint_color_randomizer < 0.029 ) model_paint_color = Active_Red; //0.029-0.011 = 1.8%, 47 cars
else
if ( paint_color_randomizer < 0.109 ) model_paint_color = Athlete_Silver; //0.109-0.029 = 8.0%, 208 cars
else
if ( paint_color_randomizer < 0.242 ) model_paint_color = Black_Pearl; //0.242-0.109 = 13.3%, 345 cars
else
if ( paint_color_randomizer < 0.401 ) model_paint_color = Sonic_Silver; //0.401-0.242 = 15.9%, 412 cars
else
if ( paint_color_randomizer < 0.636 ) model_paint_color = Bayside_Blue; //0.636-0.401 = 23.5%, 607 cars
else model_paint_color = Pearl_White; //1.000-0.636 = 36.4%, 941 cars | total: 2579 cars
}else
if (the_car.model == MODEL_GTR_VSpecN1 || the_car.model == MODEL_GTR_VSpecIIN1)
{
model_paint_color = Pearl_White; //always white
}else
if (the_car.model == MODEL_GTR_VSpecII)
{
if ( paint_color_randomizer < 0.023 ) model_paint_color = Athlete_Silver; //0.023-0.000 = 2.3%, 44 cars
else
if ( paint_color_randomizer < 0.129 ) model_paint_color = Black_Pearl; //0.129-0.023 = 10.6%, 198 cars
else
if ( paint_color_randomizer < 0.316 ) model_paint_color = Sparkling_Silver; //0.316-0.129 = 18.7%, 348 cars
else
if ( paint_color_randomizer < 0.641 ) model_paint_color = Bayside_Blue; //0.641-0.316 = 32.5%, 604 cars
else model_paint_color = Pearl_White; //1.000-0.641 = 35.9%, 661 cars | total: 1855 cars
}
Maybe it is not the best way but since every version will have it own chassis script, it should works fine.