0x1F9F1 / Open1560

A mod for Midtown Madness 1, primarily focused on supporting modern computers and fixing bugs.
https://0x1F9F1.github.io/Open1560
GNU General Public License v3.0
110 stars 8 forks source link

Customize Opponent Color Count #148

Closed KcRobin9 closed 1 month ago

KcRobin9 commented 4 months ago

With this tweak, users will be able to set how many opponent car colors will be cycled through.

If there are 20 opponents, and 10 available car colors, and the user sets colorcount -10, it means that every color will be used twice.

0x1F9F1 commented 3 months ago

Can the color count be retrieved from the vehicle info? Something like

mmVehInfo* veh_info = VehList()->GetVehicleInfo(opp->Model);
i32 paint_job = opp_id % string(veh_info->Colors).NumSubStrings();
KcRobin9 commented 3 months ago

That's a great idea.

I implemented it in a way such that the color count is retrieved from the vehicle info by default, and users are still able to set a custom color count if they add the cmd line.