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:
CharonInferar
2014-07-16 16:52:36 +02:00
parent cc28f80394
commit db036574b7
30 changed files with 3140 additions and 268 deletions
@@ -329,9 +329,11 @@ public class TangibleObject extends SWGObject implements Serializable {
}
public void addDefender(TangibleObject defender) {
if (((CreatureObject)this).getOwnerId()>0){
if (((CreatureObject)this).getOwnerId()==defender.getObjectID()){
return; // fix for now until determined where the tamer is added from
if (this instanceof CreatureObject){
if (((CreatureObject)this).getOwnerId()>0){
if (((CreatureObject)this).getOwnerId()==defender.getObjectID()){
return; // fix for now until determined where the tamer is added from
}
}
}
defendersList.add(defender);