added a checked parameter - average atttack angles
recompiled