View Single Post
Old 08-29-07, 06:20 AM   #3
Bill Nichols
Master of Defense
 
Join Date: Mar 2000
Posts: 1,502
Downloads: 125
Uploads: 0
Default

Molon, Xavier has read your post and sends me an update:

a saw the forum...
and a follow the idea...
and a modify my file again...
now, the torpedo travel at your speed selection and reach the max speed only when she's activated.
always in the tropedo.txt like this :
[...]
IF ( Homing == 0 ) AND ( OwnAlt < 0 ) THEN {
; Preenable Steer Or Search
IF Enabled THEN {
; Snake Or Circle
IF CircleSearchPattern THEN {
; lower priority to make sure we don't interfere with homing
IF ( AcousticMode == 1 ) THEN { SetSpd MaxSpd } ELSE { SetSpd 40 } ENDIF
SETPRIORITY 224
IF snakeleft THEN
SetRudder -10
ELSE
SetRudder 10
ENDIF
} ELSE {
; lower priority to make sure we don't interfere with homing
IF ( AcousticMode == 1 ) THEN { SetSpd MaxSpd } ELSE { SetSpd 40 } ENDIF
SETPRIORITY 224
snakecrs = RelativeBearing PreenableCourse OwnCrs
IF snakecrs > 30 THEN {
snakeleft = true
} ELSEIF snakecrs < -30 THEN {
snakeleft = false
} ENDIF
IF snakeleft THEN
SetRudder -3
ELSE
SetRudder 3
ENDIF
; SNAKE PreenableCourse
} ENDIF
[...]

when you stop the enable, your topedo return to preset speed.

__________________
My Dangerous Waters website:
Bill Nichols is offline   Reply With Quote