22 lines
522 B
C#
22 lines
522 B
C#
![]() |
using System.Reflection;
|
|||
|
using Aki.Reflection.Patching;
|
|||
|
using EFT;
|
|||
|
using UniformAim;
|
|||
|
|
|||
|
namespace TarkovUniformAim
|
|||
|
{
|
|||
|
public class UpdateSensitivityPatch : ModulePatch
|
|||
|
{
|
|||
|
protected override MethodBase GetTargetMethod()
|
|||
|
{
|
|||
|
return typeof(Player.FirearmController).GetMethod("UpdateSensitivity");
|
|||
|
}
|
|||
|
|
|||
|
[PatchPostfix]
|
|||
|
public static void PatchPostfix(ref float ____aimingSens)
|
|||
|
{
|
|||
|
____aimingSens = UniformAimUtils.adjustedSensitivity;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|