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 EFT.UI.Settings;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
|
@ -53,8 +53,7 @@ namespace SamSWAT.FOV
|
|||||||
return;
|
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 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.Public | BindingFlags.Instance);
|
return typeof(PlayerSpring).GetMethod("Start", BindingFlags.NonPublic | BindingFlags.Instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
[PatchPostfix]
|
[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>
|
<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>
|
||||||
@ -40,9 +43,6 @@
|
|||||||
<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 SPT.Reflection.Patching;
|
using Aki.Reflection.Patching;
|
||||||
using SPT.Reflection.Utils;
|
using Aki.Reflection.Utils;
|
||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
@ -11,7 +11,8 @@ namespace SamSWAT.FOV
|
|||||||
{
|
{
|
||||||
protected override MethodBase GetTargetMethod()
|
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]
|
[PatchPostfix]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user