mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-15 06:53:51 +00:00
Added skin box hide bit functionality
Added code to hide skin boxes when wearing a helmet if bit for said functionality is present.
This commit is contained in:
parent
fd2fd65908
commit
24c74aa225
4 changed files with 6 additions and 1 deletions
|
|
@ -109,6 +109,7 @@ ModelPart * HumanoidModel::AddOrRetrievePart(SKIN_BOX *pBox)
|
|||
pNewBox = new ModelPart(this, static_cast<int>(pBox->fU), static_cast<int>(pBox->fV));
|
||||
pNewBox->visible=false;
|
||||
if (pBox->fM > 0) pNewBox->bMirror = true; // check if this box has the mirror flag
|
||||
if (pBox->fA > 0) pNewBox->hideWithHelmet = true; // check if this box has the "hide when helmet" is worn flag
|
||||
pNewBox->addHumanoidBox(pBox->fX, pBox->fY, pBox->fZ, pBox->fW, pBox->fH, pBox->fD, scale);
|
||||
// 4J-PB - don't compile here, since the lighting isn't set up. It'll be compiled on first use.
|
||||
//pNewBox->compile(1.0f/16.0f);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue