PDA

View Full Version : Mode on Throttle POV.Help


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.

abe_beson
21-02-2005, 12:53 AM
Just a spontanous reaction:
Shouldn't you change mode in the game as well? But probably you did this already in the cm! ;)

/Abe

Rawles
21-02-2005, 01:29 AM
Well i am not sure what you mean about in the game but when i activate the AA mode none of the other buttons change modes.Thats were i am lost.

MichaelCHProd
23-02-2005, 05:43 AM
I think what he is saying is you are talking about two different "modes".

The Avionics modes in LOMAC are just three buttons. The modes on your CH controllers are changing the functions of ALL of your buttons on the controllers.

You want to program three buttons on the POV in GUI not in the CMS.