27 lines
671 B
C#
27 lines
671 B
C#
using Aki.Reflection.Patching;
|
|
using EFT;
|
|
using System.Reflection;
|
|
|
|
namespace notGreg.UniformAim
|
|
{
|
|
internal class get_AimingSensitivityPatch : ModulePatch
|
|
{
|
|
private float myAimingSens;
|
|
public float MyAimingSens
|
|
{
|
|
get { return myAimingSens; }
|
|
set { myAimingSens = value; }
|
|
}
|
|
|
|
protected override MethodBase GetTargetMethod()
|
|
{
|
|
return typeof(Player.FirearmController).GetMethod("get_AimingSensitivity");
|
|
}
|
|
[PatchPostfix]
|
|
public static void PatchPostfix(ref float ____aimingSens)
|
|
{
|
|
____aimingSens = Plugin.aimingSens;
|
|
}
|
|
}
|
|
}
|