mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-28 00:26:13 +01:00
feat: armorstand from decomp
This commit is contained in:
1 parent
27d0a8ffc3
commit
383302eb2e
64 files changed
+2880
-1574
No files matched your search
@@ -967,4 +967,39 @@ void HumanoidModel::render(HumanoidModel *model, float scale, bool usecompiled)
|
||||
pants0->render(scale, usecompiled,(m_uiAnimOverrideBitmask&(1<<eAnim_DisableRenderPants0))>0);
|
||||
if (pants1)
|
||||
pants1->render(scale, usecompiled,(m_uiAnimOverrideBitmask&(1<<eAnim_DisableRenderPants1))>0);
|
||||
}
|
||||
|
||||
void HumanoidModel::setAllVisible(bool v) {
|
||||
|
||||
head->visible = v;
|
||||
hair->visible = v;
|
||||
body->visible = v;
|
||||
arm1->visible = v;
|
||||
arm0->visible = v;
|
||||
leg0->visible = v;
|
||||
leg1->visible = v;
|
||||
}
|
||||
|
||||
void HumanoidModel::translateToHandItem(float scale) {
|
||||
|
||||
arm1->translateTo(scale);
|
||||
}
|
||||
|
||||
bool HumanoidModel::IsBodyPartDisabled(animbits bit) {
|
||||
return (m_uiAnimOverrideBitmask & (1u << bit)) != 0;
|
||||
}
|
||||
|
||||
void HumanoidModel::copyPropertiesFrom(HumanoidModel* other) {
|
||||
if (!other) return;
|
||||
|
||||
idle = other->idle;
|
||||
sneaking = other->sneaking;
|
||||
bowAndArrow = other->bowAndArrow;
|
||||
eating = other->eating;
|
||||
eating_t = other->eating_t;
|
||||
eating_swing = other->eating_swing;
|
||||
holdingLeftHand = other->holdingLeftHand;
|
||||
holdingRightHand = other->holdingRightHand;
|
||||
m_uiAnimOverrideBitmask = other->m_uiAnimOverrideBitmask;
|
||||
m_fYOffset = other->m_fYOffset;
|
||||
}
|
||||
Reference in new issue
Block a user