• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubybathyscaphegamepythonphpguiwindowsc翻訳omegattwitterframeworkbtronarduinovb.net計画中(planning stage)directxpreviewertestゲームエンジンdom

VS plugin mod for Basic Armour


Commit MetaInfo

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

Log Message

Fixed helmet rotation for correct entity

Ändern Zusammenfassung

Diff

--- 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 )