VS plugin mod for Basic Armour
修订版 | b06524e1f5743583ca1cee4b4c6d759a3288c01c (tree) |
---|---|
时间 | 2019-06-13 11:36:46 |
作者 | melchior <melchior@user...> |
Commiter | melchior |
Fixed helmet rotation for correct entity
@@ -151,8 +151,8 @@ namespace ArmourMod | ||
151 | 151 | |
152 | 152 | var headMatrix = Mat4f.Create( ); |
153 | 153 | 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); | |
156 | 156 | |
157 | 157 | armourModelMatrix |
158 | 158 | .Scale( armourData.Armour_Transform.ScaleXYZ.X, armourData.Armour_Transform.ScaleXYZ.Y, armourData.Armour_Transform.ScaleXYZ.Z ) |