mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-21 06:13:13 -04:00
Added TurretAI
- Added vehicles - Tweaked AI to consider opposite faction-aligned Installationobjects enemies - Added turret shooting at NPCs - Debugged actors
This commit is contained in:
@@ -130,7 +130,7 @@ import services.command.CombatCommand;
|
||||
import services.bazaar.AuctionItem;
|
||||
import services.chat.ChatRoom;
|
||||
import services.equipment.EquipmentService;
|
||||
import services.gcw.SoldierPatrolPylon;
|
||||
import services.gcw.GCWPylon;
|
||||
import services.sui.SUIWindow;
|
||||
import services.sui.SUIWindow.SUICallback;
|
||||
import services.sui.SUIWindow.Trigger;
|
||||
@@ -284,7 +284,17 @@ public class ObjectService implements INetworkDispatch {
|
||||
|
||||
float positionY = core.terrainService.getHeight(planet.getID(), position.x, position.z)-1f;
|
||||
Point3D newpoint = new Point3D(position.x,positionY,position.z);
|
||||
object = new SoldierPatrolPylon(objectID, planet, position, orientation, Template);
|
||||
object = new GCWPylon(objectID, planet, position, orientation, Template);
|
||||
|
||||
} else if(Template.startsWith("object/tangible/destructible/")) {
|
||||
|
||||
// float positionY = core.terrainService.getHeight(planet.getID(), position.x, position.z)-1f;
|
||||
// Point3D newpoint = new Point3D(position.x,positionY,position.z);
|
||||
// object = new InstallationObject(objectID, planet, newpoint, orientation, Template);
|
||||
|
||||
object = new TangibleObject(objectID, planet, position, orientation, Template);
|
||||
|
||||
//object = new BuildingObject(objectID, planet, position, orientation, Template);
|
||||
|
||||
} else if(Template.startsWith("object/tangible")) {
|
||||
|
||||
@@ -376,6 +386,12 @@ public class ObjectService implements INetworkDispatch {
|
||||
Point3D newpoint = new Point3D(position.x,positionY,position.z);
|
||||
object = new HarvesterObject(objectID, planet, newpoint, orientation, Template);
|
||||
|
||||
} else if(Template.startsWith("object/installation/turret")) {
|
||||
|
||||
float positionY = core.terrainService.getHeight(planet.getID(), position.x, position.z);
|
||||
Point3D newpoint = new Point3D(position.x,positionY,position.z);
|
||||
object = new InstallationObject(objectID, planet, newpoint, orientation, Template);
|
||||
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user