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
+3
View File
@@ -113,6 +113,9 @@ public class SpawnService {
creature.setFaction(mobileTemplate.getFaction());
creature.setFactionStatus(mobileTemplate.getFactionStatus());
creature.setPvpBitmask(mobileTemplate.getPvpBitmask());
creature.updatePvpStatus();
if (mobileTemplate.getCustomName()==null){
creature.setStfFilename("mob/creature_names"); // TODO: set other STFs for NPCs other than creatures -> DONE
if (mobileTemplate.getStfFilename()!=null)