Add god mode cheat
This commit is contained in:
@@ -49,6 +49,7 @@ static bool Fog_fix_enabled = false;
|
||||
static bool fix_enabled = false;
|
||||
static bool Time_Dilation_fix_enabled = false;
|
||||
static bool StealthMode_fix_enabled;
|
||||
static bool GodMode_fix_enabled;
|
||||
static int worldFOVvalue = 0;
|
||||
static float cameraDistanceValue = 1.f;
|
||||
static float fogDensityValue = 0.1f;
|
||||
@@ -65,7 +66,7 @@ static std::string log_content;
|
||||
|
||||
// Plugin settings
|
||||
const std::string SETTINGS_FILE = "./pluginsettings.ini";
|
||||
const char* FIX_VERSION = "1.0.4";
|
||||
const char* FIX_VERSION = "1.0.5";
|
||||
const char* FIX_INFORMATIONS = "This fix allows to:\n - Control FOV in game.\n - Control camera distance.\n - Unlock cutscenes FPS and enable ultrawide.\n - Enable cheats.\n - Disable depth of field.\n - Disable chromatic aberrations.\n - Disable vignetting.\n - Control fog.\n - Re enable console.";
|
||||
const char* DONATION_URL = "https://buymeacoffee.com/k4sh44";
|
||||
|
||||
@@ -84,7 +85,10 @@ static FixToggle individualFixes[] = {
|
||||
|
||||
static FixToggle cheatFixes[] = {
|
||||
{ "Time dilation", &Time_Dilation_fix_enabled, GameFixes::TimeDilation, "ALT + 1 (top keyboard row) to toggle" },
|
||||
{ "Stealth mode", &StealthMode_fix_enabled, GameFixes::Stealth, "ALT + 2 (top keyboard row) to toggle." },
|
||||
{ "Stealth mode", &StealthMode_fix_enabled, GameFixes::Stealth, "ALT + 2 (top keyboard row) to toggle.\n"
|
||||
"Stealth may not work when running nearby enemies." },
|
||||
{ "God mode", &GodMode_fix_enabled, GameFixes::GodMode, "ALT + 3 (top keyboard row) to toggle.\n"
|
||||
"Hinako won't loose stamina, sanity and health during fight."},
|
||||
};
|
||||
// Prepare array of sliders for ImGui
|
||||
static SliderFix sliders[6];
|
||||
@@ -132,6 +136,7 @@ static void LoadFixDLL() {
|
||||
SetFixes(GameFixes::Fog, Fog_fix_enabled);
|
||||
SetFixes(GameFixes::TimeDilation, Time_Dilation_fix_enabled);
|
||||
SetFixes(GameFixes::Stealth, StealthMode_fix_enabled);
|
||||
SetFixes(GameFixes::GodMode, GodMode_fix_enabled);
|
||||
SetFixes(GameFixes::DevConsole, console);
|
||||
}
|
||||
|
||||
@@ -174,6 +179,7 @@ static void SaveSettings()
|
||||
pluginIniFile["2#Individual fix"]["Fog"] = Fog_fix_enabled;
|
||||
pluginIniFile["2#Individual fix"]["Time dilation"] = Time_Dilation_fix_enabled;
|
||||
pluginIniFile["2#Individual fix"]["Stealth Mode"] = StealthMode_fix_enabled;
|
||||
pluginIniFile["2#Individual fix"]["God Mode"] = GodMode_fix_enabled;
|
||||
pluginIniFile["3#Fixes tuning"].setComment("Individual fix fine tune");
|
||||
pluginIniFile["3#Fixes tuning"]["World FOV"] = worldFOVvalue;
|
||||
pluginIniFile["3#Fixes tuning"]["Camera distance"] = cameraDistanceValue;
|
||||
@@ -204,6 +210,7 @@ static void LoadSettings()
|
||||
Fog_fix_enabled = pluginIniFile["2#Individual fix"]["Fog"].as<bool>();
|
||||
Time_Dilation_fix_enabled = pluginIniFile["2#Individual fix"]["Time dilation"].as<bool>();
|
||||
StealthMode_fix_enabled = pluginIniFile["2#Individual fix"]["Stealth Mode"].as<bool>();
|
||||
GodMode_fix_enabled = pluginIniFile["2#Individual fix"]["God Mode"].as<bool>();
|
||||
worldFOVvalue = pluginIniFile["3#Fixes tuning"]["World FOV"].as<int>();
|
||||
cameraDistanceValue = pluginIniFile["3#Fixes tuning"]["Camera distance"].as<float>();
|
||||
fogDensityValue = pluginIniFile["3#Fixes tuning"]["Fog density"].as<float>();
|
||||
@@ -394,6 +401,10 @@ static void InitializeHotkeys() { // Initialize hotkeys for cheats
|
||||
RegisterHotkey('2', Modifier::Alt, [] {
|
||||
ToggleOSD(StealthMode_fix_enabled, GameFixes::Stealth, u_Stealth_show, u_Stealth_enabled, OSD_duration);
|
||||
});
|
||||
|
||||
RegisterHotkey('3', Modifier::Alt, [] {
|
||||
ToggleOSD(GodMode_fix_enabled, GameFixes::GodMode, u_GodMode_show, u_GodMode_enabled, OSD_duration);
|
||||
});
|
||||
}
|
||||
|
||||
// Main dll intrance
|
||||
|
||||
Reference in New Issue
Block a user