Looking for red dead headshot flick script

GPC2 script programming for Titan Two. Code examples, questions, requests.

Looking for red dead headshot flick script

Postby lordzombies » Thu Jan 02, 2020 10:29 am

Is there anyone who could design a script that could automatically do the little "flick trick" needed in read dead redemption 2 to get a head shot? Something that moves the right stick up slightly every time you aim with L2 ?

Thanks.
User avatar
lordzombies
Sergeant
Sergeant
 
Posts: 7
Joined: Tue Mar 12, 2019 5:26 pm

Re: Looking for red dead headshot flick script

Postby Mad » Thu Jan 02, 2020 8:15 pm

This script might have what you are looking for:
Code: Select all
#pragma METAINFO("c.gpc", 1, 0, "Buffy's GPC Converter v0.26r6")
#include <titanone.gph>
 
 
// GPC Online Library
// red_dead_redemption_ii_.gpc
/*
          ________   __________ ________         ________  __________        _     ________                    _______________________
          `MMMMMMMb. `MMMMMMMMM `MMMMMMMb.       `MMMMMMMb.`MMMMMMMMM       dM.    `MMMMMMMb.                    `MMMMMM'   `MMMMMM'
           MM    `Mb  MM      \   MM   `Mb         MM   `Mb MM      \      ,MMb      MM   `Mb                     MMMMMM     MMMMMM
           MM    .M9  MM          MM    MM         MM    MM MM             d'YM.     MM    MM                     MMMMMM     MMMMMM
           MMMMMMM9'  MM    ,     MM    MM         MM    MM MM    ,       ,P `Mb     MM    MM                     MMMMMM     MMMMMM
           MM\M\      MMMMMMM     MM    MM         MM    MM MMMMMMM       d'  YM.    MM    MM                     MMMMMM     MMMMMM
           MM \M\     MM    `     MM    MM         MM    MM MM    `      ,P   `Mb    MM    MM                     MMMMMM     MMMMMM 
           MM  \M\    MM          MM    MM         MM    MM MM           d'    YM.   MM    MM                     MMMMMM     MMMMMM 
           MM   \M\   MM          MM    MM         MM    MM MM          ,MMMMMMMMb   MM    MM                     MMMMMM     MMMMMM 
           MM    \M\  MM      /   MM   .M9         MM   .M9 MM      /   d'      YM.  MM   .M9                     MMMMMM     MMMMMM 
          _MM_    \M\_MMMMMMMMM _MMMMMMM9'       _MMMMMMM9'_MMMMMMMMM _dM_     _dMM_MMMMMMM9'                     MMMMMM     MMMMMM 
                                                                                                                  MMMMMM     MMMMMM                               
________   __________ ________  __________ ___       __________   __________ ____   ____   ___      ___           MMMMMM     MMMMMM           
`MMMMMMMb. `MMMMMMMMM `MMMMMMMb.`MMMMMMMMM `MMb     dMM`MMMMMMMb. MMMMMMMMMM `MM'  6MMMMb  `MM\     `M'           MMMMMM     MMMMMM     
 MM    `Mb  MM      \   MM   `Mb MM      \  MMM.   ,PMM MM    `Mb /   MM   \  MM  8P    Y8  MMM\     M            MMMMMM     MMMMMM   
 MM    .M9  MM          MM    MM MM         M`Mb   d'MM MM    .M9     MM      MM 6M      Mb M\MM\    M            MMMMMM     MMMMMM 
 MMMMMMM9'  MM    ,     MM    MM MM    ,    M YM. ,P MM MMMMMMM9'     MM      MM MM      MM M \MM\   M            MMMMMM     MMMMMM   
 MM\M\      MMMMMMM     MM    MM MMMMMMM    M `Mb d' MM MM            MM      MM MM      MM M  \MM\  M            MMMMMM     MMMMMM
 MM \M\     MM    `     MM    MM MM    `    M  YM.P  MM MM            MM      MM MM      MM M   \MM\ M            MMMMMM     MMMMMM               
 MM  \M\    MM          MM    MM MM         M  `Mb'  MM MM            MM      MM MM      MM M    \MM\M            MMMMMM     MMMMMM               
 MM   \M\   MM          MM    MM MM         M   YP   MM MM            MM      MM YM      M9 M     \MMM            MMMMMM     MMMMMM               
 MM    \M\  MM      /   MM   .M9 MM      /  M   `'   MM MM            MM      MM  8b    d8  M      \MM            MMMMMM     MMMMMM               
_MM_    \M\_MMMMMMMMM _MMMMMMM9'_MMMMMMMMM _M_      _MM_MM_          _MM_    _MM_  YMMMM9  _M_      \M         ___MMMMMM_____MMMMMM___           
 
 
Version: 1.4
Author: noozbar
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
 
    ______           __                           
   / ____/__  ____ _/ /___  __________  _____   _
  / /_  / _ \/ __ `/ __/ / / / ___/ _ \/ ___/  (_)
 / __/ /  __/ /_/ / /_/ /_/ / /  /  __(__  )  _   
/_/    \___/\__,_/\__/\__,_/_/   \___/____/  (_) 
 
 
        Crossover PS4/XBOX + PS4 Controller/XBOX Controller
        Battery warning: 3 small fast vibrations every 5 seconds if you have less than 10% battery left
        Script ON/OFF
        Hair Trigger
        Cinematic Camera (calm your horse at the same time)
        Horse Sprint mod activation (calm your horse at the same time)
        Easy Eagle Vision
        AutoRun for Standard FPS button layout
        - OR
        AutoRun for standard button layout
        Melee spam
        Cut the Rope (if you are tied up)
        Rapid Fire with toggle ON/OFF
        Rapid Reload
        HeadShot mod with toggle ON/OFF and with range selection
        Better AIM Assist (100% accuracy) with toggle ON/OFF
        Quick swap Weapons and Tonics
        DeadEye stop (usefull for online)
        Auto DeadEye with toggle ON/OFF
        Crouch with toggle ON/OFF
        Strafe shot with toggle ON/OFF
        Auto Scope out
        Skid stop (for horse level 3)
 
 
                                                                INSTRUCTIONS PS4/XBOX:
 
 
    Color indications:
        Color OFF = Script is disable
        Color Blue by defaut (if RapidFire is enable, LED should flash Red)
        Color White = Cinematic Camera enable (calm your horse at the same time)
 
         If HeadShot is enable:
             Color Pink = Close Range
             Color SkyBlue = Mid Range
             Color Yellow = Long Range
 
        Color flash RED:
            RapidFire is enable
            Horse Sprint mod is running
            Melee spam mod is running
            Cut the Rope mod is running
 
 
    Rumble indications:
        2 small fast vibrations = mod is OFF
        1 big vibration = mod is ON
        3 small fast vibrations every 5 seconds = your controller have less than 10% battery left
 
 
    Script ON/OFF toggle
        Press PS/XBOX or OPTION/MENU or double tap DOWN to enable or disable ALL FEATURES
        1 big vibration = mod is ON, 2 small fast vibrations = mod is OFF
 
 
    Hair Trigger
        Your triggers are VERY reactive
 
 
    Cinematic Camera (calm your horse at the same time)
        When you are in Cinematic Camera in game, your character automatically calms your horse at the same time
        You can also use the Horse Sprint mod at the same time
 
 
    Horse Sprint mod
        Double Tap and HOLD CROSS/A (LED Flash Red)
 
 
    Easy Eagle Vision
        Tap R3/RS to activate eagle vision
        Does not work in Cinema mod because this button changes the camera view
 
 
    AutoRun for Standard FPS button layout
        Push the Left stick forward and make a long press on L3/LS to sprint (quick press to run)
 
 
    AutoRun for standard button layout
        Push the Left stick forward to sprint
 
 
    Melee spam
        Double Tap and HOLD CIRCLE/B (LED Flash Red) to spam melee button
 
 
    Cut the Rope
        Double Tap and HOLD SQUARE/X (LED Flash Red) to cut the rope if you're tied up
 
 
    Rapid Fire (with toggle ON/OFF)
        Hold L2/LT + CIRCLE/B and
            Tap R2/RT to enable or disable
            1 big vibration = mod is ON, 2 small fast vibrations = mod is OFF
        Hold L2/LT + R2/RT to run RapidFire
 
 
    Auto Reload
        Release R2/RT to rechamber a cartridge in the rifle
 
 
    HeadShot mod
        Hold L2/LT and tap R1/RB to enable or disable
        1 big vibration = mod is ON, 2 small fast vibrations = mod is OFF
 
        When enable: /!\ Press sensitive trigger /!\
            If you hold L2/LT more than 85%, your viewfinder go to your ennemy's head, if you hold less than 85%, your viewfinder don't go to the head (normal aiming)
                Tap Right to switch between Range selection
                     Color Pink = Close Range
                     Color SkyBlue = Mid Range
                     Color Yellow = Long Range
 
 
     Better AIM Assist (100% accuracy) (Thanks Fadexz) /!\ Press sensitive trigger /!\
         Hold DOWN and press L2/LT to enable or disable
         1 big vibration = mod is ON, 2 small fast vibrations = mod is OFF
 
         When enable:
             If you hold L2/LT between 1% and 99%, Better AIM assist run when you press R2/RT, if you press 100%, Better AIM assist don't run when you press R2/RT
 
 
     Quick swap Weapons and Tonics
         Hold L1/LB and
            Tap TRIANGLE/Y for pistols
                 Double tap TRIANGLE/Y for Stamina
            Tap SQUARE/X for for 9 o'clock weapon
                Double tap SQUARE/X for Health
            Tap CIRCLE/B for knife
                Double tap CIRCLE/B for DeadEye
            Tap CROSS/A for 6 o'clock weapon
            Tap DOWN for lasso
            Hold TRIANGLE/Y to change skill card (Red Dead Online)
 
 
    DeadEye stop (usefull for online)
        Online, DeadEye does not stop automatically when you release the aiming button
        This feature stops DeadEye when you release L2/LT
 
 
    Auto DeadEye with toggle ON/OFF
        Hold DOWN and press R3/RS to enable or disable
        1 big vibration = mod is ON, 2 small fast vibrations = mod is OFF
        If enable, hold L2/LT to activate DeadEye
 
 
    Crouch with toggle ON/OFF
        Hold DOWN and press CROSS/A to enable or disable
        1 big vibration = mod is ON, 2 small fast vibrations = mod is OFF
        If enable, hold L2/LT to crouch
 
 
    Strafe shot with toggle ON/OFF
        Hold DOWN and press R1/RB to enable or disable
        1 big vibration = mod is ON, 2 small fast vibrations = mod is OFF
        If enable, hold L2/LT + R2/RT to strafe
 
 
    Auto Scope out
        When you aim and press DOWN you enter Scope mod but when you release aim and aim again, you are automatically in Scope mod
        This feature allows you to exit Scope mod when you release L2/LT
 
 
    Skid stop (for horse level 3)
        Double tap R1/RB to skid stop
 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------**/
// Button Layout:
//If you play with Standard FPS button layout, set TRUE, else set FALSE
//----------------------------------------------------------------------------------------------------------------------//
// HeadShot:
//Choose your range by defaut
//4 = Close Range, 5 = Medium Range, 6 = Long Range - (Defaut: 6)
// Change this value for close range (color = Pink)
// Change this value for medium range (color = SkyBlue) Defaut range
// Change this value for long range (color = Yellow)
//----------------------------------------------------------------------------------------------------------------------//
// Strafe Shot (Hold L2/LT and press SQUARE/X to toggle ON or OFF)
//How long to go RIGHT
//How long to go LEFT
//----------------------------------------------------------------------------------------------------------------------//
//////////// DO NOT MODIFY ///////////////////
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    //
//(color = Pink)        //
//(color = SkyBlue)        //
//(color = Yellow)        //
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    //
//
//
//
//
//
//
//
//
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    //
// Toggles                                    //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    //
//////////////////////////////////////////////
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Crossover
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Rumble start and restart
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Battery warning
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Double Tap function
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Script on/off
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//If script is ON:
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Hair Trigger
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Cinematic Camera activation
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Eagle Vision
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// AutoRun for Standard FPS button layout
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// AutoRun for standard button layout
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Horse Sprint mod activation  (Double tap and hold CROSS/A)
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Melee spam
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Cut the Rope
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Toggles with L2 + DeadStop + Scope out
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Rapid Fire toggle
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// HeadShot toggle
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// DeadEye stop for online   
// && !Auto_DeadEye_ON
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Scope out
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Rapid Fire   
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Rapid Reload
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// DeadEye stop for online
//DeadEye_ON = FALSE;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Scope out
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// HeadShot   
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Switch Weapons / Tonics - Hold L1/LB and press:
// TRIANGLE/Y for pistol / Double tap for Stamina
// SQUARE/X for 9 o'clock weapon / Double tap for Health
// CROSS/A for 6 o'clock weapon
// CIRCLE/B for knife / Double tap for DeadEye
// DOWN for lasso
// BLOCK
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Toggles with DOWN
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Auto DeadEye toggle
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Crouch toggle
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Strafe shot toggle
//set_val(PS4_SQUARE, 0);
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Better AIM Assist toggle
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Block buttons
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
// Auto DeadEye   
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Crouch       
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Strafe shot       
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//Better AIM Assist   
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Stop Horse (level 3)
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Script is ON - END
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Color Led
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Main END
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//horse
//stimpson's LED colors
//end
 
define WAIT_CLOSE = 160;
define WAIT_MEDIUM = 140;
define WAIT_LONG = 120;
define CLOSE = 4;
define MEDIUM = 5;
define LONG = 6;
define Off = 0;
define Blue = 1;
define Red = 2;
define Green = 3;
define Pink = 4;
define SkyBlue = 5;
define Yellow = 6;
define White = 7;
 
int Standard_FPS_Layout = FALSE;
int idx = 5;
int RIGHT = 1000;
int LEFT = 1000;
int Script_ON = 1;
int HeadShot_ON;
int Rapidfire_ON;
int Crouch_ON;
int Strafe_ON;
int cinema_ON;
int Horse_Sprint_ON;
int DeadEye_ON;
int Auto_DeadEye_ON;
int Scope_ON;
int Melee_ON;
int Lasso_ON;
int HS_ON;
int Better_AA_ON;
int bit;
int BTN;
int Button;
int Time_value;
int wx_v, wy_v;
int BTN_Tap;
int Timer;
int Range;
int Crouch_BTN;
int Run_BTN;
int ms;
int item;
int run_rumble;
int rumble_side;
int rumble_time;
 
init {
    if (Standard_FPS_Layout) {
        Crouch_BTN = PS4_CROSS;
        Run_BTN = PS4_L3;
    }
    else {
        Crouch_BTN = PS4_L3;
        Run_BTN = PS4_CROSS;
    }
}
 
 
main {
    if (get_controller() != PIO_PS4) {
        if (get_console() == PIO_PS4) {
            swap(PS4_SHARE, PS4_TOUCH);
            BTN = PS4_TOUCH;
            if (get_val(PS4_TOUCH) && get_val(PS4_R3)) {
                set_val(PS4_SHARE, 100);
                set_val(PS4_TOUCH, 0);
                set_val(PS4_R3, 0);
            }
        }
        if (get_console() != PIO_PS4) BTN = PS4_SHARE;
    }
    else  BTN = PS4_TOUCH;
    if (run_rumble && !combo_running(c_Vibrate)) {
        run_rumble-= 1;
        combo_restart(c_Vibrate);
    }
    if (get_battery() <= 1) {
        ms+= get_rtime();
        if (ms == 5000) {
            f_Rumble(FALSE, 3);
            ms = 0;
        }
    }
    if (Timer > 0) {
        Timer = Timer-get_rtime();
        if (Timer <= 0) BTN_Tap = FALSE;
    }
    if (event_press(PS4_DOWN)) {
        if (f_double_tap(175)) {
            Script_ON =! Script_ON;
            f_Rumble(Script_ON, 0);
        }
    }
    if (event_press(PS4_OPTIONS) || event_press(PS4_PS)) {
        Script_ON =! Script_ON;
        f_Rumble(Script_ON, 0);
    }
    if (Script_ON) {
        deadzone(PS4_L2, PS4_R2, 99, 99);
        if ((get_val(BTN) && get_ptime(BTN) >= 1500)) cinema_ON = TRUE;
        if (cinema_ON) {
            combo_run(c_calm);
            if (event_press(BTN) || event_press(PS4_L2)) cinema_ON = FALSE;
        }
        if (!cinema_ON && !get_lval(PS4_DOWN)) {
            if (event_press(PS4_R3) && !get_val(PS4_L2)) combo_run(c_Eagle_vision);
        }
        if (Standard_FPS_Layout) {
            if ((get_val(PS4_LY) <=  -20) && (event_release(PS4_L3) && get_ptime(PS4_L3) > 250)) combo_run(c_Run);
        }
        if (!Standard_FPS_Layout) {
            if (!get_val(PS4_CROSS) && !get_val(PS4_L2) && get_val(PS4_LY) < -70) {
                Button = PS4_CROSS;
                Time_value = 100;
                combo_run(c_Spam);
            }
        }
        if (!get_val(PS4_L1)) {
            if (event_press(PS4_CROSS)) {
                if (f_double_tap(200)) Horse_Sprint_ON = TRUE;
            }
            if (event_release(PS4_CROSS)) Horse_Sprint_ON = FALSE;
            f_Spammer(Horse_Sprint_ON, PS4_CROSS, 100);
            if (event_press(PS4_CIRCLE)) {
                if (f_double_tap(200)) Melee_ON = TRUE;
            }
            if (event_release(PS4_CIRCLE)) Melee_ON = FALSE;
            f_Spammer(Melee_ON, PS4_CIRCLE, 50);
            if (event_press(PS4_SQUARE)) {
                if (f_double_tap(200)) Lasso_ON = TRUE;
            }
            if (event_release(PS4_SQUARE)) Lasso_ON = FALSE;
            f_Spammer(Lasso_ON, PS4_SQUARE, 50);
        }
        if (get_val(PS4_L2)) {
            if (get_val(PS4_CIRCLE)) {
                if (event_press(PS4_R2)) {
                    Rapidfire_ON =! Rapidfire_ON;
                    f_Rumble(Rapidfire_ON, 0);
                }
                set_val(PS4_R2, 0);
            }
            if (event_press(PS4_R1)) {
                HS_ON =! HS_ON;
                f_Rumble(HS_ON, 0);
            }
            set_val(PS4_R1, 0);
            if (event_press(PS4_R3)) DeadEye_ON =! DeadEye_ON;
            if (event_press(PS4_DOWN)) Scope_ON =! Scope_ON;
        }
        if (Rapidfire_ON && !get_val(PS4_L1) && (get_val(PS4_L2) && get_val(PS4_R2))) {
            Button = PS4_R2;
            Time_value = 50;
            combo_run(c_Spam);
        }
        if (!Rapidfire_ON) {
            if (event_release(PS4_R2) && !get_val(PS4_L1)) combo_run(c_Reload);
        }
        else  combo_run(c_Flash);
        if (event_release(PS4_L2)) {
            if (DeadEye_ON) combo_run(c_DeadStop);
            if (Scope_ON) combo_run(c_ScopeOut);
        }
        if (HS_ON) {
            if (get_val(PS4_L2) && event_press(PS4_RIGHT)) idx++;
            if (idx == 7) idx = 4;
            if (!get_val(PS4_L1) && (get_lval(PS4_L2) >= 86 && get_ptime(PS4_L2) > 300 && !HeadShot_ON)) {
                if (idx == CLOSE) Range = WAIT_CLOSE;
                if (idx == MEDIUM) Range = WAIT_MEDIUM;
                if (idx == LONG) Range = WAIT_LONG;
                combo_run(c_HeadShot);
            }
            if (event_release(PS4_L2)) HeadShot_ON = FALSE;
        }
        if (get_val(PS4_L1)) {
            if (event_release(PS4_TRIANGLE) && get_ptime(PS4_TRIANGLE) < 200) {
                if (f_double_tap(300)) {
                    item = TRUE;
                    wx_v = 0;
                    wy_v = -100;
                }
                else {
                    wx_v = 0;
                    wy_v = -100;
                }
            }
            if (event_press(PS4_SQUARE)) {
                if (f_double_tap(300)) {
                    item = TRUE;
                    wx_v = -75;
                    wy_v = -75;
                }
                else {
                    wx_v = -100;
                    wy_v = 0;
                }
            }
            if (event_press(PS4_CROSS)) {
                wx_v = 0;
                wy_v = 100;
            }
            if (event_press(PS4_CIRCLE)) {
                if (f_double_tap(300)) {
                    item = TRUE;
                    wx_v = 75;
                    wy_v = -75;
                }
                else {
                    wx_v = 75;
                    wy_v = 75;
                }
            }
            if (event_press(PS4_DOWN)) {
                wx_v = -75;
                wy_v = 75;
            }
            if (wx_v|| wy_v) combo_run(c_Quick_Swap);
            if (get_val(PS4_TRIANGLE) && (get_ptime(PS4_TRIANGLE) >= 250)) set_val(PS4_TRIANGLE, 100);
            else  set_val(PS4_TRIANGLE, 0);
            set_val(PS4_SQUARE, 0);
            set_val(PS4_CROSS, 0);
            set_val(PS4_CIRCLE, 0);
            set_val(PS4_DOWN, 0);
        }
        if (get_val(PS4_DOWN)) {
            if (event_press(PS4_R3)) {
                Auto_DeadEye_ON =! Auto_DeadEye_ON;
                f_Rumble(Auto_DeadEye_ON, 0);
            }
            if (event_press(PS4_CROSS)) {
                Crouch_ON =! Crouch_ON;
                f_Rumble(Crouch_ON, 0);
            }
            if (event_press(PS4_R1)) {
                Strafe_ON =! Strafe_ON;
                f_Rumble(Strafe_ON, 0);
            }
            if (event_press(PS4_L2)) {
                Better_AA_ON =! Better_AA_ON;
                f_Rumble(Better_AA_ON, 0);
            }
            set_val(PS4_R3, 0);
            set_val(PS4_CROSS, 0);
            set_val(PS4_R1, 0);
        }
        if (Auto_DeadEye_ON && (event_press(PS4_L2) || event_release(PS4_L2))) combo_run(c_DeadStop);
        if (Crouch_ON && (event_press(PS4_L2) || event_release(PS4_L2))) combo_run(c_Crouch);
        if (Strafe_ON && (get_val(PS4_L2) && get_val(PS4_R2))) {
            set_val(Run_BTN, 100);
            combo_run(c_Strafe);
        }
        if (Better_AA_ON && (get_lval(PS4_L2) >= 1 && get_lval(PS4_L2) < 99) && !DeadEye_ON && get_val(PS4_R2)) combo_run(c_Better_Aim_Assist);
        if (event_press(PS4_R1)) {
            if (f_double_tap(200)) combo_run(c_Stop_Horse);
            else  combo_stop(c_Stop_Horse);
        }
    }
    if (!Script_ON) f_LED(Off);
    else {
        if (!HS_ON) {
            if (cinema_ON) f_LED(White);
            else  f_LED(Blue);
        }
        else {
            if (cinema_ON) f_LED(White);
            else  f_LED(idx);
        }
    }
}
 
 
combo c_Spam {
    set_val(Button, 100);
    wait(Time_value);
    set_val(Button, 0);
    wait(Time_value);
}
 
combo c_Reload {
    wait(200);
    set_val(PS4_L2, 0);
    wait(50);
    set_val(PS4_L2, 100);
    wait(50);
}
 
combo c_calm {
    wait(250);
    set_val(PS4_L3, 100);
    wait(30);
    wait(5000);
}
 
combo c_Crouch {
    set_val(Crouch_BTN, 100);
    wait(40);
}
 
combo c_Eagle_vision {
    wait(30);
    set_val(PS4_L3, 100);
    set_val(PS4_R3, 100);
    wait(50);
}
 
combo c_Flash {
    wait(500);
    f_LED(Red);
    wait(500);
}
 
combo c_HeadShot {
    set_val(PS4_RY,  -100);
    wait(Range);
    HeadShot_ON = TRUE;
}
 
combo c_Better_Aim_Assist {
    set_val(PS4_L2, 100);
    set_val(PS4_R2, 100);
    set_val(PS4_R3, 100);
    wait(40);
    set_val(PS4_L2, 100);
    set_val(PS4_R2, 0);
    set_val(PS4_R3, 0);
    wait(40);
    set_val(PS4_L2, 100);
    set_val(PS4_R2, 0);
    set_val(PS4_R3, 100);
    wait(40);
    set_val(PS4_L2, 0);
    set_val(PS4_R2, 0);
    wait(370);
}
 
combo c_Quick_Swap {
    set_val(PS4_RX, wx_v);
    set_val(PS4_RY, wy_v);
    if (item) set_val(PS4_R1, 100);
    wait(200);
    set_val(PS4_L1, 0);
    set_val(PS4_RX, wx_v);
    set_val(PS4_RY, wy_v);
    wait(200);
    wx_v = 0;
    wy_v = 0;
    item = FALSE;
}
 
combo c_Run {
    wait(300);
    set_val(PS4_L3, 100);
    wait(90);
}
 
combo c_DeadStop {
    wait(200);
    set_val(PS4_R3, 100);
    wait(90);
    DeadEye_ON = FALSE;
}
 
combo c_Strafe {
    set_val(PS4_LX, 100);
    wait(RIGHT);
    set_val(PS4_LX,  -100);
    wait(LEFT);
}
 
combo c_ScopeOut {
    set_val(PS4_L2, 100);
    wait(50);
    set_val(PS4_L2, 100);
    set_val(PS4_DOWN, 100);
    wait(50);
    Scope_ON = FALSE;
}
 
combo c_Stop_Horse {
    set_val(PS4_R1, 100);
    set_val(PS4_CROSS, 100);
    wait(1000);
}
 
combo c_Vibrate {
    set_rumble(rumble_side, 100);
    wait(rumble_time);
    reset_rumble();
    wait(100);
}
 
 
function f_double_tap(Time) {
    if (BTN_Tap) {
        return TRUE;
    }
    BTN_Tap = TRUE;
    Timer = Time;
    return FALSE;
}
 
function f_Rumble(f_var, f_num) {
    if (f_var) {
        if (!f_num) run_rumble = 1;
        else  run_rumble = f_num;
        rumble_side = RUMBLE_A;
        rumble_time = 300;
    }
    else {
        if (!f_num) run_rumble = 2;
        else  run_rumble = f_num;
        rumble_side = RUMBLE_B;
        rumble_time = 150;
    }
}
 
function f_Spammer(f_var, f_btn, f_time) {
    if (f_var) {
        Button = f_btn;
        Time_value = f_time;
        if (get_val(f_btn)) {
            combo_run(c_Flash);
            combo_run(c_Spam);
            if (Horse_Sprint_ON) combo_run(c_calm);
        }
        else {
            combo_stop(c_Flash);
            combo_stop(c_Spam);
            combo_stop(c_calm);
        }
    }
}
 
function f_LED(color) {
    for (bit = 0; bit < 3; bit++ ) {
        set_led(bit, test_bit(color, bit));
    }
}
 
 
 
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am

Re: Looking for red dead headshot flick script

Postby K240X » Tue Feb 04, 2020 10:36 am

Hi, can some one change this script so i can use it on my T1? Can't find the original file.

Thanks.
User avatar
K240X
Sergeant First Class
Sergeant First Class
 
Posts: 20
Joined: Fri May 12, 2017 9:00 pm

Re: Looking for red dead headshot flick script

Postby Mad » Tue Feb 04, 2020 8:11 pm

K240X wrote:Hi, can some one change this script so i can use it on my T1? Can't find the original file.

Thanks.

Replied to your other post: viewtopic.php?f=26&t=11684&p=95054#p95054
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am


Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 102 guests