Page 1 of 1

Noob request

PostPosted: Sat Jul 13, 2019 1:44 pm
by Titan101
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?

Re: Noob request

PostPosted: Sat Jul 13, 2019 8:44 pm
by Buffy
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.

Re: Noob request

PostPosted: Sun Jul 14, 2019 12:07 am
by Titan101
Thanks. You are the greatest!