pubg with titan two

Forum to discuss the scripts, configs and connection of XIM with the Titan devices.

Moderator: antithesis

Re: pubg with titan two

Postby J2Kbr » Sun Sep 02, 2018 2:11 pm

TheOne wrote:can u make script > it hold breath when i fire

Sure :)
Code: Select all
main {
    // AUTO HOLD BREATH on FIRE
    if(get_actual(BUTTON_5)) {
        set_val(BUTTON_7, 100.0);
    }
}
 
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: pubg with titan two

Postby TKill » Fri Sep 07, 2018 8:06 pm

it possible to make script for ( one press for reload )
User avatar
TKill
Staff Sergeant
Staff Sergeant
 
Posts: 15
Joined: Fri Sep 07, 2018 7:59 pm

Re: pubg with titan two

Postby J2Kbr » Mon Sep 10, 2018 9:47 am

TKill wrote:it possible to make script for ( one press for reload )

Sure. :)
Code: Select all
main {
    if(event_active(BUTTON_17)) {
        combo_run(Reload);
    }
}
 
combo Reload {
    set_val(BUTTON_17, 100.0);
    wait(1500);
}
 
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: pubg with titan two

Postby TheOne » Mon Sep 24, 2018 1:00 pm

can u making script for Lean

when i (HOLD ADS and go Left with Left Stick) it hold LS
when i (HOLD ADS and go Right with Left Stick) it hold RS

it only activate with ADS

and add able to turn on and off with press ( J3 in Sony Nav ) through Xim Apex
User avatar
TheOne
Sergeant First Class
Sergeant First Class
 
Posts: 21
Joined: Mon Aug 13, 2018 7:43 pm

Re: pubg with titan two

Postby J2Kbr » Tue Sep 25, 2018 7:20 am

this will do. :smile0517: :smile0517:
Code: Select all
bool toggle;
 
main {
    // Toggle with L3
    if(event_active(BUTTON_9)) {
        toggle = !toggle;
    }
 
    // Auto lean with left stick while ADSing
    if(toggle && get_actual(BUTTON_8)) {
        if(get_actual(STICK_2_X) > 50.0) {
            set_val(BUTTON_6, 100.0);
        } else if(get_actual(STICK_2_X) < -50.0) {
            set_val(BUTTON_9, 100.0);
        }
    }
}
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: pubg with titan two

Postby BlessUp » Mon Oct 29, 2018 8:10 am

Would it be possible to get the script segments shared here combined into the antirecoil, rapid-fire but only when ads and over shoulder ads no hip with the toggle on off, and hold breath only while shooting. That would be awesome. If it's not asking to much could you make the same script but swap out this version of antirecoil for the most up to date anti recoil that works best with xim apex. Would be very grateful. Thank you.
User avatar
BlessUp
Master Sergeant
Master Sergeant
 
Posts: 40
Joined: Fri May 22, 2015 12:18 am

Re: pubg with titan two

Postby BlessUp » Mon Oct 29, 2018 8:41 am

Here is what I have been using if it was possible to make this only rapid firer when ads and over sholder aim that would be sweet.

Code: Select all
#pragma METAINFO("PUBG Anti-Recoil", 0, 1, "Sillyasskid")
fix32 RECOIL_V, RECOIL_H;
#define StickNoise (6f)
#define ffb_active (ffb_get_actual(FFB_1,0) != 0.0 || ffb_get_actual(FFB_3,0) != 0.0)
#define recoil_vert(a)  RECOIL_V = (fix32) a, port_inhibit_ffb(PORT_USB_A), port_inhibit_ffb(PORT_USB_B)
#define recoil_horz(a)  RECOIL_H = (fix32) a
 
init {
  recoil_vert(26);
  recoil_horz( 0);
}
 
main {
  if(abs(get_actual(STICK_1_X))<StickNoise)set_val(STICK_1_X, 0);
  if(abs(get_actual(STICK_1_Y))<StickNoise)set_val(STICK_1_Y, 0);
 
  if((get_actual(BUTTON_8) || get_actual(BUTTON_7)) && get_actual(BUTTON_5)){
    if(ffb_active) combo_restart(ffb_active2);
    if(ffb_active|ffb_active2)(anti_recoil(STICK_1_Y,RECOIL_V),anti_recoil(STICK_1_X,RECOIL_H));
  }
}
void anti_recoil (uint8 axis, fix32 recoil) {
fix32 RY ,RX;
  RY = get_actual(STICK_1_Y);
  RX = get_actual(STICK_1_X);
 
  if(sqrt(sq(RX)+sq(RY))<=abs(recoil))set_val(axis,(recoil*(1e2-abs(get_val(axis))))/1e2+get_val(axis));
  if(abs(RX)>18f|abs(RY)>18f)(set_val(STICK_1_X, RX),set_val(STICK_1_Y, RY));
  return;
}
 
combo ffb_active2 { wait(300); }
 
bool toggle;
 
main {
    // VIEW + RT to toggle rapidfire
    if(get_val(BUTTON_2) && event_active(BUTTON_5)) {
        toggle = !toggle;
    }
 
    if(toggle) {
        if(get_val(BUTTON_5)) {
            combo_run(Rapidfire);
        }
    }
 
    // AUTO HOLD BREATH on FIRE
    if(get_actual(BUTTON_5)) {
        set_val(BUTTON_7, 100.0);
    }
}
 
combo Rapidfire {
    set_val(BUTTON_5, 100.0);
    wait(53);
    set_val(BUTTON_5, 0.0);
    wait(51);
    set_val(BUTTON_5, 0.0);
}
User avatar
BlessUp
Master Sergeant
Master Sergeant
 
Posts: 40
Joined: Fri May 22, 2015 12:18 am

Re: pubg with titan two

Postby J2Kbr » Tue Oct 30, 2018 12:23 pm

BlessUp wrote:Here is what I have been using if it was possible to make this only rapid firer when ads and over sholder aim that would be sweet

Done. :smile0517:
Code: Select all
#pragma METAINFO("PUBG Anti-Recoil", 0, 1, "Sillyasskid")
fix32 RECOIL_V, RECOIL_H;
#define StickNoise (6f)
#define ffb_active (ffb_get_actual(FFB_1,0) != 0.0 || ffb_get_actual(FFB_3,0) != 0.0)
#define recoil_vert(a)  RECOIL_V = (fix32) a, port_inhibit_ffb(PORT_USB_A), port_inhibit_ffb(PORT_USB_B)
#define recoil_horz(a)  RECOIL_H = (fix32) a
 
init {
  recoil_vert(26);
  recoil_horz( 0);
}
 
main {
  if(abs(get_actual(STICK_1_X))<StickNoise)set_val(STICK_1_X, 0);
  if(abs(get_actual(STICK_1_Y))<StickNoise)set_val(STICK_1_Y, 0);
 
  if((get_actual(BUTTON_8) || get_actual(BUTTON_7)) && get_actual(BUTTON_5)){
    if(ffb_active) combo_restart(ffb_active2);
    if(ffb_active|ffb_active2)(anti_recoil(STICK_1_Y,RECOIL_V),anti_recoil(STICK_1_X,RECOIL_H));
  }
}
void anti_recoil (uint8 axis, fix32 recoil) {
fix32 RY ,RX;
  RY = get_actual(STICK_1_Y);
  RX = get_actual(STICK_1_X);
 
  if(sqrt(sq(RX)+sq(RY))<=abs(recoil))set_val(axis,(recoil*(1e2-abs(get_val(axis))))/1e2+get_val(axis));
  if(abs(RX)>18f|abs(RY)>18f)(set_val(STICK_1_X, RX),set_val(STICK_1_Y, RY));
  return;
}
 
combo ffb_active2 { wait(300); }
 
bool toggle;
 
main {
    // VIEW + RT to toggle rapidfire
    if(get_val(BUTTON_2) && event_active(BUTTON_5)) {
        toggle = !toggle;
    }
 
    if(toggle) {
        if((get_actual(BUTTON_8) || get_actual(BUTTON_7)) && get_actual(BUTTON_5)){
            combo_run(Rapidfire);
        }
    }
 
    // AUTO HOLD BREATH on FIRE
    if(get_actual(BUTTON_5)) {
        set_val(BUTTON_7, 100.0);
    }
}
 
combo Rapidfire {
    set_val(BUTTON_5, 100.0);
    wait(53);
    set_val(BUTTON_5, 0.0);
    wait(51);
    set_val(BUTTON_5, 0.0);
}
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: pubg with titan two

Postby BlessUp » Thu Nov 01, 2018 5:58 am

Hey thanks so much really appreciate that! I was using your anti recoil for use with xim apex and its probably the best I've felt. Anyway of implementing yours in place of the one in this script. Sorry to keep asking really appreciate the help. If you know any good settings for pubg please feel free to share.
User avatar
BlessUp
Master Sergeant
Master Sergeant
 
Posts: 40
Joined: Fri May 22, 2015 12:18 am

Re: pubg with titan two

Postby TheOne » Fri Dec 07, 2018 5:48 am

Sillyasskid wrote:This is what I use for Pubg, with the Apex.
Code: Select all
#pragma METAINFO("PUBG Anti-Recoil", 0, 1, "Sillyasskid")
fix32 RECOIL_V, RECOIL_H;
#define StickNoise (6f)
#define ffb_active (ffb_get_actual(FFB_1,0) != 0.0 || ffb_get_actual(FFB_3,0) != 0.0)
#define recoil_vert(a)  RECOIL_V = (fix32) a, port_inhibit_ffb(PORT_USB_A), port_inhibit_ffb(PORT_USB_B)
#define recoil_horz(a)  RECOIL_H = (fix32) a
 
init {
  recoil_vert(30);
  recoil_horz( 0);
}
 
main {
  if(abs(get_actual(STICK_1_X))<StickNoise)set_val(STICK_1_X, 0);
  if(abs(get_actual(STICK_1_Y))<StickNoise)set_val(STICK_1_Y, 0);
 
  if((get_actual(BUTTON_8) || get_actual(BUTTON_7)) && get_actual(BUTTON_5)){
    if(ffb_active) combo_restart(ffb_active2);
    if(ffb_active|ffb_active2)(anti_recoil(STICK_1_Y,RECOIL_V),anti_recoil(STICK_1_X,RECOIL_H));
  }
}
void anti_recoil (uint8 axis, fix32 recoil) {
fix32 RY ,RX;
  RY = get_actual(STICK_1_Y);
  RX = get_actual(STICK_1_X);
 
  if(sqrt(sq(RX)+sq(RY))<=abs(recoil))set_val(axis,(recoil*(1e2-abs(get_val(axis))))/1e2+get_val(axis));
  if(abs(RX)>18f|abs(RY)>18f)(set_val(STICK_1_X, RX),set_val(STICK_1_Y, RY));
  return;
}
 
combo ffb_active2 { wait(300); }
Important:
1) This Script does not work when hip firing, You must be aiming down sight.

2) This script relies on the controllers force feed back.
So make sure you have Vibrations turned on in the game settings. otherwise the anti-recoil won't work.

Also don't worry, your controller won't actually vibrate in game.


hi .. it dose not work in PUBG PS4
i try to but Vibrations to 2.3.5.8.10 nothing work .. can u fix it
User avatar
TheOne
Sergeant First Class
Sergeant First Class
 
Posts: 21
Joined: Mon Aug 13, 2018 7:43 pm

PreviousNext

Return to XIM Apex, XIM4, XIM Edge with Titan devices

Who is online

Users browsing this forum: No registered users and 42 guests