Skip to content

Commit

Permalink
v6.0.3.1337 (Build 6; Rev.03)
Browse files Browse the repository at this point in the history
+ Added Pursuit Action mode.
  • Loading branch information
nlgxzef committed Jun 20, 2017
1 parent ea642ea commit 7989a3f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
Binary file modified NFSMWExtraOptions/NFSMWExtraOptions.rc
Binary file not shown.
27 changes: 26 additions & 1 deletion NFSMWExtraOptions/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
float heatLevel, gameSpeed, FallingRainSize, RainAmount, RoadReflection, RainIntensity, RainXing, RainFallSpeed, RainGravity, SplashScreenTimeLimit, LowBeamAmount, HighBeamAmount, MaxHeatLevel, MinHeatLevel, copLightsAmount, WorldAnimationSpeed, CarScale, VTRed, VTBlue, VTGreen, VTBlackBloom, VTColorBloom, VTSaturation;
int hotkeyToggleForceHeat, hotkeyForceHeatLevel, hotkeyToggleCopLights, hotkeyToggleHeadLights, hotkeyCarHack, hotkeyUnlockAllThings, hotkeyDrunkDriver, randomizeCount;
unsigned char raceType, raceMode, minLaps, maxLaps, minOpponents, maxOpponents, maxLapsRandomQR, maxOpponentsRandomQR, maxBlacklist, csBlacklist, headLightsMode, lowTraffic, medTraffic, highTraffic, ShowHiddenTracks, MaxUniqueOpponentCars;
bool copLightsEnabled, ShowTollbooth, ShowMoreRaceOptions, HideOnline, ShowOnlineOpts, removeSceneryGroupDoor, removePlayerBarriers, unfreezeKO, EnablePresetAndDebugCars, EnableCustomizationForAll, AlwaysRain, WindowedMode, SkipMovies, EnableSound, EnableMusic, EnableCameras, ExOptsTeamTakeOver, ShowSubs, EnableHeatLevelOverride, CarbonStyleRaceProgress, moreVinyls, eatSomeBurgers, UnlockAllThings, onQuickRaceMenu, ShowChallenge, GarageRotate, GarageZoom, GarageShowcase, EnableSaveLoadHotPos, EnableMaxPerfOnShop, EnableVTOverride, EnableDebugWorldCamera, DebugWorldCamera, ForceBlackEdition, HelicopterFix, X10Fix, WheelFix, ExperimentalSplitScreenFix, ShowDebugCarCustomize, CarbonStyleBustedScreen, ShowMessage, ReplayBlacklistRaces;
bool copLightsEnabled, ShowTollbooth, ShowMoreRaceOptions, HideOnline, ShowOnlineOpts, removeSceneryGroupDoor, removePlayerBarriers, unfreezeKO, EnablePresetAndDebugCars, EnableCustomizationForAll, AlwaysRain, WindowedMode, SkipMovies, EnableSound, EnableMusic, EnableCameras, ExOptsTeamTakeOver, ShowSubs, EnableHeatLevelOverride, CarbonStyleRaceProgress, moreVinyls, eatSomeBurgers, UnlockAllThings, onQuickRaceMenu, ShowChallenge, GarageRotate, GarageZoom, GarageShowcase, EnableSaveLoadHotPos, EnableMaxPerfOnShop, EnableVTOverride, EnableDebugWorldCamera, DebugWorldCamera, ForceBlackEdition, HelicopterFix, X10Fix, WheelFix, ExperimentalSplitScreenFix, ShowDebugCarCustomize, CarbonStyleBustedScreen, ShowMessage, ReplayBlacklistRaces, PursuitActionMode;
DWORD selectedCar, careerCar, raceOptions, Strings, HeatLevelAddr, VTecx, StartingCashDWORD, GameState;

DWORD WINAPI Thing(LPVOID);
Expand Down Expand Up @@ -781,6 +781,7 @@ void Init()
MaxHeatLevel = iniReader.ReadFloat("Pursuit", "MaximumHeatLevel", 10.00f);
HelicopterFix = iniReader.ReadInteger("Pursuit", "HelicopterBountyFix", 1) == 1;
X10Fix = iniReader.ReadInteger("Pursuit", "ZeroBountyFix", 1) == 1;
PursuitActionMode = iniReader.ReadInteger("Pursuit", "PursuitActionMode", 0) == 1;

// VisualTreatment
EnableVTOverride = iniReader.ReadInteger("VisualTreatment", "EnableVisualTreatmentOverride", 0) == 1;
Expand Down Expand Up @@ -1338,6 +1339,30 @@ void Init()
injector::WriteMemory<DWORD>(0x53CED7, 0x89FAD4, true); // "UI_DebugCarCustomize.fng"
}

// Pursuit Action Game Mode - Harder Pursuits in Quick Races
if (PursuitActionMode)
{
// Replace Race Table (0x2283ECAF) with Heat Table (0xD4B0CC11)
injector::WriteMemory<DWORD>(0x403476, 0xD4B0CC11, true);
injector::WriteMemory<DWORD>(0x409176, 0xD4B0CC11, true);

// Replace Race Support (0xE5332008) with Heat Support (0xF3918F68)
injector::WriteMemory<DWORD>(0x403496, 0xF3918F68, true);
injector::WriteMemory<DWORD>(0x4091D9, 0xF3918F68, true);

// Can Spawn Roadblocks in Quick Race
injector::MakeNOP(0x419519, 6, true);

// Cops Can Call Support in Quick Race :
injector::WriteMemory<unsigned char>(0x4196FF, 0xEB, true);

// Other fixes ??
injector::MakeNOP(0x41974B, 2, true);

// Helicopter
injector::MakeNOP(0x42BAD6, 6, true);
}

// Other Things
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)&Thing, NULL, 0, NULL);
}
Expand Down
1 change: 1 addition & 0 deletions NFSMWExtraOptionsSettings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ MinimumHeatLevel = 1 // Minimum heat level when HeatLevelOverride
MaximumHeatLevel = 10 // Maximum heat level when HeatLevelOverride option is enabled. (Default = 10)
HelicopterBountyFix = 1 // Fixes very low bounty reward and lack of screen message for Helicopter. (0 = False, 1 = True (Default))
ZeroBountyFix = 1 // Fixes 0 bounty reward for x10 and higher heat levels. (0 = False, 1 = True (Default))
PursuitActionMode = 0 // Makes Quick Race pursuits harder with Roadblocks and support units. (0 = False (Default), 1 = True)

[VisualTreatment]
EnableVisualTreatmentOverride = 0 // Enables all visual treatment tweaks in this section. (0 = False (Default), 1 = True)
Expand Down

0 comments on commit 7989a3f

Please sign in to comment.