mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-08 07:11:16 +00:00
Allow custom capes in mods
This commit is contained in:
parent
b70de7f94b
commit
9973afbac6
5 changed files with 18 additions and 25 deletions
|
@ -4110,33 +4110,17 @@ void Avatar::refreshNormalForm()
|
|||
if (c.empty())
|
||||
c = "Naija";
|
||||
refreshModel("Naija", c);
|
||||
if (true)
|
||||
if(hair)
|
||||
{
|
||||
if (hair)
|
||||
hair->alphaMod = 1.0;
|
||||
hair->alphaMod = 1.0;
|
||||
if (!c.empty() && c!="Naija")
|
||||
{
|
||||
if (exists(core->getBaseTextureDirectory() + "naija/cape-"+c+".png"))
|
||||
{
|
||||
if (hair)
|
||||
hair->setTexture("naija/cape-"+c);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (hair)
|
||||
hair->alphaMod = 0;
|
||||
}
|
||||
hair->setTexture("naija/cape-"+c);
|
||||
if (Texture::textureError != TEXERR_OK)
|
||||
hair->alphaMod = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (hair)
|
||||
hair->setTexture("naija/cape");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (hair)
|
||||
hair->alphaMod = 0.0;
|
||||
hair->setTexture("naija/cape");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue