SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Modern-Era Subsims > Dangerous Waters > DW Mod Workshop
Forget password? Reset here

Reply
 
Thread Tools Search this Thread Display Modes
Old 06-03-06, 01:52 PM   #16
Molon Labe
Silent Hunter
 
Join Date: Jun 2004
Location: Along the Watchtower
Posts: 3,810
Downloads: 27
Uploads: 5
Default

Just a suggestion...

Take a look at AAM behavior; they tend to enable right away and shoot down wingmen instead of the baddies.
__________________
Molon Labe is offline   Reply With Quote
Old 06-03-06, 02:30 PM   #17
LoBlo
Subsim Diehard
 
Join Date: May 2006
Location: Texas!
Posts: 971
Downloads: 78
Uploads: 3
Default

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
LoBlo is offline   Reply With Quote
Old 06-04-06, 09:23 AM   #18
LoBlo
Subsim Diehard
 
Join Date: May 2006
Location: Texas!
Posts: 971
Downloads: 78
Uploads: 3
Default

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
Putting a "If AttackRng >= 0" condition at the beginning of the doctrine has not seemed to repair the behavior...
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
LoBlo is offline   Reply With Quote
Old 06-04-06, 10:51 PM   #19
LuftWolf
Ocean Warrior
 
Join Date: May 2005
Location: Free New York
Posts: 3,167
Downloads: 2
Uploads: 0
Default

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
LuftWolf is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 06:15 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.