Added imperial outpost, fixed visibility issue

- Added force crystal hunter's cave
- Added imperial outpost NPCs
- Fixed creature visibility while mounted
- Tweaked some spawn areas
- Debugged some spawn issues
This commit is contained in:
CharonInferar
2014-05-21 18:50:02 +02:00
parent 4a402abfc9
commit 164ed38fc4
38 changed files with 211 additions and 127 deletions
+24 -3
View File
@@ -339,6 +339,8 @@ public class SimulationService implements INetworkDispatch {
return;
}
CreatureObject creature = (CreatureObject) client.getParent();
CreatureObject object = (CreatureObject) client.getParent();
if (core.mountService.isMounted(object)) {
@@ -358,8 +360,11 @@ public class SimulationService implements INetworkDispatch {
move(object, oldPos.x, oldPos.z, newPos.x, newPos.z);
Quaternion newOrientation = new Quaternion(dataTransform.getWOrientation(), dataTransform.getXOrientation(), dataTransform.getYOrientation(), dataTransform.getZOrientation());
object.setPosition(newPos);
creature.setPosition(newPos);
object.setOrientation(newOrientation);
creature.setOrientation(newOrientation);
object.setMovementCounter(dataTransform.getMovementCounter());
creature.setMovementCounter(dataTransform.getMovementCounter());
}
if(object.getContainer() != null) {
object.getContainer()._remove(object);
@@ -400,9 +405,25 @@ public class SimulationService implements INetworkDispatch {
if(!updateAwareObjects.contains(obj) && obj != object && !object.getAwareObjects().contains(obj) && obj.getContainer() != object && obj.isInQuadtree()) {
if(obj.getAttachment("bigSpawnRange") == null && obj.getWorldPosition().getDistance2D(newPos) > 200)
continue;
object.makeAware(obj);
if(obj.getClient() != null)
obj.makeAware(object);
//object.makeAware(obj);
if (object.getOption(Options.MOUNT)){
CreatureObject owner = (CreatureObject) core.objectService.getObject(object.getOwnerId());
owner.makeAware(obj);
}
else {
object.makeAware(obj);
}
if(obj.getClient() != null){
if (object.getOption(Options.MOUNT)){
CreatureObject owner = (CreatureObject) core.objectService.getObject(object.getOwnerId());
obj.makeAware(owner);
}
else {
obj.makeAware(object);
}
}
}
}