GTA_V_Online - Quick_Suicide and Turbo_Suicide - Discussion

GPC1 script programming for Titan One. Code examples, questions, requests.

GTA_V_Online - Quick_Suicide and Turbo_Suicide - Discussion

Postby GTAthrowawayaccount » Thu Jun 16, 2016 2:40 pm

http://www.consoletuner.com/gpclib/usp.php?p=093002 :smile0311:
DO NOT HAVE A SILENCER ON YOUR PISTOL or else you'll take a cyanide capsule which takes longer (too long).

Code: Select all

//DO NOT HAVE A SILENCER ON YOUR PISTOL or else you'll take a cyanide capsule which takes longer (too long).

//To activate QUICK_SUICIDE, hold L1 (LB), R1 (RB), and push both joysticks together (inward... Left stick to the right, and right stick to the left) .

//To activate TURBO_SUICIDE, hold L1 (LB), R1 (RB), and push both joysticks apart (outward... Left stick to the left, and right stick to the right) .

//To deactivate TURBO_SUICIDE, press X for PS or A for XB. (or just RUN)

    int Turbo_On = FALSE;

    main {
        if(get_val(PS4_L1) && get_val(PS4_LX) >=90 && get_val(PS4_R1) && get_val(PS4_RX) <=-90)
        {combo_run(Quick_Suicide);}
           

        if(get_val(PS4_L1) && get_val(PS4_R1) && get_val(PS4_LX) <=-90 && get_val(PS4_RX) >=90)
        {Turbo_On = TRUE;}
       
        else if(Turbo_On && event_press(PS4_CROSS))
        {Turbo_On = FALSE;}

        if(Turbo_On && !combo_running(Turbo_Suicide))
        {combo_run(Turbo_Suicide);}
    }

        combo Quick_Suicide
        {   
        set_val(PS4_L1, 0)
        set_val(PS4_L2, 0)
        set_val(PS4_R1, 0)
        set_val(PS4_R2, 0)
        set_val(PS4_RX, 0)
        set_val(PS4_RY, 0)
        set_val(PS4_LX, 0)
        set_val(PS4_LY, 0);
        wait(100);   
        set_val(PS4_TOUCH, 100)
        set_val(PS4_L1, 0)
        set_val(PS4_L2, 0)
        set_val(PS4_R1, 0)
        set_val(PS4_R2, 0)
        set_val(PS4_RX, 0)
        set_val(PS4_RY, 0)
        set_val(PS4_LX, 0)
        set_val(PS4_LY, 0);
        wait(666);
        set_val(PS4_UP, 100)
        set_val(PS4_L1, 0)
        set_val(PS4_L2, 0)
        set_val(PS4_R1, 0)
        set_val(PS4_R2, 0);
        wait(100);
        set_val(PS4_CROSS, 100) //KILL YOURSELF
        set_val(PS4_L1, 0)
        set_val(PS4_L2, 0)
        set_val(PS4_R1, 0)
        set_val(PS4_R2, 0);
        wait(100);
        set_val(PS4_CROSS, 0);
        }
       
    combo Turbo_Suicide
    {
        set_val(PS4_L1, 0)
        set_val(PS4_L2, 0)
        set_val(PS4_R1, 0)
        set_val(PS4_R2, 0)
        set_val(PS4_RX, 0)
        set_val(PS4_RY, 0)
        set_val(PS4_LX, 0)
        set_val(PS4_LY, 0);
        wait(100);   
        set_val(PS4_TOUCH, 100)
        set_val(PS4_L1, 0)
        set_val(PS4_L2, 0)
        set_val(PS4_R1, 0)
        set_val(PS4_R2, 0);
        wait(666);
        set_val(PS4_UP, 100)
        wait(100);
        set_val(PS4_CROSS, 100) //KILL YOURSELF
        wait(100);
        set_val(PS4_CROSS, 0)
           
        set_val(PS4_CIRCLE, 100) //just
        wait(100);               //in case
        set_val(PS4_CIRCLE, 0)   //the
        wait(100);               //interaction
        set_val(PS4_CIRCLE, 100) //menu
        wait(100);               //doesn't
        set_val(PS4_CIRCLE, 0)   //open
        wait(100);               //and
        set_val(PS4_CIRCLE, 100) //the
        wait(100);               //phone
        set_val(PS4_CIRCLE, 0)   //pulls up
        wait(100);               //instead

        wait(666);
        wait(666);
        wait(666);
        wait(666);
        wait(666);
        wait(666);
        wait(666);
        wait(666);
        wait(666);
        wait(666);
        wait(666);
        wait(666);
        }
       
     
:smile0601:
Last edited by GTAthrowawayaccount on Fri Jun 17, 2016 6:58 pm, edited 2 times in total.
Do you play GTA V with your Titan One? Join the ConsoleTuner crew I made! viewtopic.php?f=22&t=3954
User avatar
GTAthrowawayaccount
Sergeant Major
Sergeant Major
 
Posts: 98
Joined: Fri Nov 27, 2015 11:55 pm

Re: GTA_V_Online - Suicide Turbo - Script Discussion

Postby Valant » Thu Jun 16, 2016 8:54 pm

Them waits are... Satanic. lol
XB360, XB1
GT: Valant
User avatar
Valant
Lieutenant
Lieutenant
 
Posts: 355
Joined: Thu Nov 06, 2014 3:11 am
Location: Colorado, USA

Re: GTA_V_Online - Suicide Turbo - Script Discussion

Postby GTAthrowawayaccount » Thu Jun 16, 2016 9:04 pm

Valant wrote:Them waits are... Satanic. lol

Yeah 13 total 666 wait times. LOL
Some say that if you commit suicide you'll go to hell, so it seemed like a good fit.
Do you play GTA V with your Titan One? Join the ConsoleTuner crew I made! viewtopic.php?f=22&t=3954
User avatar
GTAthrowawayaccount
Sergeant Major
Sergeant Major
 
Posts: 98
Joined: Fri Nov 27, 2015 11:55 pm

Re: GTA_V_Online - Quick_Suicide and Turbo_Suicide - Discuss

Postby Valant » Sat Jun 18, 2016 2:27 am

Ye.

Also, I take a cyanide pill no matter what now. And I think it would work a bit better if it included holding the action menu button. (so you just have to do the combo and not bring it up then do it)

And for some trippy reason, the script executes over and over again
XB360, XB1
GT: Valant
User avatar
Valant
Lieutenant
Lieutenant
 
Posts: 355
Joined: Thu Nov 06, 2014 3:11 am
Location: Colorado, USA

Re: GTA_V_Online - Quick_Suicide and Turbo_Suicide - Discuss

Postby GTAthrowawayaccount » Sat Jun 18, 2016 4:05 am

Valant wrote:Ye.

Also, I take a cyanide pill no matter what now. And I think it would work a bit better if it included holding the action menu button. (so you just have to do the combo and not bring it up then do it)

And for some trippy reason, the script executes over and over again


The original script was only to do it over and over again. I changed it so there's a script that kill you once quickly and a script that kills you as soon as you respawn... if you're killing yourself with the pistol every time.
(A friend saw me take the cyanide pill and laughed at me. They told me to take the silencer off my pistol to kill myself faster, so that I wouldn't be left vulnerable in a longer suicide animation.)

Since the button to open the interaction menu isn't the same on all platforms... and it doesn't correlate to the same number in the GPC scripting, I decided to make the scripts triggered by holding R1 and R2, and either pressing your joysticks together to kill yourself once, or pulling them apart to kill yourself repeatedly.

Feel free to change anything you want about it... the buttons that start the scripts... or the wait time on the Turbo Suicide adjusted longer to accommodate the cyanide capsule animation time.
If you make any changes that suit your needs or playing style better, feel free to post the GPC code here, so others can try it out.
Do you play GTA V with your Titan One? Join the ConsoleTuner crew I made! viewtopic.php?f=22&t=3954
User avatar
GTAthrowawayaccount
Sergeant Major
Sergeant Major
 
Posts: 98
Joined: Fri Nov 27, 2015 11:55 pm

Re: GTA_V_Online - Quick_Suicide and Turbo_Suicide - Discuss

Postby J2Kbr » Sat Jun 18, 2016 12:53 pm

Your scripts for GTA makes feel like I should play the game ... I have GTA V here, but never gave it much attention, basically got it to make the gamepack ....

Once again, thank you GTAthrowawayaccount for sharing your scripts with us! appreciated.
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 19674
Joined: Tue Mar 18, 2014 1:39 pm

Re: GTA_V_Online - Quick_Suicide and Turbo_Suicide - Discuss

Postby r0senberg » Fri Feb 22, 2019 5:56 am

i'm trying to compile this for Titan Two but get this error:

GPC: ----- GPC Build: gta_v_online__quick_suicide_and_turbo_suicide.gpc -----
GPC: Preprocessor started.
GPC: First-pass started.
GPC: Variables: Global: 1, Local: 0, Parameters: 0, Pointers: 0, Constants: 0, Labels: 0, Functions: 0, Combos: 2
GPC: Memory usage: Static: 12 bytes (1.17%), Dynamic: 0 bytes (0.00%)
GPC: Second-pass started.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(17): Identifier not declared 'PS4_L1'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(17): Illegal operation 'get_val'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(17): Identifier not declared 'PS4_LX'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(17): Illegal operation 'get_val'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(17): Illegal operation '>='.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(17): Illegal operation '&&'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(17): Identifier not declared 'PS4_R1'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(17): Illegal operation 'get_val'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(17): Illegal operation '&&'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(17): Identifier not declared 'PS4_RX'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(17): Illegal operation 'get_val'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(17): Illegal operation '<='.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(17): Illegal operation '&&'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(21): Identifier not declared 'PS4_L1'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(21): Illegal operation 'get_val'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(21): Identifier not declared 'PS4_R1'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(21): Illegal operation 'get_val'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(21): Illegal operation '&&'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(21): Identifier not declared 'PS4_LX'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(21): Illegal operation 'get_val'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(21): Illegal operation '<='.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(21): Illegal operation '&&'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(21): Identifier not declared 'PS4_RX'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(21): Illegal operation 'get_val'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(21): Illegal operation '>='.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(21): Illegal operation '&&'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(24): Identifier not declared 'event_press'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(24): Identifier not declared 'PS4_CROSS'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(24): Illegal operation 'arg:1'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(24): Illegal function call, near ')'
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(24): Illegal operation '&&'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(27): Identifier not declared 'combo_running'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(27): Illegal operation 'arg:1'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(27): Illegal function call, near ')'
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(27): Illegal operation '!'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(27): Illegal operation '&&'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(33): Identifier not declared 'PS4_L1'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(33): Illegal operation 'set_val'.
GPC error: gta_v_online__quick_suicide_and_turbo_suicide.gpc(34): syntax error, unexpected SETVAL, expecting C 'set_val'.
GPC: GPC Build ABORTED with 0 warning(s) and 39 error(s).

Any ideas?
User avatar
r0senberg
Private
Private
 
Posts: 1
Joined: Fri Feb 22, 2019 3:18 am

Re: GTA_V_Online - Quick_Suicide and Turbo_Suicide - Discuss

Postby J2Kbr » Fri Feb 22, 2019 8:39 am

r0senberg wrote:i'm trying to compile this for Titan Two but get this error: ...Any ideas?

Script converted to the Titan Two using the back compatibility header file:
Code: Select all
#include <titanone.gph>
 
//DO NOT HAVE A SILENCER ON YOUR PISTOL or else you'll take a cyanide capsule which takes longer (too long).
 
//To activate QUICK_SUICIDE, hold L1 (LB), R1 (RB), and push both joysticks together (inward... Left stick to the right, and right stick to the left) .
 
//To activate TURBO_SUICIDE, hold L1 (LB), R1 (RB), and push both joysticks apart (outward... Left stick to the left, and right stick to the right) .
 
//To deactivate TURBO_SUICIDE, press X for PS or A for XB. (or just RUN)
 
    int Turbo_On = FALSE;
 
    main {
        if(get_val(PS4_L1) && get_val(PS4_LX) >=90 && get_val(PS4_R1) && get_val(PS4_RX) <=-90)
        {combo_run(Quick_Suicide);}
 
 
        if(get_val(PS4_L1) && get_val(PS4_R1) && get_val(PS4_LX) <=-90 && get_val(PS4_RX) >=90)
        {Turbo_On = TRUE;}
 
        else if(Turbo_On && event_press(PS4_CROSS))
        {Turbo_On = FALSE;}
 
        if(Turbo_On && !combo_running(Turbo_Suicide))
        {combo_run(Turbo_Suicide);}
    }
 
        combo Quick_Suicide
        {   
        set_val(PS4_L1, 0);
        set_val(PS4_L2, 0);
        set_val(PS4_R1, 0);
        set_val(PS4_R2, 0);
        set_val(PS4_RX, 0);
        set_val(PS4_RY, 0);
        set_val(PS4_LX, 0);
        set_val(PS4_LY, 0);
        wait(100);   
        set_val(PS4_TOUCH, 100);
        set_val(PS4_L1, 0);
        set_val(PS4_L2, 0);
        set_val(PS4_R1, 0);
        set_val(PS4_R2, 0);
        set_val(PS4_RX, 0);
        set_val(PS4_RY, 0);
        set_val(PS4_LX, 0);
        set_val(PS4_LY, 0);
        wait(666);
        set_val(PS4_UP, 100);
        set_val(PS4_L1, 0);
        set_val(PS4_L2, 0);
        set_val(PS4_R1, 0);
        set_val(PS4_R2, 0);
        wait(100);
        set_val(PS4_CROSS, 100); //KILL YOURSELF
        set_val(PS4_L1, 0);
        set_val(PS4_L2, 0);
        set_val(PS4_R1, 0);
        set_val(PS4_R2, 0);
        wait(100);
        set_val(PS4_CROSS, 0);
        }
 
    combo Turbo_Suicide
    {
        set_val(PS4_L1, 0);
        set_val(PS4_L2, 0);
        set_val(PS4_R1, 0);
        set_val(PS4_R2, 0);
        set_val(PS4_RX, 0);
        set_val(PS4_RY, 0);
        set_val(PS4_LX, 0);
        set_val(PS4_LY, 0);
        wait(100);   
        set_val(PS4_TOUCH, 100);
        set_val(PS4_L1, 0);
        set_val(PS4_L2, 0);
        set_val(PS4_R1, 0);
        set_val(PS4_R2, 0);
        wait(666);
        set_val(PS4_UP, 100);
        wait(100);
        set_val(PS4_CROSS, 100); //KILL YOURSELF
        wait(100);
        set_val(PS4_CROSS, 0);
 
        set_val(PS4_CIRCLE, 100); //just
        wait(100);               //in case
        set_val(PS4_CIRCLE, 0);   //the
        wait(100);               //interaction
        set_val(PS4_CIRCLE, 100); //menu
        wait(100);               //doesn't
        set_val(PS4_CIRCLE, 0);   //open
        wait(100);               //and
        set_val(PS4_CIRCLE, 100); //the
        wait(100);               //phone
        set_val(PS4_CIRCLE, 0);   //pulls up
        wait(100);               //instead
 
        wait(666);
        wait(666);
        wait(666);
        wait(666);
        wait(666);
        wait(666);
        wait(666);
        wait(666);
        wait(666);
        wait(666);
        wait(666);
        wait(666);
        }
 
 
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 19674
Joined: Tue Mar 18, 2014 1:39 pm


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 8 guests