Author Message

amilmand

00
Posts: 259

Location: ---
Occupation:
Age:
V$:
#139512   2018-03-27 14:39          
Hi Orange2000

You would need to edit the Chassis.java
Here is a version that will make the cars miss only non-engine parts:
LINK
And one that can spawn cars with engine parts missing (this can cause a challenge because it is possible that the car will be missing some crucial part of the engine (and only some parts not the whole engine) that you will have to rack down in the catalogue (or just sell the engine)):
LINK

I edited the loop starting at line 697 I added this code to line 785 before the addPart call:
if(random() > desc.tear && parts_list != parts_list_E)
   continue;

I also edited the CarMarket.java to make sure the tear of every stock car is 1.0 so they wont be missing parts even if the VT definition is erroneous.
At line 100:
if(cars[i] != null && vt == VehicleType.VS_STOCK)
{
    cars[i].tear = 1.0;
}