24
edits
Changes
→Traffic changes
== Traffic changes ==
=== Traffic trailer Trailer chains ===
Supported trailers are now defined at one place: ''in '''traffic_vehicle''' by defining the whole trailer chain'' (previously it was combination of per vehicle/trailer type + per vehicle/trailer)
'''trailer_chain[]: traffic_trailer.first | traffic_trailer.middle 2-4 | traffic_trailer.last''' - trailer chain with specific elements, 'traffic_trailer.middle' can occur 2-4 times.
=== Traffic spawn Spawn density rules ===
Trailer chain support has been added also to ''spawn density'' traffic rules (''traffic_rules_spawn.sui''). All items beyond the first one in the '''str_params''' attribute are now interpreted as allowed trailer chains. This can be useful for specifying areas in map where custom trailers (custom cargo) are spawned.
</pre>
=== Parked vehicles/trailer trailers ===
Parked vehicle/trailer attribute '''allowed_trailer''' is now also interpreted as a trailer chain definition.
{{Note|Attribute '''allowed_trailer_count''' is now obsolete, since the trailer count is determined from trailer chain automatically.}}
=== Trailer type and storage renaming ===
Some trailer types and corresponding storages have been renamed by using a more universal ''special'' suffix to better match their usage. They contain trailers which are always selected explicitly, never randomly across the whole storage:
* ''traffic_storage_train_car_pass.sii'' -> ''traffic_storage_train_car_special.sii''
* ''traffic_storage_trailer_parked.sii'' -> ''traffic_storage_trailer_special.sii''
== Dynamic lods ==