From 4730b73b8b94db4e7ac7e8d985b6c34dc2f5fd1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Br=C3=BCckmann?= Date: Fri, 22 Jul 2022 15:47:18 +0200 Subject: [PATCH 1/2] added CarSelectTireSteerAngle similar to NFSMWExOpts --- NFSPSExtraOptions/dllmain.cpp | 5 +++++ NFSPSExtraOptionsSettings.ini | 1 + 2 files changed, 6 insertions(+) diff --git a/NFSPSExtraOptions/dllmain.cpp b/NFSPSExtraOptions/dllmain.cpp index 6bda060..2ad2be1 100644 --- a/NFSPSExtraOptions/dllmain.cpp +++ b/NFSPSExtraOptions/dllmain.cpp @@ -12,6 +12,7 @@ bool once1 = 0, once2 = 0, once3 = 0; bool bWindowedMode, SkipMovies, SkipNISs, IsPlayerNameSet, ExOptsTeamTakeOver, UnlockAllThings, IsOnFocus, EnableSound, EnableMusic, EnableVoice, AutoDrive, DriftMode, ShowMessage, EnableSaveLoadHotPos, UnlockDLC, ShowAllCarsInFE, ShowSpecialVinyls, EnableDebugWorldCamera, DebugCamStatus, DebugWatchCarCamera, GarageZoom, GarageRotate, GarageShowcase, RemoveTopSpeedLimiter; int ThreadDelay, StartingCash, hotkeyUnlockAllThings, hotkeyAutoDrive, hotkeyPhysSwitch, hotkeyFreezeCamera, hotkeyToggleHeadlights, MaximumLaps, MaximumRepairMarkers; char* IntroMovieName, * PlayerName; +float CarSelectTireSteerAngle; DWORD GameState; char* CopyrightString = "© 2007 Electronic Arts Inc. All rights reserved.^NFSPS Extra Options - © 2022 ExOpts Team. No rights reserved."; @@ -200,6 +201,7 @@ void Init() // Menu ShowSpecialVinyls = iniReader.ReadInteger("Menu", "ShowSpecialVinyls", 1) == 1; IntroMovieName = iniReader.ReadString("Menu", "IntroMovie", "FE_BG"); + CarSelectTireSteerAngle = iniReader.ReadFloat("Menu", "CarSelectTireSteerAngle", 340.0f); GarageZoom = iniReader.ReadInteger("Menu", "ShowcaseCamInfiniteZoom", 0) == 1; GarageRotate = iniReader.ReadInteger("Menu", "ShowcaseCamInfiniteRotation", 0) == 1; GarageShowcase = iniReader.ReadInteger("Menu", "ShowcaseCamAlwaysEnable", 0) == 1; @@ -244,6 +246,9 @@ void Init() // Set Intro Movie Name injector::WriteMemory(0x7E2CEB, IntroMovieName, true); + // Menu Front Tire Angle + injector::WriteMemory(0xA8918C, CarSelectTireSteerAngle, true); + // Takeover // Force Name if (strcmp(PlayerName, "0") != 0) diff --git a/NFSPSExtraOptionsSettings.ini b/NFSPSExtraOptionsSettings.ini index c2c1d28..f707839 100644 --- a/NFSPSExtraOptionsSettings.ini +++ b/NFSPSExtraOptionsSettings.ini @@ -12,6 +12,7 @@ MaximumRepairMarkers = 20 // Maximum number of repair markers can be s [Menu] ShowSpecialVinyls = 1 // Adds Special Vinyls to the shop and removes Vinyl-Car dependencies. (0 = False (Default), 1 = True) IntroMovie = FE_BG // Lets you change the background movie played on Splash Screen. (Type names without language, region names and format. FE: "fmv01_career_intro" for "fmv01_career_intro_english_ntsc.vp6".) (Default = FE_BG) +CarSelectTireSteerAngle = 0.0 // Sets the angle of front tires on menus. (Default = 340.0) ShowcaseCamInfiniteZoom = 0 // Zoom hack for Showcase Camera mode. (0 = False (Default), 1 = True) ShowcaseCamInfiniteRotation = 0 // Rotation hack for Showcase Camera mode. (0 = False (Default), 1 = True) ShowcaseCamAlwaysEnable = 0 // Use Showcase Camera mode on every menu. (0 = False (Default), 1 = True) From 22d4796c21899c362cc2812f3d9df5219b62ed46 Mon Sep 17 00:00:00 2001 From: Zyphirr <68701315+Zyphirr@users.noreply.github.com> Date: Fri, 22 Jul 2022 18:08:48 +0200 Subject: [PATCH 2/2] Update NFSPSExtraOptionsSettings.ini Reverted back to Default Value for CarSelectTireSteerAngle Setting. --- NFSPSExtraOptionsSettings.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NFSPSExtraOptionsSettings.ini b/NFSPSExtraOptionsSettings.ini index f707839..2e27742 100644 --- a/NFSPSExtraOptionsSettings.ini +++ b/NFSPSExtraOptionsSettings.ini @@ -12,7 +12,7 @@ MaximumRepairMarkers = 20 // Maximum number of repair markers can be s [Menu] ShowSpecialVinyls = 1 // Adds Special Vinyls to the shop and removes Vinyl-Car dependencies. (0 = False (Default), 1 = True) IntroMovie = FE_BG // Lets you change the background movie played on Splash Screen. (Type names without language, region names and format. FE: "fmv01_career_intro" for "fmv01_career_intro_english_ntsc.vp6".) (Default = FE_BG) -CarSelectTireSteerAngle = 0.0 // Sets the angle of front tires on menus. (Default = 340.0) +CarSelectTireSteerAngle = 340.0 // Sets the angle of front tires on menus. (Default = 340.0) ShowcaseCamInfiniteZoom = 0 // Zoom hack for Showcase Camera mode. (0 = False (Default), 1 = True) ShowcaseCamInfiniteRotation = 0 // Rotation hack for Showcase Camera mode. (0 = False (Default), 1 = True) ShowcaseCamAlwaysEnable = 0 // Use Showcase Camera mode on every menu. (0 = False (Default), 1 = True)