Thread: DW Mod question
View Single Post
Old 06-10-14, 06:29 AM   #7
in_vino_vomitus
XO
 
Join Date: Jul 2009
Location: Preston, Lancs, UK
Posts: 418
Downloads: 137
Uploads: 0
Default

Quote:
Originally Posted by banryu79 View Post
I stil can't understand if it is a bug in the LWAMI doctrine file or not, but I'm happy you found a solution.

Out of curiosity, I downloaded the doctrine file from subguru to see for myself the difference with the relevant doctrine file of LWAMI.
I have highlithed the parts missing from the Subguru doctrine file...

HeloDipping.txt -- LWAMI
Code:
...
; Assign Dipping Tactic
IF NEWTRACK THEN {
    ; Sub?
    IF ( TgtClass $= "SUB" ) AND ( ( TgtSource $= "MAD" ) OR ( TgtSource $= "Visual" ) ) THEN {
        SETTACTIC "MadDrop"
    } ELSEIF ( TgtClass $= "SUB" ) AND NOT ( ORDER $= "TRANSIT" ) THEN {
        DEBUGOUT "Assigning Dipping Tactic\n"
        TACTICCENTER
        SETTACTIC "DippingSonar"
        Enable
        SensorEnable "AI Dip Active" OFF
        SensorEnable "AI Dip PassiveS" OFF
        SensorEnable "AI Dip PassiveD" OFF
        Pinging = 0
        WaypointReached = 0
        DipTimer = -1
        TargetCount += 1
    } ENDIF
...
HeloDipping.txt -- Subguru
Code:
...
; Assign Dipping Tactic
IF NEWTRACK THEN {
    ; Sub?
;    IF ( TgtClass $= "SUB" AND ( ORDER $= "SEARCH" ) ) THEN {
    IF ( TgtClass $= "SUB" AND NOT ( ORDER $= "TRANSIT" ) ) THEN {
        DEBUGOUT "Assigning Dipping Tactic\n"

        TACTICCENTER
        SETTACTIC "DippingSonar"
        Enable
        ; SensorEnable "Active Sonar" OFF
        Pinging = 0
        WaypointReached = 0
        DipTimer = -1
        TargetCount += 1
    } ENDIF
...
I wonder if somebody here on the DW section of the forum, that knows about the doctrine file scripts and/or the LWAMI doctrine file, could rule out if in fact the LWAMI HeloDipping.txt snippet posted above contains a bug?

It looks like that, for some reason, the Subguru version commented out the use of the "SetSensorEnable" fuction:
 

Code:
; Search only
IF ( NOT TargetCount AND NOT ( ORDER $= "Transit" ) ) THEN {
    ; Dip
    IF WaypointReached THEN {
        ; game has just clued us we've reached a waypoint
        DEBUGOUT "Starting Search Dip"
        SETPRIORITY 249
        SETPERSIST 90
        SETSPD 0
        SETALT 45
        Pinging = 0
        WaypointReached = 0
        Dipping = True
    } ENDIF

    ; Start pinging
    IF ( NOT Pinging AND Dipping AND ( OwnAlt < 50 ) ) THEN {
        DEBUGOUT "Starting Dip Timer"
        SETPRIORITY 249
        SETPERSIST 90
        SETSPD 0
        SETALT 45
        SensorEnable "AI Dip Active" ON
        SensorEnable "AI Dip PassiveS" ON
        SensorEnable "AI Dip PassiveD" ON
        Pinging = 1
        DipTimer = ( TIME + 90 )
    } ENDIF

    ; Stop Dip
    IF ( DipTimer != -1 AND ( TIME > DipTimer ) ) THEN {
        DEBUGOUT "Stopping Search Dip"
        SETPRIORITY 249
        SETSPD MAXSPD
        SETALT 300
        SensorEnable "AI Dip Active" OFF
        SensorEnable "AI Dip PassiveS" OFF
        SensorEnable "AI Dip PassiveD" OFF
        Pinging = 0
        DipTimer = -1
        Dipping = False
    } ENDIF

} ENDIF

 

Code:
; Search only
IF ( NOT TargetCount AND NOT ( ORDER $= "Transit" ) ) THEN {
    ; Dip
    IF WaypointReached THEN {
        ; game has just clued us we've reached a waypoint
        DEBUGOUT "Starting Search Dip"
        SETPRIORITY 249
        SETPERSIST 180
        SETSPD 0
        SETALT 45
        Pinging = 0
        WaypointReached = 0
        Dipping = True
    } ENDIF

    ; Start pinging
    IF ( NOT Pinging AND Dipping AND ( OwnAlt < 50 ) ) THEN {
        DEBUGOUT "Starting Dip Timer"
        SETPRIORITY 249
        SETPERSIST 180
        SETSPD 0
        SETALT 45
        ; SensorEnable "Active Sonar" ON
        Pinging = 1
        DipTimer = ( TIME + 180 )
    } ENDIF

    ; Stop Dip
    IF ( DipTimer != -1 AND ( TIME > DipTimer ) ) THEN {
        DEBUGOUT "Stopping Search Dip"
        SETPRIORITY 249
        SetSpd MAXSPD
        SETALT 300
        ; SensorEnable "Active Sonar" OFF
        Pinging = 0
        DipTimer = -1
        Dipping = False
    } ENDIF

 } ENDIF
Answering that is beyond me, but even at my level of inexperience I can tell it's made the FFG a lot more effective. Now I guess I need to learn how to use it to best effect.
__________________
Forget death - I'll take dishonour!
[SIGPIC][/SIGPIC]
TMO 2.5
1.5 Optical Targeting Correction 031312 for TMO 2.5
1.5 OTC Realistic Scopes for TMO
TheDarkWraith_DC_Water_Disturbance_v2_0_SH4
Improved Stock environment v3_TMO&RFB
TMO_Alt_engine-sounds
TMO_Alternate_JS_Radar_performance
TMO17_19_different_smoke
in_vino_vomitus is offline   Reply With Quote