Call of Duty Modern Warfare 2 on XBox 360 with Frag FX

The title itself is quite explanatory. Basically we are using a controller made for PS3 (Frag FX) on the XBox 360. Some adjustments of sensitivity on RX and RY are made for the mouse have a desired behavior. And, besides, we have a combo performing "rapid fire". The combo can be turned off by pressing R3 together with start (is easy to accomplish this task with Frag FX mouse). A quick tap on the start button changes the operation mode between "rapid fire" and "burst fire".
Versionv1.00
AuthorAdmin
Publish DateFri, 5 Nov 2010 - 16:32
Last UpdateFri, 5 Nov 2010 - 16:32
Downloads513
ForumAnnouncement Topic
RATE


3

0

Release Notes: Some remappings are made to match with what I'm used to, as jumping with the left mouse button. Feel free to modify this script in any way you want.
Code: Select all
/* *
 * COD MW 2 with FRAG FX - XBox 360
 *
 *  Button Layout: Tatical
 *  Sensitivity: High
 * ************************************************************************** */

 
remap PS3_L1    -> XB360_LT,
      PS3_L2    -> XB360_LB,
      PS3_R1    -> XB360_RT,
      PS3_L3    -> XB360_RS,
      PS3_R3    -> XB360_LS,
      PS3_R2    -> XB360_A,
      PS3_CROSS -> XB360_RB;
 
int rfSwitch = 140;
 
main {
    if(get_val(PS3_L1)) {
        if(get_val(PS3_RX) && get_val(PS3_RY)) {
            sensitivity(PS3_RX, NOT_USE, 120, NOT_USE, -100, +100);
            sensitivity(PS3_RY, NOT_USE, 125, NOT_USE, -100, +100);
        } else {
            sensitivity(PS3_RX, NOT_USE, 120, 8, -100, +100);
            sensitivity(PS3_RY, NOT_USE, 125, 12, -100, +100);
        }
    } else {
        sensitivity(PS3_RX, NOT_USE, 110, 4, -100, +100);
        sensitivity(PS3_RY, NOT_USE, 130, 4, -100, +100);
    }
 
    // R1 Rapid Fire
    if(get_val(PS3_R3)) {
        if((get_val(PS3_START) || event_release(PS3_START)) && rfSwitch) rfSwitch = 0;
        set_val(PS3_START, 0);
    } else if(event_release(PS3_START) && get_ptime(PS3_START) < 140) {
        if(rfSwitch == 140) rfSwitch = 20;
        else rfSwitch = 140;
    }
    if(rfSwitch && get_val(PS3_R1)) combo_run(rapidfire);
    else if(event_release(PS3_R1)) combo_stop(rapidfire);
    // Block
    block(PS3_START, 200);
}
 
combo rapidfire {
    set_val(PS3_R1, 100);
    wait(40);
    set_val(PS3_R1, 0);
    wait(40);
    set_val(PS3_R1, 100);
    wait(40);
    set_val(PS3_R1, 0);
    wait(40);
    set_val(PS3_R1, 100);
    wait(40);
    set_val(PS3_R1, 0);
    wait(rfSwitch);
    set_val(PS3_R1, 0);
}