For that, you'll need to go inside scripts/missions/level01.
There, you will look for the two level files, level.mfk and leveli.mfk. You can edit them with any text editor (eg. Notepad).
Loading the car models
First thing you will want to do, is change which cars are being loaded. To do that, you open level.mfk and scroll down until you see // Traffic vehicle models.
There will be each car that is being loaded.
Let's say you want to change the pickup truck with the level 7 hearse. To do that, you will change LoadP3DFile( "art\cars\pickupA.p3d" ); to LoadP3DFile( "art\cars\hallo.p3d" );
Your code should look like this:
If you want to add an additional traffic model, you simply add the following line below the rest:
LoadP3DFile( "art\cars\X.p3d" );
X is the filename of your vehicle.
There will be each car that is being loaded.
// Traffic vehicle models // LoadP3DFile( "art\cars\huskA.p3d" ); LoadP3DFile( "art\cars\pickupA.p3d" ); LoadP3DFile( "art\cars\glastruc.p3d" ); LoadP3DFile( "art\cars\schoolbu.p3d" ); // sedanA LoadP3DFile( "art\cars\minivanA.p3d" );The loading function (LoadP3DFile) is loading the pure3d model into your game.
Let's say you want to change the pickup truck with the level 7 hearse. To do that, you will change LoadP3DFile( "art\cars\pickupA.p3d" ); to LoadP3DFile( "art\cars\hallo.p3d" );
Your code should look like this:
// Traffic vehicle models // LoadP3DFile( "art\cars\huskA.p3d" ); LoadP3DFile( "art\cars\hallo.p3d" ); LoadP3DFile( "art\cars\glastruc.p3d" ); LoadP3DFile( "art\cars\schoolbu.p3d" ); // sedanA LoadP3DFile( "art\cars\minivanA.p3d" );DO NOT REMOVE huskA
If you want to add an additional traffic model, you simply add the following line below the rest:
LoadP3DFile( "art\cars\X.p3d" );
X is the filename of your vehicle.
Creating Traffic groups & Adding traffic models
Now that you have the models loaded, you will want to make them appear on the traffic.
The game can handle by default, 5 different traffic car models spawned at once. (you can adjust that with the Custom Traffic Support hack.
You will open leveli.mfk and scroll down until you see the following code:
Now, you're ready to save the file and check it out in-game.
The game can handle by default, 5 different traffic car models spawned at once. (you can adjust that with the Custom Traffic Support hack.
You will open leveli.mfk and scroll down until you see the following code:
//ADDING TRAFFIC GROUP FOR LEVEL 01// // CreateTrafficGroup( 0 ); AddTrafficModel( "minivanA",2 ); AddTrafficModel( "glastruc",1,1 ); AddTrafficModel( "schoolbu",1,1 ); AddTrafficModel( "pickupA",1 ); CloseTrafficGroup( ); //You no longer have the model "pickupA" loaded, so you will change that to "hallo", like so
//ADDING TRAFFIC GROUP FOR LEVEL 01// // CreateTrafficGroup( 0 ); AddTrafficModel( "minivanA",2 ); AddTrafficModel( "glastruc",1,1 ); AddTrafficModel( "schoolbu",1,1 ); AddTrafficModel( "hallo",1 ); CloseTrafficGroup( ); //You can have multiple traffic groups, but that also needs a hack in order to be configured, which is Custom Trigger Actions
Now, you're ready to save the file and check it out in-game.
List of traffic vehicles
Now, I know the traffic vehicles might seem a little confusing by their name, but I made a list of them to make it easier for you:
Should always be present
Should always be present
- huskA - Charred Husk / Exploded vehicle, you'll always need this so the game can load it when a car explodes.
- minivanA - Minivan A
- glastruc - Krusty Glass Truck
- schoolbu - Mini School Bus
- pickupA - Pickup A
- taxiA - Taxi A
- sedanB - Sedan B
- sportsA - Sports Car A
- pizza - Pizza Truck / Van
- compactA - Compact A
- fishtruc - Fish Truck / Van
- SUVA - SUV A
- garbage - Garbage Truck
- nuctruck - Nuclear Waste Truck
- sportsB - Sports Car B
- ambul - Ambulance
- votetruc - "Vote Quimby" Truck
- burnsarm - Burns Armored Truck
- IStruck - Itchy And Scratchy Truck
- coffin - Coffin
- hallo - Hallo Hearse
- ship - Ghost Ship
- witchcar - Witch Broom
- sedanA - Sedan A
- wagonA - Wagon A
- icecream - Icecream Truck