Skip to content

Commit

Permalink
Stopgap measure to reduce flocker influence
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Jan 11, 2014
1 parent 1acea48 commit d32d622
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/net/citizensnpcs/api/ai/flocking/Flocker.java
Expand Up @@ -28,9 +28,10 @@ public void run() {
for (FlockBehavior behavior : behaviors) {
base.add(behavior.getVector(npc, nearby));
}
base.multiply(1.0 / (nearby.size() * 50));
npc.getEntity().setVelocity(npc.getEntity().getVelocity().add(base));
}

public static double HIGH_INFLUENCE = 1.0 / 20.0;
public static double LOW_INFLUENCE = HIGH_INFLUENCE / 10;
public static double LOW_INFLUENCE = 1.0 / 200.0;
}

0 comments on commit d32d622

Please sign in to comment.