From c21baa97f10c64f04689d0ae75403b09d172a20b Mon Sep 17 00:00:00 2001 From: Alexsandro Percy Date: Sat, 17 May 2025 16:44:26 -0300 Subject: [PATCH] fixed direction after 5.11 bug --- airutils_wind.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/airutils_wind.lua b/airutils_wind.lua index 4769799..37f28c6 100644 --- a/airutils_wind.lua +++ b/airutils_wind.lua @@ -84,25 +84,25 @@ core.register_entity("airutils:wind_indicator",{ if vel > 11 then b_b = get_smooth(65, 11, 0, vel) end - self.object:set_bone_position("b_b", {x=0,y=8.25,z=0}, {x=0,y=0,z=-b_b}) + self.object:set_bone_position("b_b", {x=0,y=8.25,z=0}, {x=0,y=0,z=b_b}) local b_c = 15 if vel > 16 then b_c = get_smooth(15, 16, 11, vel) end - self.object:set_bone_position("b_c", {x=0,y=6.0,z=0}, {x=0,y=0,z=-b_c}) + self.object:set_bone_position("b_c", {x=0,y=6.0,z=0}, {x=0,y=0,z=b_c}) local b_d = 5 if vel > 22 then b_d = get_smooth(5, 22, 16, vel) end - self.object:set_bone_position("b_d", {x=0,y=4.5,z=0}, {x=0,y=0,z=-b_d}) + self.object:set_bone_position("b_d", {x=0,y=4.5,z=0}, {x=0,y=0,z=b_d}) local b_e = 2 if vel > 28 then b_e = get_smooth(2, 28, 22, vel) end - self.object:set_bone_position("b_e", {x=0,y=3,z=0}, {x=0,y=0,z=-b_e}) + self.object:set_bone_position("b_e", {x=0,y=3,z=0}, {x=0,y=0,z=b_e}) --core.chat_send_all("Wind Direction: "..math.deg(wind_yaw)) end, -- required