Updated for SPT-AKI 3.2.0

This commit is contained in:
notGreg 2022-08-16 13:31:25 +02:00
parent 69b33bd235
commit 43a867df8d
2 changed files with 6 additions and 6 deletions

View File

@ -35,8 +35,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\MyFirstPlugin\MyFirstPlugin\lib\0Harmony.dll</HintPath>
</Reference>
<Reference Include="Aki.Reflection">
<HintPath>E:\SPT-AKI\SPT-AKI 2.3.1 UniformAimTest\EscapeFromTarkov_Data\Managed\Aki.Reflection.dll</HintPath>
<Reference Include="Aki.Reflection, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>E:\SPT-AKI\SPT-AKI 3.1.1\EscapeFromTarkov_Data\Managed\Aki.Reflection.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp">
<HintPath>..\..\libs\EFT Trainer DLLs\Assembly-CSharp.dll</HintPath>

View File

@ -9,16 +9,15 @@ namespace UniformAim
public static float CalculateHFOV(float FOV)
{
//RETURNS RADIANS
return Camera.VerticalToHorizontalFieldOfView(FOV, Camera.main.aspect) * Mathf.Deg2Rad;
return Camera.VerticalToHorizontalFieldOfView(FOV, Camera.main.aspect);
}
//calculate sensitivity based on FOV delta and coefficient
public static float CalculateSensitivity(float aimedFOV, float hipFOV)
{
//calculate horizontal FOV values for inputs
aimedFOV = CalculateHFOV(aimedFOV);
hipFOV = CalculateHFOV(hipFOV);
aimedFOV = CalculateHFOV(aimedFOV) * Mathf.Deg2Rad;
hipFOV = CalculateHFOV(hipFOV) * Mathf.Deg2Rad;
float exponent = (float)(100f / Plugin.configCoeff.Value);