Skip to content

Commit e3c3494

Browse files
committed
v9.1.1.510
+ Added an option to enable unused Busted NISs.
1 parent 0156a3c commit e3c3494

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed
-8 Bytes
Binary file not shown.

NFSMWExtraOptions/dllmain.cpp

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
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;
1111
int hotkeyToggleForceHeat, hotkeyForceHeatLevel, hotkeyToggleCopLights, hotkeyToggleHeadlights, hotkeyCarHack, hotkeyUnlockAllThings, hotkeyAutoDrive, randomizeCount, hotkeyToggleCops, hotkeyFreezeCamera, NosTrailRepeatCount, UG2SaveMoney;
1212
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;
1414
DWORD selectedCar, careerCar, raceOptions, Strings, HeatLevelAddr, VTecx, StartingCashDWORD, GameState, ThreadDelay;
1515
HWND windowHandle;
1616

@@ -785,6 +785,7 @@ void Init()
785785
CarSkinFix = iniReader.ReadInteger("Fixes", "CarSkinFix", 0) == 1;
786786
ImmobileColFix = iniReader.ReadInteger("Fixes", "ImmobileCollisionsFix", 0) == 1;
787787
DDayFix = iniReader.ReadInteger("Fixes", "DDayFix", 1) == 1;
788+
BustedNISFix = iniReader.ReadInteger("Fixes", "BustedNISFix", 1) == 1;
788789

789790
// Misc
790791
WindowedMode = iniReader.ReadInteger("Misc", "WindowedMode", 0);
@@ -1252,6 +1253,18 @@ void Init()
12521253
injector::MakeRangedNOP(0x419019, X10FixCodeCave2Exit, true);
12531254
injector::MakeJMP(0x419019, X10FixCodeCave2, true);
12541255
}
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+
}
12551268

12561269
// Load Any Save Game
12571270
// injector::WriteMemory<unsigned char>(0x5ACD4F, 0xEB, true); // Skip hash check, breaks compatibility for non-exopts users

NFSMWExtraOptionsSettings.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ ZeroBountyFix = 1 // Fixes 0 bounty reward for x10 and higher
120120
CarSkinFix = 0 // (EXPERIMENTAL) Fixes skinless ghost cars. (0 = False (Default), 1 = True)
121121
ImmobileCollisionsFix = 0 // (EXPERIMENTAL) Fixes infinite mass of some objects. (0 = False (Default), 1 = True)
122122
DDayFix = 1 // Fixes an issue when the user is forced to play DDay (prologue) events even if they have done so. (0 = False, 1 = True (Default))
123+
BustedNISFix = 1 // Enables unused Busted NISs by fixing a bug in the chooser function. (0 = False, 1 = True (Default))
123124
124125
[Misc]
125126
WindowedMode = 0 // Runs the game in a window instead of full screen. (0 = False (Default), 1 = True, 2 = Bordered)

0 commit comments

Comments
 (0)