SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
06-03-06, 01:52 PM | #16 |
Silent Hunter
Join Date: Jun 2004
Location: Along the Watchtower
Posts: 3,810
Downloads: 27
Uploads: 5
|
Just a suggestion...
Take a look at AAM behavior; they tend to enable right away and shoot down wingmen instead of the baddies.
__________________
|
06-03-06, 02:30 PM | #17 |
Subsim Diehard
Join Date: May 2006
Location: Texas!
Posts: 971
Downloads: 78
Uploads: 3
|
Thanks for the input. I'll look into it. I've noticed that myself a few times when a missile intended for the enemy is locking onto and destroying friendlys. I've also noticed how Evasive maneuvers aren't triggered until the missile is right on top of the fighter. I'll be looking to change this somehow eventually.
What I'm working on currently is kindof perplexing. For some reason, the AttackBest command is causing the planes to close distances and engae with their... guns! What the heck.... ... such a strange engine this is, where half the behavior is hidden in the engine and the other half open in the doctrines. I wish we had more access to the AttackBest logic because it certain does produce some strange behavior sometimes.
__________________
"Seek not to offend or annoy... only to speak the truth"-a wise man |
06-04-06, 09:23 AM | #18 |
Subsim Diehard
Join Date: May 2006
Location: Texas!
Posts: 971
Downloads: 78
Uploads: 3
|
After throughly investigating this weird, "AttackBest Not working" bug I'm a little bit back to square one.
I've put some DebugOuts into the doctrine file to see what's triggering and I see that AttackBest If structures are triggering, but yet the result is no missile fire... ... back to the drawing board... ...WIP...this will probably take awhile to figure out. Here's the current version of the AirIntercept.txt doctrine that I'm testing if anyone would like to give it a go. Code:
; By LoBlo, attempt to script better intercept and attack behavior from fighters ; Evasion after firing IF WeaponAway THEN { DebugOut "Weapons fired, evading now" SteerAway SetSpd Maxspd / 1.25 ; Intercept incoming aircraft } ELSEIF NOT LostTrack AND TgtClass $= "AIR" AND ( TgtID $= "HOSTILE" OR ( TgtID $= "UAE" ) OR ( TgtID $= "UPD" ) ) THEN { DebugOut "Intercept Course" SetSpd Maxspd / 1.15 Intercept ; Attack when in range IF TgtRng < ( AttackRng / 1.1 ) THEN { AttackBest DebugOut "Firing" } ENDIF } ENDIF As far as indiffinate intercept courses... I'm thinking about leaving the "intercept" command in a Init structure so that an Intercept is plotted during the first detection but not indefinantly. WIP lb
__________________
"Seek not to offend or annoy... only to speak the truth"-a wise man |
06-04-06, 10:51 PM | #19 |
Ocean Warrior
Join Date: May 2005
Location: Free New York
Posts: 3,167
Downloads: 2
Uploads: 0
|
Usually there is some basic principle that one takes for granted that works differently than expected, and that is the source of the problems.
Once you find that, it becomes easy to see what's happening and why, although sometimes the solution presented makes the work much less appealing than it was when you started the project.
__________________
LW |
|
|