|
10 | 10 | float heatLevel, gameSpeed, FallingRainSize, RainAmount, RoadReflection, RainIntensity, RainXing, RainFallSpeed, RainGravity, SplashScreenTimeLimit, CarSelectTireSteerAngle, MaxHeatLevel, MinHeatLevel, WorldAnimationSpeed, CarScale, VTRed, VTBlue, VTGreen, VTBlackBloom, VTColorBloom, VTSaturation, DebugCameraTurboSpeed, DebugCameraSuperTurboSpeed, SBRechargeTime, SBRechargeSpeedLimit, SBMassMultiplier, SpeedingLimit, ExcessiveSpeedingLimit, RecklessDrivingLimit; |
11 | 11 | int hotkeyToggleForceHeat, hotkeyForceHeatLevel, hotkeyToggleCopLights, hotkeyToggleHeadlights, hotkeyCarHack, hotkeyUnlockAllThings, hotkeyAutoDrive, randomizeCount, hotkeyToggleCops, hotkeyFreezeCamera, NosTrailRepeatCount, UG2SaveMoney; |
12 | 12 | unsigned char raceType, raceMode, minLaps, maxLaps, minOpponents, maxOpponents, maxLapsRandomQR, maxOpponentsRandomQR, maxBlacklist, csBlacklist, headlightsMode, lowTraffic, medTraffic, highTraffic, ShowHiddenTracks, MaxUniqueOpponentCars, ShowAllCarsInFE, WindowedMode, SelectableMarkerCount, PurchasedCarLimit; |
13 | | -bool copLightsEnabled, HideOnline, ShowOnlineOpts, removeSceneryGroupDoor, removePlayerBarriers, unfreezeKO, EnablePresetAndDebugCars, AlwaysRain, SkipMovies, EnableSound, EnableMusic, EnableCameras, ExOptsTeamTakeOver, ShowSubs, EnableHeatLevelOverride, CarbonStyleRaceProgress, moreVinyls, eatSomeBurgers, UnlockAllThings, GarageRotate, GarageZoom, GarageShowcase, EnableSaveLoadHotPos, EnableMaxPerfOnShop, EnableVTOverride, EnableDebugWorldCamera, DebugWorldCamera, DebugWatchCarCamera, ForceBlackEdition, HelicopterFix, X10Fix, WheelFix, ExperimentalSplitScreenFix, ShowDebugCarCustomize, CarbonStyleBustedScreen, ShowMessage, ReplayBlacklistRaces, PursuitActionMode, MoreCarsForOpponents, VisualFixesAndTweaks, UncensoredBustedScreen, ShowPursuitCops, ShowNonPursuitCops, ShowDebugEventID, CarbonStyleRandomCars, SkipCareerIntro, ShowTimeOfDay, BetterRandomRaces, AllowMultipleInstances, TimeBugFix, NoCatchUp, CarSkinFix, ImmobileColFix, NFSU2StyleLookBackCamera, NoRevLimiter, SkipNISs, ExpandMemoryPools, ShowPresetCarsInFE, AllowLongerProfileNames, DDayFix; |
| 13 | +bool copLightsEnabled, HideOnline, ShowOnlineOpts, removeSceneryGroupDoor, removePlayerBarriers, unfreezeKO, EnablePresetAndDebugCars, AlwaysRain, SkipMovies, EnableSound, EnableMusic, EnableCameras, ExOptsTeamTakeOver, ShowSubs, EnableHeatLevelOverride, CarbonStyleRaceProgress, moreVinyls, eatSomeBurgers, UnlockAllThings, GarageRotate, GarageZoom, GarageShowcase, EnableSaveLoadHotPos, EnableMaxPerfOnShop, EnableVTOverride, EnableDebugWorldCamera, DebugWorldCamera, DebugWatchCarCamera, ForceBlackEdition, HelicopterFix, X10Fix, WheelFix, ExperimentalSplitScreenFix, ShowDebugCarCustomize, CarbonStyleBustedScreen, ShowMessage, ReplayBlacklistRaces, PursuitActionMode, MoreCarsForOpponents, VisualFixesAndTweaks, UncensoredBustedScreen, ShowPursuitCops, ShowNonPursuitCops, ShowDebugEventID, CarbonStyleRandomCars, SkipCareerIntro, ShowTimeOfDay, BetterRandomRaces, AllowMultipleInstances, TimeBugFix, NoCatchUp, CarSkinFix, ImmobileColFix, NFSU2StyleLookBackCamera, NoRevLimiter, SkipNISs, ExpandMemoryPools, ShowPresetCarsInFE, AllowLongerProfileNames, DDayFix, BustedNISFix; |
14 | 14 | DWORD selectedCar, careerCar, raceOptions, Strings, HeatLevelAddr, VTecx, StartingCashDWORD, GameState, ThreadDelay; |
15 | 15 | HWND windowHandle; |
16 | 16 |
|
@@ -785,6 +785,7 @@ void Init() |
785 | 785 | CarSkinFix = iniReader.ReadInteger("Fixes", "CarSkinFix", 0) == 1; |
786 | 786 | ImmobileColFix = iniReader.ReadInteger("Fixes", "ImmobileCollisionsFix", 0) == 1; |
787 | 787 | DDayFix = iniReader.ReadInteger("Fixes", "DDayFix", 1) == 1; |
| 788 | + BustedNISFix = iniReader.ReadInteger("Fixes", "BustedNISFix", 1) == 1; |
788 | 789 |
|
789 | 790 | // Misc |
790 | 791 | WindowedMode = iniReader.ReadInteger("Misc", "WindowedMode", 0); |
@@ -1252,6 +1253,18 @@ void Init() |
1252 | 1253 | injector::MakeRangedNOP(0x419019, X10FixCodeCave2Exit, true); |
1253 | 1254 | injector::MakeJMP(0x419019, X10FixCodeCave2, true); |
1254 | 1255 | } |
| 1256 | + |
| 1257 | + // Enable unused Busted NISs |
| 1258 | + if (BustedNISFix) |
| 1259 | + { |
| 1260 | + // ChooseArrestAnimation |
| 1261 | + injector::MakeJMP(0x44D8AE, 0x44D968, true); // Heat level 2 |
| 1262 | + injector::MakeJMP(0x44D8C9, 0x44D968, true); // Heat level 3 - ArrestM07 |
| 1263 | + injector::MakeJMP(0x44D8DA, 0x44D968, true); // Heat level 3 - ArrestM14 |
| 1264 | + injector::MakeJMP(0x44D8F3, 0x44D968, true); // Heat level 3 - ArrestM07b |
| 1265 | + injector::MakeJMP(0x44D904, 0x44D968, true); // Heat level 3 - ArrestM14b |
| 1266 | + injector::MakeJMP(0x44D915, 0x44D968, true); // Heat level 3 - ArrestF14/b |
| 1267 | + } |
1255 | 1268 |
|
1256 | 1269 | // Load Any Save Game |
1257 | 1270 | // injector::WriteMemory<unsigned char>(0x5ACD4F, 0xEB, true); // Skip hash check, breaks compatibility for non-exopts users |
|
0 commit comments