public void FinalizeAfterLoad() { FemaleModel = UnitMgr.GetModelInfo(FemaleDisplayId); if (FemaleModel == null) { return; } MaleModel = UnitMgr.GetModelInfo(MaleDisplayId); if (MaleModel == null) { return; } if (FemaleModel.BoundingRadius < 0.1) { FemaleModel.BoundingRadius = MaleModel.BoundingRadius; } else if (MaleModel.BoundingRadius < 0.1) { MaleModel.BoundingRadius = FemaleModel.BoundingRadius; } if (FemaleModel.CombatReach < 0.1) { FemaleModel.CombatReach = MaleModel.CombatReach; } else if (MaleModel.CombatReach < 0.1) { MaleModel.CombatReach = FemaleModel.CombatReach; } ArchetypeMgr.BaseRaces[(uint)Id] = this; }
public void FinalizeAfterLoad() { //Faction = FactionMgr.Get(FactionTemplateId); FemaleModel = UnitMgr.GetModelInfo(FemaleDisplayId); if (FemaleModel != null) { MaleModel = UnitMgr.GetModelInfo(MaleDisplayId); if (MaleModel != null) { // fix broken values if (FemaleModel.BoundingRadius < 0.1) { FemaleModel.BoundingRadius = MaleModel.BoundingRadius; } else if (MaleModel.BoundingRadius < 0.1) { MaleModel.BoundingRadius = FemaleModel.BoundingRadius; } if (FemaleModel.CombatReach < 0.1) { FemaleModel.CombatReach = MaleModel.CombatReach; } else if (MaleModel.CombatReach < 0.1) { MaleModel.CombatReach = FemaleModel.CombatReach; } ArchetypeMgr.BaseRaces[(uint)Id] = this; } } }
public void FinalizeAfterLoad() { this.FemaleModel = UnitMgr.GetModelInfo(this.FemaleDisplayId); if (this.FemaleModel == null) { return; } this.MaleModel = UnitMgr.GetModelInfo(this.MaleDisplayId); if (this.MaleModel == null) { return; } if ((double)this.FemaleModel.BoundingRadius < 0.1) { this.FemaleModel.BoundingRadius = this.MaleModel.BoundingRadius; } else if ((double)this.MaleModel.BoundingRadius < 0.1) { this.MaleModel.BoundingRadius = this.FemaleModel.BoundingRadius; } if ((double)this.FemaleModel.CombatReach < 0.1) { this.FemaleModel.CombatReach = this.MaleModel.CombatReach; } else if ((double)this.MaleModel.CombatReach < 0.1) { this.MaleModel.CombatReach = this.FemaleModel.CombatReach; } ArchetypeMgr.BaseRaces[(uint)this.Id] = this; }