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