![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#3 | |
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. |
|
![]() |
![]() |
|
|