@@ -31,7 +31,7 @@ public class Options : MonoBehaviour {
31
31
private static UICheckBox showCompatibilityCheckErrorToggle = null ;
32
32
private static UICheckBox scanForKnownIncompatibleModsToggle = null ;
33
33
private static UICheckBox ignoreDisabledModsToggle = null ;
34
- private static UICheckBox realisticSpeedsToggle = null ;
34
+ private static UICheckBox individualDrivingStyleToggle = null ;
35
35
private static UIDropDown recklessDriversDropdown = null ;
36
36
private static UICheckBox relaxedBussesToggle = null ;
37
37
private static UICheckBox allRelaxedToggle = null ;
@@ -95,7 +95,7 @@ public class Options : MonoBehaviour {
95
95
public static bool instantEffects = true ;
96
96
public static int simAccuracy = 0 ;
97
97
//public static int laneChangingRandomization = 2;
98
- public static bool realisticSpeeds = true ;
98
+ public static bool individualDrivingStyle = true ;
99
99
public static int recklessDrivers = 3 ;
100
100
public static bool relaxedBusses = false ;
101
101
public static bool allRelaxed = false ;
@@ -259,7 +259,8 @@ public static void makeSettings(UIHelperBase helper) {
259
259
260
260
recklessDriversDropdown = vehBehaviorGroup . AddDropdown ( Translation . GetString ( "Reckless_driving" ) + ":" , new string [ ] { Translation . GetString ( "Path_Of_Evil_(10_%)" ) , Translation . GetString ( "Rush_Hour_(5_%)" ) , Translation . GetString ( "Minor_Complaints_(2_%)" ) , Translation . GetString ( "Holy_City_(0_%)" ) } , recklessDrivers , onRecklessDriversChanged ) as UIDropDown ;
261
261
recklessDriversDropdown . width = 300 ;
262
- realisticSpeedsToggle = vehBehaviorGroup . AddCheckbox ( Translation . GetString ( "Realistic_speeds" ) , realisticSpeeds , onRealisticSpeedsChanged ) as UICheckBox ;
262
+ individualDrivingStyleToggle = vehBehaviorGroup . AddCheckbox ( Translation . GetString ( "Individual_driving_styles" ) , individualDrivingStyle , onIndividualDrivingStyleChanged ) as UICheckBox ;
263
+
263
264
if ( SteamHelper . IsDLCOwned ( SteamHelper . DLC . SnowFallDLC ) ) {
264
265
strongerRoadConditionEffectsToggle = vehBehaviorGroup . AddCheckbox ( Translation . GetString ( "Road_condition_has_a_bigger_impact_on_vehicle_speed" ) , strongerRoadConditionEffects , onStrongerRoadConditionEffectsChanged ) as UICheckBox ;
265
266
}
@@ -1005,12 +1006,12 @@ private static void onRealisticPublicTransportChanged(bool newValue) {
1005
1006
realisticPublicTransport = newValue ;
1006
1007
}
1007
1008
1008
- private static void onRealisticSpeedsChanged ( bool value ) {
1009
+ private static void onIndividualDrivingStyleChanged ( bool value ) {
1009
1010
if ( ! checkGameLoaded ( ) )
1010
1011
return ;
1011
1012
1012
- Log . _Debug ( $ "realisticSpeeds changed to { value } ") ;
1013
- realisticSpeeds = value ;
1013
+ Log . _Debug ( $ "individualDrivingStyle changed to { value } ") ;
1014
+ setIndividualDrivingStyle ( value ) ;
1014
1015
}
1015
1016
1016
1017
private static void onDisableDespawningChanged ( bool value ) {
@@ -1277,10 +1278,12 @@ public static void setRealisticPublicTransport(bool newValue) {
1277
1278
realisticPublicTransportToggle . isChecked = newValue ;
1278
1279
}
1279
1280
1280
- public static void setRealisticSpeeds ( bool newValue ) {
1281
- realisticSpeeds = newValue ;
1282
- if ( realisticSpeedsToggle != null )
1283
- realisticSpeedsToggle . isChecked = newValue ;
1281
+ public static void setIndividualDrivingStyle ( bool newValue ) {
1282
+ individualDrivingStyle = newValue ;
1283
+
1284
+ if ( individualDrivingStyleToggle != null ) {
1285
+ individualDrivingStyleToggle . isChecked = newValue ;
1286
+ }
1284
1287
}
1285
1288
1286
1289
public static void setDisableDespawning ( bool value ) {
@@ -1556,5 +1559,13 @@ internal static int getRecklessDriverModulo() {
1556
1559
}
1557
1560
return 10000 ;
1558
1561
}
1562
+
1563
+ /// <summary>
1564
+ /// Determines whether Dynamic Lane Selection (DLS) is enabled.
1565
+ /// </summary>
1566
+ /// <returns></returns>
1567
+ public static bool IsDynamicLaneSelectionActive ( ) {
1568
+ return advancedAI && altLaneSelectionRatio > 0 ;
1569
+ }
1559
1570
}
1560
1571
}
0 commit comments