Resident Evil Code: Veronica

- adds one button 180 turn (aka quick turn) - adds always run mode for D-PAD - adds button remapping --> Back is Start --> Start is Back --> Y is RB - adds experimental auto reload (still needs adjustments and is only for tryout)
Version0.1
Authorcarnagegod
Publish DateWed, 2 Apr 2014 - 22:12
Last UpdateWed, 2 Apr 2014 - 22:12
Downloads34
RATE


0

0

Release Notes: Due to always run mode pressing D-PAD up in inventory screen will activate any item (as running is performed with A-button normally). Auto reload only works on second attempt at the moment...needs to be fixed --> deactivate it by commenting last "if" of "main" method.
Code: Select all
/* *
* GPC SCRIPT
*
* Resident Evil Code Veronica - Combos and other stuff
* Version 0.1 (2014/04/02)
* Author: carnagegod
* *********************************************************** */

 
/* **
* Information:
* What does this script do?
* - Remap Y button to RB button -> call map with RB instead of Y
* - Remap Start and Back buttons -> call inventory with Back, call pause with Start
* - One button 180 -> called with LS and LB
* - Activate "always run" mode
* - experimental auto reload
* -- weapon must be on inventory slot 1 (left)
* -- ammo must be on inventory slot 2 (right)
** */

 
unmap XB360_RS;
unmap XB360_LS;
unmap XB360_LB;
unmap XB360_RB;
unmap XB360_Y;
remap XB360_Y -> XB360_RB;
remap XB360_START -> XB360_BACK;
remap XB360_BACK -> XB360_START;
 
main {
 
    if(event_press(XB360_LS))  combo_run(DO180); //LS for 180
    if(event_press(XB360_LB))  combo_run(DO180); //LS for 180
    if(get_val(XB360_UP) > 30)  combo_run(ALWAYSRUND); // activated auto running on DPAD-UP
    if(get_val(XB360_RT) > 30 && get_val(XB360_UP) > 30) set_val(XB360_UP, get_lval(XB360_UP)); // deactivate running when aiming
// analog stick functions not implemented at the moment due to non-working code and side effects (e.g. 180 not working anymore)
//    if(get_val(XB360_LY) > -30)  combo_run(ALWAYSRUNA); // activated auto running on ANALOG-UP
//    if(get_val(XB360_RT) > 30 && get_val(XB360_LY) > -30) set_val(XB360_LY, get_lval(XB360_LY)); // deactivate running when aiming
    if(event_press(XB360_RB))   combo_run(RELOAD); // RB for experimental auto reload
}
 
// combo for performing 180
//----------------------------------------
combo DO180 {
    set_val(XB360_LS, 0);
    set_val(XB360_DOWN, 100);
    set_val(XB360_A, 100);
    wait(50);
    set_val(XB360_DOWN, 100);
    set_val(XB360_A, 0);
    wait(30);
    set_val(XB360_DOWN, 0);
}
 
// always run mode DPAD
//----------------------------------------
combo ALWAYSRUND {
    set_val(XB360_A, 100);
    set_val(XB360_UP, get_lval(XB360_UP));
}
 
// always run mode ASTICK
//----------------------------------------
combo ALWAYSRUNA {
    set_val(XB360_A, 100);
    set_val(XB360_LY, get_lval(XB360_LY));
}
 
// auto reload !!experimental!!
//----------------------------------------
combo RELOAD {
    set_val(XB360_BACK, 100);
    wait(250);
    set_val(XB360_BACK, 0);
    wait(250);
    set_val(XB360_RIGHT, 100);
    wait(250);
    set_val(XB360_RIGHT, 0);
    wait(250);
    set_val(XB360_A, 100);
    wait(250);
    set_val(XB360_A, 0);
    wait(250);
    set_val(XB360_DOWN, 100);
    wait(200);
    set_val(XB360_DOWN, 0);
    wait(200);
    set_val(XB360_DOWN, 100);
    wait(250);
    set_val(XB360_DOWN, 0);
    wait(300);
    set_val(XB360_A, 100);
    wait(350);
    set_val(XB360_A, 0);
    wait(350);
    set_val(XB360_LEFT, 100);
    wait(250);
    set_val(XB360_LEFT, 0);
    wait(250);
    set_val(XB360_A, 100);
    wait(350);
    set_val(XB360_A, 0);
    wait(250);
    set_val(XB360_B, 100);
    wait(350);
    set_val(XB360_B, 0);
    wait(250);
    set_val(XB360_B, 100);
    wait(350);
    set_val(XB360_B, 0);
}