![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
![]() |
#1 | |
Subsim Diehard
![]() Join Date: May 2006
Location: Texas!
Posts: 971
Downloads: 78
Uploads: 3
|
![]()
EDIT: The doctrine below isn't working right yet. Don't use it yet.
Thanks for the tips. Yeah, I've noticed that sometimes fighters engage surface ships with HARMS and sometimes they don't. Sometimes they actively engage a target and sometimes they loiter. Its all really aimless without any discernable logic to why and when. Thanks for the doctrine tips. I'm not really a programmer. How about this then, per your suggestions Code:
; $Header: FighterEvade.txt Wed Apr 23 16:04:39 EDT 2003 $ ; $Revision: 1 $ ; $Copyrt1: Copyright (c) 2003, Sonalysts, Inc. All rights reserved. $ ; ; FighterEvade ; LoBlo attempted Edits,June 2006 ; attempting to script better anti-air behavior from interceptors to make them better protectors ; currently untested ; Set Tactic IF NEWTRACK THEN { ; AAM or SAM Missile? IF TgtClass $= "MISSILE" AND ( TgtMissileClass "AAM" OR TgtMissileClass "SAM" ) THEN { SETTACTIC "AirEvadeMissile" } ENDIF ; SSM or ASM Missile? IF TgtClass $= "MISSILE" AND ( TgtMissileClass "ASM" OR TgtMissileClass "SSM" ) THEN { ATTACKBEST } ENDIF ;What about enemy fighter response? IF TgtClass $= "AIR" AND ( TgtID $= "HOSTILE" OR ( TgtID $= "UAE" ) OR ( TgtID $= "UPD" ) ) THEN { Intercept IF (tgtrng <= AttackRng) THEN { ATTACKBEST } ENDIF } ENDIF Quote:
thx
__________________
"Seek not to offend or annoy... only to speak the truth"-a wise man Last edited by LoBlo; 06-01-06 at 08:21 PM. |
|
![]() |
![]() |
![]() |
#2 |
Ocean Warrior
![]() Join Date: May 2005
Location: Free New York
Posts: 3,167
Downloads: 2
Uploads: 0
|
![]()
The problem is, if you don't use that method, than the all of the target referencing commands become non-functional or problematic, because the platform doctrine often can be refering to many different targets. In general, its best to only use the platform doctrine in DW to reference the NEWTRACK variable and then assign a target doctrine using some conditions to decide the appropriate assignment. Then, using the priority structure, you can allow the platform to intelligently manage multiple contacts.
So, in other words, you have to start over somewhat if you want it to work. Also, make sure you watch your whitespace and spacing. Cheers, David
__________________
LW ![]() ![]() |
![]() |
![]() |
![]() |
#3 |
Subsim Diehard
![]() Join Date: May 2006
Location: Texas!
Posts: 971
Downloads: 78
Uploads: 3
|
![]()
I'll see what I can come up with then. Definately WIP.
thx.
__________________
"Seek not to offend or annoy... only to speak the truth"-a wise man |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|