• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

VS plugin mod for Basic Armour


Commit MetaInfo

Revisionb06524e1f5743583ca1cee4b4c6d759a3288c01c (tree)
Time2019-06-13 11:36:46
Authormelchior <melchior@user...>
Commitermelchior

Log Message

Fixed helmet rotation for correct entity

Change Summary

Incremental Difference

--- a/ArmourMod/Armour/AmourMeshRenderer.cs
+++ b/ArmourMod/Armour/AmourMeshRenderer.cs
@@ -151,8 +151,8 @@ namespace ArmourMod
151151
152152 var headMatrix = Mat4f.Create( );
153153 Mat4f.Identity(headMatrix);
154- Mat4f.RotateY(headMatrix, headMatrix, ClientAPI.World.Player.Entity.HeadYaw);
155- Mat4f.RotateZ(headMatrix, headMatrix, ClientAPI.World.Player.Entity.HeadPitch);
154+ Mat4f.RotateY(headMatrix, headMatrix, armouredPlayer.HeadYaw);
155+ Mat4f.RotateZ(headMatrix, headMatrix, armouredPlayer.HeadPitch);
156156
157157 armourModelMatrix
158158 .Scale( armourData.Armour_Transform.ScaleXYZ.X, armourData.Armour_Transform.ScaleXYZ.Y, armourData.Armour_Transform.ScaleXYZ.Z )