![]() |
|
|
|
#1
|
|||
|
|||
|
I was planning to work on something like this myself too, using narvy's example, for the WIP Mission Tools.
Is a ugly way to overwrite, and thus make a dirty fix, with the current broken AI behavior (I've seen countless times AI flights passing by each other with less than 500 m between them, and giving no sign they've seen each other), until we'll get some AI from MG.. |
|
#2
|
|||
|
|||
|
Yes we are using the same code in a way. But in my actual scripting (not above here) I meshed in AI ground vehicles also. Now the AI ground are fine and do an update and check on their targets and pathway every 5 mins and that is great.
But yes there was a small bit of code that set off the AI Air find targets etc.. then ai air groups would (just like real pilots) look around them and alter their targets based on current situation. As for AI not attacking. I read something and did some testing. Looks like AI will not attack (at the moment) if their group is smaller then the Air target or if their awareness is lower than ace. So if you are on your own and two or more 109's are near they will attack. But if you are equal 1:1 or you have more fighters in group they just ignore you. Will all be fixed I am sure in later patches
__________________
__________________ Win7, 64bit Ultra Asus P8P67Pro MB Intel i7-2600K Coursair 16GB (4x 4GB), DDR3-1600MHz Gainward Nvidia 580GTX 3GB DDR5 850-Watt Modular Power Supply WIN7 and COD on Gskill SSD 240GB 40" Panasonic LCD TrackIR5 + Thrustmaster Warthog stick, throttle & pedals |
|
#3
|
|||
|
|||
|
I did some experiments on that subject some month ago. The main problem is that you cannot change the existing waypoint objects, this means you have to create and assign new waypoint objects (that include the updated target position). Now the problem is that you cannot simply clone all waypoints of the air group, update the position of the "attack" waypoints with the current target position and then assign them again, because the air group would turn around and fly back to their first (takeoff) waypoint and start all over.
|
|
#4
|
|||
|
|||
|
I have 2 solutions in my mind:
a) I followed this approach during my experiment. I only assign the next waypoint to the air group. I react on the OnActorTaskComplete event to assign a new waypoint for the air group. After the takeoff waypoint I assign an attack waypoint on the target position. I adjust the position of the attack waypoint periodically. After the attack waypoint was completed a landing waypoint is assigned. Did work pretty good to lead the air group to the target, however updating the waypoints interrupted the current task of the air group (they stopped attacking or crashed during takeoff). b) I need to find out which waypoints were already passed by the air group. When I assign the updated waypoints I only assign waypoints that were not passed so far. I have so far no solution to find out which waypoints were passed. Triggers could be a solution or a smart algorithm that looks at the position and heading of the air group. I will look at the issue in a couple of week as I'm currently busy with implementing the online support and moving frontline/ground war for IL2DCE. |
|
#5
|
|||
|
|||
|
Banks I agree with Part a) as sounds good. I will let you go as you work on DCE.
If you are able to. Could you email me the one or both test mission scripts so I could take a look while you are working on DCE for a couple of weeks. Or post the two test missions up on here. if not that's ok. HC_Wolf@optusnet.com.au
__________________
__________________ Win7, 64bit Ultra Asus P8P67Pro MB Intel i7-2600K Coursair 16GB (4x 4GB), DDR3-1600MHz Gainward Nvidia 580GTX 3GB DDR5 850-Watt Modular Power Supply WIN7 and COD on Gskill SSD 240GB 40" Panasonic LCD TrackIR5 + Thrustmaster Warthog stick, throttle & pedals |
|
#6
|
|||
|
|||
|
Quote:
__________________
When one engine fails on a two engine bomber, you will always have enough power left to get to the scene of the crash. Get the latest COD Team Fusion patch info HERE |
|
#7
|
|||
|
|||
|
Hi, I came across this script for Radar and Tracking. Anyone care to take a stab at this and converti it so it is AI updating thier waypoints to re-evaluate their targets position and thus re-assign to the targets new location?
http://translate.googleusercontent.c...ce_VHHDnwatyyw
__________________
__________________ Win7, 64bit Ultra Asus P8P67Pro MB Intel i7-2600K Coursair 16GB (4x 4GB), DDR3-1600MHz Gainward Nvidia 580GTX 3GB DDR5 850-Watt Modular Power Supply WIN7 and COD on Gskill SSD 240GB 40" Panasonic LCD TrackIR5 + Thrustmaster Warthog stick, throttle & pedals |
![]() |
|
|