mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
[ThirdPerson] Fixes for r173
This commit is contained in:
parent
fee053bb64
commit
0d4e6e6331
4 changed files with 8 additions and 103 deletions
|
@ -17,7 +17,6 @@ internal static class Patches
|
|||
);
|
||||
harmony.Patch(
|
||||
typeof(CVRWorld).GetMethod(nameof(CVRWorld.CopyRefCamValues), BindingFlags.NonPublic | BindingFlags.Instance),
|
||||
prefix: typeof(Patches).GetMethod(nameof(OnPreWorldStart), BindingFlags.NonPublic | BindingFlags.Static).ToNewHarmonyMethod(),
|
||||
postfix: typeof(Patches).GetMethod(nameof(OnPostWorldStart), BindingFlags.NonPublic | BindingFlags.Static).ToNewHarmonyMethod()
|
||||
);
|
||||
harmony.Patch(
|
||||
|
@ -31,7 +30,6 @@ internal static class Patches
|
|||
}
|
||||
|
||||
//Copy camera settings & postprocessing components
|
||||
private static void OnPreWorldStart() => ResetPlayerCamValues();
|
||||
private static void OnPostWorldStart() => CopyPlayerCamValues();
|
||||
//Adjust camera distance with height as modifier
|
||||
private static void OnScaleAdjusted(float height) => AdjustScale(height);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue