I adapted the algorithm Ashley came up with here for C2
I also modified the comments for the smart aiming formula to make the explanations slightly easier to understand (although it's still complex math)aiming.capx
Ah it ends up behing exactly equivalent to what squid came up with.
asin(targetSpeed * sin(angle(target,turret) - targetMovingAngle)
= asin (((targetX-turretX)*targetVectorY - (targetY-turretY)*targetVectorX)/distance(target,turret))Yann2013-01-15 14:48:05