Titan one + XIM problem (Recoil)
Moderator: antithesis
Re: Titan one + XIM problem (Recoil)
In the script above, how can I edit out only the ADS recoil?
Since the recoil works well with the hip fire, I'm OK with turning off the ADS. I normally need hip fire recoil help in close quarters?
I've played around with a number of guns and Antirecoil_force down to 1 and 0, and I still get downward recoil with medic guns with ADS and rapid fire :(.
Since the recoil works well with the hip fire, I'm OK with turning off the ADS. I normally need hip fire recoil help in close quarters?
I've played around with a number of guns and Antirecoil_force down to 1 and 0, and I still get downward recoil with medic guns with ADS and rapid fire :(.
-
Mallez - Sergeant
- Posts: 6
- Joined: Sun Feb 12, 2017 9:29 pm
Re: Titan one + XIM problem (Recoil)
kryptik66 wrote:The hold-breath does not work for me, I think it may be because battlefield requires a delay before it pressing hold breath, is there an easy way to fix this?
you are right, it can be easily fixed on line 84, just change it to:
- Code: Select all
if(get_val(PS4_L2) && get_ptime(PS4_L2) > 160) {
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: Titan one + XIM problem (Recoil)
Mallez wrote:In the script above, how can I edit out only the ADS recoil?
Not sure if I fully understood your request, but below the script with anti-recoil only when hip firing (no ADSing):
- Code: Select all
int RAPIDFIRE_ENABLE = TRUE; // TRUE or FALSE
define ANTIRECOIL_ENABLE = TRUE; // TRUE or FALSE
// --
define XIM4_MIN_VAL = 20;
// The force needed is different when ADS or hip firing
define ANTIRECOIL_FORCE = 5;
define RAPIDFIRE_BUTTON = PS4_R2;
define RATE_OF_FIRE = 15; // Range: 1 to 25 RPS (Round/s)
// Values higher than 25 would be so fast that the
// game probably will not detect 100% of the events.
int tmp, rsf, xcmp;
int hold_time, rest_time;
init {
block_rumble();
rsf = 10000 / (100 - XIM4_MIN_VAL);
hold_time = 500 / RATE_OF_FIRE;
rest_time = hold_time - 10;
if(rest_time < 0) rest_time = 0;
}
main {
if(ANTIRECOIL_ENABLE) {
// AIM down side + aiming and shooting but not moving - enable antirecoil
// AIM down side + aiming and shooting AND moving left or right (i mean aiming) - not walking left or right - disable the antirecoil?
if(!get_val(PS4_L2) && get_val(PS4_R2) && isqrt(pow(get_val(PS4_RX), 2) + pow(get_val(PS4_RY), 2)) <= 30) {
//if(get_val(PS4_R2) && (get_ptime(PS4_R2) <= 50 || get_ptime(PS4_R2) >= 100)) {
if(abs(PS4_RX) < 25) {
// Rescale XIM4 aim Y axis
if(get_val(PS4_RY) >= XIM4_MIN_VAL) {
set_val(PS4_RY, get_val(PS4_RY)-XIM4_MIN_VAL);
sensitivity(PS4_RY, NOT_USE, rsf);
} else if(get_val(PS4_RY) <= -XIM4_MIN_VAL) {
set_val(PS4_RY, get_val(PS4_RY)+XIM4_MIN_VAL);
sensitivity(PS4_RY, NOT_USE, rsf);
} else set_val(PS4_RY, 0);
// Rescale XIM4 aim X axis
if(get_val(PS4_RX) >= XIM4_MIN_VAL) {
set_val(PS4_RX, get_val(PS4_RX)-XIM4_MIN_VAL);
sensitivity(PS4_RX, NOT_USE, rsf);
} else if(get_val(PS4_RX) <= -XIM4_MIN_VAL) {
set_val(PS4_RX, get_val(PS4_RX)+XIM4_MIN_VAL);
sensitivity(PS4_RX, NOT_USE, rsf);
} else set_val(PS4_RX, 0);
// X movements compensation
tmp = ANTIRECOIL_FORCE - 3 * abs(get_val(PS4_RX));
// Apply the anti-recoil
if(tmp <= 0) tmp = 1;
tmp = get_val(PS4_RY) + tmp;
if(tmp > 100) tmp = 100;
else if(tmp < -100) tmp = -100;
set_val(PS4_RY, tmp);
// Re-apply deadzone;
deadzone(PS4_RX, PS4_RY, XIM4_MIN_VAL, XIM4_MIN_VAL);
}
}
}
// RAPIDFIRE
if(get_val(PS4_L2) && event_press(PS4_RIGHT)) {
RAPIDFIRE_ENABLE = !RAPIDFIRE_ENABLE;
}
if(RAPIDFIRE_ENABLE) {
if(get_val(RAPIDFIRE_BUTTON)) {
combo_run(RapidFire);
} else if(combo_running(RapidFire)) {
combo_stop(RapidFire);
}
}
// AUTO SPOT
if(get_val(PS4_L2)) {
combo_run(AutoSpot);
} else combo_stop(AutoSpot);
// SNIPER HOLD BREATH
if(get_val(PS4_L2) && get_ptime(PS4_L2) > 160) {
set_val(PS4_L3, 100);
}
}
combo RapidFire {
set_val(RAPIDFIRE_BUTTON, 100);
wait(hold_time);
set_val(RAPIDFIRE_BUTTON, 0);
wait(rest_time);
set_val(RAPIDFIRE_BUTTON, 0);
}
combo AutoSpot {
set_val(PS4_R1, 100);
wait(40); wait(980);
}
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: Titan one + XIM problem (Recoil)
Strange, but I can not move this script into a cell.
When you get the message syntax error.
You can check?
When you get the message syntax error.
You can check?
-
npo100a4ok - Private First Class
- Posts: 2
- Joined: Tue Dec 13, 2016 1:06 pm
Re: Titan one + XIM problem (Recoil)
The syntax error is because you don't have paste the script into a new empty file, you have to delete everything before paste the code to not have 2 "main" sections. Then you could drop the file into a slot.
Console tuner since my 1st controller.
Scripting, a game in the game.
Believe or dare, It's Titanic!
Scripting, a game in the game.
Believe or dare, It's Titanic!
-
Prototype - Major General
- Posts: 3252
- Joined: Sun Dec 16, 2012 1:43 pm
Re: Titan one + XIM problem (Recoil)
J2Kbr wrote:Tinta wrote:Yes its working. can you please add auto spot enable. I badly need that. People are firing from behind the walls and if possible can you add hold breath option for sniper?
Added Auto-spot and hold-breath:
- Code: Select all
int RAPIDFIRE_ENABLE = TRUE; // TRUE or FALSE
define ANTIRECOIL_ENABLE = TRUE; // TRUE or FALSE
// --
define XIM4_MIN_VAL = 20;
// The force needed is different when ADS or hip firing
define ANTIRECOIL_FORCE = 5;
define RAPIDFIRE_BUTTON = PS4_R2;
define RATE_OF_FIRE = 15; // Range: 1 to 25 RPS (Round/s)
// Values higher than 25 would be so fast that the
// game probably will not detect 100% of the events.
int tmp, rsf, xcmp;
int hold_time, rest_time;
init {
block_rumble();
rsf = 10000 / (100 - XIM4_MIN_VAL);
hold_time = 500 / RATE_OF_FIRE;
rest_time = hold_time - 10;
if(rest_time < 0) rest_time = 0;
}
main {
if(ANTIRECOIL_ENABLE) {
// AIM down side + aiming and shooting but not moving - enable antirecoil
// AIM down side + aiming and shooting AND moving left or right (i mean aiming) - not walking left or right - disable the antirecoil?
if(get_val(PS4_L2) && get_val(PS4_R2) && isqrt(pow(get_val(PS4_RX), 2) + pow(get_val(PS4_RY), 2)) <= 30) {
//if(get_val(PS4_R2) && (get_ptime(PS4_R2) <= 50 || get_ptime(PS4_R2) >= 100)) {
if(abs(PS4_RX) < 25) {
// Rescale XIM4 aim Y axis
if(get_val(PS4_RY) >= XIM4_MIN_VAL) {
set_val(PS4_RY, get_val(PS4_RY)-XIM4_MIN_VAL);
sensitivity(PS4_RY, NOT_USE, rsf);
} else if(get_val(PS4_RY) <= -XIM4_MIN_VAL) {
set_val(PS4_RY, get_val(PS4_RY)+XIM4_MIN_VAL);
sensitivity(PS4_RY, NOT_USE, rsf);
} else set_val(PS4_RY, 0);
// Rescale XIM4 aim X axis
if(get_val(PS4_RX) >= XIM4_MIN_VAL) {
set_val(PS4_RX, get_val(PS4_RX)-XIM4_MIN_VAL);
sensitivity(PS4_RX, NOT_USE, rsf);
} else if(get_val(PS4_RX) <= -XIM4_MIN_VAL) {
set_val(PS4_RX, get_val(PS4_RX)+XIM4_MIN_VAL);
sensitivity(PS4_RX, NOT_USE, rsf);
} else set_val(PS4_RX, 0);
// X movements compensation
tmp = ANTIRECOIL_FORCE - 3 * abs(get_val(PS4_RX));
// Apply the anti-recoil
if(tmp <= 0) tmp = 1;
tmp = get_val(PS4_RY) + tmp;
if(tmp > 100) tmp = 100;
else if(tmp < -100) tmp = -100;
set_val(PS4_RY, tmp);
// Re-apply deadzone;
deadzone(PS4_RX, PS4_RY, XIM4_MIN_VAL, XIM4_MIN_VAL);
}
}
}
// RAPIDFIRE
if(get_val(PS4_L2) && event_press(PS4_RIGHT)) {
RAPIDFIRE_ENABLE = !RAPIDFIRE_ENABLE;
}
if(RAPIDFIRE_ENABLE) {
if(get_val(RAPIDFIRE_BUTTON)) {
combo_run(RapidFire);
} else if(combo_running(RapidFire)) {
combo_stop(RapidFire);
}
}
// AUTO SPOT
if(get_val(PS4_L2)) {
combo_run(AutoSpot);
} else combo_stop(AutoSpot);
// SNIPER HOLD BREATH
if(get_val(PS4_L2)) {
set_val(PS4_L3, 100);
}
}
combo RapidFire {
set_val(RAPIDFIRE_BUTTON, 100);
wait(hold_time);
set_val(RAPIDFIRE_BUTTON, 0);
wait(rest_time);
set_val(RAPIDFIRE_BUTTON, 0);
}
combo AutoSpot {
set_val(PS4_R1, 100);
wait(40); wait(980);
}
Is this code with Anti Recoil on hip fire as well as on ADS?
I am using with XIM4 and I need anti recoil on Hip fire as well as on ADS. I play medic class.
-
TintaTonti - Sergeant Major
- Posts: 71
- Joined: Sun Mar 26, 2017 4:08 am
Re: Titan one + XIM problem (Recoil)
TintaTonti wrote:Is this code with Anti Recoil on hip fire as well as on ADS?
I am using with XIM4 and I need anti recoil on Hip fire as well as on ADS. I play medic class.
I wrote it primarily for Xim4 + Titan One. It has separate HIP and ADS anti-recoil settings, along with a bunch of other stuff.
-
antithesis - Colonel
- Posts: 1912
- Joined: Sat May 28, 2016 10:45 pm
Re: Titan one + XIM problem (Recoil)
antithesis wrote:TintaTonti wrote:Is this code with Anti Recoil on hip fire as well as on ADS?
I am using with XIM4 and I need anti recoil on Hip fire as well as on ADS. I play medic class.
Try this - https://www.consoletuner.com/gpclib/?s=1360
I wrote it primarily for Xim4 + Titan One. It has separate HIP and ADS anti-recoil settings, along with a bunch of other stuff.
Thank you for the script. How can I check the anti recoil result with device manager? If anti recoil is perfect then the blue and red lines will be straight? Is there any video which shows how can I test the anti recoil with device manager? For different classes classes should I load this script on different slots and adjust the slots according to the guns or do I need to change any value in the script according to the guns?
-
TintaTonti - Sergeant Major
- Posts: 71
- Joined: Sun Mar 26, 2017 4:08 am
Re: Titan one + XIM problem (Recoil)
TintaTonti wrote:J2Kbr wrote:Tinta wrote:Yes its working. can you please add auto spot enable. I badly need that. People are firing from behind the walls and if possible can you add hold breath option for sniper?
Added Auto-spot and hold-breath:
- Code: Select all
int RAPIDFIRE_ENABLE = TRUE; // TRUE or FALSE
define ANTIRECOIL_ENABLE = TRUE; // TRUE or FALSE
// --
define XIM4_MIN_VAL = 20;
// The force needed is different when ADS or hip firing
define ANTIRECOIL_FORCE = 5;
define RAPIDFIRE_BUTTON = PS4_R2;
define RATE_OF_FIRE = 15; // Range: 1 to 25 RPS (Round/s)
// Values higher than 25 would be so fast that the
// game probably will not detect 100% of the events.
int tmp, rsf, xcmp;
int hold_time, rest_time;
init {
block_rumble();
rsf = 10000 / (100 - XIM4_MIN_VAL);
hold_time = 500 / RATE_OF_FIRE;
rest_time = hold_time - 10;
if(rest_time < 0) rest_time = 0;
}
main {
if(ANTIRECOIL_ENABLE) {
// AIM down side + aiming and shooting but not moving - enable antirecoil
// AIM down side + aiming and shooting AND moving left or right (i mean aiming) - not walking left or right - disable the antirecoil?
if(get_val(PS4_L2) && get_val(PS4_R2) && isqrt(pow(get_val(PS4_RX), 2) + pow(get_val(PS4_RY), 2)) <= 30) {
//if(get_val(PS4_R2) && (get_ptime(PS4_R2) <= 50 || get_ptime(PS4_R2) >= 100)) {
if(abs(PS4_RX) < 25) {
// Rescale XIM4 aim Y axis
if(get_val(PS4_RY) >= XIM4_MIN_VAL) {
set_val(PS4_RY, get_val(PS4_RY)-XIM4_MIN_VAL);
sensitivity(PS4_RY, NOT_USE, rsf);
} else if(get_val(PS4_RY) <= -XIM4_MIN_VAL) {
set_val(PS4_RY, get_val(PS4_RY)+XIM4_MIN_VAL);
sensitivity(PS4_RY, NOT_USE, rsf);
} else set_val(PS4_RY, 0);
// Rescale XIM4 aim X axis
if(get_val(PS4_RX) >= XIM4_MIN_VAL) {
set_val(PS4_RX, get_val(PS4_RX)-XIM4_MIN_VAL);
sensitivity(PS4_RX, NOT_USE, rsf);
} else if(get_val(PS4_RX) <= -XIM4_MIN_VAL) {
set_val(PS4_RX, get_val(PS4_RX)+XIM4_MIN_VAL);
sensitivity(PS4_RX, NOT_USE, rsf);
} else set_val(PS4_RX, 0);
// X movements compensation
tmp = ANTIRECOIL_FORCE - 3 * abs(get_val(PS4_RX));
// Apply the anti-recoil
if(tmp <= 0) tmp = 1;
tmp = get_val(PS4_RY) + tmp;
if(tmp > 100) tmp = 100;
else if(tmp < -100) tmp = -100;
set_val(PS4_RY, tmp);
// Re-apply deadzone;
deadzone(PS4_RX, PS4_RY, XIM4_MIN_VAL, XIM4_MIN_VAL);
}
}
}
// RAPIDFIRE
if(get_val(PS4_L2) && event_press(PS4_RIGHT)) {
RAPIDFIRE_ENABLE = !RAPIDFIRE_ENABLE;
}
if(RAPIDFIRE_ENABLE) {
if(get_val(RAPIDFIRE_BUTTON)) {
combo_run(RapidFire);
} else if(combo_running(RapidFire)) {
combo_stop(RapidFire);
}
}
// AUTO SPOT
if(get_val(PS4_L2)) {
combo_run(AutoSpot);
} else combo_stop(AutoSpot);
// SNIPER HOLD BREATH
if(get_val(PS4_L2)) {
set_val(PS4_L3, 100);
}
}
combo RapidFire {
set_val(RAPIDFIRE_BUTTON, 100);
wait(hold_time);
set_val(RAPIDFIRE_BUTTON, 0);
wait(rest_time);
set_val(RAPIDFIRE_BUTTON, 0);
}
combo AutoSpot {
set_val(PS4_R1, 100);
wait(40); wait(980);
}
Is this code with Anti Recoil on hip fire as well as on ADS?
I am using with XIM4 and I need anti recoil on Hip fire as well as on ADS. I play medic class.
This script works perfect in close quarters on HIP fire with Assault class with some guns. How can I adjust same with ADS and for other guns?
This scripts works great with HIP fire in close fights, doesn't work well if enemy is far.
Auto spot is not working for me. How can I adjust auto spot?
How to enable disable auto spot. The selection class keeps on moving because of auto spot which works when I get killed.
How can I check the anti recoil with device manger? I don't know how to use device manager.
I am on Xbox One S.
Thank you.
-
TintaTonti - Sergeant Major
- Posts: 71
- Joined: Sun Mar 26, 2017 4:08 am
Re: Titan one + XIM problem (Recoil)
The auto spot, in this script, is only activated when aiming. If having it full time activated, it will cause undesired change of the soldier class in the spawn menu because it keeps pressing L1 (spot button).
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Return to XIM Apex, XIM4, XIM Edge with Titan devices
Who is online
Users browsing this forum: No registered users and 53 guests