mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-02 03:15:52 -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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user