Building Location rotations are now a quaternion.

This commit is contained in:
2023-05-02 09:10:41 -04:00
parent e745c260f0
commit 715abf1444
5 changed files with 36 additions and 64 deletions
+4 -9
View File
@@ -265,16 +265,16 @@ public class Mob extends AbstractIntelligenceAgent {
this.notEnemy = EnumBitSet.asEnumBitSet(rs.getLong("notEnemy"), Enum.MonsterType.class);
this.enemy = EnumBitSet.asEnumBitSet(rs.getLong("enemy"), Enum.MonsterType.class);
this.firstName = rs.getString("mob_name");
if (this.firstName.isEmpty()) {
if (this.firstName.isEmpty())
this.firstName = this.mobBase.getFirstName();
}
if (this.contract != null) {
this.equipmentSetID = this.contract.getEquipmentSet();
this.lastName = this.getContract().getName();
} else {
} else
this.equipmentSetID = rs.getInt("equipmentSet");
}
if (rs.getString("fsm").length() > 1)
this.BehaviourType = MobBehaviourType.valueOf(rs.getString("fsm"));
@@ -370,11 +370,6 @@ public class Mob extends AbstractIntelligenceAgent {
writer.putFloat(1.0f);
}
// Location serialization matches NPC
if (mob.region != null)
writer.putVector3f(ZoneManager.convertWorldToLocal(mob.building, mob.getLoc()));
else
writer.putVector3f(mob.getLoc());
//Rotation