Change cheat name
This commit is contained in:
@@ -89,7 +89,7 @@ static FixToggle individualFixes[] = {
|
||||
static FixToggle cheatFixes[] = {
|
||||
{ "Time dilation", &Time_Dilation_fix_enabled, GameFixes::TimeDilation, "ALT + 1 (top keyboard row) to toggle" },
|
||||
{ "God mode", &GodMode_fix_enabled, GameFixes::GodMode, "ALT + 2 (top keyboard row) to toggle.\nJacob won't receive any damage." },
|
||||
{ "Ignore hits", &Ignore_hits_fix_enabled, GameFixes::Invulnerable, "ALT + 3 (top keyboard row) to toggle.\nJacob can't be hit." },
|
||||
{ "Ignore hits", &Ignore_hits_fix_enabled, GameFixes::IgnoreHits, "ALT + 3 (top keyboard row) to toggle.\nJacob can't be hit." },
|
||||
{ "Stealth mode",&Stealth_fix_enabled, GameFixes::Stealth, "ALT + 4 (top keyboard row) to toggle.\nEnemies won't attack you" }
|
||||
};
|
||||
// Prepare array of sliders for ImGui
|
||||
@@ -137,7 +137,7 @@ static void LoadFixDLL()
|
||||
SetFixes(GameFixes::Fog, Fog_fix_enabled);
|
||||
SetFixes(GameFixes::TimeDilation, Time_Dilation_fix_enabled);
|
||||
SetFixes(GameFixes::GodMode, GodMode_fix_enabled);
|
||||
SetFixes(GameFixes::Invulnerable, Ignore_hits_fix_enabled);
|
||||
SetFixes(GameFixes::IgnoreHits, Ignore_hits_fix_enabled);
|
||||
SetFixes(GameFixes::Stealth, Stealth_fix_enabled);
|
||||
SetFixes(GameFixes::DevConsole, console);
|
||||
}
|
||||
@@ -364,7 +364,7 @@ static void on_reshade_present(reshade::api::effect_runtime* runtime) {
|
||||
static void on_reshade_begin_effects(reshade::api::effect_runtime* runtime, reshade::api::command_list* cmd_list,
|
||||
reshade::api::resource_view rtv, reshade::api::resource_view rtv_srgb) {
|
||||
if (!runtime) return;
|
||||
FindAllUniformVariables(runtime, OSD_SHADER_NAME);
|
||||
FindAllUniformVariables(runtime, OSD_SHADER_NAME); // Find all uniforms and set their handle
|
||||
|
||||
if (InterlockedCompareExchange(&g_uniformReseted, 1, 0) != 0) return; // reset OSD uniforms once
|
||||
ResetAllUniformVariables(runtime, OSD_SHADER_NAME);
|
||||
@@ -385,7 +385,7 @@ static void InitializeHotkeys() { // Initialize hotkeys for cheats
|
||||
});
|
||||
|
||||
RegisterHotkey('3', Modifier::Alt, [] {
|
||||
ToggleOSD(Ignore_hits_fix_enabled, GameFixes::Invulnerable, u_Invulnerability_show, u_Invulnerability_enabled, OSD_duration);
|
||||
ToggleOSD(Ignore_hits_fix_enabled, GameFixes::IgnoreHits, u_IgnoreHits_show, u_IgnoreHits_enabled, OSD_duration);
|
||||
});
|
||||
|
||||
RegisterHotkey('4', Modifier::Alt, [] {
|
||||
|
||||
Reference in New Issue
Block a user