Skip to content

Commit

Permalink
blacklist: add SMIMapDisableStartupAnimation
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirteenAG committed Aug 3, 2024
1 parent 20acad2 commit 4c98f57
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ShadowCullDist = 100.0 // 100.0 for increased draw distance
DisableNightVisionFlash = 1 // Disables the white flash when activating night vision
DisablePerfectionistChecks = 1 // M&E UI, radar
DefaultMissionFilter = 1 // 0: All missions | 1: Active missions | 2: Campaign missions | 3: 4E missions
SMIMapDisableStartupAnimation = 1

[UNLOCKS]
UnlockDLC = 1 // Unlocks all DLC content that is not possible to obtain after server shutdown
Expand Down
7 changes: 7 additions & 0 deletions source/SplinterCellBlacklist.FusionMod/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ void Init()
auto bDisableNightVisionFlash = iniReader.ReadInteger("MAIN", "DisableNightVisionFlash", 1) != 0;
auto bDisablePerfectionistChecks = iniReader.ReadInteger("MAIN", "DisablePerfectionistChecks", 1) != 0;
auto nDefaultMissionFilter = std::clamp(iniReader.ReadInteger("MAIN", "DefaultMissionFilter", 1), 0, 3);
auto bSMIMapDisableStartupAnimation = iniReader.ReadInteger("MAIN", "SMIMapDisableStartupAnimation", 1) != 0;

sExtractionWaveConfigs = iniReader.ReadString("EXTRACTION", "ExtractionWaveConfigs", "Default");
nExtractionWaveEnemyMultiplier = std::clamp(iniReader.ReadInteger("EXTRACTION", "ExtractionWaveEnemyMultiplier", 1), 1, 9999);
Expand Down Expand Up @@ -885,6 +886,12 @@ void Init()
pattern = hook::pattern("B9 ? ? ? ? 89 8E ? ? ? ? F3 0F 7E 05");
injector::WriteMemory(pattern.get_first(1), nDefaultMissionFilter, true);
}

if (bSMIMapDisableStartupAnimation)
{
pattern = hook::pattern("75 25 83 BE ? ? ? ? ? 7F 0E");
injector::WriteMemory<uint8_t>(pattern.get_first(0), 0xEB, true);
}
}

std::string currentGogglesLight = "LightGreen";
Expand Down

0 comments on commit 4c98f57

Please sign in to comment.