Fix to work on 3.9.*
This commit is contained in:
parent
d6cffa6573
commit
4b5f22f23e
@ -1,4 +1,4 @@
|
|||||||
using Aki.Reflection.Patching;
|
using SPT.Reflection.Patching;
|
||||||
using EFT.UI.Settings;
|
using EFT.UI.Settings;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
|
@ -53,7 +53,8 @@ namespace SamSWAT.FOV
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
gameWorld.RegisteredPlayers.Find(p => p.IsYourPlayer).ProceduralWeaponAnimation.HandsContainer.CameraOffset = new Vector3(0.04f, 0.04f, HudFov.Value);
|
gameWorld.MainPlayer.ProceduralWeaponAnimation.HandsContainer.CameraOffset = new Vector3(0.04f, 0.04f, HudFov.Value);
|
||||||
|
// gameWorld.RegisteredPlayers.Find(p => p.IsYourPlayer).ProceduralWeaponAnimation.HandsContainer.CameraOffset = new Vector3(0.04f, 0.04f, HudFov.Value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using Aki.Reflection.Patching;
|
using SPT.Reflection.Patching;
|
||||||
using EFT.Animations;
|
using EFT.Animations;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
@ -9,7 +9,7 @@ namespace SamSWAT.FOV
|
|||||||
{
|
{
|
||||||
protected override MethodBase GetTargetMethod()
|
protected override MethodBase GetTargetMethod()
|
||||||
{
|
{
|
||||||
return typeof(PlayerSpring).GetMethod("Start", BindingFlags.NonPublic | BindingFlags.Instance);
|
return typeof(PlayerSpring).GetMethod("Start", BindingFlags.Public | BindingFlags.Instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
[PatchPostfix]
|
[PatchPostfix]
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
project/SamSWAT.FOV/References/spt-reflection.dll
Normal file
BIN
project/SamSWAT.FOV/References/spt-reflection.dll
Normal file
Binary file not shown.
@ -31,9 +31,6 @@
|
|||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="Aki.Reflection">
|
|
||||||
<HintPath>References\Aki.Reflection.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Assembly-CSharp">
|
<Reference Include="Assembly-CSharp">
|
||||||
<HintPath>References\Assembly-CSharp.dll</HintPath>
|
<HintPath>References\Assembly-CSharp.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
@ -43,6 +40,9 @@
|
|||||||
<Reference Include="Comfort">
|
<Reference Include="Comfort">
|
||||||
<HintPath>References\Comfort.dll</HintPath>
|
<HintPath>References\Comfort.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="spt-reflection">
|
||||||
|
<HintPath>References\spt-reflection.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="UnityEngine">
|
<Reference Include="UnityEngine">
|
||||||
<HintPath>References\UnityEngine.dll</HintPath>
|
<HintPath>References\UnityEngine.dll</HintPath>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
using Aki.Reflection.Patching;
|
using SPT.Reflection.Patching;
|
||||||
using Aki.Reflection.Utils;
|
using SPT.Reflection.Utils;
|
||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
@ -11,8 +11,7 @@ namespace SamSWAT.FOV
|
|||||||
{
|
{
|
||||||
protected override MethodBase GetTargetMethod()
|
protected override MethodBase GetTargetMethod()
|
||||||
{
|
{
|
||||||
Type gclass911 = PatchConstants.EftTypes.Single(x => x.GetMethod("Clone") != null && x.GetField("NotificationTransportType") != null);
|
return typeof(GClass960.Class1578).GetMethod("method_0", BindingFlags.Instance | BindingFlags.Public);
|
||||||
return gclass911.GetNestedTypes(PatchConstants.PrivateFlags)[0].GetMethod("method_0", PatchConstants.PrivateFlags);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[PatchPostfix]
|
[PatchPostfix]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user