Compare commits

...

2 Commits

Author SHA1 Message Date
2928c4de7f
fix tail ParentType pivot 2024-07-19 14:36:17 -04:00
27408ab92a
windows sucks and can't handle < in filename 2023-07-01 10:49:33 -04:00
3 changed files with 2111 additions and 5 deletions

View File

@ -1,5 +1,5 @@
{
"name": "Yzum <3",
"name": "Yzum less than 3",
"author": "NullBite",
"autoScripts": ["script"]
}

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
end
local function refresh_tail()
if player:isLoaded() then PartsManager.refreshPart(model.Body_Tail) end
if player:isLoaded() then PartsManager.refreshPart(TAIL) end
end
local defaults={
@ -62,6 +62,8 @@ end
-- }}}
-- Part groups {{{
TAIL=model.Body_Tail.Tail1
VANILLA_GROUPS={
["HEAD"]={vanilla_model.HEAD, vanilla_model.HAT},
["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
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 )}
-- }}}
@ -175,7 +177,7 @@ do
PM.addPartListFunction(MAIN_GROUPS, function(last) return last and not forceVanilla() end)
-- 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
PM.addPartListFunction(VANILLA_GROUPS.ARMOR, function(last) return last and sharedconfig.load("armor_enabled") end)