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
+2
View File
@@ -54,6 +54,8 @@ public class AIService {
// TODO: implement cell pathfinding, returning straight line for now
Vector<Point3D> path = new Vector<Point3D>();
if (pointA==null || pointB==null)
return path;
path.add(pointA);
float x = pointB.x - 1 + new Random().nextFloat();
float z = pointB.z - 1 + new Random().nextFloat();