Jump to content
Sign in to follow this  
coco861541

Accurate tank gunning

Recommended Posts

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

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 smile_o.gif

Share this post


Link to post
Share on other sites

im not that dumb smile_o.gif ...

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

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

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 tounge_o.gif

Share this post


Link to post
Share on other sites

neural network in scripting rock.gif i didnt think that was possible in ofp obvisously it is

Share this post


Link to post
Share on other sites

very impressive my friend smile_o.gif looks like ill have to be taking a closer look at ofp scripting wink_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×