Skip Old Town
pathfinding penalties for buses and taxi (optional)
#1618
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
After Dark DLC required
Optional pathfinding penalty skip for buses and taxi for segments in area with Old Town policy enabled.
This enhancement could be more accurate and eliminate cases where vehicles would use Old Town districts as a shortcut but determining district ID based only on segment is quite costly so I abandoned the idea. Still, better than nothing, might be improved later when we collect some more feedback how it actually works outside of simple testing scenarios.
This enhancement is pretty easy to test. Vanilla applies ~7x cost penalty so the key is to add bus stops outside of the district but making the road layout provoking vehicles to use Old Town as shortcut (they won't if not allowed).
Worth noting is the fact that bus line overlay may show incorrect path with the feature disabled where vehicle will go through Old Town but they actually won't follow restricted part of the path, unless you put bus stop in the district which obviously force them to enter it (less likely to overflow path penalty score on short paths between stops), so enhancement settings in that particular case won't make any difference.
Settings stored in
GlobalConfig
, bothdisabled
by default (vanilla)Closes #371 , closes #361
Test build zip