Correct way to find Horizontal Anti-Recoil Values (XIM BO4)

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

Correct way to find Horizontal Anti-Recoil Values (XIM BO4)

Postby SweatyPapi » Sun Apr 14, 2019 2:26 pm

Was wondering the correct way to find these values. I tried it on the Maddox and couldn't figure out correct value like the vertical recoil. Either it was too strong limiting my Mouse movement, or too low where it didn't make a different. Anybody has input on this?

Using AryanX's Anti-Recoil Script
User avatar
SweatyPapi
Sergeant Major
Sergeant Major
 
Posts: 91
Joined: Fri Feb 08, 2019 12:52 am

Re: Correct way to find Horizontal Anti-Recoil Values (XIM B

Postby bonefisher » Sun Apr 14, 2019 4:34 pm

Code: Select all
 
main
{
    if(ffb_get(FFB_1, NULL) > 28.0) {
        combo_run(RandomAntiRecoil);
    }
    if(is_active(STICK_1_X))combo_stop(RandomAntiRecoil);
    if(is_active(STICK_1_Y))combo_stop(RandomAntiRecoil);
}
 
combo RandomAntiRecoil {
    set_val(STICK_1_Y, irand(20, 32));
    set_val(STICK_1_X, irand(12, -12));
}
 
int irand(int vmin, int vmax) {
    return(((int)(rand() * (fix32)(vmax + 1 - vmin))) + vmin);
}
 

Here try this but you need to have your ffb check on T2 and in game rumble on!
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5413
Joined: Thu Jan 29, 2015 10:49 am


Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 98 guests