anti recoil
6 posts
• Page 1 of 1
anti recoil
it wont accept a value of 13.00
it wont work when i do that but at 15.00 it will work.
some reason only rapidfire works but anti recoil wont.
it wont work when i do that but at 15.00 it will work.
some reason only rapidfire works but anti recoil wont.
- Code: Select all
#pragma METAINFO("AR with rapid fire", 1, 0, "bonefisher")
#define vertical 13.00 //adjust anti-recoil: add if gun is rising and subtract if dropping.
#define horizontal 0.00 //adjust anti-recoil right and left: add positive number if going left
//and add a - in front of number if going right.
bool rapid_fire_toggle;
bool anti_recoil_toggle;
fix32 noise;
init{noise = 7.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);
//-------------------------Anti-recoil toggle---------------------------------//
/* To turn anti-recoil on/off hold ADS trigger and click d-pad down */
if(get_actual(BUTTON_8)){
set_val(BUTTON_11, 0.0);
if(event_active(BUTTON_11)) {
anti_recoil_toggle = (anti_recoil_toggle == 0?1:0);}}
//----------------------------------------------------------------------------//
if(anti_recoil_toggle){
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);}
//-------------------------Rapid fire toggle----------------------------------//
/* To turn rapid fire on/off hold ADS trigger and click d-pad up */
if(get_actual(BUTTON_8)){
set_val(BUTTON_10, 0.0);
if(event_active(BUTTON_10)) {
rapid_fire_toggle = (rapid_fire_toggle == 0?1:0);}}
//----------------------------------------------------------------------------//
if(rapid_fire_toggle && get_actual(BUTTON_5))combo_run(rapid_fire);
}
combo rapid_fire
{
set_val(BUTTON_5, 100.0);
wait(60);
set_val(BUTTON_5, 0.0);
wait(60);
set_val(BUTTON_5, 0.0);
}
combo anti_recoil
{
set_val(STICK_1_Y, vertical);
set_val(STICK_1_X, horizontal);
}
-
Cokey - Command Sergeant Major
- Posts: 112
- Joined: Sun Nov 11, 2018 5:04 pm
Re: anti recoil
- Code: Select all
#pragma METAINFO("AR with rapid fire", 1, 0, "bonefisher")
#define vertical 13.00 //adjust anti-recoil: add if gun is rising and subtract if dropping.
#define horizontal 0.00 //adjust anti-recoil right and left: add positive number if going left
//and add a - in front of number if going right.
bool rapid_fire_toggle;
bool anti_recoil_toggle;
fix32 noise;
init{noise = 7.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);
//-------------------------Anti-recoil toggle---------------------------------//
/* To turn anti-recoil on/off hold ADS trigger and click d-pad down */
if(get_actual(BUTTON_8)){
set_val(BUTTON_11, 0.0);
if(event_active(BUTTON_11)) {
anti_recoil_toggle = (anti_recoil_toggle == 0?1:0);}}
//----------------------------------------------------------------------------//
if(anti_recoil_toggle){
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);}
//-------------------------Rapid fire toggle----------------------------------//
/* To turn rapid fire on/off hold ADS trigger and click d-pad up */
if(get_actual(BUTTON_8)){
set_val(BUTTON_10, 0.0);
if(event_active(BUTTON_10)) {
rapid_fire_toggle = (rapid_fire_toggle == 0?1:0);}}
//----------------------------------------------------------------------------//
if(rapid_fire_toggle && get_actual(BUTTON_5))combo_run(rapid_fire);
}
combo rapid_fire
{
set_val(BUTTON_5, 100.0);
wait(60);
set_val(BUTTON_5, 0.0);
wait(60);
set_val(BUTTON_5, 0.0);
}
combo anti_recoil
{
set_val(STICK_1_Y, vertical);
set_val(STICK_1_X, horizontal);
}
Just tested it on 13.0 and works like it should! Now depending what game your playing if the deadzone is 14.0 your below that number it would not get anything anyway! On the device monitor shows it working so this may be the case.
- bonefisher
- Lieutenant General
- Posts: 5413
- Joined: Thu Jan 29, 2015 10:49 am
Re: anti recoil
the deadzone is at 13. so what is it i need to do to make it work at 13.00 anti recoil?
because deadzone 13.00 is what makes the game feel good.
because deadzone 13.00 is what makes the game feel good.
-
Cokey - Command Sergeant Major
- Posts: 112
- Joined: Sun Nov 11, 2018 5:04 pm
Re: anti recoil
Cokey wrote:the deadzone is at 13. so what is it i need to do to make it work at 13.00 anti recoil?
because deadzone 13.00 is what makes the game feel good.
If the deadzone is at 13 then you need to adjust anti recoil higher or off if the gun doesn't move where it is set.
- bonefisher
- Lieutenant General
- Posts: 5413
- Joined: Thu Jan 29, 2015 10:49 am
Re: anti recoil
bonefisher wrote:Cokey wrote:the deadzone is at 13. so what is it i need to do to make it work at 13.00 anti recoil?
because deadzone 13.00 is what makes the game feel good.
If the deadzone is at 13 then you need to adjust anti recoil higher or off if the gun doesn't move where it is set.
but the recoil is too high at 20.00, So 13.00 is where it needs to be. but it wont allow me to use 13.00
-
Cokey - Command Sergeant Major
- Posts: 112
- Joined: Sun Nov 11, 2018 5:04 pm
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 103 guests