1
0
Fork 0

Fix mobs with horrizontal heads having inverted yaw when attacking

mobs_head_rotation
epCode 2022-06-11 10:59:28 -07:00
parent d0d7facfd7
commit e5ff73af3a
1 changed files with 1 additions and 1 deletions

View File

@ -3690,7 +3690,7 @@ local mob_step = function(self, dtime)
if self.head_yaw == "y" then
self.object:set_bone_position(self.head_swivel, vector.new(0,self.bone_eye_height,self.horrizonatal_head_height), vector.new(mob_pitch, mob_yaw, 0))
elseif self.head_yaw == "z" then
self.object:set_bone_position(self.head_swivel, vector.new(0,self.bone_eye_height,self.horrizonatal_head_height), vector.new(mob_pitch, 0, mob_yaw))
self.object:set_bone_position(self.head_swivel, vector.new(0,self.bone_eye_height,self.horrizonatal_head_height), vector.new(mob_pitch, 0, -mob_yaw))
end
else
if self.head_yaw == "y" then