coco861541 0 Posted May 5, 2004 Does anyone know of a way to make AI gunners fire the main gun of a tank accurately at long distances? I am looking forward to a 2000m+ tank engagement for once... Thanks in advance Share this post Link to post Share on other sites
aook002 0 Posted May 5, 2004 Erm, you could try increasing the skill of the tank / unit by moving the slider on the create unit window. Or you could try using the <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">doFireand<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">doTargetcommands..... Aook Share this post Link to post Share on other sites
coco861541 0 Posted May 6, 2004 im not that dumb ... i mean how can i make the AI gunner aim his weapon correctly/up enough to register a hit at several thousand meters? try it urself, they never aim high enough, the shell simply falls and hits the ground way before its target all because of the AI gunner not aiming correctly... ps. i already know of editting initspeed/maxspeed values, etc. i dont want to do this, i want it realistic... Share this post Link to post Share on other sites
denoir 0 Posted May 6, 2004 At that distance drag becomes a problem. Also the projectile will go in a much more ballistic trajectory instead of a straight line. So, the problem is beyond basic trigonometry. There are several solutions, none of them trivial I'm afraid. CoC Unified Artillery can make precision shots (+-0.5 m at best) at a distance of 32 km. It uses a neural network for the ballistic calculations. There are some other equally complex solutions. If you're willing to put down some time, take a look at the existing ones. Otherwise my advice to you is to drop it. Share this post Link to post Share on other sites
coco861541 0 Posted May 6, 2004 thanks for the reply i actually had a little look around the C0C artillery addon and almost and pretty much ran screaming after a few minutes of it... I think i'll have to stick with the 500m tank skirmishes from now on Share this post Link to post Share on other sites
aj_addons 0 Posted May 6, 2004 neural network in scripting i didnt think that was possible in ofp obvisously it is Share this post Link to post Share on other sites
denoir 0 Posted May 6, 2004 Sure, check out the COC_LIBANN docs. Share this post Link to post Share on other sites
aj_addons 0 Posted May 6, 2004 very impressive my friend looks like ill have to be taking a closer look at ofp scripting Share this post Link to post Share on other sites