Preliminary work for ITV's

Added collision detection for buildings in set proximity
Added callforrattletrappickup command
Added Despawn threads so the ITV despawns after 60 seconds or when you
are out more then 50 meter(needs tweeking)
Added Radial for ITV
Altered Ticketpurchasemodemessage so the ITV Window would popup(not
fully working yet)
Fixed more Level problems with NPC's
Added Wayfar camp manually until buildouts are fixed
This commit is contained in:
tacef
2014-06-28 22:15:47 +02:00
parent 9df5bebf98
commit 99adba7402
58 changed files with 260 additions and 101 deletions
+10
View File
@@ -267,6 +267,16 @@ public class SimulationService implements INetworkDispatch {
}
}
public boolean checkForObject(int distance, SWGObject value ){
AtomicBoolean checkObject = new AtomicBoolean();
core.simulationService.get(value.getPlanet(), value.getWorldPosition().x, value.getWorldPosition().z, distance).stream().forEach((objecta) -> {
if (objecta instanceof BuildingObject)
checkObject.set(true);
}
);
return checkObject.get();
}
public boolean move(SWGObject object, int oldX, int oldZ, int newX, int newZ) {
if(quadTrees.get(object.getPlanet().getName()).remove(oldX, oldZ, object)) {