Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions NFSPSExtraOptions/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -244,6 +246,9 @@ void Init()
// Set Intro Movie Name
injector::WriteMemory(0x7E2CEB, IntroMovieName, true);

// Menu Front Tire Angle
injector::WriteMemory<float>(0xA8918C, CarSelectTireSteerAngle, true);

// Takeover
// Force Name
if (strcmp(PlayerName, "0") != 0)
Expand Down
1 change: 1 addition & 0 deletions NFSPSExtraOptionsSettings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 = 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)
Expand Down