From 7b86d87cc2351fe889b74a86255442a0980e3ef2 Mon Sep 17 00:00:00 2001 From: NullBite Date: Fri, 25 Mar 2022 14:17:50 -0400 Subject: [PATCH] Tail animation: rotate vanilla torso instead --- script.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/script.lua b/script.lua index 5767c55..100001b 100644 --- a/script.lua +++ b/script.lua @@ -828,8 +828,11 @@ end function animateTail(val) local chest_rot = 3 local per=2*math.pi - model.Body.setRot(vectors.of{wave(val, per, 3), 0, 0}) + -- model.Body.setRot(vectors.of{wave(val, per, 3), 0, 0}) armor_model.CHESTPLATE.setRot(vectors.of{-wave(val, per, rad(3)), 0, 0}) + -- this makes it work with partial vanilla + vanilla_model.TORSO.setRot(vectors.of{-wave(val, per, rad(3)), 0, 0}) + vanilla_model.JACKET.setRot(vectors.of{-wave(val, per, rad(3.25)), 0, 0}) model.Body.LeggingsTopTrimF.setRot(vectors.of{wave(val-1, per, 4), 0, 0}) model.Body.LeggingsTopTrimB.setRot(vectors.of{wave(val-1, per, 4), 0, 0})