File tree Expand file tree Collapse file tree 4 files changed +35
-6
lines changed
Expand file tree Collapse file tree 4 files changed +35
-6
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ public class MainPlugin : BaseUnityPlugin
1010 {
1111 public const string PluginGuid = "com.yoship1639.plugins.valheimvrm" ;
1212 public const string PluginName = "ValheimVRM" ;
13- public const string PluginVersion = "1.0.12 .0" ;
13+ public const string PluginVersion = "1.0.13 .0" ;
1414
1515 void Awake ( )
1616 {
Original file line number Diff line number Diff line change @@ -170,6 +170,31 @@ static void Postfix(Player __instance)
170170 }
171171 }
172172
173+ [ HarmonyPatch ( typeof ( Character ) , "GetHeadPoint" ) ]
174+ static class Patch_Character_GetHeadPoint
175+ {
176+ [ HarmonyPostfix ]
177+ static bool Prefix ( Character __instance , ref Vector3 __result )
178+ {
179+ var player = __instance as Player ;
180+ if ( player == null ) return true ;
181+
182+ if ( VRMModels . PlayerToVrmDic . TryGetValue ( player , out var vrm ) )
183+ {
184+ var animator = vrm . GetComponentInChildren < Animator > ( ) ;
185+ if ( animator == null ) return true ;
186+
187+ var head = animator . GetBoneTransform ( HumanBodyBones . Head ) ;
188+ if ( head == null ) return true ;
189+
190+ __result = head . position ;
191+ return false ;
192+ }
193+
194+ return true ;
195+ }
196+ }
197+
173198 [ HarmonyPatch ( typeof ( Player ) , "Awake" ) ]
174199 static class Patch_Player_Awake
175200 {
Original file line number Diff line number Diff line change 33 <PropertyGroup >
44 <OutputType >Library</OutputType >
55 <TargetFramework >net462</TargetFramework >
6- <Version >1.0.12 </Version >
6+ <Version >1.0.13 </Version >
77 </PropertyGroup >
88
99 <ItemGroup >
3232 <HintPath >D:\Steam\steamapps\common\Valheim\valheim_Data\Managed\UniHumanoid.dll</HintPath >
3333 </Reference >
3434 <Reference Include =" UnityEngine" >
35- <HintPath >D:\Steam\steamapps\common\Valheim\valheim_Data\Managed \UnityEngine.dll</HintPath >
35+ <HintPath >D:\Steam\steamapps\common\Valheim\unstripped_corlib \UnityEngine.dll</HintPath >
3636 </Reference >
3737 <Reference Include =" UnityEngine.AnimationModule" >
38- <HintPath >D:\Steam\steamapps\common\Valheim\valheim_Data\Managed \UnityEngine.AnimationModule.dll</HintPath >
38+ <HintPath >D:\Steam\steamapps\common\Valheim\unstripped_corlib \UnityEngine.AnimationModule.dll</HintPath >
3939 </Reference >
4040 <Reference Include =" UnityEngine.AssetBundleModule" >
41- <HintPath >D:\Steam\steamapps\common\Valheim\valheim_Data\Managed \UnityEngine.AssetBundleModule.dll</HintPath >
41+ <HintPath >D:\Steam\steamapps\common\Valheim\unstripped_corlib \UnityEngine.AssetBundleModule.dll</HintPath >
4242 </Reference >
4343 <Reference Include =" UnityEngine.CoreModule" >
44- <HintPath >D:\Steam\steamapps\common\Valheim\valheim_Data\Managed \UnityEngine.CoreModule.dll</HintPath >
44+ <HintPath >D:\Steam\steamapps\common\Valheim\unstripped_corlib \UnityEngine.CoreModule.dll</HintPath >
4545 </Reference >
4646 <Reference Include =" UnityEngine.UI" >
4747 <HintPath >D:\Steam\steamapps\common\Valheim\valheim_Data\Managed\UnityEngine.UI.dll</HintPath >
Original file line number Diff line number Diff line change @@ -225,6 +225,10 @@ <h3 class="title is-3">
225225 < h3 class ="title is-3 ">
226226 更新履歴
227227 </ h3 >
228+ < label class ="label "> ver 1.0.13</ label >
229+ < ul >
230+ < li > プレイヤーの頭上に表示されるテキストが振動する問題を修正</ li >
231+ </ ul >
228232 < label class ="label "> ver 1.0.12</ label >
229233 < ul >
230234 < li > ver1.0.10およびver1.0.11で処理が重くなってしまった問題を修正</ li >
You can’t perform that action at this time.
0 commit comments