Skip to content

Commit

Permalink
render LOD lights in cutscenes
Browse files Browse the repository at this point in the history
  • Loading branch information
sTc2201 committed Aug 16, 2024
1 parent 18329fe commit 4cfa8fa
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions source/fixes.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,18 @@ public:
});
}
}

// Render LOD lights during cutscenes (console behavior)
{
auto pattern = hook::pattern("E8 ? ? ? ? 84 C0 0F 85 ? ? ? ? A1 ? ? ? ? 83 F8 02 0F 84");
if (!pattern.empty())
injector::MakeNOP(pattern.get_first(0), 13, true);
else
{
pattern = hook::pattern("E8 ? ? ? ? 84 C0 75 7A A1 ? ? ? ? 83 F8 02 74 70 83 F8 03");
injector::MakeNOP(pattern.get_first(0), 9, true);
}
}
};
}
} Fixes;

0 comments on commit 4cfa8fa

Please sign in to comment.