BFA Update (still lots of testing to do tho)

This commit is contained in:
hondacrx
2018-12-10 12:46:25 -05:00
parent 468b053946
commit 8e20114e10
256 changed files with 35613 additions and 10459 deletions
@@ -41,7 +41,8 @@ namespace Game.Entities
objectTypeMask |= TypeMask.GameObject;
objectTypeId = TypeId.GameObject;
m_updateFlag = UpdateFlag.StationaryPosition | UpdateFlag.Rotation;
m_updateFlag.Stationary = true;
m_updateFlag.Rotation = true;
valuesCount = (int)GameObjectFields.End;
m_respawnDelayTime = 300;
@@ -219,7 +220,7 @@ namespace Game.Entities
else
{
guid = ObjectGuid.Create(HighGuid.Transport, map.GenerateLowGuid(HighGuid.Transport));
m_updateFlag |= UpdateFlag.Transport;
m_updateFlag.ServerTime = true;
}
_Create(guid);
@@ -252,7 +253,7 @@ namespace Game.Entities
if (m_goTemplateAddon.WorldEffectID != 0)
{
m_updateFlag |= UpdateFlag.Gameobject;
m_updateFlag.GameObject = true;
SetWorldEffectID(m_goTemplateAddon.WorldEffectID);
}
}
@@ -274,6 +275,8 @@ namespace Game.Entities
SetGoState(goState);
SetGoArtKit((byte)artKit);
SetUInt32Value(GameObjectFields.StateAnimId, (uint)CliDB.AnimationDataStorage.Count);
switch (goInfo.type)
{
case GameObjectTypes.FishingHole:
@@ -356,7 +359,7 @@ namespace Game.Entities
if (gameObjectAddon != null && gameObjectAddon.WorldEffectID != 0)
{
m_updateFlag |= UpdateFlag.Gameobject;
m_updateFlag.GameObject = true;
SetWorldEffectID(gameObjectAddon.WorldEffectID);
}