halo 2 help

GPC script programming for Titan One device. Code examples, how to, questions, requests.

Moderators: The_Rabid_Taco, pablosscripts, bonefisher, Baby Cham, Elvish

halo 2 help

Postby jesus1 » Wed Feb 17, 2016 10:49 pm

Code: Select all

main {
    if(get_val(XB1_RB)) {
        combo_stop(Rapidfire);
        combo_run(DoubleShotYY);
        set_val(XB1_RB, 0);
    } else if(get_val(XB1_RT)) {
        combo_run(Rapidfire);
    }
}

combo Rapidfire {
    set_val(XB1_RT, 100);
    wait(40);
    set_val(XB1_RT, 100);
    wait(30);
    set_val(XB1_RT, 100);
}

combo DoubleShotYY {
    set_val(XB1_RT, 100);
    wait(20);
    set_val(XB1_RT, 0);
    wait(70);
    set_val(XB1_RT, 100);
    wait(20);
    set_val(XB1_X, 100);
    wait(20);
    wait(130);
    call(YY);
    wait(210);
}

combo YY {
    set_val(XB1_Y, 100);
    wait(20);
    set_val(XB1_Y, 0);
    wait(20);
    set_val(XB1_Y, 100);
    wait(10);
    set_val(XB1_Y, 100);
}
 

double shot only shoots out 5 bullet not 6 . can someon fix this
User avatar
jesus1
Staff Sergeant
Staff Sergeant
 
Posts: 11
Joined: Wed Feb 03, 2016 6:29 am

Re: halo 2 help

Postby bonefisher » Thu Feb 18, 2016 12:48 am

Code: Select all

main {
 if (get_val(XB1_RB)) { set_val(XB1_RB, 0); combo_run(DoubleShot); }
 if (get_val(XB1_LB)) { set_val(XB1_LB, 0); combo_run(BXR); }
 if (event_press(XB1_LEFT)) { combo_run(GrenadeSwitch); }
}

combo GrenadeSwitch {
 set_val(XB1_LB, 100);
 wait(40); wait(20);
}

combo BXR {
 set_val(XB1_B,0);
 wait(195);
 set_val(XB1_X, 100);
 set_val(XB1_RT, 100);
 wait(150);
}

combo DoubleShot {
 set_val(XB1_RT, 100);
 wait(100); wait(45);
 set_val(XB1_RT, 100);
 wait(60);
 set_val(XB1_X, 100);
 wait(60); wait(140);
 call(YY);wait(210);
}

combo YY {
    set_val(XB1_Y, 100);
    wait(20);
    set_val(XB1_Y, 0);
    wait(20);
    set_val(XB1_Y, 100);
    wait(10);
    set_val(XB1_Y, 100);
}


Try it out and let me know if it is working!
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5264
Joined: Thu Jan 29, 2015 10:49 am

Re: halo 2 help

Postby bonefisher » Thu Feb 18, 2016 1:31 am

Try to keep one post for your Halo 2 help. Thanks!
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5264
Joined: Thu Jan 29, 2015 10:49 am


Return to GPC Script Programming (Titan One)

Who is online

Users browsing this forum: No registered users and 11 guests