Does someone know why autospot doesn't work for me here?
5 posts
• Page 1 of 1
Does someone know why autospot doesn't work for me here?
I want it for BF:Bad Company 2 on the Xbox 1 using the Titan 1. Rapidfire and anti-recoil both work but not autospot. I found another script, or maybe it was a gamepack (I've tried so many I'm getting dizzy), where the autospot and ant-recoil work but not rapidfire.
I still haven't found a script or gamepack for this game which lets me drive a vehicle forward, only backwards. Because of my high ping (350ms) I really need to be in a vehicle. I also have to turn off the script when I'm a passenger in a blackhawk on the chaingun because the chaingun won't shoot otherwise, it just slowly spins around.
Thanks if you can help.
I still haven't found a script or gamepack for this game which lets me drive a vehicle forward, only backwards. Because of my high ping (350ms) I really need to be in a vehicle. I also have to turn off the script when I'm a passenger in a blackhawk on the chaingun because the chaingun won't shoot otherwise, it just slowly spins around.
Thanks if you can help.
- Code: Select all
// GPC Online Library
// multiplatform_antirecoil__rapid_fire_adjustable_w_auto_spot.gpc
/* *
Features; Rapid Fire (Adjustable), Anti-Recoil Vertical + Horizontal
Author: JaggedDiamond
System: MULTI
Controller: MULTI - Optimized for MOUSE & KEYBOARD
GAME: Battlefield series - COD series - Black Ops series
************************************************************/
define SPOT_BUTTON = XB1_RT;
define ONLY_WITH_SCOPE = TRUE;// Use Anti-recoil only when scoping
define ANTI_RECOIL = 50; //change "0" to compensate vertical recoil (0 - 100)
define ANTI_RECOIL_LEFT = 0; //change this value to compensate to the left (0 - 100)
define ANTI_RECOIL_RIGHT = 0; //change this value to compensate to the right (0 - 100)
/* *
* SIMPLE RAPID FIRE
* *************************************************************************** */
define RAPIDFIRE_BUTTON = XB1_RT;
define RATE_OF_FIRE = 40; // 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 fire_button, scope_button;
int anti_recoil;
int anti_recoil_left;
int anti_recoil_right;
int hold_time, rest_time;
init {
if(get_console() == PIO_XB1) { // Xbox 360 Trigger & Bumper
fire_button = 3;
scope_button = 6;
} else { // Natural Trigger & Bumper
fire_button = 4;
scope_button = 7;
}
hold_time = 500 / RATE_OF_FIRE;
rest_time = hold_time - 20;
if(rest_time < 0) rest_time = 0;
}
main {
if(!ONLY_WITH_SCOPE || get_val(scope_button)) {
combo_run(AntiRecoil);
}
if(get_val(RAPIDFIRE_BUTTON)) {
combo_run(RapidFire);
} else if(combo_running(RapidFire)) {
combo_stop(RapidFire);
}
}
combo RapidFire {
set_val(RAPIDFIRE_BUTTON, 100);
wait(hold_time);
set_val(RAPIDFIRE_BUTTON, 0);
wait(rest_time);
set_val(RAPIDFIRE_BUTTON, 0);
}
combo AntiRecoil { // This combo must be the last one
if(get_val(fire_button)) {
anti_recoil = get_val(10) + ANTI_RECOIL;
if(anti_recoil > 100) anti_recoil = 100;
set_val(10, anti_recoil);
anti_recoil_left = get_val(9) -ANTI_RECOIL_LEFT;
if(anti_recoil_left > 100) anti_recoil_left = 100;
set_val(9, anti_recoil_left);
anti_recoil_right = get_val(9) +ANTI_RECOIL_RIGHT;
if(anti_recoil_right > 100) anti_recoil_right = 100;
set_val(9, anti_recoil_right);
}
}
-
phantoma - Staff Sergeant
- Posts: 15
- Joined: Wed Feb 05, 2020 6:52 am
Re: Does someone know why autospot doesn't work for me here?
This script does not have any code to do autospot. I added, please see below. Also, be sure the configure the SPOT_BUTTON according the game settings.
- Code: Select all
// GPC Online Library
// multiplatform_antirecoil__rapid_fire_adjustable_w_auto_spot.gpc
/* *
Features; Rapid Fire (Adjustable), Anti-Recoil Vertical + Horizontal
Author: JaggedDiamond
System: MULTI
Controller: MULTI - Optimized for MOUSE & KEYBOARD
GAME: Battlefield series - COD series - Black Ops series
************************************************************/
define SPOT_BUTTON = XB1_RT;
define ONLY_WITH_SCOPE = TRUE;// Use Anti-recoil only when scoping
define ANTI_RECOIL = 50; //change "0" to compensate vertical recoil (0 - 100)
define ANTI_RECOIL_LEFT = 0; //change this value to compensate to the left (0 - 100)
define ANTI_RECOIL_RIGHT = 0; //change this value to compensate to the right (0 - 100)
/* *
* SIMPLE RAPID FIRE
* *************************************************************************** */
define RAPIDFIRE_BUTTON = XB1_RT;
define RATE_OF_FIRE = 40; // 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 fire_button, scope_button;
int anti_recoil;
int anti_recoil_left;
int anti_recoil_right;
int hold_time, rest_time;
init {
if(get_console() == PIO_XB1) { // Xbox 360 Trigger & Bumper
fire_button = 3;
scope_button = 6;
} else { // Natural Trigger & Bumper
fire_button = 4;
scope_button = 7;
}
hold_time = 500 / RATE_OF_FIRE;
rest_time = hold_time - 20;
if(rest_time < 0) rest_time = 0;
}
main {
if(!ONLY_WITH_SCOPE || get_val(scope_button)) {
combo_run(AntiRecoil);
}
if(get_val(RAPIDFIRE_BUTTON)) {
combo_run(RapidFire);
} else if(combo_running(RapidFire)) {
combo_stop(RapidFire);
}
combo_run(AutoSpot);
}
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(SPOT_BUTTON, 100);
wait(40); wait(970);
}
combo AntiRecoil { // This combo must be the last one
if(get_val(fire_button)) {
anti_recoil = get_val(10) + ANTI_RECOIL;
if(anti_recoil > 100) anti_recoil = 100;
set_val(10, anti_recoil);
anti_recoil_left = get_val(9) -ANTI_RECOIL_LEFT;
if(anti_recoil_left > 100) anti_recoil_left = 100;
set_val(9, anti_recoil_left);
anti_recoil_right = get_val(9) +ANTI_RECOIL_RIGHT;
if(anti_recoil_right > 100) anti_recoil_right = 100;
set_val(9, anti_recoil_right);
}
}
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: Does someone know why autospot doesn't work for me here?
Thanks J2Kbr, that auto-spotting works now but there's just a small problem. When I'm holding a weapon it jerks back and forwards all the time which is distracting. It doesn't do it though when I'm looking through the scope.
Can you see where something needs to be changed?
Can you see where something needs to be changed?
- Code: Select all
// GPC Online Library
// multiplatform_antirecoil__rapid_fire_adjustable_w_auto_spot.gpc
/* *
Features; Rapid Fire (Adjustable), Anti-Recoil Vertical + Horizontal
Author: JaggedDiamond
System: MULTI
Controller: MULTI - Optimized for MOUSE & KEYBOARD
GAME: Battlefield series - COD series - Black Ops series
************************************************************/
define SPOT_BUTTON = XB1_LT;
define ONLY_WITH_SCOPE = TRUE;// Use Anti-recoil only when scoping
define ANTI_RECOIL = 60; //change "0" to compensate vertical recoil (0 - 100)
define ANTI_RECOIL_LEFT = 0; //change this value to compensate to the left (0 - 100)
define ANTI_RECOIL_RIGHT = 0; //change this value to compensate to the right (0 - 100)
/* *
* SIMPLE RAPID FIRE
* *************************************************************************** */
define RAPIDFIRE_BUTTON = XB1_RT;
define RATE_OF_FIRE = 23; // 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 fire_button, scope_button;
int anti_recoil;
int anti_recoil_left;
int anti_recoil_right;
int hold_time, rest_time;
init {
if(get_console() == PIO_XB1) { // Xbox 360 Trigger & Bumper
fire_button = 3;
scope_button = 6;
} else { // Natural Trigger & Bumper
fire_button = 4;
scope_button = 7;
}
hold_time = 500 / RATE_OF_FIRE;
rest_time = hold_time - 20;
if(rest_time < 0) rest_time = 0;
}
main {
if(!ONLY_WITH_SCOPE || get_val(scope_button)) {
combo_run(AntiRecoil);
}
if(get_val(RAPIDFIRE_BUTTON)) {
combo_run(RapidFire);
} else if(combo_running(RapidFire)) {
combo_stop(RapidFire);
}
combo_run(AutoSpot);
}
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(SPOT_BUTTON, 100);
wait(40); wait(970);
}
combo AntiRecoil { // This combo must be the last one
if(get_val(fire_button)) {
anti_recoil = get_val(10) + ANTI_RECOIL;
if(anti_recoil > 100) anti_recoil = 100;
set_val(10, anti_recoil);
anti_recoil_left = get_val(9) -ANTI_RECOIL_LEFT;
if(anti_recoil_left > 100) anti_recoil_left = 100;
set_val(9, anti_recoil_left);
anti_recoil_right = get_val(9) +ANTI_RECOIL_RIGHT;
if(anti_recoil_right > 100) anti_recoil_right = 100;
set_val(9, anti_recoil_right);
}
}]
-
phantoma - Staff Sergeant
- Posts: 15
- Joined: Wed Feb 05, 2020 6:52 am
Re: Does someone know why autospot doesn't work for me here?
Is the spot button LT (left trigger)?
I believe this line should be set to XB1_RB (right bumper).
- Code: Select all
define SPOT_BUTTON = XB1_LT;
I believe this line should be set to XB1_RB (right bumper).
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: Does someone know why autospot doesn't work for me here?
J2Kbr wrote:Is the spot button LT (left trigger)?
- Code: Select all
define SPOT_BUTTON = XB1_LT;
I believe this line should be set to XB1_RB (right bumper).
That was it, thanks a bunch
-
phantoma - Staff Sergeant
- Posts: 15
- Joined: Wed Feb 05, 2020 6:52 am
5 posts
• Page 1 of 1
Return to GPC1 Script Programming
Who is online
Users browsing this forum: No registered users and 52 guests