TU46 Test content and patches

TU46 Test content, added missing commits by amending commit and cherry-picking to new branch, ready for iggy guis and tu46 bug fixes
This commit is contained in:
Tranqlmao authored and DrPerkyLegit committed 2026-10-22 13:55:39 -04:00
1 parent 8d6b69f599
commit ff562d1644
497 files changed
+11187 -771

No files matched your search

+26 -1
View File
@@ -7,6 +7,15 @@
ResourceLocation ZombieRenderer::ZOMBIE_PIGMAN_LOCATION(TN_MOB_PIGZOMBIE);
ResourceLocation ZombieRenderer::ZOMBIE_LOCATION(TN_MOB_ZOMBIE);
ResourceLocation ZombieRenderer::ZOMBIE_VILLAGER_LOCATION(TN_MOB_ZOMBIE_VILLAGER);
ResourceLocation ZombieRenderer::HUSK_LOCATION(TN_MOB_HUSK);
ResourceLocation ZombieRenderer::ZOMBIE_VILLAGER_PROFESSION_LOCATIONS[5] =
{
ResourceLocation(TN_MOB_ZOMBIE_VILLAGER_FARMER),
ResourceLocation(TN_MOB_ZOMBIE_VILLAGER_LIBRARIAN),
ResourceLocation(TN_MOB_ZOMBIE_VILLAGER_PRIEST),
ResourceLocation(TN_MOB_ZOMBIE_VILLAGER_SMITH),
ResourceLocation(TN_MOB_ZOMBIE_VILLAGER_BUTCHER),
};
ZombieRenderer::ZombieRenderer() : HumanoidMobRenderer(new ZombieModel(), .5f, 1.0f)
{
@@ -64,8 +73,14 @@ ResourceLocation *ZombieRenderer::getTextureLocation(shared_ptr<Entity> entity)
if (mob->isVillager())
{
int profession = mob->getProfession();
if (profession >= 0 && profession < 5) return &ZOMBIE_VILLAGER_PROFESSION_LOCATIONS[profession];
return &ZOMBIE_VILLAGER_LOCATION;
}
if (mob->isHusk())
{
return &HUSK_LOCATION;
}
return &ZOMBIE_LOCATION;
}
@@ -110,4 +125,14 @@ void ZombieRenderer::setupRotations(shared_ptr<LivingEntity> _mob, float bob, fl
bodyRot += static_cast<float>(cos(mob->tickCount * 3.25) * PI * .25f);
}
HumanoidMobRenderer::setupRotations(mob, bob, bodyRot, a);
}
}
void ZombieRenderer::scale(shared_ptr<LivingEntity> _mob, float a)
{
HumanoidMobRenderer::scale(_mob, a);
shared_ptr<Zombie> mob = dynamic_pointer_cast<Zombie>(_mob);
if (mob != nullptr && mob->isHusk())
{
glScalef(1.0625f, 1.0625f, 1.0625f);
}
}