fix tail ParentType pivot

This commit is contained in:
NullBite 2024-07-19 14:36:17 -04:00
parent 27408ab92a
commit 2928c4de7f
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
2 changed files with 2110 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -33,7 +33,7 @@ do
if player:isLoaded() then PartsManager.refreshPartList(VANILLA_GROUPS.ARMOR) end if player:isLoaded() then PartsManager.refreshPartList(VANILLA_GROUPS.ARMOR) end
end end
local function refresh_tail() local function refresh_tail()
if player:isLoaded() then PartsManager.refreshPart(model.Body_Tail) end if player:isLoaded() then PartsManager.refreshPart(TAIL) end
end end
local defaults={ local defaults={
@ -62,6 +62,8 @@ end
-- }}} -- }}}
-- Part groups {{{ -- Part groups {{{
TAIL=model.Body_Tail.Tail1
VANILLA_GROUPS={ VANILLA_GROUPS={
["HEAD"]={vanilla_model.HEAD, vanilla_model.HAT}, ["HEAD"]={vanilla_model.HEAD, vanilla_model.HAT},
["TORSO"]={vanilla_model.BODY, vanilla_model.JACKET}, ["TORSO"]={vanilla_model.BODY, vanilla_model.JACKET},
@ -79,7 +81,7 @@ for _, v in pairs(VANILLA_GROUPS.INNER) do table.insert(VANILLA_GROUPS.ALL,v) en
for _, v in pairs(VANILLA_GROUPS.OUTER) do table.insert(VANILLA_GROUPS.ALL,v) end for _, v in pairs(VANILLA_GROUPS.OUTER) do table.insert(VANILLA_GROUPS.ALL,v) end
MAIN_GROUPS={model.Head, model.RightArm, model.LeftArm, model.RightLeg, model.LeftLeg, model.Body } -- RightArm LeftArm RightLeg LeftLeg Body Head MAIN_GROUPS={model.Head, model.RightArm, model.LeftArm, model.RightLeg, model.LeftLeg, model.Body } -- RightArm LeftArm RightLeg LeftLeg Body Head
TAIL_BONES={model.Body_Tail, model.Body_Tail.Tail2, model.Body_Tail.Tail2.Tail3, model.Body_Tail.Tail2.Tail3.Tail4} TAIL_BONES={TAIL, TAIL.Tail2, TAIL.Tail2.Tail3, TAIL.Tail2.Tail3.Tail4}
TAIL_ROT={vec( 37.5, 0, 0 ), vec( -17.5, 0, 0 ), vec( -17.5, 0, 0 ), vec( -15, 0, 0 )} TAIL_ROT={vec( 37.5, 0, 0 ), vec( -17.5, 0, 0 ), vec( -17.5, 0, 0 ), vec( -15, 0, 0 )}
-- }}} -- }}}
@ -175,7 +177,7 @@ do
PM.addPartListFunction(MAIN_GROUPS, function(last) return last and not forceVanilla() end) PM.addPartListFunction(MAIN_GROUPS, function(last) return last and not forceVanilla() end)
-- enable tail -- enable tail
PM.addPartFunction(model.Body_Tail, function(last) return last and sharedconfig.load("tail_enabled") end) PM.addPartFunction(TAIL, function(last) return last and sharedconfig.load("tail_enabled") end)
-- Armor state -- Armor state
PM.addPartListFunction(VANILLA_GROUPS.ARMOR, function(last) return last and sharedconfig.load("armor_enabled") end) PM.addPartListFunction(VANILLA_GROUPS.ARMOR, function(last) return last and sharedconfig.load("armor_enabled") end)