trebuchets now have pet AI with canRoam disabled
This commit is contained in:
@@ -950,6 +950,9 @@ public class Mob extends AbstractIntelligenceAgent {
|
||||
this.setLoc(buildingWorldLoc);
|
||||
this.endLoc = buildingWorldLoc;
|
||||
this.stopMovement(endLoc);
|
||||
if(this.building.getBlueprint().isWallPiece()) {
|
||||
MovementManager.translocate(this, new Vector3fImmutable(this.building.getLoc().x, this.npcOwner.getLoc().y, this.building.getLoc().z), this.region);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1458,7 +1458,7 @@ public class NPC extends AbstractCharacter {
|
||||
|
||||
mob.setObjectTypeMask(MBServerStatics.MASK_MOB | mob.getTypeMasks());
|
||||
|
||||
// mob.setMob();
|
||||
//mob.setMob();
|
||||
mob.setSiege(true);
|
||||
mob.setParentZone(parent);
|
||||
|
||||
@@ -1478,7 +1478,8 @@ public class NPC extends AbstractCharacter {
|
||||
|
||||
mob.setSpawnTime(10);
|
||||
mob.setNpcOwner(this);
|
||||
mob.region = AbstractWorldObject.GetRegionByWorldObject(mob);
|
||||
mob.BehaviourType = MobBehaviourType.Pet1;
|
||||
mob.BehaviourType.canRoam = false;
|
||||
return mob;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user