Core/Objects: ported and implement custom visibility range functionality for creatures and gameobjects. Gameobjects will now get their visbility range read from their template data while creatures can be modified at will. The initial visbility distance changes has been parsed from MoP difficulty data by Kilyana
This commit is contained in:
1 parent
1c07e94666
commit
7543c45c7c
10 files changed
+157
-47
No files matched your search
@@ -337,6 +337,14 @@ bool GameObject::Create(ObjectGuid::LowType guidlow, uint32 name_id, Map* map, u
|
||||
delete linkedGO;
|
||||
}
|
||||
|
||||
// Check if GameObject is Infinite
|
||||
if (m_goInfo->IsInfiniteGameObject())
|
||||
SetVisibilityDistanceOverride(VisibilityDistanceType::Infinite);
|
||||
|
||||
// Check if GameObject is Gigantic
|
||||
if (m_goInfo->IsGiganticGameObject())
|
||||
SetVisibilityDistanceOverride(VisibilityDistanceType::Gigantic);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user