The Driver Syndicate/Vehicles/Vehicle Zones: Difference between revisions

From Equilibrium Engine Wiki
Jump to navigation Jump to search
m (Tiny format edit.)
mNo edit summary
Line 3: Line 3:
Vehicle zones are .def files found within scripts/levels pathing.  
Vehicle zones are .def files found within scripts/levels pathing.  


for default city its GameData/scripts/levels/default_vehiclezones.def
For default city its GameData/scripts/levels/default_vehiclezones.def


for your city it'll be Addons/YourCity/scripts/levels/mycity_vehiclezones.def
For your city it'll be Addons/YourCity/scripts/levels/mycity_vehiclezones.def


To add to them you simply add the name of the car you want, and the name has to match their script name. So if you wanna add arvensis.txt you will add arvensis <number>;  
To add to them you simply add the name of the car you want, and the name has to match their script name. So if you wanna add arvensis.txt you will add arvensis <number>;  
Line 16: Line 16:


To add a vehicle zone to your city you will add your cities name to the beginning of the script file. For example default_vehiclezones.def is for default city, while victoria_vehiclezones.def is for Victoria.
To add a vehicle zone to your city you will add your cities name to the beginning of the script file. For example default_vehiclezones.def is for default city, while victoria_vehiclezones.def is for Victoria.
copcar "cop_regis"; // you list the cop car at the top of the vehicle zone.
default
{
  // name spawnInterval
  rollo 0;
  mustang 0;
  mustang_f 0;
  carla 0;
  torino 0;
  taxi 5;
  ranchero 5;
  k5 8;
  van 15;
  cop_regis 20; // only parked // and you list it within the default zone.
  vette 15;
  //suburban 25;
  //bus 30; // parking not allowed, see config
}

Revision as of 20:09, 31 January 2023

Adding to a vehicle zone

Vehicle zones are .def files found within scripts/levels pathing.

For default city its GameData/scripts/levels/default_vehiclezones.def

For your city it'll be Addons/YourCity/scripts/levels/mycity_vehiclezones.def

To add to them you simply add the name of the car you want, and the name has to match their script name. So if you wanna add arvensis.txt you will add arvensis <number>;

The number determines the rarity of traffic in a level.

0 - the car will appear in traffic very often

100 - the car will be very rare.

To add a vehicle zone to your city you will add your cities name to the beginning of the script file. For example default_vehiclezones.def is for default city, while victoria_vehiclezones.def is for Victoria.

copcar "cop_regis"; // you list the cop car at the top of the vehicle zone. 
default
{
 // name		spawnInterval
  rollo		0;
  mustang		0;
  mustang_f	0;
  carla		0;
  torino		0;
  taxi		5;
  ranchero	5;
  k5		8;
  van		15;
  cop_regis	20;	// only parked // and you list it within the default zone. 
  vette		15;
  //suburban	25;
  //bus		30;	// parking not allowed, see config
}