Rawles
20-02-2005, 10:54 PM
:rant: Hey ?I have done a script to have the pov on the throttle act as the mode select switch for Lomac.
POV UP is A2A mode
POV Left is Nav Mode
POV Down is A2G mode
I dont know were i have gone wrong the script checker says it,s ok .
// CMS Script File
//
// Game Title:Lomac_LockOn
// Written By: Rawles
// Date:1-23-2005
//
//
//
script
%define AA js2.b25 // Throttle Up button
%define AG js2.b29 // Throttle Down button
%define nav js2.b31 // Throttle Left button
sequence
wait(AA);
CURRENTMODE = MODE2;
endsequence
sequence
wait(AG);
CURRENTMODE = MODE3;
endsequence
sequence
wait(nav);
CURRENTMODE = MODE1;
endsequence
cms.b1 = FALSE;
cms.b2 = FALSE;
cms.b3 = FALSE;
cms.b4 = FALSE;
// Ministick Up on cms.b1
//
if( [js2.a2 < 88] ) then
cms.b1 = TRUE;
endIf
// Ministick Right on cms.b2
//
if( [js2.a1 > 168] ) then
cms.b2 = TRUE;
endIf
// Ministick Down on cms.b3
//
if( [js2.a2 > 168] ) then
cms.b3 = TRUE;
endIf
// Ministick Left on cms.b4
//
if( [js2.a1 < 88] ) then
cms.b4 = TRUE;
endIf
SEQUENCE
WAIT( JS2.B2 AND JS2.B3 AND JS2.B4 ); // Wait for buttons 2,3 and 4 to get pressed on the throttle
DELAY( 1 ); // Wait half a second
CMS.B5 = TRUE; // Start Ejection Sequence
DELAY( 1 ); // Wait half a second
CMS.B5 = FALSE; // Reset CMS B1 state
DELAY( 1 ); // Wait half a second
ENDSEQUENCE
endScript
Can you take a look at this for me? I think something might be wrong in the CMS Control butt i cant find were .When i do the Key Check to test and see if the mode select is working it dosent.
POV UP is A2A mode
POV Left is Nav Mode
POV Down is A2G mode
I dont know were i have gone wrong the script checker says it,s ok .
// CMS Script File
//
// Game Title:Lomac_LockOn
// Written By: Rawles
// Date:1-23-2005
//
//
//
script
%define AA js2.b25 // Throttle Up button
%define AG js2.b29 // Throttle Down button
%define nav js2.b31 // Throttle Left button
sequence
wait(AA);
CURRENTMODE = MODE2;
endsequence
sequence
wait(AG);
CURRENTMODE = MODE3;
endsequence
sequence
wait(nav);
CURRENTMODE = MODE1;
endsequence
cms.b1 = FALSE;
cms.b2 = FALSE;
cms.b3 = FALSE;
cms.b4 = FALSE;
// Ministick Up on cms.b1
//
if( [js2.a2 < 88] ) then
cms.b1 = TRUE;
endIf
// Ministick Right on cms.b2
//
if( [js2.a1 > 168] ) then
cms.b2 = TRUE;
endIf
// Ministick Down on cms.b3
//
if( [js2.a2 > 168] ) then
cms.b3 = TRUE;
endIf
// Ministick Left on cms.b4
//
if( [js2.a1 < 88] ) then
cms.b4 = TRUE;
endIf
SEQUENCE
WAIT( JS2.B2 AND JS2.B3 AND JS2.B4 ); // Wait for buttons 2,3 and 4 to get pressed on the throttle
DELAY( 1 ); // Wait half a second
CMS.B5 = TRUE; // Start Ejection Sequence
DELAY( 1 ); // Wait half a second
CMS.B5 = FALSE; // Reset CMS B1 state
DELAY( 1 ); // Wait half a second
ENDSEQUENCE
endScript
Can you take a look at this for me? I think something might be wrong in the CMS Control butt i cant find were .When i do the Key Check to test and see if the mode select is working it dosent.