Browse Source

hull 7

hull7
FatBoy-DOTC 1 year ago
parent
commit
ab1b7db86c
  1. 4
      src/engine/gameManager/BuildingManager.java
  2. 12
      src/engine/mobileAI/MobAI.java

4
src/engine/gameManager/BuildingManager.java

@ -968,7 +968,7 @@ public enum BuildingManager { @@ -968,7 +968,7 @@ public enum BuildingManager {
public static void bakeNavMesh(Building building) {
if (building.parentZone == null) {
Logger.error("Attempt to bake navmesh with no parent: " + building.getObjectUUID());
//Logger.error("Attempt to bake navmesh with no parent: " + building.getObjectUUID());
return;
}
@ -979,7 +979,7 @@ public enum BuildingManager { @@ -979,7 +979,7 @@ public enum BuildingManager {
convexHullList = _hull_data.get(building.meshUUID);
if (convexHullList == null) {
Logger.error("Attempt to bake navmesh with no meshes: " + building.getObjectUUID());
//Logger.error("Attempt to bake navmesh with no meshes: " + building.getObjectUUID());
return;
}

12
src/engine/mobileAI/MobAI.java

@ -308,7 +308,7 @@ public class MobAI { @@ -308,7 +308,7 @@ public class MobAI {
aiMove(mob, true,0);
} catch (Exception e) {
Logger.info(mob.getObjectUUID() + " " + mob.getName() + " Failed At: AttackTarget" + " " + e.getMessage());
Logger.info(mob.getObjectUUID() + " " + mob.getName() + " Failed At: Patrol" + " " + e.getMessage());
}
}
@ -1349,11 +1349,11 @@ public class MobAI { @@ -1349,11 +1349,11 @@ public class MobAI {
if(mob.isMoving()) {
return;
}
if(!mob.isPathing){
ArrayList<PathingUtilities.Node> path = PathingUtilities.getPath(mob, mob.destination);
if(path != null && path.size() > 0)
PathingUtilities.followPath(mob,path);
}
//if(!mob.isPathing){
// ArrayList<PathingUtilities.Node> path = PathingUtilities.getPath(mob, mob.destination);
// if(path != null && path.size() > 0)
// PathingUtilities.followPath(mob,path);
//}
}
public static void directMove(AbstractCharacter mob,boolean isWalking){

Loading…
Cancel
Save