New simple anti-recoil for all around!

GPC2 script programming for Titan Two. Code examples, questions, requests.

New simple anti-recoil for all around!

Postby bonefisher » Mon Aug 06, 2018 1:58 am

Code: Select all
 
#define vertical    28.75
#define horizontal   0.00
 
fix32  noise;
init{noise = 5.0;}
 
main {
//-------------------------Remove stick noise---------------------------------//
    if(abs(get_actual(STICK_1_X)) < noise) set_val(STICK_1_X, 0.0);
    if(abs(get_actual(STICK_1_Y)) < noise) set_val(STICK_1_Y, 0.0);
    if(abs(get_actual(STICK_2_X)) < noise) set_val(STICK_2_X, 0.0);
    if(abs(get_actual(STICK_2_Y)) < noise) set_val(STICK_2_Y, 0.0);
 
    if(get_actual(BUTTON_5))combo_run(anti_recoil);
    if(is_active(STICK_1_Y))combo_stop(anti_recoil);
    if(is_active(STICK_1_X))combo_stop(anti_recoil);
}
combo anti_recoil
{
    set_val(STICK_1_Y, vertical);
    set_val(STICK_1_X, horizontal);
}
 

New simple APEX, KB&M and controller and drag free movement.....Could of had a V-8 lol!
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5413
Joined: Thu Jan 29, 2015 10:49 am

Re: New simple anti-recoil for all around!

Postby iBosnian » Mon Aug 06, 2018 5:20 am

Is this Set up for all operators or just certain one?
User avatar
iBosnian
Sergeant
Sergeant
 
Posts: 6
Joined: Wed Aug 01, 2018 2:50 am

Re: New simple anti-recoil for all around!

Postby Jalal » Mon Aug 06, 2018 6:19 am

if you play Cod infinant warfare what value you put for the gun you using

also is the attachment effects the anti-recoil value ?
User avatar
Jalal
Sergeant Major
Sergeant Major
 
Posts: 73
Joined: Wed Apr 26, 2017 7:42 am

Re: New simple anti-recoil for all around!

Postby bonefisher » Mon Aug 06, 2018 9:02 am

You have to find your own setting by changing them up in the define section. Every weapon has different recoil pretty much so getting dial in is test and error til you find sweet spot.... :smile0517:
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5413
Joined: Thu Jan 29, 2015 10:49 am

Re: New simple anti-recoil for all around!

Postby J2Kbr » Tue Aug 07, 2018 2:02 pm

:joia: :joia: :joia:
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: New simple anti-recoil for all around!

Postby Jalal » Wed Aug 08, 2018 8:11 am

also is the attachment effects the anti-recoil value ?

i don't want to use Grip or Stock, i want to take advantage of the Anti-Recoil Script
User avatar
Jalal
Sergeant Major
Sergeant Major
 
Posts: 73
Joined: Wed Apr 26, 2017 7:42 am

Re: New simple anti-recoil for all around!

Postby y2k » Wed Aug 08, 2018 8:54 pm

how does it feel with the apex?
User avatar
y2k
Master Sergeant
Master Sergeant
 
Posts: 29
Joined: Thu Apr 21, 2016 4:21 pm

Re: New simple anti-recoil for all around!

Postby bonefisher » Wed Aug 08, 2018 9:05 pm

y2k wrote:how does it feel with the apex?

That is what I originally built it for and use every day now. :smile0517: Find that dialing in with the decimal settings really makes a big deal for sure. Give it a whirl!
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5413
Joined: Thu Jan 29, 2015 10:49 am

Re: New simple anti-recoil for all around!

Postby UK_Wildcats » Wed Aug 08, 2018 11:43 pm

Some of us grew up with the flight simulators and still play with look inversion. Keep in mind that you have to invert the number (make it negative) if you are using look inversion.
User avatar
UK_Wildcats
Brigadier General
Brigadier General
 
Posts: 2243
Joined: Thu Jan 08, 2015 6:53 pm

Re: New simple anti-recoil for all around!

Postby bonefisher » Thu Aug 09, 2018 12:05 am

UK_Wildcats_Fans wrote:Some of us grew up with the flight simulators and still play with look inversion. Keep in mind that you have to invert the number (make it negative) if you are using look inversion.

All you need to do is a negative in front of it...…. :smile0517:
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5413
Joined: Thu Jan 29, 2015 10:49 am

Next

Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 81 guests