IW Jitter Error

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

IW Jitter Error

Postby OpGreece » Thu Jul 04, 2019 9:54 pm

hi
please fix :smile0202:

Code: Select all
 
    int onoff;
    int rumble;
    int run = TRUE; //Change TRUE TO FALSE If you dont Auto Run
    int JT = TRUE; //Change TRUE TO FALSE If you dont want Jump Shot
 
    main {
 
    if(run)
    if(get_val(12) == -100) 
    set_val(8,100);
 
    deadzone(4,7,100,100);
 
    if(onoff && event_release(4))
    combo_run(Reload);
 
    if(get_val(7) && event_press(5)) {
    onoff=!onoff;
    rumble(onoff);}
    if(rumble)
    combo_run(RUMBLE);
    if(onoff && get_val(4)) {
    set_val(7,100);
    combo_run(Jitter);
    if(JT)
    combo_run(Jump);}}
 
    combo Jitter {
    set_val(20, 100);
    wait(36);
    set_val(3, 100);
    wait(17);
    set_val(17, 100);
    wait(36);}
 
    combo Jump {
    set_val(19,100);
    wait(20);
    set_val(19,0);
    wait(10);}
 
    combo Reload {
    wait(100);
    set_val(20,100);
    wait(20);}
 
    combo RUMBLE {
    set_rumble(RUMBLE_A,100);
    wait(250);
    reset_rumble();
    wait(200);
    rumble--;}
 
    function rumble(f_bln) {
    if(f_bln)
    rumble = 1;
    else
    rumble = 2;}
User avatar
OpGreece
First Sergeant
First Sergeant
 
Posts: 45
Joined: Thu Nov 15, 2018 2:30 pm

Re: IW Jitter Error

Postby Scachi » Fri Jul 05, 2019 9:00 am

Fixed for T1:
Code: Select all
 
    int onoff;
    int irumble;
    int run = TRUE; //Change TRUE TO FALSE If you dont Auto Run
    int JT = TRUE; //Change TRUE TO FALSE If you dont want Jump Shot
 
    main {
 
    if(run)
    if(get_val(12) == -100) 
    set_val(8,100);
 
    deadzone(4,7,100,100);
 
    if(onoff && event_release(4))
    combo_run(Reload);
 
    if(get_val(7) && event_press(5)) {
    onoff=!onoff;
    rumble(onoff);}
    if(irumble)
    combo_run(RUMBLE);
    if(onoff && get_val(4)) {
    set_val(7,100);
    combo_run(Jitter);
    if(JT)
    combo_run(Jump);}}
 
    combo Jitter {
    set_val(20, 100);
    wait(36);
    set_val(3, 100);
    wait(17);
    set_val(17, 100);
    wait(36);}
 
    combo Jump {
    set_val(19,100);
    wait(20);
    set_val(19,0);
    wait(10);}
 
    combo Reload {
    wait(100);
    set_val(20,100);
    wait(20);}
 
    combo RUMBLE {
    set_rumble(RUMBLE_A,100);
    wait(250);
    reset_rumble();
    wait(200);
    irumble--;
    }
 
    function rumble(f_bln) {
    if(f_bln)
    irumble = 1;
    else
    irumble = 2;}
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: IW Jitter Error

Postby OpGreece » Fri Jul 05, 2019 7:24 pm

Scachi wrote:Fixed for T1:
Code: Select all
 
    int onoff;
    int irumble;
    int run = TRUE; //Change TRUE TO FALSE If you dont Auto Run
    int JT = TRUE; //Change TRUE TO FALSE If you dont want Jump Shot
 
    main {
 
    if(run)
    if(get_val(12) == -100) 
    set_val(8,100);
 
    deadzone(4,7,100,100);
 
    if(onoff && event_release(4))
    combo_run(Reload);
 
    if(get_val(7) && event_press(5)) {
    onoff=!onoff;
    rumble(onoff);}
    if(irumble)
    combo_run(RUMBLE);
    if(onoff && get_val(4)) {
    set_val(7,100);
    combo_run(Jitter);
    if(JT)
    combo_run(Jump);}}
 
    combo Jitter {
    set_val(20, 100);
    wait(36);
    set_val(3, 100);
    wait(17);
    set_val(17, 100);
    wait(36);}
 
    combo Jump {
    set_val(19,100);
    wait(20);
    set_val(19,0);
    wait(10);}
 
    combo Reload {
    wait(100);
    set_val(20,100);
    wait(20);}
 
    combo RUMBLE {
    set_rumble(RUMBLE_A,100);
    wait(250);
    reset_rumble();
    wait(200);
    irumble--;
    }
 
    function rumble(f_bln) {
    if(f_bln)
    irumble = 1;
    else
    irumble = 2;}

thanks you Scachi
User avatar
OpGreece
First Sergeant
First Sergeant
 
Posts: 45
Joined: Thu Nov 15, 2018 2:30 pm


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 53 guests