2024-08-02 14:10:29 +01:00
|
|
|
|
using SPT.Reflection.Patching;
|
2022-07-29 17:28:54 +03:00
|
|
|
|
using EFT.Animations;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace SamSWAT.FOV
|
|
|
|
|
{
|
|
|
|
|
public class PlayerSpringPatch : ModulePatch
|
|
|
|
|
{
|
|
|
|
|
protected override MethodBase GetTargetMethod()
|
|
|
|
|
{
|
2024-08-02 14:10:29 +01:00
|
|
|
|
return typeof(PlayerSpring).GetMethod("Start", BindingFlags.Public | BindingFlags.Instance);
|
2022-07-29 17:28:54 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[PatchPostfix]
|
|
|
|
|
private static void PatchPostfix(ref Vector3 ___CameraOffset)
|
|
|
|
|
{
|
|
|
|
|
___CameraOffset = new Vector3(0.04f, 0.04f, FovPlugin.HudFov.Value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|