Compare commits

...

3 Commits

Author SHA1 Message Date
a125b00eea
Updated references for new SPT dlls for v1.0.3 build 2024-12-15 19:56:44 -06:00
36bc9014fd
Build v1.0.3 2024-12-15 19:33:18 -06:00
1b2fc9b3ef
Added syncing of head angles 2024-12-15 19:30:02 -06:00
2 changed files with 14 additions and 7 deletions

View File

@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>JBTrackIR</AssemblyName>
<Description>SPT TrackIR Support</Description>
<Version>1.0.2</Version>
<Version>1.0.3</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion>
<RestoreAdditionalProjectSources>
@ -23,15 +23,21 @@
<Reference Include="0Harmony">
<HintPath>..\References\0Harmony.dll</HintPath>
</Reference>
<Reference Include="Aki.Reflection">
<HintPath>..\References\Aki.Reflection.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp">
<HintPath>..\References\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="BepInEx">
<HintPath>..\References\BepInEx.dll</HintPath>
</Reference>
<Reference Include="spt-common">
<HintPath>..\References\spt-common.dll</HintPath>
</Reference>
<Reference Include="spt-core">
<HintPath>..\References\spt-core.dll</HintPath>
</Reference>
<Reference Include="spt-reflection">
<HintPath>..\References\spt-reflection.dll</HintPath>
</Reference>
<Reference Include="TrackIRUnity">
<HintPath>..\References\TrackIRUnity.dll</HintPath>
</Reference>

View File

@ -1,4 +1,4 @@
using Aki.Reflection.Patching;
using SPT.Reflection.Patching;
using BepInEx;
using BepInEx.Configuration;
using EFT;
@ -16,7 +16,7 @@ using UnityEngine;
namespace JBTrackIR;
[BepInPlugin("com.jonbons.trackir", "JonBons.TrackIR", "1.0.2")]
[BepInPlugin("com.jonbons.trackir", "JonBons.TrackIR", "1.0.3")]
public class Plugin : BaseUnityPlugin
{
static ConfigEntry<bool> tirRefresh;
@ -204,6 +204,7 @@ public class Plugin : BaseUnityPlugin
//rot.z = Mathf.Clamp(-tid.fNPRoll * rotationReductionFactor, rollLimits.lower, rollLimits.upper);
}
__instance.HeadRotation = rot; // sync head angles
__instance.ProceduralWeaponAnimation.SetHeadRotation(rot);
//Logger.LogInfo(string.Format("TIR DATA Final pos = {0}; Final rot = {1}", pos, rot));
}