Noob request

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

Moderators: The_Rabid_Taco, pablosscripts, bonefisher

Noob request

Postby Titan101 » Sat Jul 13, 2019 1:44 pm

I just got the Titan2, I'm willing to learn, but I've been messing around with it for a few hours, and for now i just want to play.

I'm sure these scripts or macros (I'm not too savvy with this stuff) are everywhere, but I'm having trouble finding one.

When I hold R2, I want L2 to be held and X to repeatedly tapped.
This is for the PS4 game Paladins. When I shoot I want to auto scope in and constantly jump. The character spends about 1/2 a second in the air on jumps.

*If this Auto-ADS/continuous jump ability could be added to an anti-recoil script that would be a nice bonus.

1 more request, for a lot of guns on different games recoil can be combated pretty well by moving the aim stick in tiny circles, anyone know of any scripts like that out there?
User avatar
Titan101
Sergeant
Sergeant
 
Posts: 7
Joined: Sat Jul 13, 2019 7:22 am

Re: Noob request

Postby Buffy » Sat Jul 13, 2019 8:44 pm

Code: Select all
 
#include <ps4.gph>
 
#define  RECOIL_V         25.0
#define  RECOIL_H         0.0
 
main {
    if(is_active(PS4_R2)) {
        set_val(PS4_L2, 100);
        combo_run(tap_X);
        AntiRecoil(STICK_1_Y, RECOIL_V);
        //AntiRecoil(STICK_1_X, RECOIL_H);
    }
}
 
combo tap_X {
    set_val(PS4_CROSS, 0);
    wait(100);
    set_val(PS4_CROSS, 100);
    wait(100);
}
 
void AntiRecoil (uint8 axis, fix32 recoil){
    if (sqrt(sq(get_actual(STICK_1_X)) + sq(get_actual(STICK_1_Y))) < abs(recoil)){
        set_val(axis,(recoil * (100.0 - abs(get_val(axis)))) / 100.0 + get_val(axis));
    }
}
 
 


You may need to adjust the anti-recoil values to get it better per champ.
User avatar
Buffy
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 279
Joined: Wed Jul 20, 2016 5:23 am

Re: Noob request

Postby Titan101 » Sun Jul 14, 2019 12:07 am

Thanks. You are the greatest!
User avatar
Titan101
Sergeant
Sergeant
 
Posts: 7
Joined: Sat Jul 13, 2019 7:22 am


Return to GPC Script Programming (Titan Two)

Who is online

Users browsing this forum: Google Adsense [Bot], MSN [Bot] and 10 guests