MichaelCHProd
21st January 2004, 05:02 AM
After I posted this in another thread I tought someone else might be looking for it. I use it in BF 1942 but you could use it in any game that lets you use the mouse to look around.
SCRIPT
// Move the POV off center and change the mouse to absolute
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; //Makes the mouse X axis absolute
YRELATIVE = FALSE; //Makes the mouse Y axis absolute
ELSE
cms.a1 = 128; //Makes the mouse X axis stop
cms.a2 = 128; //Makes the mouse Y axis stop
ENDIF
//If the mouse is absolute then the POV will move it.
IF( NOT XRELATIVE ) THEN
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
SCRIPT
// Move the POV off center and change the mouse to absolute
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; //Makes the mouse X axis absolute
YRELATIVE = FALSE; //Makes the mouse Y axis absolute
ELSE
cms.a1 = 128; //Makes the mouse X axis stop
cms.a2 = 128; //Makes the mouse Y axis stop
ENDIF
//If the mouse is absolute then the POV will move it.
IF( NOT XRELATIVE ) THEN
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