Added invasion NPCs, debugged AI lockups and more

- Added barrier and tower plus the according buffs
- Added defender NPCs
- Fixed enemy NPCs not showing hostile after faction change
- Added ally function implementation to rebel and imperial scripts
- AI does not lock up in a state anymore
- AI seeks better position if LOS is blocked
- AI resumes previous states better now
This commit is contained in:
CharonInferar
2014-07-22 23:46:17 +02:00
parent db036574b7
commit 4fe9270a69
38 changed files with 2544 additions and 292 deletions
+7
View File
@@ -131,6 +131,7 @@ import services.bazaar.AuctionItem;
import services.chat.ChatRoom;
import services.equipment.EquipmentService;
import services.gcw.GCWPylon;
import services.gcw.GCWSpawner;
import services.sui.SUIWindow;
import services.sui.SUIWindow.SUICallback;
import services.sui.SUIWindow.Trigger;
@@ -286,6 +287,12 @@ public class ObjectService implements INetworkDispatch {
Point3D newpoint = new Point3D(position.x,positionY,position.z);
object = new GCWPylon(objectID, planet, position, orientation, Template);
} else if(Template.startsWith("object/tangible/loot/creature_loot/collections/shared_dejarik_table_base")) {
float positionY = core.terrainService.getHeight(planet.getID(), position.x, position.z)+1f;
Point3D newpoint = new Point3D(position.x,positionY,position.z);
object = new GCWSpawner(objectID, planet, position, orientation, Template);
} else if(Template.startsWith("object/tangible/destructible/")) {
// float positionY = core.terrainService.getHeight(planet.getID(), position.x, position.z)-1f;