I have made additional .SII files of truck traffic. I made them so that they will drive at maximum 70 km/h with overweight trailers. They DO NOT replace existing truck traffic definitions in the def folder so that way those trucks can still spawn regular trailers normally. At the moment, I am experimenting with only excavator loads connected to 23 vanilla trucks.
Now here's my issue: I see more truck traffic pulling excavators than any other trailer; I mean, the regular trailers still spawn normally, but the excavator-loaded low bed trailers appear more frequently.
So my question is: How can I balance the spawning probability between regular cargo and excavator cargo in traffic?
To show you guys what I have done, here are my files:
Sample DAF XF105 limited to 70 km/h daf_c_6x4_70.SII #Reminder: NO INTENT to replace daf_c_6x4.SII. Same to occur for 22 other trucks
Code: Select all
traffic_vehicle : traffic.70kph.dafxf_c6x4
{
accessories[]: .70kph.dafxf_c6x4.chassis
accessories[]: .70kph.dafxf_c6x4.fwheel
accessories[]: .70kph.dafxf_c6x4.rwheel
accessories[]: .70kph.dafxf_c6x4.rwheel2
max_speed: 70
attachable_trailer[]: "traffic.trailer.overweight.excavator"
trailer_count[]: 1
sound_move[]: "/sound/ai/ai_renault-magnum.ogg"
engine_torque: 2300
lod_dist[]: 70
# add lod in between
lod_dist[]: 130
lod_dist[]: 200
vehicle_mass: 17000
@include "drivers_generic.sui"
}
vehicle_accessory: .70kph.dafxf_c6x4.chassis
{
data_path: "/def/vehicle/ai/truck/daf.xf/c6x4.sii"
}
vehicle_wheel_accessory: .70kph.dafxf_c6x4.fwheel
{
offset: 0
data_path: "/def/vehicle/f_wheel/steel.sii"
}
vehicle_wheel_accessory: .70kph.dafxf_c6x4.rwheel
{
offset: 0
data_path: "/def/vehicle/r_wheel/steel.sii"
}
vehicle_wheel_accessory: .70kph.dafxf_c6x4.rwheel2
{
offset: 2
data_path: "/def/vehicle/r_wheel/steel.sii"
}
Code: Select all
traffic_trailer : traffic.trailer.overweight.excavator
{
accessories[]: .traffic.overweight.excavator.tchassis
accessories[]: .traffic.overweight.excavator.trwheel0
accessories[]: .traffic.overweight.excavator.trwheel1
accessories[]: .traffic.overweight.excavator.trwheel2
accessories[]: .traffic.overweight.excavator.cargo
cargo_mass: 24720
allowed_tractor[]: "traffic.70kph.dafxf_b4x2"
allowed_tractor[]: "traffic.70kph.dafxf_c6x4"
allowed_tractor[]: "traffic.70kph.daf_e6_a4x2"
allowed_tractor[]: "traffic.70kph.ivecoh_a6x4"
allowed_tractor[]: "traffic.70kph.ivecos_a4x2"
allowed_tractor[]: "traffic.70kph.ivecos_c6x4"
allowed_tractor[]: "traffic.70kph.mantgx_a4x2"
allowed_tractor[]: "traffic.70kph.mantgx_c6x4"
allowed_tractor[]: "traffic.70kph.merc_a4x2"
allowed_tractor[]: "traffic.70kph.merc_a6x4"
allowed_tractor[]: "traffic.70kph.merc_2014.a4x2"
allowed_tractor[]: "traffic.70kph.rmag_c_4x2"
allowed_tractor[]: "traffic.70kph.premium_a4x2"
allowed_tractor[]: "traffic.70kph.premium_b4x2"
allowed_tractor[]: "traffic.70kph.scania_r_a"
allowed_tractor[]: "traffic.70kph.scania_r_b"
allowed_tractor[]: "traffic.70kph.scania_r_c"
allowed_tractor[]: "traffic.70kph.sline_a"
allowed_tractor[]: "traffic.70kph.sline_c"
allowed_tractor[]: "traffic.70kph.vlv09_a4x2"
allowed_tractor[]: "traffic.70kph.vlv09_c6x4"
allowed_tractor[]: "traffic.70kph.vlv12_a4x2"
allowed_tractor[]: "traffic.70kph.vlv12_c6x4"
}
vehicle_accessory: .traffic.overweight.excavator.tchassis
{
data_path: "/def/vehicle/trailer/overweight/chassis1.sii"
}
vehicle_wheel_accessory: .traffic.overweight.excavator.trwheel0
{
offset: 0
data_path: "/def/vehicle/t_wheel/overweight.sii"
}
vehicle_wheel_accessory: .traffic.overweight.excavator.trwheel1
{
offset: 2
data_path: "/def/vehicle/t_wheel/overweight.sii"
}
vehicle_wheel_accessory: .traffic.overweight.excavator.trwheel2
{
offset: 4
data_path: "/def/vehicle/t_wheel/overweight.sii"
}
vehicle_accessory: .traffic.overweight.excavator.cargo
{
data_path: "/def/vehicle/trailer/overweight/excavator.sii"
}