mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-27 17:57:22 -04:00
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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user