I kind of remembered Lucas's old Simpsons Hit & Run Tweak had that feature of letting you choose what cars will appear in the traffic of a single level. Normally for example. Level 1 has the Mini School Bus, glastruc, Minivan and Pickup by default, but there was one video on YouTube I saw which had an Ambulance and a Fire Truck set as Level 1's traffic, while the player was driving a Cell Phone Car D. Is there a way to do this on the up-to-date Mod Launcher or something?
This is the video containing it, in the first part.
How do I change traffic vehicles?
Posted in The Simpsons: Hit & Run
Please login to contribute to the conversation.
30978 I kind of remembered Lucas's old Simpsons Hit & Run Tweak had that feature of letting you choose what cars will appear in the traffic of a single level. Normally for example. Level 1 has the
snipergaming To change traffic all you need to do is go to scripts missions level 1 you can see the level and leveli mine was the suv sedanB icecream taxi
To change traffic all you need to do is go to scripts missions level 1 you can see the level and leveli mine was the suv sedanB icecream taxi
snipergaming level means load some of traffic is being loaded from arts cars leveli means adding adding some stuff for the entire game like adding chase car cPolice and the con file
level means load some of traffic is being loaded from arts cars leveli means adding adding some stuff for the entire game like adding chase car cPolice and the con file
mazzy Hi, so changing traffic is not that hard. Let's say you'd like to change the traffic for the first level;
For that, you'll need to go inside scripts/missions/level01.
There, you will lo
Hi, so changing traffic is not that hard. Let's say you'd like to change the traffic for the first level;
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).
Hope this helps!
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 huskAIf 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 ActionsNow, 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
This post has been removed.