From 72e2c7aa514a7a994c5fe0c8333800ba8c2b3056 Mon Sep 17 00:00:00 2001 From: Alexsandro Percy Date: Sun, 16 Feb 2025 15:02:17 -0300 Subject: [PATCH] Removed player arm animations until further investigations --- .../motorcycle_entities.lua | 8 +++---- automobiles_motorcycle/motorcycle_player.lua | 21 +++++++++++-------- automobiles_vespa/vespa_entities.lua | 4 ++-- automobiles_vespa/vespa_player.lua | 17 ++++++--------- 4 files changed, 24 insertions(+), 26 deletions(-) diff --git a/automobiles_motorcycle/motorcycle_entities.lua b/automobiles_motorcycle/motorcycle_entities.lua index 1d0577d..2ed0866 100755 --- a/automobiles_motorcycle/motorcycle_entities.lua +++ b/automobiles_motorcycle/motorcycle_entities.lua @@ -249,10 +249,10 @@ minetest.register_entity("automobiles_motorcycle:motorcycle", { --player:set_bone_position("Arm_Left", {x=3.0, y=5, z=-arm_range-armZ}, {x=240-(self._steering_angle/2), y=0, z=0}) --player:set_bone_position("Arm_Right", {x=-3.0, y=5, z=armZ}, {x=240+(self._steering_angle/2), y=0, z=0}) if self.driver_mesh then - self.driver_mesh:set_bone_position("Arm_Left", {x=3.0, y=5, z=-armZ-2}, {x=180+60-(self._steering_angle/2), y=0, z=0}) - --self.driver_mesh:set_bone_override("Arm_Left", { position = {x=3.0, y=5, z=-armZ-2}, rotation = {x=60-(self._steering_angle/2), y=0, z=0}}) - self.driver_mesh:set_bone_position("Arm_Right", {x=-3.0, y=5, z=armZ}, {x=180+60+(self._steering_angle/2), y=0, z=0}) - --self.driver_mesh:set_bone_override("Arm_Right", { position = {x=-3.0, y=5, z=-armZ}, rotation = {x=60+(self._steering_angle/2), y=0, z=0} }) + --self.driver_mesh:set_bone_position("Arm_Left", {x=3.0, y=5, z=-armZ-2}, {x=180+60-(self._steering_angle/2), y=0, z=0}) + --old self.driver_mesh:set_bone_override("Arm_Left", { position = {x=3.0, y=5, z=-armZ-2}, rotation = {x=60-(self._steering_angle/2), y=0, z=0}}) + --self.driver_mesh:set_bone_position("Arm_Right", {x=-3.0, y=5, z=armZ}, {x=180+60+(self._steering_angle/2), y=0, z=0}) + --old self.driver_mesh:set_bone_override("Arm_Right", { position = {x=-3.0, y=5, z=-armZ}, rotation = {x=60+(self._steering_angle/2), y=0, z=0} }) end end end diff --git a/automobiles_motorcycle/motorcycle_player.lua b/automobiles_motorcycle/motorcycle_player.lua index 6e54b76..65afbe3 100644 --- a/automobiles_motorcycle/motorcycle_player.lua +++ b/automobiles_motorcycle/motorcycle_player.lua @@ -54,17 +54,20 @@ function motorcycle.attach_driver_stand(self, player) --position the dummy arms and legs self.driver_mesh:set_properties(self.driver_properties) - self.driver_mesh:set_bone_position("Leg_Left", {x=1.1, y=0, z=0}, {x=180+12, y=0, z=10}) - self.driver_mesh:set_bone_position("Leg_Right", {x=-1.1, y=0, z=0}, {x=180+12, y=0, z=-10}) + --[[self.driver_mesh:set_bone_override("Leg_Left", { + position = {vec = {x=1.0, y=0, z=0}, absolute = true}, + rotation = {vec = {x=math.rad(-12), y=0, z=math.rad(190)}, absolute = true} + }) + self.driver_mesh:set_bone_override("Leg_Right", { + position = {vec = {x=-1.0, y=0, z=0}, absolute = true}, + rotation = {vec = {x=math.rad(-12), y=0, z=math.rad(-190)}, absolute = true} + })]]-- + --self.driver_mesh:set_bone_position("Leg_Left", {x=1.1, y=0, z=0}, {x=12, y=0, z=10}) + --self.driver_mesh:set_bone_position("Leg_Right", {x=-1.1, y=0, z=0}, {x=12, y=0, z=-10}) self.driver_mesh:set_properties({ is_visible=true, }) - - --[[player:set_bone_position("Leg_Left", {x=1.1, y=0, z=0}, {x=180+12, y=0, z=10}) - player:set_bone_position("Leg_Right", {x=-1.1, y=0, z=0}, {x=180+12, y=0, z=-10}) - player:set_bone_position("Arm_Left", {x=3.0, y=5, z=-1}, {x=180+70, y=0, z=0}) - player:set_bone_position("Arm_Right", {x=-3.0, y=5, z=-1}, {x=180+70, y=0, z=0})]]-- end function motorcycle.dettach_driver_stand(self, player) @@ -144,8 +147,8 @@ function motorcycle.attach_pax_stand(self, player) --position the dummy arms and legs self.pax_mesh:set_properties(self.pax_properties) - self.pax_mesh:set_bone_position("Leg_Left", {x=1.1, y=0, z=0}, {x=180+12, y=0, z=10}) - self.pax_mesh:set_bone_position("Leg_Right", {x=-1.1, y=0, z=0}, {x=180+12, y=0, z=-10}) + --self.pax_mesh:set_bone_position("Leg_Left", {x=1.1, y=0, z=0}, {x=180+12, y=0, z=10}) + --self.pax_mesh:set_bone_position("Leg_Right", {x=-1.1, y=0, z=0}, {x=180+12, y=0, z=-10}) self.pax_mesh:set_properties({ is_visible=true, }) diff --git a/automobiles_vespa/vespa_entities.lua b/automobiles_vespa/vespa_entities.lua index d6f3c2a..e874124 100755 --- a/automobiles_vespa/vespa_entities.lua +++ b/automobiles_vespa/vespa_entities.lua @@ -242,8 +242,8 @@ minetest.register_entity("automobiles_vespa:vespa", { --player:set_bone_position("Arm_Left", {x=3.0, y=5, z=-arm_range-armZ}, {x=240-(self._steering_angle/2), y=0, z=0}) --player:set_bone_position("Arm_Right", {x=-3.0, y=5, z=armZ}, {x=240+(self._steering_angle/2), y=0, z=0}) if self.driver_mesh then - self.driver_mesh:set_bone_position("Arm_Left", {x=3.0, y=5, z=-armZ-0.5}, {x=180+76-(self._steering_angle/2), y=0, z=0}) - self.driver_mesh:set_bone_position("Arm_Right", {x=-3.0, y=5, z=armZ+1.5}, {x=180+76+(self._steering_angle/2), y=0, z=0}) + --self.driver_mesh:set_bone_position("Arm_Left", {x=3.0, y=5, z=-armZ-0.5}, {x=180+76-(self._steering_angle/2), y=0, z=0}) + --self.driver_mesh:set_bone_position("Arm_Right", {x=-3.0, y=5, z=armZ+1.5}, {x=180+76+(self._steering_angle/2), y=0, z=0}) end end diff --git a/automobiles_vespa/vespa_player.lua b/automobiles_vespa/vespa_player.lua index 6b4e8cc..a3dcc96 100644 --- a/automobiles_vespa/vespa_player.lua +++ b/automobiles_vespa/vespa_player.lua @@ -54,16 +54,11 @@ function vespa.attach_driver_stand(self, player) --position the dummy arms and legs self.driver_mesh:set_properties(self.driver_properties) - self.driver_mesh:set_bone_position("Leg_Left", {x=1.1, y=1, z=0}, {x=180+12, y=0, z=7}) - self.driver_mesh:set_bone_position("Leg_Right", {x=-1.1, y=1, z=0}, {x=180+12, y=0, z=-7}) + --self.driver_mesh:set_bone_position("Leg_Left", {x=1.1, y=1, z=0}, {x=180+12, y=0, z=7}) + --self.driver_mesh:set_bone_position("Leg_Right", {x=-1.1, y=1, z=0}, {x=180+12, y=0, z=-7}) self.driver_mesh:set_properties({ is_visible=true, }) - - --[[player:set_bone_position("Leg_Left", {x=1.1, y=0, z=0}, {x=180+12, y=0, z=10}) - player:set_bone_position("Leg_Right", {x=-1.1, y=0, z=0}, {x=180+12, y=0, z=-10}) - player:set_bone_position("Arm_Left", {x=3.0, y=5, z=-1}, {x=180+70, y=0, z=0}) - player:set_bone_position("Arm_Right", {x=-3.0, y=5, z=-1}, {x=180+70, y=0, z=0})]]-- end function vespa.dettach_driver_stand(self, player) @@ -143,11 +138,11 @@ function vespa.attach_pax_stand(self, player) --position the dummy arms and legs self.pax_mesh:set_properties(self.pax_properties) - self.pax_mesh:set_bone_position("Leg_Left", {x=1.1, y=0, z=0}, {x=180+12, y=0, z=15}) - self.pax_mesh:set_bone_position("Leg_Right", {x=-1.1, y=0, z=0}, {x=180+12, y=0, z=-15}) + --self.pax_mesh:set_bone_position("Leg_Left", {x=1.1, y=0, z=0}, {x=180+12, y=0, z=15}) + --self.pax_mesh:set_bone_position("Leg_Right", {x=-1.1, y=0, z=0}, {x=180+12, y=0, z=-15}) - self.pax_mesh:set_bone_position("Arm_Left", {x=3.0, y=5, z=0}, {x=180+45, y=0, z=0}) - self.pax_mesh:set_bone_position("Arm_Right", {x=-3.0, y=5, z=0}, {x=180+45, y=0, z=0}) + --self.pax_mesh:set_bone_position("Arm_Left", {x=3.0, y=5, z=0}, {x=180+45, y=0, z=0}) + --self.pax_mesh:set_bone_position("Arm_Right", {x=-3.0, y=5, z=0}, {x=180+45, y=0, z=0}) self.pax_mesh:set_properties({ is_visible=true,