Hotfix for SPT-AKI 3.2.3
This commit is contained in:
parent
0a7cf84cba
commit
3a0497140b
@ -9,7 +9,7 @@ using EFT.Settings.Graphics;
|
||||
|
||||
namespace ScopeTweaks
|
||||
{
|
||||
[BepInPlugin("com.notGreg.scopeTweaks", "notGreg's Scope Tweaks", "1.1.0")]
|
||||
[BepInPlugin("com.notGreg.scopeTweaks", "notGreg's Scope Tweaks", "2.0.0")]
|
||||
public class Plugin : BaseUnityPlugin
|
||||
{
|
||||
Utils utils = new Utils();
|
||||
@ -109,7 +109,7 @@ namespace ScopeTweaks
|
||||
void updateInGameFOVValue(int value)
|
||||
{
|
||||
//Logger.LogInfo($"Updating in-game FOV value to: {value}");
|
||||
Singleton<GClass1630>.Instance.Game.Settings.FieldOfView.Value = value;
|
||||
Singleton<GClass1642>.Instance.Game.Settings.FieldOfView.Value = value;
|
||||
}
|
||||
|
||||
void onAimingChanged()
|
||||
@ -149,7 +149,7 @@ namespace ScopeTweaks
|
||||
{
|
||||
//Logger.LogInfo($"Restoring FOV to {defaultFOVValue}");
|
||||
updateInGameFOVValue(defaultFOVValue);
|
||||
GClass1762.Instance.SetFov(defaultFOVValue, 1f, true);
|
||||
GClass1774.Instance.SetFov(defaultFOVValue, 1f, true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -232,7 +232,7 @@ namespace ScopeTweaks
|
||||
setUpCameras();
|
||||
|
||||
//Logger.LogInfo("Grab default FOV from settings singleton");
|
||||
defaultFOVValue = Singleton<GClass1630>.Instance.Game.Settings.FieldOfView;
|
||||
defaultFOVValue = Singleton<GClass1642>.Instance.Game.Settings.FieldOfView;
|
||||
|
||||
mainPlayer.HandsChangedEvent += (args) =>
|
||||
{
|
||||
@ -244,7 +244,7 @@ namespace ScopeTweaks
|
||||
|
||||
float getCurrentScalingFactor()
|
||||
{
|
||||
var graphics = Singleton<GClass1630>.Instance.Graphics.Settings;
|
||||
var graphics = Singleton<GClass1642>.Instance.Graphics.Settings;
|
||||
|
||||
if (!graphics.DLSSEnabled && !graphics.FSREnabled)
|
||||
{
|
||||
|
@ -33,7 +33,7 @@
|
||||
<ItemGroup>
|
||||
<Reference Include="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>E:\SPT-AKI\SPT-AKI 3.2.1\EscapeFromTarkov_Data\Managed\Assembly-CSharp.dll</HintPath>
|
||||
<HintPath>E:\SPT-AKI\SPT-AKI 3.2.3\EscapeFromTarkov_Data\Managed\Assembly-CSharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="BepInEx">
|
||||
<HintPath>E:\SPT-AKI\SPT-AKI 3.2.1\BepInEx\core\BepInEx.dll</HintPath>
|
||||
|
Loading…
x
Reference in New Issue
Block a user