[DiscordArchive] is the scale of the pet even based on CreatureFamily scaling?
[DiscordArchive] is the scale of the pet even based on CreatureFamily scaling?
Archived author: Seyden • Posted: 2023-01-06T00:49:45.847000+00:00
Original source
is the scale of the pet even based on CreatureFamily scaling?
Archived author: Seyden • Posted: 2023-01-06T00:50:10.734000+00:00
Original source
i wonder if MinScale and MaxScale is supposed to scale the model
Archived author: Seyden • Posted: 2023-01-06T00:50:40.718000+00:00
Original source
quickly taking a look if we changed anything for pets in cata
Archived author: Kitzunu • Posted: 2023-01-06T00:50:55.328000+00:00
Original source
here's the entire scale calc
```cpp
float Pet::GetNativeObjectScale() const
{
CreatureFamilyEntry const* creatureFamily = sCreatureFamilyStore.LookupEntry(GetCreatureTemplate()->family);
if (creatureFamily && creatureFamily->minScale > 0.0f && getPetType() == HUNTER_PET)
{
float scale;
if (GetLevel() >= creatureFamily->maxScaleLevel)
scale = creatureFamily->maxScale;
else if (GetLevel() <= creatureFamily->minScaleLevel)
scale = creatureFamily->minScale;
else
scale = creatureFamily->minScale + float(GetLevel() - creatureFamily->minScaleLevel) / creatureFamily->maxScaleLevel * (creatureFamily->maxScale - creatureFamily->minScale);
if (CreatureDisplayInfoEntry const* displayInfo = sCreatureDisplayInfoStore.LookupEntry(GetNativeDisplayId()))
if (displayInfo->scale > 1.f)
scale *= displayInfo->scale;
return scale;
}
```
Archived author: Kitzunu • Posted: 2023-01-06T00:51:22.595000+00:00
Original source
so yes
Archived author: Seyden • Posted: 2023-01-06T00:51:25.800000+00:00
Original source
thats the calc from AzerothCore i guess?
Archived author: Kitzunu • Posted: 2023-01-06T00:51:33.019000+00:00
Original source
Same as TC 335
Archived author: Seyden • Posted: 2023-01-06T00:51:35.788000+00:00
Original source
ah ok
Archived author: Kitzunu • Posted: 2023-01-06T00:51:39.177000+00:00
Original source
except
Archived author: Kitzunu • Posted: 2023-01-06T00:51:47.158000+00:00
Original source
the displayinfo stuff