View Single Post
Old 08-25-10, 08:06 PM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

I've greatly improved the sweep scope function for Automation. Via setting bits (use the windows calc to set binary pattern and then convert to decimal for value to use in script parameter) you can do the following:

# this function will wait for scope station to be visible (will wait for 15 seconds and if not visible then a skip command will be issued)
# bit 0 = lock the contact on contact spotted (if bit 2,3,4, or 5 isn't set then contact will be immediately unlocked)
# bit 1 = set current heading for contact on contact spotted
# bit 2 = stop sweep on contact spotted
# bit 3 = stop sweep and follow target on contact spotted
# bit 4 = pause sweep on contact spotted
# bit 5 = pause sweep and follow target on contact spotted
# bit 6 = pause game (and either also pause sweep) on contact spotted
# bit 7 = abort script on contact spotted

so it's possible to have the scope sweeping and it lock onto a contact when spotted, set course to the contact, pause the sweep, set follow target, and pause the game all in one shot This should make those that play at TC1 very happy. The bit pattern for this would be:

1100011 binary and when converted to decimal is 99

I had to use bits, and thus binary, as it it the easiest way to sort out multiple options in this command.

EDIT:

I also added a new command: Advanced_knuckle

; Advanced_knuckle,x,y,a,b,c,0,t - executes a turn of x degrees at y depth at a speed. When turn is completed speed will be set to b speed and depth will be set to c. x = degrees to turn. y = new depth (9999 for current depth). a = new speed during turn (9999 for current speed - can be + or - and a float value). b = new speed after turn (9999 for starting speed - can be + or - and a float value). c = new depth (9999 for starting depth). NOTE: depth, speed, and course will be executed at same time!

By stringing 2 or more Advanced_knuckles together you get do any kind of evasive maneuver you want.

I also changed the function of the Loop command. If the first parameter is -1 then the loop will loop indefinitely until the user stops the script containing the loop.

Last edited by TheDarkWraith; 08-25-10 at 11:59 PM.
TheDarkWraith is offline   Reply With Quote