Pubg ps4 (Apex+Titan two)
18 posts
• Page 2 of 2 • 1, 2
Re: Pubg ps4 (Apex+Titan two)
bonefisher wrote:I don't have the game to check this but maybe someone will come along to answer this for you!
I'm sorry if I distract you, but you can’t look at this code here, this is a reload code so as not to hold the key, it reloads everything perfectly, but it’s impossible to pick up objects and get lost.
- Code: Select all
main {
if(event_active(BUTTON_17)) {
combo_run(Reload);
}
}
combo Reload {
set_val(BUTTON_17, 100.0);
wait(1500);
}
-
Bagura32rus - Sergeant Major
- Posts: 73
- Joined: Fri Dec 21, 2018 9:37 pm
- Location: RUSSIA
Re: Pubg ps4 (Apex+Titan two)
- Code: Select all
main {
if(event_release(BUTTON_17) && time_active(BUTTON_17) < 120) {
combo_run(Reload);
}
}
combo Reload {
set_val(BUTTON_17, 100.0);
wait(1500);
}
Try this....tap if you reload combo to run and if you don't want it to run hold button pass 120 milliseconds. Maybe this is what your looking for...….
- bonefisher
- Lieutenant General
- Posts: 5413
- Joined: Thu Jan 29, 2015 10:49 am
Re: Pubg ps4 (Apex+Titan two)
bonefisher wrote:
- Code: Select all
main {
if(event_release(BUTTON_17) && time_active(BUTTON_17) < 120) {
combo_run(Reload);
}
}
combo Reload {
set_val(BUTTON_17, 100.0);
wait(1500);
}
Try this....tap if you reload combo to run and if you don't want it to run hold button pass 120 milliseconds. Maybe this is what your looking for...….
I will definitely check it out today, I’m probably already tired of you, I read in one topic you answered that you are using the new Anti Recoil, and it became very interesting for me, at the moment I use this one and I like it very much for PUBG
-
Bagura32rus - Sergeant Major
- Posts: 73
- Joined: Fri Dec 21, 2018 9:37 pm
- Location: RUSSIA
Re: Pubg ps4 (Apex+Titan two)
By the way, this is your code)))))) here from all that I have tried, it suits me very much!
- Code: Select all
#pragma METAINFO("AwesomeAntiRecoil", 1, 0, "bonefisher")
/* Special credits goes out to AryanX for a awesome anti-recoil script!*/
#define float fix32
//Anti Recoil
bool bUseAntiRecoil = TRUE;
float ARecoil_H_Standing = 0.0;// Change horizontal force add negative if needed.
float ARecoil_V_Standing = 18.0;//Change vertical pull force
uint16 ARecoilDelay = 75;//Change delay after trigger is pulled to engage anti-recoil.
//Percent of anti ARecoil to always apply regardless of aim movement
float MinARecoilPercent = 30.0;
float StickNoise = 6.32;
main {
//////////////////////////////////////////////////////////////////////////
//Anti Recoil
//////////////////////////////////////////////////////////////////////////
if (bUseAntiRecoil)
{
if (get_actual(BUTTON_5) && time_active(BUTTON_5) >= ARecoilDelay)
{
if (abs(get_actual(STICK_1_X)) < StickNoise) set_val(STICK_1_X, 0.0);
if (abs(get_actual(STICK_1_Y)) < StickNoise) set_val(STICK_1_Y, 0.0);
if (abs(get_actual(STICK_2_X)) < StickNoise) set_val(STICK_2_X, 0.0);
if (abs(get_actual(STICK_2_Y)) < StickNoise) set_val(STICK_2_Y, 0.0);
if (get_val(BUTTON_5))
{
AntiRecoil(STICK_1_X, ARecoil_H_Standing);
AntiRecoil(STICK_1_Y, ARecoil_V_Standing);
}
}
}
}
void AntiRecoil(uint8 AxisToApply, float ARecoilToApply)
{
float CurrentX = get_val(STICK_1_X);
float CurrentY = get_val(STICK_1_Y);
float MinARecoilFactor = MinARecoilPercent / 100.0;
float MinARecoilToApply = MinARecoilFactor * ARecoilToApply;
//This sets the ARecoil to be dependent on both X and Y axis movement. With more emphasis on Y
float MovementARecoilToApply = (1.0 - MinARecoilFactor) * ((ARecoilToApply * (100.0 - sqrt(CurrentX*CurrentX + CurrentY*CurrentY))) / (100.0 + abs(CurrentX) + (CurrentY*CurrentY*0.5)));
set_val(AxisToApply, MinARecoilToApply + MovementARecoilToApply + get_val(AxisToApply));
}
-
Bagura32rus - Sergeant Major
- Posts: 73
- Joined: Fri Dec 21, 2018 9:37 pm
- Location: RUSSIA
Re: Pubg ps4 (Apex+Titan two)
Yes I put it up and the credit goes to AryanX for the anti-recoil!
- bonefisher
- Lieutenant General
- Posts: 5413
- Joined: Thu Jan 29, 2015 10:49 am
Re: Pubg ps4 (Apex+Titan two)
guys, share the scripts, is it really not who does not play pubg, let's help each other (((
-
Bagura32rus - Sergeant Major
- Posts: 73
- Joined: Fri Dec 21, 2018 9:37 pm
- Location: RUSSIA
Re: Pubg ps4 (Apex+Titan two)
Here is the script I use. However, it was made for the mouse directly connected to the Titan Two.
- Code: Select all
#pragma METAINFO("PUBG Battlegrounds", 2, 0, "J2Kbr")
/******************************************************************************
* INPUT TRANSLATOR
******************************************************************************/
#include <remapper.gph>
#include <keyboard.gph>
#include <mouse.gph>
init {
port_inhibit_ffb(PORT_USB_A);
remapper_disable(STICK_1_X);
remapper_disable(STICK_1_Y);
remapper_disable(ACCEL_1_X);
remapper_disable(ACCEL_1_Y);
remapper_disable(ACCEL_1_Z);
remapper_swap(BUTTON_2, BUTTON_16);
remapper_swap(BUTTON_3, BUTTON_9);
remapper_swap(BUTTON_9, BUTTON_15);
remapper_mask(RMP_USB_A | RMP_BT_A);
const uint8 kmap[] = {
KEY_P, BUTTON_17,
KEY_OPENBRACKET, BUTTON_2,
KEY_CLOSEBRACKET, BUTTON_21,
KEY_BACKSLASH, BUTTON_3,
}; keymapping(kmap);
const uint8 mmap[] = {
MOUSE_X, STICK_1_X,
MOUSE_Y, STICK_1_Y,
MWHEEL_FORWARD, BUTTON_14,
MWHEEL_BACKWARD, BUTTON_10,
MBUTTON_1, BUTTON_5,
MBUTTON_2, BUTTON_16,
MBUTTON_3, BUTTON_9,
MBUTTON_4, BUTTON_14,
MBUTTON_5, BUTTON_4,
}; mousemapping(mmap);
#define sensitivity(n) n >> 8, n
const uint8 mxyc[] = {
BUTTON_8,
sensitivity(2.54i), // Default
0x01, 0x00, 0x00, 0x23, 0x0C, 0x28, 0x0C, 0x28, 0x00, 0xDB,
0x00, 0x00, 0x11, 0x40, 0x1A, 0xA8, 0x21, 0xB8, 0x28, 0x00, 0x2D, 0x7D,
0x32, 0xFA, 0x37, 0xAE, 0x3A, 0xD1, 0x3C, 0x63, 0x3D, 0x2E, 0x3F, 0x87,
0x41, 0xE1, 0x45, 0x05, 0x48, 0x28, 0x4A, 0x82, 0x4D, 0xA3, 0x50, 0x00,
0x52, 0x59, 0x54, 0xB3, 0x57, 0xD7,
sensitivity(3.24i), // Alternate
0x01, 0x00, 0x00, 0x1E, 0x0E, 0x80, 0x0E, 0x80, 0x00, 0xE8,
0x00, 0x00, 0x0E, 0x1E, 0x16, 0xBD, 0x1D, 0xCC, 0x23, 0x4A, 0x28, 0xC7,
0x2D, 0x7D, 0x32, 0x33, 0x36, 0x1E, 0x38, 0x78, 0x3A, 0x0A, 0x3C, 0x63,
0x3F, 0x87, 0x43, 0x73, 0x45, 0xCC, 0x48, 0xF0, 0x4C, 0x14, 0x4E, 0x6E,
0x51, 0x91, 0x53, 0xEB, 0x55, 0x7D
}; mxyconverter(mxyc);
}
/******************************************************************************
* MAIN
******************************************************************************/
bool toggle = TRUE;
init {
led_feedback();
}
main {
if(event_active(BUTTON_21)) {
toggle = !toggle;
led_feedback();
}
if(event_active(BUTTON_15)) {
toggle = TRUE;
led_feedback();
}
if(toggle) {
if(get_val(BUTTON_5)) {
combo_run(Rapidfire);
mxyconverter_voffset(clamp(time_active(BUTTON_5)/17, 6, 23));
} else if(event_release(BUTTON_5)) mxyconverter_voffset(0);
}
if(get_val(BUTTON_5)) {
set_val(BUTTON_5, 100.0);
}
if(get_val(BUTTON_8)) {
if(get_val(BUTTON_8) >= 100.00) {
set_val(BUTTON_7, 100.0);
}
if(key_status(KEY_SEMICOLON)) {
set_val(BUTTON_6, 100.0); // LEAN LEFT
}
if(key_status(KEY_QUOTE)) {
set_val(BUTTON_9, 100.0); // LEAN RIGHT
}
set_val(BUTTON_8, 100.0);
}
}
/* ************************************************************************** *
* FUNCTIONS *
* ************************************************************************** */
void led_feedback() {
if(toggle) {
led_set(LED_3, -1.0, 0);
} else led_reset();
}
/******************************************************************************
* COMBOS
******************************************************************************/
combo Rapidfire {
set_val(BUTTON_5, 100.0);
wait(32);
set_val(BUTTON_5, 0.0);
wait(15);
set_val(BUTTON_5, 0.0);
}
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: Pubg ps4 (Apex+Titan two)
J2Kbr wrote:Here is the script I use. However, it was made for the mouse directly connected to the Titan Two.
- Code: Select all
#pragma METAINFO("PUBG Battlegrounds", 2, 0, "J2Kbr")
/******************************************************************************
* INPUT TRANSLATOR
******************************************************************************/
#include <remapper.gph>
#include <keyboard.gph>
#include <mouse.gph>
init {
port_inhibit_ffb(PORT_USB_A);
remapper_disable(STICK_1_X);
remapper_disable(STICK_1_Y);
remapper_disable(ACCEL_1_X);
remapper_disable(ACCEL_1_Y);
remapper_disable(ACCEL_1_Z);
remapper_swap(BUTTON_2, BUTTON_16);
remapper_swap(BUTTON_3, BUTTON_9);
remapper_swap(BUTTON_9, BUTTON_15);
remapper_mask(RMP_USB_A | RMP_BT_A);
const uint8 kmap[] = {
KEY_P, BUTTON_17,
KEY_OPENBRACKET, BUTTON_2,
KEY_CLOSEBRACKET, BUTTON_21,
KEY_BACKSLASH, BUTTON_3,
}; keymapping(kmap);
const uint8 mmap[] = {
MOUSE_X, STICK_1_X,
MOUSE_Y, STICK_1_Y,
MWHEEL_FORWARD, BUTTON_14,
MWHEEL_BACKWARD, BUTTON_10,
MBUTTON_1, BUTTON_5,
MBUTTON_2, BUTTON_16,
MBUTTON_3, BUTTON_9,
MBUTTON_4, BUTTON_14,
MBUTTON_5, BUTTON_4,
}; mousemapping(mmap);
#define sensitivity(n) n >> 8, n
const uint8 mxyc[] = {
BUTTON_8,
sensitivity(2.54i), // Default
0x01, 0x00, 0x00, 0x23, 0x0C, 0x28, 0x0C, 0x28, 0x00, 0xDB,
0x00, 0x00, 0x11, 0x40, 0x1A, 0xA8, 0x21, 0xB8, 0x28, 0x00, 0x2D, 0x7D,
0x32, 0xFA, 0x37, 0xAE, 0x3A, 0xD1, 0x3C, 0x63, 0x3D, 0x2E, 0x3F, 0x87,
0x41, 0xE1, 0x45, 0x05, 0x48, 0x28, 0x4A, 0x82, 0x4D, 0xA3, 0x50, 0x00,
0x52, 0x59, 0x54, 0xB3, 0x57, 0xD7,
sensitivity(3.24i), // Alternate
0x01, 0x00, 0x00, 0x1E, 0x0E, 0x80, 0x0E, 0x80, 0x00, 0xE8,
0x00, 0x00, 0x0E, 0x1E, 0x16, 0xBD, 0x1D, 0xCC, 0x23, 0x4A, 0x28, 0xC7,
0x2D, 0x7D, 0x32, 0x33, 0x36, 0x1E, 0x38, 0x78, 0x3A, 0x0A, 0x3C, 0x63,
0x3F, 0x87, 0x43, 0x73, 0x45, 0xCC, 0x48, 0xF0, 0x4C, 0x14, 0x4E, 0x6E,
0x51, 0x91, 0x53, 0xEB, 0x55, 0x7D
}; mxyconverter(mxyc);
}
/******************************************************************************
* MAIN
******************************************************************************/
bool toggle = TRUE;
init {
led_feedback();
}
main {
if(event_active(BUTTON_21)) {
toggle = !toggle;
led_feedback();
}
if(event_active(BUTTON_15)) {
toggle = TRUE;
led_feedback();
}
if(toggle) {
if(get_val(BUTTON_5)) {
combo_run(Rapidfire);
mxyconverter_voffset(clamp(time_active(BUTTON_5)/17, 6, 23));
} else if(event_release(BUTTON_5)) mxyconverter_voffset(0);
}
if(get_val(BUTTON_5)) {
set_val(BUTTON_5, 100.0);
}
if(get_val(BUTTON_8)) {
if(get_val(BUTTON_8) >= 100.00) {
set_val(BUTTON_7, 100.0);
}
if(key_status(KEY_SEMICOLON)) {
set_val(BUTTON_6, 100.0); // LEAN LEFT
}
if(key_status(KEY_QUOTE)) {
set_val(BUTTON_9, 100.0); // LEAN RIGHT
}
set_val(BUTTON_8, 100.0);
}
}
/* ************************************************************************** *
* FUNCTIONS *
* ************************************************************************** */
void led_feedback() {
if(toggle) {
led_set(LED_3, -1.0, 0);
} else led_reset();
}
/******************************************************************************
* COMBOS
******************************************************************************/
combo Rapidfire {
set_val(BUTTON_5, 100.0);
wait(32);
set_val(BUTTON_5, 0.0);
wait(15);
set_val(BUTTON_5, 0.0);
}
Thanks for the answer)) and this script is suitable for XIM apex?
-
Bagura32rus - Sergeant Major
- Posts: 73
- Joined: Fri Dec 21, 2018 9:37 pm
- Location: RUSSIA
18 posts
• Page 2 of 2 • 1, 2
Return to GPC2 Script Programming
Who is online
Users browsing this forum: No registered users and 106 guests