Watch_Dogs: Touchpad weapon wheel, quick scope, rapid fire, anti-recoil, six-axis driving and easy free run + executions

Please read the "Read me" in the script for more details.
Version5
Authorlouisvign
Publish DateFri, 30 May 2014 - 18:37
Last UpdateSat, 31 May 2014 - 02:43
Downloads147
RATE


3

0

Release Notes: Updated motion sensor
Code: Select all
// GPC Online Library
// watch_dogs_touchpad_weapon_wheel_quick_scope_rapid_fire_antirecoil_sixaxis_driving_and_easy_free_run__executions.gpc
 
/////////READ ME/////////////////////////////////////////////////////////////
//  Watch Dogs - MODS: Quick Scope (m107 tested), anti-recoil (mp5 tested),  / /
//  rapid fire (silenced pistol tested), AXIS motion sensor driving, and easy free run + execution.       / /
////////////////////////////////////////////////////////////////////////////
//  WHEN MODS ENABLED:
// (Touchpad down: Sniper + QuickScope;
/// Touchpad right: Rifle/SMG + AntiRecoil;
/// Touchpad up: Pistol + Rapid fire;
/// R2(80+%): Freerun + Execution (Rapid fire circle))
//////////////////////////////////////////////////////////////////////
//          ENABLE/DISALBE MODS:
//      **Turn mods ON with OPTION + L1
//      **Turn mods OFF with OPTION + R1 (Only Weapon wheel with touchpad will be available)
//          White LED = MODS ENABLED
//          Purple LED = Quick Scope enabled
//          Yellow LED = Anti Recoil enabled
//    **Turn ON AXIS motion sensor driving with OPTIONS + R2
//     **Turn OFF AXIS motion sensor driving with OPTIONS + L2
///////////
////////////////////////////IMPORTANT NOTES///////////////////////////////
//      1. TRIANGLE disables all mods ---> This is for whenever you get into a car, freerun mod won't interfere.
//       2. When you have quick scope mod on you can hold R2 slightly to sprint. Quick scope is activated when trigger is pulled over 80%
//        3. Easy Freerun + execution is only activated when trigger is pulled over 80%
//          4. Mods SHOULD NOT be enabled in the car. Free running mod (rapid fire circle) will interfere.
//            5. When QUICKSCOPE is on easy free run + execution will only activate when pressed slighly; Quick scope happens at 80% trigger press
 
////////////////////////////////////////////////////////////////////////////////
define RECOIL_DELAY = 24; ///Change this for more or less anti recoil. The higher the value the more compensation.
define RAPID_FIRE = 145; //////Change rapid fire rate
define MOTION = 20; /// Motion sensor sensitivity (MOTION * MOTION2 = 100; Value of MOTION multiplied by MOTION2 must equal 100)
define MOTION2 =5;/// Motion sensor sensitivity  (MOTION * MOTION2 = 100; Value of MOTION multiplied by MOTION2 must equal 100)
                    ////// MOTION uses values 1-25 (the lower the more sensitive); MOTION 2 uses any value that multiplies with MOTION to equal 100 or close to 100
 
int on = FALSE; ///Quick scope
int c1 = TRUE; /// Mods OFF variable
int anti =FALSE; /// anti recoil variable
int ez =FALSE;   // easy free run + execution variable
int led = FALSE// set led to white variable
int fire = FALSE// rapid fire variable.
int axis =FALSE;
 
init {
    set_val(TRACE_1, 2);
}
 
 
main{
///Axis driving///
if(get_val(PS4_OPTIONS) >99 && get_val(PS4_R2) > 99){
    block(PS4_OPTIONS, 1000);
    axis = TRUE;
}
if(get_val(PS4_OPTIONS) >99 && get_val(PS4_L2) > 99){
    block(PS4_OPTIONS, 1000);
    axis = FALSE;
}
 
if(axis){
    set_val(TRACE_1,1)
}
//LX Axis
if(axis && get_val(PS4_ACCX) 1){
    set_val(PS4_ACCX,MOTION*-1);
    }
if(axis && get_val(PS4_ACCX) >MOTION){
    set_val(PS4_ACCX,MOTION);
    }
if(axis) {
        set_val(PS4_LX, get_val(PS3_ACCX) * MOTION2 * -1);
 
}
////////////////////////////////
// Sets led white
if(led){
    set_led(LED_1, 2)
    set_led(LED_2, 1)
    set_led(LED_3, 2)
    set_led(LED_4, 3)
}
//MOD OFF
if(get_val(PS4_OPTIONS) >99 && get_val (PS4_R1) >99) {
    c1 = TRUE
    ez = FALSE
    led=FALSE
    fire = FALSE
}
//MOD ON
if(get_val(PS4_OPTIONS) >99 && get_val (PS4_L1) >99) {
c1 = FALSE
ez = TRUE
led =TRUE
}
 
// resets led when c1 true then changes it
if(c1){
    reset_leds()
    on=FALSE
    anti=FALSE
    fire=FALSE
    }
    // UP
if(c1 && get_val(29) >= 100*-1 && get_val(29) < -15 && ps4_touchpad(PS4T_P1)){
    reset_leds()
    set_val(10,-100)
    on=FALSE
    anti=FALSE
    fire=FALSE
    }
    // DOWN
if(c1 && get_val(29) <= 100 && get_val(29) > 15 && ps4_touchpad(PS4T_P1)){
    reset_leds()
    set_val(10,100)
    on=FALSE
    anti=FALSE
    fire=FALSE
    }
    // LEFT
if(c1 && get_val(28) >= 100*-1 && get_val(28) < -15 && ps4_touchpad(PS4T_P1)){
    reset_leds()
    set_val(9,-100)
    on=FALSE
    anti=FALSE
    fire=FALSE
    }
    // RIGHT
if(c1 && get_val(28) <= 100 && get_val(28) >15 && ps4_touchpad(PS4T_P1)){
    reset_leds()
    set_val(9,100)
    on=FALSE
    anti=FALSE
    fire=FALSE
    }
 
 
////////////////////////////////////////////////////////////MOD TRIGGERS//////////////////
////////////Antirecoil////////////////////////////////////////////
if(anti && get_val(PS4_L2) && get_val(PS4_R2) > 20){
    set_val(10,RECOIL_DELAY);
    }
////////////Quick Scope////////////////////////////////////
if(on && get_val(PS4_R2)>80 ){
    combo_run(qs);
    combo_stop(easy);
    ez=FALSE;
    }
if(on && get_val(PS4_R2) > 20 && get_val(PS4_R2) < 70){
    combo_run(easy);
    ez=TRUE;
    }
////////////Easy free-run + execution///////////////////
if(ez && get_val(PS4_R2) > 80) {
    combo_run (easy);
    }
////////////rapidfire/////////////
if(fire && get_val(PS4_L2)>99 && get_val(PS4_R2) >80) {
    combo_run(rapid);
    combo_stop(easy);
    }
///////////////////////////////
 
////////////////////////LED FOR MODS////////////////////////
///if ANTI "set LED"
if(anti){
    set_led(LED_1, 0)
    set_led(LED_2, 1)
    set_led(LED_3, 1)
    set_led(LED_4, 0)
}
    //IF TRIANGLE then disable mods and reset-led
if (get_val(PS4_TRIANGLE)>99){
    reset_leds()
    on=FALSE
    anti=FALSE
    fire=FALSE
    ez=FALSE
    led=FALSE
    c1=TRUE
    axis=FALSE
    }
 
    //IF ON "SET LED"
if(on){
    set_led(LED_1, 0)
    set_led(LED_2, 0)
    set_led(LED_3, 0)
    set_led(LED_4, 1)
}
if(fire){
    set_led(LED_1, 0)
    set_led(LED_2, 1)
    set_led(LED_3, 0)
    set_led(LED_4, 0)
}
 
////////////////////////////////////////////////////////////MODS ENABLERS//////////////
    //L1 INITIATOR
if (ps4_touchpad(PS4T_P1)){
    set_val(6,100)
    }
    // UP + RAPID FIRE
if(get_val(29) >= 100*-1 && get_val(29) < -23 && ps4_touchpad(PS4T_P1)){
    set_val(10,-100)
    on=FALSE
    anti=FALSE
    fire=TRUE
    led=FALSE
    reset_leds()
    }
    // DOWN + Turns on sniper quick scope
if(get_val(29) <= 100 && get_val(29) > 23 && ps4_touchpad(PS4T_P1)){
    reset_leds()
    set_val(10,100)
    on=TRUE
    anti=FALSE
    fire=FALSE
    led=FALSE
    }
    // LEFT
if(get_val(28) >= 100*-1 && get_val(28) < -23 && ps4_touchpad(PS4T_P1)){
    reset_leds()
    set_val(9,-100)
    on=FALSE
    anti=FALSE
    fire=FALSE
    led=TRUE
    }
    // RIGHT + anti recoil
if(get_val(28) <= 100 && get_val(28) >23 && ps4_touchpad(PS4T_P1)){
    reset_leds()
    set_val(9,100)
    on=FALSE
    anti=TRUE
    fire=FALSE
    led=FALSE
    }
}
 
combo qs {
    set_val(PS4_L2, 100);
    wait(530);
    set_val(PS4_R2, 100);
    wait(100);
    set_val(PS4_R2, 0);
    set_val(PS4_L2, 0);
    wait(500);
}
 
combo easy {
    set_val(PS4_CIRCLE, 100);
    wait(10)
    set_val(PS4_CIRCLE,0);
    }
combo rapid {
    set_val(PS4_R2, 100);
    wait(100);
    set_val(PS4_R2,0);
    wait(RAPID_FIRE);
    }