Compare commits

..

9 Commits

Author SHA1 Message Date
a2b23f3d03
Update TODO.md 2024-11-29 02:20:18 -05:00
0251fe4391
Add tail boot trims 2024-11-29 02:20:18 -05:00
ebf40878ce
Change tail boot UV 2024-11-29 02:20:17 -05:00
f429b83bc4
KattArmor: add chestplate, fix code 2024-11-29 02:20:17 -05:00
9e914039bf
Adjust tail movement amplitude
This helps prevent armor clipping
2024-11-29 02:20:17 -05:00
9f4f7c9882
Switch tail UV mappings to vanilla armor 2024-11-29 02:20:17 -05:00
fca93572ce
(wip) setup armor visibility rules 2024-11-29 02:20:17 -05:00
5d055c0ea6
(wip) script, bbmodel
- Imported textures into bbmodel
- minor script changes
2024-11-29 02:18:29 -05:00
048bd9cec3
Update TODO.md 2024-11-29 02:18:19 -05:00
4 changed files with 772 additions and 198 deletions

View File

@ -1,11 +1,5 @@
# TODO
## THIS BRANCH
- [ ] Split armor trim overhang into two objects with different UVs; you can
get the 4 pixel wide armor trim hang by combining the left and right
corners of the existing trim (kinda hacky and may break with modded
textures.
## General
- [ ] use matrix thing for UVManager (linear algebra is hard)
- [ ] Add action wheel icons

File diff suppressed because it is too large Load Diff

View File

@ -28,6 +28,7 @@ UVManager=require("nulllib.UVManager")
sharedstate=require("nulllib.sharedstate")
sharedconfig=require("nulllib.sharedconfig")
statemonitor=require("nulllib.statemonitor")
KattArmorTail=require("kattarmor.KattArmor")()
KattArmor=require("kattarmor.KattArmor")()
---Set optimal settings for random player sounds
@ -148,22 +149,32 @@ MAIN_GROUPS={model.Head, model.RightArm, model.LeftArm, model.RightLeg, model.Le
TAIL_LEGGINGS={
model.Body.LeggingsTop,
model.Body.LeggingsTopTrimF,
model.Body.LeggingsTopTrimB,
model.Body.LeggingsTopTrim,
model.Body.MTail1.Leggings,
model.Body.MTail1.LeggingsTrim,
model.Body.MTail1.MTail2.LeggingsBottom
}
TAIL_LEGGINGS_COLOR={
model.Body.LeggingsTopTrimF,
model.Body.LeggingsTopTrimB,
model.Body.LeggingsTopTrim,
model.Body.MTail1.Leggings,
model.Body.MTail1.LeggingsTrim,
model.Body.MTail1.MTail2.LeggingsBottom
}
TAIL_LEGGINGS_TRIM={
-- god help me
model.Body.LeggingsTopArmorTrim, -- the trim of the normal part
model.Body.LeggingsTopTrimArmorTrim, -- the trim of the trim
model.Body.MTail1.LeggingsArmorTrim,
model.Body.MTail1.LeggingsTrimArmorTrim,
model.Body.MTail1.MTail2.LegginsBottomArmorTrim
}
TAIL_BOOTS={
model.Body.MTail1.MTail2.MTail3.Boot,
model.Body.MTail1.MTail2.MTail3.LeatherBoot
--model.Body.MTail1.MTail2.MTail3.LeatherBoot
}
TAIL_BOOTS_TRIM={
model.Body.MTail1.MTail2.MTail3.BootArmorTrim,
}
TAIL_BONES={
model.Body.MTail1,
@ -262,11 +273,15 @@ do
PM.addPartListFunction(tail_parts, tail_visible_rule)
PM.addPartListFunction(TAIL_LEGGINGS, tail_visible_rule)
PM.addPartListFunction(TAIL_LEGGINGS_TRIM, tail_visible_rule)
PM.addPartListFunction(TAIL_BOOTS, tail_visible_rule)
PM.addPartListFunction(TAIL_BOOTS_TRIM, tail_visible_rule)
--- Armor state
local all_armor=util.reduce(util.mergeTable, {VANILLA_GROUPS.ARMOR, TAIL_LEGGINGS, TAIL_BOOTS})
PM.addPartListFunction(all_armor, function(last) return last and sharedconfig.load("armor_enabled") end)
-- Disable vanilla chestplate (KattArmor is better because animation)
PM.addPartFunction(vanilla_model.CHESTPLATE, function(_) return false end)
-- Only show armor if equipped
-- PM.addPartFunction(model.Body.MTail1.MTail2.MTail3.Boot, function(last) return last and armor_state.boots end)
-- PM.addPartFunction(model.Body.MTail1.MTail2.MTail3.LeatherBoot, function(last) return last and armor_state.leather_boots end)
@ -281,9 +296,15 @@ SNORES={"snore-1", "snore-2", "snore-3"}
-- }}}
-- KattArmor Config -- {{{
KattArmor.Armor.Leggings:addParts(table.unpack(TAIL_LEGGINGS))
KattArmor.Armor.Boots:addParts(table.unpack(TAIL_BOOTS))
-- KattArmor.
KattArmorTail.Armor.Leggings:addParts(table.unpack(TAIL_LEGGINGS))
KattArmorTail.Armor.Leggings:addTrimParts(table.unpack(TAIL_LEGGINGS_TRIM))
KattArmorTail.Armor.Leggings:setLayer(1)
KattArmorTail.Armor.Boots:addParts(table.unpack(TAIL_BOOTS))
KattArmorTail.Armor.Boots:addTrimParts(table.unpack(TAIL_BOOTS_TRIM))
KattArmor.Armor.Chestplate:addParts(model.Body.Chestplate, model.LeftArm.Chestplate, model.RightArm.Chestplate)
KattArmor.Armor.Chestplate:addTrimParts(model.Body.ChestplateTrim, model.LeftArm.ChestplateTrim, model.RightArm.ChestplateTrim)
-- }}}
-- Expression change -- {{{
@ -682,10 +703,9 @@ function animateMTail(val, delta)
amplitude_multiplier=0.3
end
resetAngles(model.Body)
model.Body:setRot(vec( wave(val, period, 3*amplitude_multiplier), 0, 0 ))
model.Body.LeggingsTopTrimF:setRot(vec( wave(val-1, period, 4*amplitude_multiplier), 0, 0 ))
model.Body.LeggingsTopTrimB:setRot(vec( wave(val-1, period, 4*amplitude_multiplier), 0, 0 ))
TAIL_BONES[1]:setRot(vec( wave(val-1, period, 7*amplitude_multiplier) + curve, 0, 0 ))
model.Body:setRot(vec( wave(val, period, 2*amplitude_multiplier), 0, 0 ))
-- model.Body.LeggingsTopTrim:setRot(vec( wave(val-1, period, 4*amplitude_multiplier), 0, 0 ))
TAIL_BONES[1]:setRot(vec( wave(val-1, period, 4*amplitude_multiplier) + curve, 0, 0 ))
end
TAIL_BONES[2]:setRot(vec( wave(val-2, period, 8*amplitude_multiplier) + curve, 0, 0 ))

BIN
textures/blank.png (Stored with Git LFS) Normal file

Binary file not shown.