ktchn
21st August 2004, 09:18 PM
Hi Everyone,
I downloaded Michael's BF1942 profile and am trying to set up the POV hat on my Fighterstick to perform mouseview when pressed, and centerview when released. The script in the profile is conveniently set up to do just that. I have A1 set to the mouse X axis and A2 set to the mouse Y-axis, just like the profile posted.
here's the profile I'm referring to:
http://www.ch-hangar.com/forum/index.php?showtopic=99
Unfortunately, the script doesn't compile - an error is returned:
ERROR: (18) ENDIF expected but "XRELATIVE" found
the cursor is taken to the first occurrence of XRELATIVE inside the first IF/THEN conditional. Can anybody tell me what needs to be done differently?
I'm running CH Control Manager v2.10
Thanks!
// CMS Script File
//
// Game Title: Battlefied 1942
// Written By: Michael Sexton
// Date: 030921
//
script
// Mouse look on the POV
IF( JS1.B25 OR JS1.B26 OR JS1.B27 OR JS1.B28 OR JS1.B29 OR JS1.B30 OR JS1.B31 OR JS1.B32 ) THEN
XRELATIVE = FALSE;
YRELATIVE = FALSE;
CMS.B1 = TRUE; //Turns on Mouse look
ELSE
CMS.B1 = FALSE; //Turns on Mouse look
CMS.A1 = 128;
CMS.A2 = 128;
ENDIF
IF( NOT XRELATIVE ) THEN
cms.a1 = 128;
cms.a2 = 128;
IF( js1.b32 or js1.b25 or js1.b26 ) THEN
cms.a2 = 72;
ENDIF
IF( js1.b26 or js1.b27 or js1.b28 ) THEN
cms.a1 = 184;
ENDIF
IF( js1.b28 or js1.b29 or js1.b30 ) THEN
cms.a2 = 184;
ENDIF
IF( js1.b30 or js1.b31 or js1.b32 ) THEN
cms.a1 = 72;
ENDIF
ENDIF
endscript
I downloaded Michael's BF1942 profile and am trying to set up the POV hat on my Fighterstick to perform mouseview when pressed, and centerview when released. The script in the profile is conveniently set up to do just that. I have A1 set to the mouse X axis and A2 set to the mouse Y-axis, just like the profile posted.
here's the profile I'm referring to:
http://www.ch-hangar.com/forum/index.php?showtopic=99
Unfortunately, the script doesn't compile - an error is returned:
ERROR: (18) ENDIF expected but "XRELATIVE" found
the cursor is taken to the first occurrence of XRELATIVE inside the first IF/THEN conditional. Can anybody tell me what needs to be done differently?
I'm running CH Control Manager v2.10
Thanks!
// CMS Script File
//
// Game Title: Battlefied 1942
// Written By: Michael Sexton
// Date: 030921
//
script
// Mouse look on the POV
IF( JS1.B25 OR JS1.B26 OR JS1.B27 OR JS1.B28 OR JS1.B29 OR JS1.B30 OR JS1.B31 OR JS1.B32 ) THEN
XRELATIVE = FALSE;
YRELATIVE = FALSE;
CMS.B1 = TRUE; //Turns on Mouse look
ELSE
CMS.B1 = FALSE; //Turns on Mouse look
CMS.A1 = 128;
CMS.A2 = 128;
ENDIF
IF( NOT XRELATIVE ) THEN
cms.a1 = 128;
cms.a2 = 128;
IF( js1.b32 or js1.b25 or js1.b26 ) THEN
cms.a2 = 72;
ENDIF
IF( js1.b26 or js1.b27 or js1.b28 ) THEN
cms.a1 = 184;
ENDIF
IF( js1.b28 or js1.b29 or js1.b30 ) THEN
cms.a2 = 184;
ENDIF
IF( js1.b30 or js1.b31 or js1.b32 ) THEN
cms.a1 = 72;
ENDIF
ENDIF
endscript