Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] is the scale of the pet even based on CreatureFamily scaling?

[DiscordArchive] is the scale of the pet even based on CreatureFamily scaling?

[DiscordArchive] is the scale of the pet even based on CreatureFamily scaling?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
01-06-2023, 12:49 AM
#1
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?
rektbyfaith
01-06-2023, 12:49 AM #1

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?

rektbyfaith
Administrator
0
01-06-2023, 12:50 AM
#2
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
rektbyfaith
01-06-2023, 12:50 AM #2

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

rektbyfaith
Administrator
0
01-06-2023, 12:50 AM
#3
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
rektbyfaith
01-06-2023, 12:50 AM #3

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

rektbyfaith
Administrator
0
01-06-2023, 12:50 AM
#4
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;
}
```
rektbyfaith
01-06-2023, 12:50 AM #4

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;
}
```

rektbyfaith
Administrator
0
01-06-2023, 12:51 AM
#5
Archived author: Kitzunu • Posted: 2023-01-06T00:51:22.595000+00:00
Original source

so yes
rektbyfaith
01-06-2023, 12:51 AM #5

Archived author: Kitzunu • Posted: 2023-01-06T00:51:22.595000+00:00
Original source

so yes

rektbyfaith
Administrator
0
01-06-2023, 12:51 AM
#6
Archived author: Seyden • Posted: 2023-01-06T00:51:25.800000+00:00
Original source

thats the calc from AzerothCore i guess?
rektbyfaith
01-06-2023, 12:51 AM #6

Archived author: Seyden • Posted: 2023-01-06T00:51:25.800000+00:00
Original source

thats the calc from AzerothCore i guess?

rektbyfaith
Administrator
0
01-06-2023, 12:51 AM
#7
Archived author: Kitzunu • Posted: 2023-01-06T00:51:33.019000+00:00
Original source

Same as TC 335
rektbyfaith
01-06-2023, 12:51 AM #7

Archived author: Kitzunu • Posted: 2023-01-06T00:51:33.019000+00:00
Original source

Same as TC 335

rektbyfaith
Administrator
0
01-06-2023, 12:51 AM
#8
Archived author: Seyden • Posted: 2023-01-06T00:51:35.788000+00:00
Original source

ah ok
rektbyfaith
01-06-2023, 12:51 AM #8

Archived author: Seyden • Posted: 2023-01-06T00:51:35.788000+00:00
Original source

ah ok

rektbyfaith
Administrator
0
01-06-2023, 12:51 AM
#9
Archived author: Kitzunu • Posted: 2023-01-06T00:51:39.177000+00:00
Original source

except
rektbyfaith
01-06-2023, 12:51 AM #9

Archived author: Kitzunu • Posted: 2023-01-06T00:51:39.177000+00:00
Original source

except

rektbyfaith
Administrator
0
01-06-2023, 12:51 AM
#10
Archived author: Kitzunu • Posted: 2023-01-06T00:51:47.158000+00:00
Original source

the displayinfo stuff
rektbyfaith
01-06-2023, 12:51 AM #10

Archived author: Kitzunu • Posted: 2023-01-06T00:51:47.158000+00:00
Original source

the displayinfo stuff

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)