Possible script combine
16 posts
• Page 1 of 2 • 1, 2
Possible script combine
Hi so I’ve been using a mix of two different scripts Bonefishers Bo4 Special Edition and (All the Good Stuff ) script converted to titan two from device max I believe. I’ve been trying to figure out how to combine both of the best parts (to me) of each script and I’ve failed miserably.
I really want to learn how to do this myself... new to all of this ANYWHO
I’ve been using the following
Bind b to click to sprint(all the good stuff)
aim correction (all the good stuff)
Rapid fire (bone fisher script)
anti recoil for xim
Double tap x for special
Yy reload cancel to ads
Auto stim
Strafe
Move stick to run
Bind scorestreak to dpad
Also how do I make it an interactive config? Although I don’t mind going in and manually changing it.
I really want to learn how to do this myself... new to all of this ANYWHO
I’ve been using the following
Bind b to click to sprint(all the good stuff)
aim correction (all the good stuff)
Rapid fire (bone fisher script)
anti recoil for xim
Double tap x for special
Yy reload cancel to ads
Auto stim
Strafe
Move stick to run
Bind scorestreak to dpad
Also how do I make it an interactive config? Although I don’t mind going in and manually changing it.
-
Muex - Staff Sergeant
- Posts: 11
- Joined: Wed Jun 05, 2019 2:44 am
Re: Possible script combine
Check out the wiki https://www.consoletuner.com/wiki/index ... _scripting
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
Re: Possible script combine
ok im confused
Eample i want to add Aim Correction into bonefisher script
do i copy and paste?
What do i do to fix the 1 error that pops up?
once i understand the reason for my errors i can keep going
pragma METAINFO("<Muex Bo4>", 1, 0, "")
int aim__correction = TRUE; //AIM CORRECTION
main {
// - Aim Correction - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if(aim__correction){
if(get_val(FIRE_BTN) && get_val(ADS_BTN)) {
Use_sens = ADS_FIRE_SENS;
}
if(get_val(FIRE_BTN) && !get_val(ADS_BTN)) {
Use_sens = HIP_SENS;
}
if(!get_val(FIRE_BTN) && !get_val(ADS_BTN)) {
Use_sens = GEN_SENS;
}
if(!get_val(FIRE_BTN) && get_val(ADS_BTN)) {
Use_sens = ADS_SENS;
}
sensitivity(14, midpoint,Use_sens);
sensitivity(14, midpoint,Use_sens);
}
}
Eample i want to add Aim Correction into bonefisher script
do i copy and paste?
What do i do to fix the 1 error that pops up?
once i understand the reason for my errors i can keep going
pragma METAINFO("<Muex Bo4>", 1, 0, "")
int aim__correction = TRUE; //AIM CORRECTION
main {
// - Aim Correction - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if(aim__correction){
if(get_val(FIRE_BTN) && get_val(ADS_BTN)) {
Use_sens = ADS_FIRE_SENS;
}
if(get_val(FIRE_BTN) && !get_val(ADS_BTN)) {
Use_sens = HIP_SENS;
}
if(!get_val(FIRE_BTN) && !get_val(ADS_BTN)) {
Use_sens = GEN_SENS;
}
if(!get_val(FIRE_BTN) && get_val(ADS_BTN)) {
Use_sens = ADS_SENS;
}
sensitivity(14, midpoint,Use_sens);
sensitivity(14, midpoint,Use_sens);
}
}
-
Muex - Staff Sergeant
- Posts: 11
- Joined: Wed Jun 05, 2019 2:44 am
Re: Possible script combine
Post the complete script code that produces the error message ( your try of combining/merging them) along with the error message from the "output panel" or it is very hard/impossible to help you.
And please use the "T2 Code" tag button available in the "Full Editor" when replying so that your posted code gets 'put into a box' like this:
And please use the "T2 Code" tag button available in the "Full Editor" when replying so that your posted code gets 'put into a box' like this:
- Code: Select all
// some code
main {
};
-
Scachi - Brigadier General
- Posts: 3044
- Joined: Wed May 11, 2016 6:25 am
- Location: Germany
Re: Possible script combine
I pasted the aim correction into bonefisher script but i dont know how to fix it.
- Code: Select all
#pragma METAINFO("BO4 Special Edtion", 1, 0, "bonefisher")
/* *****************************************************************************
<cfgdesc>
[BO4 Special Edtion]
color = #008000
shortdesc = <font color="green">Runtime operations Use Interactive Configurations for changes to settings.
control = info
[RAPID FIRE SETTINGS:]
color = #008000
collapsible = 2
shortdesc = <font color="brown">ENABLE:<font color="green">Rapid Fire?</font>
byteoffset = 0
bitsize = 8
control = radiobox
default = 0
item = Rapidfire OFF
item = Rapidfire ON
[RAPID FIRE OPTIONS:]
group = true
shortdesc = <font color="brown">SHOTS PER SECOND:</font> <font color="green"> Set to desired sps setting 1~25 sps.</font>
byteoffset = 1
bitsize = 32
control = spinboxf
default = 165
minimum = 10
maximum = 250
step = 05
decimals = 1
[ANTI RECOIL SETTINGS:]
color = #008000
collapsible = 2
shortdesc = <font color="brown">ENABLE:<font color="green"> Anti Recoil?
byteoffset = 10
bitsize = 1
bitoffset = 7
control = checkbox
default = 1
item = Anti Recoil ON
[Min Anti Recoil Percent]
group = true
shortdesc = <font color="brown">Minimum Percentage:<font color="green"> Anti Recoil to apply during aim stick movement.
byteoffset = 11
bitsize = 32
control = spinboxf
default = 200
minimum = 0
maximum = 1000
step = 10
decimals = 1
[Stick Noise Remover]
group = true
shortdesc = <font color="brown">STICK NOISE:<font color="green"> Set to the resting dead zone values for your right stick.
byteoffset = 15
bitsize = 32
control = spinboxf
default = 800
minimum = 0
maximum = 10000
step = 50
decimals = 2
[Anti Recoil Delay]
group = true
shortdesc = <font color="brown">Anti Recoil Delay:<font color="green"> (In MS) after fire button is pressed.
byteoffset = 19
bitsize = 16
control = slider
default = 0
minimum = 0
maximum = 1000
step = 5
[Standing Anti Recoil Settings]
group = true
shortdesc = <font color="brown">Anti Recoil:<font color="green"> vertical pull force compensation.
byteoffset = 21
bitsize = 32
control = spinboxf
default = 1800
minimum = -10000
maximum = 10000
step = 10
decimals = 2
[Standing Anti Recoil H Settings]
group = true
shortdesc = <font color="brown">Anti Recoil:<font color="green"> horizontal pull force compensation.
byteoffset = 25
bitsize = 32
control = spinboxf
default = 00000
minimum = -10000
maximum = 10000
step = 10
decimals = 2
[Anti Recoil Timed]
group = true
shortdesc = <font color="brown">Anti Recoil Timed:<font color="green"> (In MS) length of top setting compensation then applying second settings.
byteoffset = 29
bitsize = 16
control = slider
default = 500
minimum = 0
maximum = 2500
step = 5
[Anti Recoil Settings]
group = true
shortdesc = <font color="brown">Anti Recoil:<font color="green"> vertical pull force compensation.
byteoffset = 31
bitsize = 32
control = spinboxf
default = 1800
minimum = -10000
maximum = 10000
step = 10
decimals = 2
[Anti Recoil H Settings]
group = true
shortdesc = <font color="brown">Anti Recoil:<font color="green"> horizontal pull force compensation.
byteoffset = 35
bitsize = 32
control = spinboxf
default = 00000
minimum = -10000
maximum = 10000
step = 10
decimals = 2
[AIM ASSIST SETTINGS:]
color = #008000
collapsible = 2
[AIM ASSIST]
group = true
shortdesc = <font color="green">Works when ads is applied or fired.</font>
byteoffset = 39
bitsize = 1
bitoffset = 7
control = checkbox
default = 1
item = Enable Aim assist
[TURBO MELEE SETTINGS:]
color = #008000
collapsible = 2
[TURBO MELEE MODz]
group = true
shortdesc = <font color="green">Options for Turbo Melee.</font>
byteoffset = 54
bitsize = 8
control = radiobox
default = 2
item = Disable
item = Hold for normal press or double tap for turbo melee.
item = Hold for turbo melee or double tap for normal press.
[AIM ABUSE SETTINGS:]
color = #008000
collapsible = 2
[Aim_Abuse Settings]
group = true
shortdesc = <font color="green">Enable Aim Abuse?</font>
byteoffset = 56
bitsize = 1
bitoffset = 7
control = checkbox
default = 0
item = Aim Abuse
[Auto Aim Hold Time]
group = true
shortdesc = <font color="brown">Auto Aim Hold Time:</font> <font color="green">Configure the time period, in milli-seconds, of which the ADS(Scope) button should be pressed when the aim-assist abuse is activated.</font>
byteoffset = 57
bitsize = 16
control = spinbox
default = 150
minimum = 20
maximum = 5000
step = 50
[Auto Aim Release Time]
group = true
shortdesc = <font color="brown">Auto Aim Release Time:</font> <font color="green">Configure the time period, in milli-seconds, of which the ADS(Scope) button should be released when the aim-assist abuse is activated.</font>
byteoffset = 59
bitsize = 16
control = spinbox
default = 50
minimum = 10
maximum = 5000
step = 5
[Auto Aim Fire Pre Pause Time]
group = true
shortdesc = <font color="brown">Auto Aim Fire Pre Pause Time:</font> <font color="green">Configure the time period, in milli-seconds, to pause rapid fire for given time before ads release.</font>
byteoffset = 61
bitsize = 16
control = spinbox
default = 5
minimum = 0
maximum = 5000
step = 5
[Auto Aim Fire Post Pause Time]
group = true
shortdesc = <font color="brown">Auto Aim Fire Post Pause Time:</font> <font color="green">Configure the time period, in milli-seconds, to pause rapid fire for given time after ads release.</font>
byteoffset = 63
bitsize = 16
control = spinbox
default = 50
minimum = 0
maximum = 5000
step = 5
[AUTO SPRINT SETTINGS:]
color = #008000
collapsible = 2
[Auto Sprint]
group = true
shortdesc = <font color="green">Easy sprint: hold left stick forward too sprint. Adjust reload delay for weapon so you don't sprint cancel reload. Adjust reload cancel the same as delay just incase anytime of reloading and enemy is near engage stick forward fast to get out of reloading.</font>
byteoffset = 67
bitsize = 1
bitoffset = 7
control = checkbox
default = 1
item = Enable Easy Sprint
[Reload Delay]
group = true
shortdesc = <font color="brown">Reload Delay:<font color="green"> (In MS) length that it takes when you first press reload to when magazine clicks in weapon.
byteoffset = 68
bitsize = 16
control = slider
default = 2000
minimum = 0
maximum = 3500
step = 5
[Reload Cancel]
group = true
shortdesc = <font color="brown">Reload Cancel:<font color="green"> (In MS) length of time you sprint cancel reloading in case needing break out to fire on enemy.
byteoffset = 70
bitsize = 16
control = slider
default = 2000
minimum = 0
maximum = 3500
step = 5
[STRAFE SETTINGS:]
color = #008000
collapsible = 2
[Strafe MODz]
group = true
shortdesc = <font color="green">Strafe option.</font>
byteoffset = 115
bitsize = 8
control = radiobox
default = 0
item = Disabled
item = Enabled Strafe (Adjustable)
item = Enabled Strafe(Hip only)(Adjustable)
[Strafe Adjustable Setting]
group = true
shortdesc = <br><b><font color="green">Strafe Adjustable Setting:</font></b>
byteoffset = 116
bitsize = 32
control = spinbox
default = 200
minimum = 0
maximum = 2000
step = 1
</cfgdesc>
***************************************************************************** */
#include <display.gph>
#define wait(a) wait((int)a);
#define float fix32
uint8 rapid_fire;
fix32 sps;
fix32 hold_time, rest_time;
uint8 bUseAntiRecoil;
float ARecoil_H;
float ARecoil_V;
uint16 ARecoilDelay;
float ARecoil_H2;
float ARecoil_V2;
uint16 ARecoilTimed;
float MinARecoilPercent;
float StickNoise;
//Aim Abuse
bool bUseAimAbuse = FALSE;
int AutoAimHoldTime;
int AutoAimReleaseTime;
int AutoAimFirePrePauseTime;
int AutoAimFirePostPauseTime;
bool bAutoAimPauseFire = FALSE;
bool sprint_toggle;
bool AimAssist;
//Turbo Melee
uint8 bUseTurboMelee = 2;
bool turboMelee = TRUE;
bool fast_melee;
uint8 STRAFE_MODz;
uint32 STRAFE_SHUFFLE;
uint16 reload_cancel;
uint16 reload_delay;
init
{
pmem_load();
rapid_fire = pmem_read(0);
pmem_read(1, &sps);
printf("<center><font style='color:blue;font-size:14px;',><br>RAPID FIRE: %u", rapid_fire);
update_rapidfire();
bUseAntiRecoil = (pmem_read(10) >> 7) & 0b1;
printf("<center><font style='color:red;font-size:14px;',><br>ANTI RECOIL: %d", bUseAntiRecoil);
pmem_read(11, &MinARecoilPercent);
pmem_read(15, &StickNoise);
pmem_read(19, &ARecoilDelay);
pmem_read(21, &ARecoil_V);
pmem_read(25, &ARecoil_H);
pmem_read(29, &ARecoilTimed);
pmem_read(31, &ARecoil_V2);
pmem_read(35, &ARecoil_H2);
update_anti_recoil();
AimAssist = (pmem_read(39) >> 7) & 0b1;
bUseTurboMelee = pmem_read(54);
bUseAimAbuse = (pmem_read(56) >> 7) & 0b1;
pmem_read(57, &AutoAimHoldTime);
pmem_read(59, &AutoAimReleaseTime);
pmem_read(61, &AutoAimFirePrePauseTime);
pmem_read(63, &AutoAimFirePostPauseTime);
sprint_toggle = (pmem_read(67) >> 7) & 0b1;
pmem_read(68, &reload_delay);
pmem_read(70, &reload_cancel);
STRAFE_MODz = pmem_read(115);
pmem_read(116, &STRAFE_SHUFFLE);
}
main {
// - Aim Correction - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if(aim__correction){
if(get_val(FIRE_BTN) && get_val(ADS_BTN)) {
Use_sens = ADS_FIRE_SENS;
}
if(get_val(FIRE_BTN) && !get_val(ADS_BTN)) {
Use_sens = HIP_SENS;
}
if(!get_val(FIRE_BTN) && !get_val(ADS_BTN)) {
Use_sens = GEN_SENS;
}
if(!get_val(FIRE_BTN) && get_val(ADS_BTN)) {
Use_sens = ADS_SENS;
}
sensitivity(14, midpoint,Use_sens);
sensitivity(14, midpoint,Use_sens);
}
// - RAPIDFIRE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if(get_actual(BUTTON_5)) {
if (bAutoAimPauseFire == FALSE)
{
set_val(BUTTON_5, 100.0);
if(rapid_fire == 1)
combo_run(RapidFire);
}
}else combo_stop(RapidFire);
if (bUseAntiRecoil)
{
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 (event_active(BUTTON_5))
{
combo_run(recoil_compensation);
}
if(event_release(BUTTON_5))
{
combo_stop(recoil_compensation);
}
}
if(AimAssist == 1)
{
if(get_val(BUTTON_8)&& !get_actual(BUTTON_5)) {
combo_run(ARA);
} else
if(get_val(BUTTON_5)) {
combo_run(ARAF);
}
if(is_active(STICK_1_X)){combo_stop(ARA);combo_stop(ARAF);}
if(is_active(STICK_1_Y)){combo_stop(ARA);combo_stop(ARAF);}
}
if(turboMelee == 1)
{
if(bUseTurboMelee == 1)
{
if(fast_melee)
{
if(get_val(BUTTON_6))
{
combo_run(TurboMelee);
}else
{
fast_melee = 0;
}
}else if(event_active(BUTTON_6) && time_release(BUTTON_6) < 140)
{
fast_melee = 1;
}
}
if(bUseTurboMelee == 2)
{
if(get_actual(BUTTON_6))
{
combo_run(TurboMelee);
}else if(event_release(BUTTON_6))
{
combo_stop(TurboMelee);
}
if(event_active(BUTTON_6) && time_release(BUTTON_6) < 140)
{
fast_melee = !fast_melee;
}else if(event_release(BUTTON_6) && time_active(BUTTON_6) <= 140)
{
fast_melee = !fast_melee;
}
if(fast_melee)
{
if(get_actual(BUTTON_6))
{
combo_stop(TurboMelee);
set_val(BUTTON_6, 100.0);
}else if(event_release(BUTTON_6))
{
fast_melee = FALSE;
}
}
}
}
if (bUseAimAbuse)
{
if (get_actual(BUTTON_8) && !get_actual(BUTTON_5))
{
combo_run(AimAbuse);
}
else
{
bAutoAimPauseFire = FALSE;
combo_stop(AimAbuse);
}
}
if(sprint_toggle)
{
if(is_active(STICK_2_X))
{
if(event_active(BUTTON_15))combo_run(auto_slide);
}
if(get_actual(BUTTON_8))
{
combo_stop(auto_slide);
if(is_active(BUTTON_15))set_val(BUTTON_15, 100.0);
}
// - SPRINT MOD - - - - - - - - - - - - - - - - - - - - - - - - - - -
if(get_val(STICK_2_Y) < -90.0) {
combo_run(EasySprint);
}
if(get_actual(BUTTON_5) || get_actual(BUTTON_8) ||
get_actual(BUTTON_4) || get_actual(BUTTON_7)) {
combo_stop(EasySprint);
}
if(is_release(BUTTON_17) && time_active(BUTTON_17) <= reload_delay) {
combo_stop(EasySprint);
}
if(is_active(STICK_2_Y) && time_active(STICK_2_Y) < reload_cancel)reload_delay = 0;
}
if(STRAFE_MODz == 1) {
if(get_val(BUTTON_5)) {
combo_run(strafe);
}else if(event_release(BUTTON_5)) {
combo_stop(strafe);
}
if(is_active(STICK_2_X) || is_active(STICK_2_Y)) {
combo_stop(strafe);
}
}
if(STRAFE_MODz == 2) {
if((!get_val(BUTTON_8) && get_val(BUTTON_5)) || (event_release(BUTTON_8) && get_val(BUTTON_5))) {
combo_run(strafe);
}else if(event_release(BUTTON_5)) {
combo_stop(strafe);
}
if(is_active(STICK_2_X) || is_active(STICK_2_Y)) {
combo_stop(strafe);
}
}
}
combo RapidFire
{
set_val(BUTTON_5, hold_time ? 100.0 : 0.0);
wait(hold_time);
set_val(BUTTON_5, rest_time ? 0.0 : 100.0);
wait(rest_time);
set_val(BUTTON_5, rest_time ? 0.0 : 100.0);
}
combo recoil_compensation
{
wait(ARecoilDelay);
AntiRecoil(STICK_1_X, ARecoil_H);
AntiRecoil(STICK_1_Y, ARecoil_V);
wait(ARecoilTimed);
AntiRecoil(STICK_1_X, ARecoil_H2);
AntiRecoil(STICK_1_Y, ARecoil_V2);
wait(2000);
}
combo AimAbuse
{
bAutoAimPauseFire = FALSE;
set_val(BUTTON_8, 100);
wait(AutoAimHoldTime - AutoAimFirePrePauseTime);
bAutoAimPauseFire = TRUE;
wait(AutoAimFirePrePauseTime);
set_val(BUTTON_8, 0.0);
wait(AutoAimReleaseTime);
set_val(BUTTON_8, 100);
wait(AutoAimFirePostPauseTime);
}
combo ARA
{
set_val(STICK_1_X, irand(24, 16));
wait(40);
set_val(STICK_1_Y, irand(24, 16));
wait(40);
set_val(STICK_1_X, irand(-24, -16));
wait(40);
set_val(STICK_1_Y, irand(-24, -16));
wait(40);
}
combo ARAF
{
set_val(STICK_1_X, irand(40, 16));
wait(40);
set_val(STICK_1_Y, irand(40, 16));
wait(40);
set_val(STICK_1_X, irand(-40, -16));
wait(40);
set_val(STICK_1_Y, irand(-40, -16));
wait(40);
}
combo TurboMelee
{
set_val(BUTTON_6, 100.0);
wait(40);
set_val(BUTTON_6, 0.0);
wait(40);
set_val(BUTTON_6, 0.0);
}
combo EasySprint
{
set_val(BUTTON_9, 100.0);
wait(40);
set_val(BUTTON_9, 0.0);
wait(40);
set_val(BUTTON_9, 0.0);
reload_delay = 2000;
}
combo auto_slide {
set_val(BUTTON_9, 100.00);
set_val(BUTTON_15, 0.00);
set_val(STICK_2_X, 100.00);
set_val(STICK_2_Y, -100.00);
wait(20);
set_val(BUTTON_9, 100.00);
set_val(BUTTON_15, 100.00);
set_val(STICK_2_Y, -100.00);
wait(20);
set_val(BUTTON_9, 0.00);
set_val(BUTTON_15, 100.00);
set_val(STICK_2_Y, -100.00);
wait(40);
set_val(BUTTON_9, 100.00);
set_val(BUTTON_15, 100.00);
set_val(STICK_2_Y, -100.00);
wait(20);
set_val(BUTTON_9, 0.00);
set_val(BUTTON_15, 100.00);
set_val(STICK_2_Y, -100.00);
wait(60);
}
combo strafe
{
set_val(STICK_2_X, -100);
wait(STRAFE_SHUFFLE/2);
set_val(STICK_2_X, 100);
wait(STRAFE_SHUFFLE);
set_val(STICK_2_X, 100);
set_val(STICK_2_X, -100);
wait(STRAFE_SHUFFLE);
set_val(STICK_2_X, 100);
wait(STRAFE_SHUFFLE);
set_val(STICK_2_X, 100);
set_val(STICK_2_X, -100);
wait(STRAFE_SHUFFLE/2);
set_val(STICK_2_X, 100);
}
void update_rapidfire() {
printf("<center><font style='color:blue;font-size:14px;',><br>SHOTS PER SECOND: %.04f", sps);
hold_time = 500.0 / sps;
rest_time = hold_time - 1.0;
if(rest_time < 0.0) rest_time = 0.0;
return;
}
void update_anti_recoil(){
printf("<center><font style='color:red;font-size:14px;',><br>VERTICAL RECOIL COMPENSATION: %.04f", ARecoil_V);
printf("<center><font style='color:brown;font-size:14px;',><br>HORIZONTAL RECOIL COMPENSATION: %.04f", ARecoil_H);
printf("<center><font style='color:red;font-size:14px;',><br>VERTICAL RECOIL COMPENSATION 2: %.04f", ARecoil_V2);
printf("<center><font style='color:brown;font-size:14px;',><br>HORIZONTAL RECOIL COMPENSATION 2: %.04f", ARecoil_H2);
return;
}
int irand(int vmin, int vmax) {
return(((int)(rand() * (fix32)(vmax + 1 - vmin))) + vmin);
}
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,clamp(MinARecoilToApply + MovementARecoilToApply + get_val(AxisToApply),-100.00,100.00 - MinARecoilToApply));
}
-
Muex - Staff Sergeant
- Posts: 11
- Joined: Wed Jun 05, 2019 2:44 am
Re: Possible script combine
honestly i want bonefishers rapid fire code and double tap x into this script. The rapid fire here isnt easy for me to undeerstand. I try to use it in game and it makes my xim act very weird.
This script has everything i need that was mentioned in first post but its a little complicated to understand
This script has everything i need that was mentioned in first post but its a little complicated to understand
- Code: Select all
#include <titanone.gph>
// cod_black_ops_4_-_all_the_good_stuff_right_here!.gpc
/*/*
V1.0 BETA - COD BO4 ATGS EDITION - ALL THE GOOD STUFF RIGHT HERE!
THE #1 COD GAME SCRIPT IN THE WORLD IS BACK - BIGGER THAN EVER!!
----------------------------------------------------------------------------------------
___ __ __ _ _
/ __|_ _ ___ _ _ _ _ __| \/ |__ ___ __| | | |___ ___ _ _
| (__| '_/ _ \ ' \ || (_-< |\/| / _` \ \ /| |_| (_-</ -_) '_|
\___|_| \___/_||_\_,_/__/_| |_\__,_/_\_\_\___//__/\___|_|
|___|
PROUDLY PRESENTS
IN ASSOCIATION WITH
____ _ _
| _ \ | | | |
| |_) | __ _| |_| |_ ___
| _ < / _` | __| __/ __|
| |_) | (_| | |_| |_\__ \
|____/ \__,_|\__|\__|___/
A.K.A."THE CODE REDUCER"
_________ __ __ ____ ______ ____ __ __________ __
/ ____/ | / / / / / __ \/ ____/ / __ \/ / / /_ __/\ \/ /
/ / / /| | / / / / / / / / /_ / / / / / / / / / \ /
/ /___/ ___ |/ /___/ /___ / /_/ / __/ / /_/ / /_/ / / / / /
\_______ __/____________________/_/ ____ /_____/_____/ /___ __ /_/
/ __ )/ / / | / ____/ //_/ / __ \/ __ \/ ___/ / // /
/ __ / / / /| |/ / / ,< / / / / /_/ /\__ \ / // /_
/ /_/ / /___/ ___ / /___/ /| | / /_/ / ____/___/ / /__ __/
/_____/_____/_/ |_\____/_/ |_| \____/_/ /____/ /_/
_ ___ __ __ _ _ _ _____ __ __
|_|| | | |_||_ /__/ \/ \| \ (_ | | ||_ |_
| ||__|__ | | ||__ \_|\_/\_/|_/ __) | |_|| |
/\ |) \/ /\ |\| ( [- |) [- |) | ~|~ | () |\|
----------------------------------------------------------------------------------------
,---------------------------.
INSTRUCTIONS: tinyurl.com/scriptinstructions ... | Read the instructions !! |
(o o) _)--------------------------'
-----------------------------------------------ooO--(_)--Ooo----------------------------
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |U|S|E|R| |C|O|N|F|I|G| | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
*/
int ADS_SENS=95, GEN_SENS=100, HIP_SENS=100, ADS_FIRE_SENS=90, Use_sens, midpoint=50;
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | | |C|O|N|T|R|O|L|S| | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
*/ define AIM__INVERTED = FALSE;//IF YOU PLAY WITH INVERTED AIM SET TO "TRUE"
define HOME_BTN = 0; //PS4_PS XB1_XBOX
define VIEW_reset = 1; //PS4_SHARE XB1_VIEW
define MENU_save = 2; //PS4_OPTIONS XB1_MENU
define LETHAL = 3; //PS4_R1 XB1_RB
define FIRE_BTN = 4; //PS4_R2 XB1_RT
define PRONE_BTN = 5; //PS4_R3 XB1_RS
define TACTICAL = 6; //PS4_L1 XB1_LB
define ADS_BTN = 7; //PS4_L2 XB1_LT
define SPRINT_BTN = 8; //PS4_L3 XB1_LS
define RX = 9; //PS4_RX XB1_RX
define RY = 10; //PS4_RY XB1_RY
define LX = 11; //PS4_LX XB1_LX
define LY = 12; //PS4_LY XB1_LY
define UP = 13; //PS4_UP XB1_UP
define DOWN = 14; //PS4_DOWN XB1_DOWN
define LEFT = 15; //PS4_LEFT XB1_LEFT
define RIGHT = 16; //PS4_RIGHT XB1_RIGHT
define SW_WEAPON_BTN = 17; //PS4_TRIANGLE XB1_Y
define MELEE_BTN = 18; //PS4_CIRCLE XB1_B
define JUMP_BTN = 19; //PS4_CROSS XB1_A
define RELOAD_BTN = 20; //PS4_SQUARE XB1_X
define GYROX_PR1 = 24; //PS4_GYROX XB1_PR1
define GYROY_PR2 = 25; //PS4_GYROY XB1_PR2
define GYROZ_PL1 = 26; //PS4_GYROZ XB1_PL1
define TOUCH_PL2 = 27; //PS4_TOUCH XB1_PL2
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |L|E|D|S| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
define Off = 0;
define Green = 1;
define Blue = 2;
define Pink = 3;
define Red = 4;
define SkyBlue = 5;
define Yellow = 6;
define White = 7;
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |D|A|T|A| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
data(
0,0,0,0, // Off
0,0,2,0, // Green
2,0,0,0, // Blue
0,0,0,2, // Pink
0,2,0,0, // Red
2,0,2,0, // SkyBlue
0,2,2,0, // Yellow
2,2,2,2 // White
);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |V|A|R|I|A|B|L|E|S| | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
int akimbo_onoff = FALSE;
int hold_time = 35;
int rest_time = 35;
int PrimaryWeapon = TRUE;
int RF_KS = FALSE;
int rumble_num;
int delay;
int aa_p = 24;
int aa_n = -24;
int aa_delay = 20;
int release = 25;
int b_reload;
int autofire=1;
int hold_burst=200; // BURST FIRE
int rest_burst=100;
int fire__mods_ON=TRUE;
int Fire_KS=FALSE;
int aim__correction = TRUE; //AIM CORRECTION
int RATE_OF_FIRE = 25; //MAX 25, MIN = 1
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |A|N|T|I| |R|E|C|O|I|L| | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
//--Anti-Recoil
int recoil__y, recoil__x;
int NO__RECOIL__Y[4], NO__RECOIL__X[4];
int Recoil_Pr;
int STOP_RECOIL;
int LedTime;
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |I|N|I|T| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
init {
//--ANTI RECOIL /--------------------------------------
NO__RECOIL__Y[1] = get_pvar(SPVAR_1,-100,100, 10);
NO__RECOIL__X[1] = get_pvar(SPVAR_2,-100,100, 0);
NO__RECOIL__Y[2] = get_pvar(SPVAR_3,-100,100, 20);
NO__RECOIL__X[2] = get_pvar(SPVAR_4,-100,100, 0);
NO__RECOIL__Y[3] = get_pvar(SPVAR_5,-100,100, 30);
NO__RECOIL__X[3] = get_pvar(SPVAR_6,-100,100,0);
NO__RECOIL__Y[4] = 0;
NO__RECOIL__X[4] = 0;
}/*--end of init
--MAIN BLOCK
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |M|A|I|N| |B|L|O|C|K| |S|T|A|R|T|S| |H|E|R|E| | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
main {
hold_time = 500 / RATE_OF_FIRE;
rest_time = hold_time - 20;
if(rest_time < 0) rest_time = 0;
/* ,---------------------------------.
... | USER CONFIGURATION STARTS HERE! |
( oo) _)--------------------------------'
------------------------------------------ooO--(_)--Ooo---------------------------------
//----// REMOVE THE STARS FROM THE MODS YOU WANT TO REMOVE FROM THE SCRIPT //----//
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |A|N|T|I| |R|E|C|O|I|L| |O|N| |T|H|E| |F|L|Y| |P|R|O|F|I|L|E|S| | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
TO SWITCH OFF REMOVE THE STAR ON THE RIGHT--->/
if(get_val(2)){
if(event_press(UP))
{NO__RECOIL__Y[0] = NO__RECOIL__Y[1]; NO__RECOIL__X[0] = NO__RECOIL__X[1]; STOP_RECOIL = TRUE; LedTime= 100;}//--PROFILE ONE
if(event_press(RIGHT))
{NO__RECOIL__Y[0] = NO__RECOIL__Y[2]; NO__RECOIL__X[0] = NO__RECOIL__X[2]; STOP_RECOIL = TRUE; LedTime= 300;}//--PROFILE TWO
if(event_press(LEFT))
{NO__RECOIL__Y[0] = NO__RECOIL__Y[3]; NO__RECOIL__X[0] = NO__RECOIL__X[3]; STOP_RECOIL = TRUE; LedTime= 500;}//--PROFILE THREE
if(event_press(DOWN))
{NO__RECOIL__Y[0] = NO__RECOIL__Y[4]; NO__RECOIL__X[0] = NO__RECOIL__X[4]; STOP_RECOIL = FALSE;}//--PROFILE FOUR
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |A|I|M| |C|O|R|R|E|C|T|I|O|N| | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
TO SWITCH OFF REMOVE THE STAR ON THE RIGHT--->*/
if(aim__correction){
if(get_val(FIRE_BTN) && get_val(ADS_BTN)) {
Use_sens = ADS_FIRE_SENS;
}
if(get_val(FIRE_BTN) && !get_val(ADS_BTN)) {
Use_sens = HIP_SENS;
}
if(!get_val(FIRE_BTN) && !get_val(ADS_BTN)) {
Use_sens = GEN_SENS;
}
if(!get_val(FIRE_BTN) && get_val(ADS_BTN)) {
Use_sens = ADS_SENS;
}
sensitivity(14, midpoint,Use_sens);
sensitivity(14, midpoint,Use_sens);
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |C|A|N|C|E|L| |R|E|L|O|A|D| | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
TO SWITCH OFF REMOVE THE STAR ON THE RIGHT---> */
if(event_press(FIRE_BTN) && b_reload){combo_run(CANCEL_RLD);}
if(event_press(ADS_BTN) && b_reload){combo_run(CANCEL_RLD);}
if(event_release(RELOAD_BTN) && get_ptime(RELOAD_BTN)< 200){
combo_run(RELOAD_END); }
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | |K|I|L|L| |S|W|I|T|C|H| |&| |S|U|P|E|R| |P|W| |S|W|I|T|C|H| | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
TO SWITCH OFF REMOVE THE STAR ON THE RIGHT--->/
if(event_press (13) && !get_val (ADS_BTN) && get_ptime(13)< 15) { combo_run(SPECIAL);}
if(event_press (15) && !get_val (ADS_BTN) && get_ptime(15)< 15) { combo_run(KILL);}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |A|K|I|M|B|O| |/|A|U|T|O| |A|I|M| | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
TO SWITCH OFF REMOVE THE STAR ON THE RIGHT--->/
if(akimbo_onoff && PrimaryWeapon) {
if(get_val(FIRE_BTN) && !get_val(ADS_BTN)) set_val(ADS_BTN,100);}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |E|A|S|Y| |R|U|N| | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
TO SWITCH OFF REMOVE THE STAR ON THE RIGHT--->*/
if(get_val(LY) < -5) combo_run(EASY_RUN);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |R|A|P|I|D| |/| |B|U|R|S|T| |F|I|R|E| | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
TO SWITCH OFF REMOVE THE STAR ON THE RIGHT--->*/
if (PrimaryWeapon && RF_KS && fire__mods_ON && get_val(FIRE_BTN)){
if(autofire == 1) combo_run(RAPID_FIRE);
else if(autofire == 2) combo_run(BURST_FIRE);
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |A|I|M| |A|S|S|I|S|T| | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |H|A|I|R| |T|R|I|G|G|E|R|S| | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
TO SWITCH OFF REMOVE THE STAR ON THE RIGHT---> */
if(get_val(ADS_BTN)) set_val(ADS_BTN, 100);
if(get_val(FIRE_BTN)) set_val(FIRE_BTN,100);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |E|A|S|Y| |D|R|O|P|/|S|L|I|D|E| | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
TO SWITCH OFF REMOVE THE STAR ON THE RIGHT---> */
if (get_val(PRONE_BTN))combo_run(DROP_SHOT);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |E|A|S|Y| |M|E|L|E|E| | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
TO SWITCH OFF REMOVE THE STAR ON THE RIGHT---> */
if (get_val(SPRINT_BTN)) set_val(MELEE_BTN, 100);
/* ,----------------------------.
'*` | END USER CONFIGURATIONS !! |
(o o) _)---------------------------'
----------------------------------------------ooO--(_)--Ooo-----------------------------
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |A|N|T|I| |R|E|C|O|I|L| | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(STOP_RECOIL){
No__recoil(NO__RECOIL__X, NO__RECOIL__Y);
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |M|E|N|U| |A|D|S| | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(get_val(ADS_BTN)){
//--RESET EPROM TO DEFAULT VALUES/---------------------------
if (get_val(VIEW_reset) && get_ptime(VIEW_reset)> 600){
RESET_Defaults();
}
if(get_val(ADS_BTN)){//hold ADS button
//--RAPID FIRE OFF
if(event_press(DOWN)){//D-pad DOWN
PrimaryWeapon=TRUE;
RF_KS=FALSE;
Fire_KS=FALSE;
notify(!RF_KS);}
//--RAPID FIRE ON
if(event_release(RIGHT)){//D-pad RIGHT
PrimaryWeapon=TRUE;
RF_KS=TRUE;
Fire_KS=FALSE; // SET TO TRUE IF YOU WANT ACTIVATE THE FIRE MOD KILL SWITCH (1/2)
notify (!RF_KS);
}
if(get_val(RIGHT)){//D-pad RIGHT
if(event_release (1)) {autofire = 1;}
else if(event_release(2)) {autofire = 2;}
}
//--AKIMBO
if(event_press(LEFT)){//D-pad LEFT
akimbo_onoff = !akimbo_onoff;
notify (akimbo_onoff);
Fire_KS=FALSE; // SET TO TRUE IF YOU WANT ACTIVATE THE FIRE MOD KILL SWITCH (1/2)
}
set_val(1,0); set_val(2,0);
}
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |M|E|N|U| |D|-|P|A|D| |D|O|W|N| | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
//--HOLD D-PAD DOWN + TAP /-------------------------------------
if(get_val(DOWN)){//
//--AIM CORRECTION /--------------------------------------------
if(event_press(FIRE_BTN)){// FIRE BUTTON
aim__correction = !aim__correction;
}
set_val(FIRE_BTN,0);
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |P|R|O|G|R|A|M|M|I|N|G| |O|N| |T|H|E| |F|L|Y| |V|A|L|U|E|S| | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
//--HOLD B / CIRCLE + TAP /-------------------------------------------
if (get_val(18)) {
if (event_press(0)) { //-- PS4 BTN / XBOX BTN
Recoil_Pr = Recoil_Pr + 1;
if (Recoil_Pr == 4) {
combo_run(GAME_MODE);
Recoil_Pr = 0; }
//--Blink
if (Recoil_Pr) {
//--rumble
notify(Recoil_Pr); }
}
if (event_press(UP) && Recoil_Pr) { NO__RECOIL__Y[Recoil_Pr] = NO__RECOIL__Y[Recoil_Pr] + 1;}//--DPAD UP VERTICAL_RECOIL + 1
if (event_press(DOWN) && Recoil_Pr) {NO__RECOIL__Y[Recoil_Pr] = NO__RECOIL__Y[Recoil_Pr] - 1;}//--DAPD DOWN VERTICAL_RECOIL -1
if (event_press(LEFT) && Recoil_Pr){ NO__RECOIL__X[Recoil_Pr] = NO__RECOIL__X[Recoil_Pr] - 1;} //--DEPAD LEFT NO__RECOIL__X - 1
if (event_press(RIGHT) && Recoil_Pr) { NO__RECOIL__X[Recoil_Pr] = NO__RECOIL__X[Recoil_Pr] + 1;}//--DPAD RIGHT NO__RECOIL__X + 1
if (event_press(1) && Recoil_Pr) { RATE_OF_FIRE = RATE_OF_FIRE - 1;}
if (event_press(2) && Recoil_Pr) { RATE_OF_FIRE = RATE_OF_FIRE + 1;}
if (event_press(7) && Recoil_Pr){ hold_burst=200;}
if (event_press(6) && Recoil_Pr){ hold_burst=300;}
if (event_press(4) && Recoil_Pr){ hold_burst=400;}
if (event_press(3) && Recoil_Pr){ hold_burst=600;}
set_val(0,0); set_val (13,0); set_val (15,0); set_val (1,0); set_val (2,0);
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |R|E|S|E|T| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(event_release(RELOAD_BTN) && get_ptime(RELOAD_BTN)> 200 && combo_running (NO__FIRE_MOD)){
fire__mods_ON=TRUE; combo_stop (NO__FIRE_MOD); notify (!fire__mods_ON);}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |L|E|D|S| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(PrimaryWeapon) color_led (Blue);
if(PrimaryWeapon && RF_KS && autofire== 1) color_led (White);
if(PrimaryWeapon && RF_KS && autofire== 2) color_led (Yellow);
if(akimbo_onoff && PrimaryWeapon) color_led(SkyBlue);
if(aim__correction && get_val (FIRE_BTN)) color_led(Pink);
if(STOP_RECOIL)combo_run(BLINK_AR);
if(Recoil_Pr)color_led (Green);
if(RATE_OF_FIRE <1)color_led (Red);
}//--end of main
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |C|O|M|B|O| |S|E|C|T|I|O|N| | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
combo RAPID_FIRE {
set_val(FIRE_BTN,100);
wait(hold_time);
set_val(FIRE_BTN, 0);
wait(rest_time);
}
combo BURST_FIRE {
set_val(FIRE_BTN, 100);
wait(hold_burst);
set_val(FIRE_BTN, 0);
wait(rest_burst);
set_val(FIRE_BTN, 0);
}
combo BLINK_AR {
wait(LedTime);
color_led(Off);
wait(LedTime);
// color_led(led_color);
}
combo GAME_MODE {
set_rumble (RUMBLE_B, 100);
wait (600);
reset_rumble();
save_pvars ();
}
combo SPECIAL {
set_val(LETHAL,100);
set_val(TACTICAL,100);
wait(100);
if (Fire_KS==TRUE)
combo_run (NO__FIRE_MOD);
wait(40);
}
combo KILL {
if (Fire_KS==TRUE)
combo_run (NO__FIRE_MOD);
wait (40);
set_val (SW_WEAPON_BTN, 100);
wait(400);
set_val (SW_WEAPON_BTN,0);
wait(40);
}
combo NO__FIRE_MOD {
fire__mods_ON=FALSE;
color_led (Red);
wait (30000);
fire__mods_ON=TRUE;
}
combo NOTIFY {
delay = rumble_num * 400;
rumble();
wait(5);
wait(delay);
}
combo DROP_SHOT{
set_val(PRONE_BTN,100);
wait(800);
}
combo RUMBLE {
set_rumble(RUMBLE_A,100);
wait(250);
reset_rumble();
wait(100);
rumble_num = rumble_num - 1;
rumble_2();
}
combo RUMBLE_2 {
set_rumble(RUMBLE_A,100);
wait(250);
reset_rumble();
wait(100);
rumble_num = rumble_num - 1;
rumble();
}
combo EASY_RUN {
set_val(SPRINT_BTN,100);
wait(30);
wait(100);
}
combo CANCEL_RLD {
set_val(SW_WEAPON_BTN, 100);
wait(30);
set_val(SW_WEAPON_BTN, 0);
wait(20);
set_val(SW_WEAPON_BTN, 100);
wait(30);
set_val(SW_WEAPON_BTN, 0);
wait(20);
b_reload=FALSE;
}
combo RELOAD_END {
b_reload=TRUE;
wait(2000);
b_reload=FALSE;
}
function notify(rum_num) {
if (Recoil_Pr) rumble_num = Recoil_Pr;
else if (!rum_num) rumble_num = 2;
else if (rum_num) rumble_num = rum_num;
combo_run(NOTIFY);
}
function xy_val(f_axis,f_val) {
if(abs(get_val(f_axis)) < release)
return f_val;
return get_val(f_axis);
}
function rumble() {
if (rumble_num) combo_run(RUMBLE);
}
function rumble_2() {
if (rumble_num) combo_run(RUMBLE_2);
}
function RESET_Defaults () {
NO__RECOIL__Y[1] = 10;
NO__RECOIL__X[1] = 0;
NO__RECOIL__Y[2] = 20;
NO__RECOIL__X[2] = 0;
NO__RECOIL__Y[3] = 30;
NO__RECOIL__X[3] = 0;
// wait (50);
notify(1);
// wait (500);
save_pvars();
}
function save_pvars (){
set_pvar(SPVAR_1 , NO__RECOIL__Y[1]);
set_pvar(SPVAR_2 , NO__RECOIL__X[1]);
set_pvar(SPVAR_3 , NO__RECOIL__Y[2]);
set_pvar(SPVAR_4 , NO__RECOIL__X[2]);
set_pvar(SPVAR_5 , NO__RECOIL__Y[3]);
set_pvar(SPVAR_6 , NO__RECOIL__X[3]);
notify(1);
}
function No__recoil(No__recoil__x, No__recoil__y) {
if (get_val(FIRE_BTN)) {
if (isqrt(pow(get_val(RX), 2) + pow(get_val(RY), 2)) <= abs(No__recoil__y)) {
if (abs(get_val(RY)) <= abs(No__recoil__y)) {
recoil__x = (get_val(RX) + (No__recoil__x*(100-abs(get_val(RX))))/100);
set_val(RX, recoil__x);
if (AIM__INVERTED)
recoil__y = (get_val(RY) - (No__recoil__y*(100-abs(get_val(RY))))/100); // Y-axis invert
else
recoil__y = (get_val(RY) + (No__recoil__y*(100-abs(get_val(RY))))/100);
if (recoil__y > No__recoil__y) recoil__y = No__recoil__y;
set_val(RY, recoil__y);
}
}
}
}
function color_led(colour) {
set_led(LED_1, dbyte(colour * 4));
set_led(LED_2, dbyte((colour * 4) + 1));
set_led(LED_3, dbyte((colour * 4) + 2));
set_led(LED_4, dbyte((colour * 4) + 3));
}
-
Muex - Staff Sergeant
- Posts: 11
- Joined: Wed Jun 05, 2019 2:44 am
Re: Possible script combine
It can be a very hard task for a beginner to combine scripts. It can get more complicated when you try to merge a converted t1 scripts and a t2 script.
You have a lot more than 1 error. You have to start fix this from the first error line...
Hit the "compile" button (or 'F7' key,) then scroll all the way up in the "Output Panel" until you see first (from the bottom) lines of
Then scroll back down a few lines until the first "Error message"s :
Double click on the error message will to jump to that line in the script.
"Identifier not declared" means that you are missing important lines from the other script.
It depends on the syntax the author is usings, it looks like stuff in UPPERCASE are lines like:
and lowercase are variables like:
Go back into the other script where you copied parts from, search that mentioned names copy that line into your merge script. The order can matter, so keep them sorted like they are in the script you copy them from. Place them somewhere near where they where located in the source script. Near the top when they where near the top and so on.
Do all this this step by step for each error message, do not try to fix multiple errors in one go.
In this case I think you need some help from someone as this one doesn't look like it is easly done.
You have a lot more than 1 error. You have to start fix this from the first error line...
Hit the "compile" button (or 'F7' key,) then scroll all the way up in the "Output Panel" until you see first (from the bottom) lines of
GPC: ----- GPC Compile: <yourfilenamehere>.gpc -----
GPC: Preprocessor started.
GPC: First-pass started.
Then scroll back down a few lines until the first "Error message"s :
GPC error: 123.gpc(360): Identifier not declared 'aim__correction'.
GPC error: 123.gpc(362): Identifier not declared 'FIRE_BTN'.
Double click on the error message will to jump to that line in the script.
"Identifier not declared" means that you are missing important lines from the other script.
It depends on the syntax the author is usings, it looks like stuff in UPPERCASE are lines like:
- Code: Select all
#define FIRE_BTN BUTTON_5
and lowercase are variables like:
- Code: Select all
bool aim__correction = TRUE;
Go back into the other script where you copied parts from, search that mentioned names copy that line into your merge script. The order can matter, so keep them sorted like they are in the script you copy them from. Place them somewhere near where they where located in the source script. Near the top when they where near the top and so on.
Do all this this step by step for each error message, do not try to fix multiple errors in one go.
- hit "Compile"
- scroll up in the Output Panel until the first error message from the top, read it, try to understand it,
- if it mentions "not declared", search for that name in the source script you copied from, copy the line to your script,
- clear the messages in the Output Panel
In this case I think you need some help from someone as this one doesn't look like it is easly done.
-
Scachi - Brigadier General
- Posts: 3044
- Joined: Wed May 11, 2016 6:25 am
- Location: Germany
Re: Possible script combine
I love those shy guys
Are you sure this cm one is better and worth the effort to merge something in ?
Have you tried the official Gamepack or usermade scripts/modzpacks for that game that you can find in the "Online Resource" of GTuner IV ?
THE #1 COD GAME SCRIPT IN THE WORLD IS BACK
Are you sure this cm one is better and worth the effort to merge something in ?
Have you tried the official Gamepack or usermade scripts/modzpacks for that game that you can find in the "Online Resource" of GTuner IV ?
-
Scachi - Brigadier General
- Posts: 3044
- Joined: Wed May 11, 2016 6:25 am
- Location: Germany
Re: Possible script combine
Wow lol i kinda understand a lilttle bit more thank you.. ok ive went in and added more code that was related to aim correction. i went from 53 errors to 23 most being wrong brackets.
- Code: Select all
#pragma METAINFO("BO4 Special Edtion", 1, 0, "bonefisher")
/* *****************************************************************************
<cfgdesc>
[BO4 Special Edtion]
color = #008000
shortdesc = <font color="green">Runtime operations Use Interactive Configurations for changes to settings.
control = info
[RAPID FIRE SETTINGS:]
color = #008000
collapsible = 2
shortdesc = <font color="brown">ENABLE:<font color="green">Rapid Fire?</font>
byteoffset = 0
bitsize = 8
control = radiobox
default = 0
item = Rapidfire OFF
item = Rapidfire ON
[RAPID FIRE OPTIONS:]
group = true
shortdesc = <font color="brown">SHOTS PER SECOND:</font> <font color="green"> Set to desired sps setting 1~25 sps.</font>
byteoffset = 1
bitsize = 32
control = spinboxf
default = 165
minimum = 10
maximum = 250
step = 05
decimals = 1
[ANTI RECOIL SETTINGS:]
color = #008000
collapsible = 2
shortdesc = <font color="brown">ENABLE:<font color="green"> Anti Recoil?
byteoffset = 10
bitsize = 1
bitoffset = 7
control = checkbox
default = 1
item = Anti Recoil ON
[Min Anti Recoil Percent]
group = true
shortdesc = <font color="brown">Minimum Percentage:<font color="green"> Anti Recoil to apply during aim stick movement.
byteoffset = 11
bitsize = 32
control = spinboxf
default = 200
minimum = 0
maximum = 1000
step = 10
decimals = 1
[Stick Noise Remover]
group = true
shortdesc = <font color="brown">STICK NOISE:<font color="green"> Set to the resting dead zone values for your right stick.
byteoffset = 15
bitsize = 32
control = spinboxf
default = 800
minimum = 0
maximum = 10000
step = 50
decimals = 2
[Anti Recoil Delay]
group = true
shortdesc = <font color="brown">Anti Recoil Delay:<font color="green"> (In MS) after fire button is pressed.
byteoffset = 19
bitsize = 16
control = slider
default = 0
minimum = 0
maximum = 1000
step = 5
[Standing Anti Recoil Settings]
group = true
shortdesc = <font color="brown">Anti Recoil:<font color="green"> vertical pull force compensation.
byteoffset = 21
bitsize = 32
control = spinboxf
default = 1800
minimum = -10000
maximum = 10000
step = 10
decimals = 2
[Standing Anti Recoil H Settings]
group = true
shortdesc = <font color="brown">Anti Recoil:<font color="green"> horizontal pull force compensation.
byteoffset = 25
bitsize = 32
control = spinboxf
default = 00000
minimum = -10000
maximum = 10000
step = 10
decimals = 2
[Anti Recoil Timed]
group = true
shortdesc = <font color="brown">Anti Recoil Timed:<font color="green"> (In MS) length of top setting compensation then applying second settings.
byteoffset = 29
bitsize = 16
control = slider
default = 500
minimum = 0
maximum = 2500
step = 5
[Anti Recoil Settings]
group = true
shortdesc = <font color="brown">Anti Recoil:<font color="green"> vertical pull force compensation.
byteoffset = 31
bitsize = 32
control = spinboxf
default = 1800
minimum = -10000
maximum = 10000
step = 10
decimals = 2
[Anti Recoil H Settings]
group = true
shortdesc = <font color="brown">Anti Recoil:<font color="green"> horizontal pull force compensation.
byteoffset = 35
bitsize = 32
control = spinboxf
default = 00000
minimum = -10000
maximum = 10000
step = 10
decimals = 2
[AIM ASSIST SETTINGS:]
color = #008000
collapsible = 2
[AIM ASSIST]
group = true
shortdesc = <font color="green">Works when ads is applied or fired.</font>
byteoffset = 39
bitsize = 1
bitoffset = 7
control = checkbox
default = 1
item = Enable Aim assist
[TURBO MELEE SETTINGS:]
color = #008000
collapsible = 2
[TURBO MELEE MODz]
group = true
shortdesc = <font color="green">Options for Turbo Melee.</font>
byteoffset = 54
bitsize = 8
control = radiobox
default = 2
item = Disable
item = Hold for normal press or double tap for turbo melee.
item = Hold for turbo melee or double tap for normal press.
[AIM ABUSE SETTINGS:]
color = #008000
collapsible = 2
[Aim_Abuse Settings]
group = true
shortdesc = <font color="green">Enable Aim Abuse?</font>
byteoffset = 56
bitsize = 1
bitoffset = 7
control = checkbox
default = 0
item = Aim Abuse
[Auto Aim Hold Time]
group = true
shortdesc = <font color="brown">Auto Aim Hold Time:</font> <font color="green">Configure the time period, in milli-seconds, of which the ADS(Scope) button should be pressed when the aim-assist abuse is activated.</font>
byteoffset = 57
bitsize = 16
control = spinbox
default = 150
minimum = 20
maximum = 5000
step = 50
[Auto Aim Release Time]
group = true
shortdesc = <font color="brown">Auto Aim Release Time:</font> <font color="green">Configure the time period, in milli-seconds, of which the ADS(Scope) button should be released when the aim-assist abuse is activated.</font>
byteoffset = 59
bitsize = 16
control = spinbox
default = 50
minimum = 10
maximum = 5000
step = 5
[Auto Aim Fire Pre Pause Time]
group = true
shortdesc = <font color="brown">Auto Aim Fire Pre Pause Time:</font> <font color="green">Configure the time period, in milli-seconds, to pause rapid fire for given time before ads release.</font>
byteoffset = 61
bitsize = 16
control = spinbox
default = 5
minimum = 0
maximum = 5000
step = 5
[Auto Aim Fire Post Pause Time]
group = true
shortdesc = <font color="brown">Auto Aim Fire Post Pause Time:</font> <font color="green">Configure the time period, in milli-seconds, to pause rapid fire for given time after ads release.</font>
byteoffset = 63
bitsize = 16
control = spinbox
default = 50
minimum = 0
maximum = 5000
step = 5
[AUTO SPRINT SETTINGS:]
color = #008000
collapsible = 2
[Auto Sprint]
group = true
shortdesc = <font color="green">Easy sprint: hold left stick forward too sprint. Adjust reload delay for weapon so you don't sprint cancel reload. Adjust reload cancel the same as delay just incase anytime of reloading and enemy is near engage stick forward fast to get out of reloading.</font>
byteoffset = 67
bitsize = 1
bitoffset = 7
control = checkbox
default = 1
item = Enable Easy Sprint
[Reload Delay]
group = true
shortdesc = <font color="brown">Reload Delay:<font color="green"> (In MS) length that it takes when you first press reload to when magazine clicks in weapon.
byteoffset = 68
bitsize = 16
control = slider
default = 2000
minimum = 0
maximum = 3500
step = 5
[Reload Cancel]
group = true
shortdesc = <font color="brown">Reload Cancel:<font color="green"> (In MS) length of time you sprint cancel reloading in case needing break out to fire on enemy.
byteoffset = 70
bitsize = 16
control = slider
default = 2000
minimum = 0
maximum = 3500
step = 5
[STRAFE SETTINGS:]
color = #008000
collapsible = 2
[Strafe MODz]
group = true
shortdesc = <font color="green">Strafe option.</font>
byteoffset = 115
bitsize = 8
control = radiobox
default = 0
item = Disabled
item = Enabled Strafe (Adjustable)
item = Enabled Strafe(Hip only)(Adjustable)
[Strafe Adjustable Setting]
group = true
shortdesc = <br><b><font color="green">Strafe Adjustable Setting:</font></b>
byteoffset = 116
bitsize = 32
control = spinbox
default = 200
minimum = 0
maximum = 2000
step = 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |L|E|D|S| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
if(aim__correction && get_val (FIRE_BTN)) color_led(Pink);
</cfgdesc>
***************************************************************************** */
#include <display.gph>
#define wait(a) wait((int)a);
#define float fix32
uint8 rapid_fire;
fix32 sps;
fix32 hold_time, rest_time;
uint8 bUseAntiRecoil;
float ARecoil_H;
float ARecoil_V;
uint16 ARecoilDelay;
float ARecoil_H2;
float ARecoil_V2;
uint16 ARecoilTimed;
float MinARecoilPercent;
float StickNoise;
//Aim Abuse
bool bUseAimAbuse = FALSE;
int AutoAimHoldTime;
int AutoAimReleaseTime;
int AutoAimFirePrePauseTime;
int AutoAimFirePostPauseTime;
bool bAutoAimPauseFire = FALSE;
bool sprint_toggle;
bool AimAssist;
//Turbo Melee
uint8 bUseTurboMelee = 2;
bool turboMelee = TRUE;
bool fast_melee;
uint8 STRAFE_MODz;
uint32 STRAFE_SHUFFLE;
uint16 reload_cancel;
uint16 reload_delay;
int aim__correction = TRUE; //AIM CORRECTION
init
{
pmem_load();
rapid_fire = pmem_read(0);
pmem_read(1, &sps);
printf("<center><font style='color:blue;font-size:14px;',><br>RAPID FIRE: %u", rapid_fire);
update_rapidfire();
bUseAntiRecoil = (pmem_read(10) >> 7) & 0b1;
printf("<center><font style='color:red;font-size:14px;',><br>ANTI RECOIL: %d", bUseAntiRecoil);
pmem_read(11, &MinARecoilPercent);
pmem_read(15, &StickNoise);
pmem_read(19, &ARecoilDelay);
pmem_read(21, &ARecoil_V);
pmem_read(25, &ARecoil_H);
pmem_read(29, &ARecoilTimed);
pmem_read(31, &ARecoil_V2);
pmem_read(35, &ARecoil_H2);
update_anti_recoil();
AimAssist = (pmem_read(39) >> 7) & 0b1;
bUseTurboMelee = pmem_read(54);
bUseAimAbuse = (pmem_read(56) >> 7) & 0b1;
pmem_read(57, &AutoAimHoldTime);
pmem_read(59, &AutoAimReleaseTime);
pmem_read(61, &AutoAimFirePrePauseTime);
pmem_read(63, &AutoAimFirePostPauseTime);
sprint_toggle = (pmem_read(67) >> 7) & 0b1;
pmem_read(68, &reload_delay);
pmem_read(70, &reload_cancel);
STRAFE_MODz = pmem_read(115);
pmem_read(116, &STRAFE_SHUFFLE);
}
main {
//--AIM CORRECTION /--------------------------------------------
if(event_press(FIRE_BTN)){// FIRE BUTTON
aim__correction = !aim__correction;
}
set_val(FIRE_BTN,0);
}
// - Aim Correction - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if(aim__correction){
if(get_val(FIRE_BTN) && get_val(ADS_BTN)) {
Use_sens = ADS_FIRE_SENS;
}
if(get_val(FIRE_BTN) && !get_val(ADS_BTN)) {
Use_sens = HIP_SENS;
}
if(!get_val(FIRE_BTN) && !get_val(ADS_BTN)) {
Use_sens = GEN_SENS;
}
if(!get_val(FIRE_BTN) && get_val(ADS_BTN)) {
Use_sens = ADS_SENS;
}
sensitivity(14, midpoint,Use_sens);
sensitivity(14, midpoint,Use_sens);
}
// - RAPIDFIRE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if(get_actual(BUTTON_5)) {
if (bAutoAimPauseFire == FALSE)
{
set_val(BUTTON_5, 100.0);
if(rapid_fire == 1)
combo_run(RapidFire);
}
}else combo_stop(RapidFire);
if (bUseAntiRecoil)
{
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 (event_active(BUTTON_5))
{
combo_run(recoil_compensation);
}
if(event_release(BUTTON_5))
{
combo_stop(recoil_compensation);
}
}
if(AimAssist == 1)
{
if(get_val(BUTTON_8)&& !get_actual(BUTTON_5)) {
combo_run(ARA);
} else
if(get_val(BUTTON_5)) {
combo_run(ARAF);
}
if(is_active(STICK_1_X)){combo_stop(ARA);combo_stop(ARAF);}
if(is_active(STICK_1_Y)){combo_stop(ARA);combo_stop(ARAF);}
}
if(turboMelee == 1)
{
if(bUseTurboMelee == 1)
{
if(fast_melee)
{
if(get_val(BUTTON_6))
{
combo_run(TurboMelee);
}else
{
fast_melee = 0;
}
}else if(event_active(BUTTON_6) && time_release(BUTTON_6) < 140)
{
fast_melee = 1;
}
}
if(bUseTurboMelee == 2)
{
if(get_actual(BUTTON_6))
{
combo_run(TurboMelee);
}else if(event_release(BUTTON_6))
{
combo_stop(TurboMelee);
}
if(event_active(BUTTON_6) && time_release(BUTTON_6) < 140)
{
fast_melee = !fast_melee;
}else if(event_release(BUTTON_6) && time_active(BUTTON_6) <= 140)
{
fast_melee = !fast_melee;
}
if(fast_melee)
{
if(get_actual(BUTTON_6))
{
combo_stop(TurboMelee);
set_val(BUTTON_6, 100.0);
}else if(event_release(BUTTON_6))
{
fast_melee = FALSE;
}
}
}
}
if (bUseAimAbuse)
{
if (get_actual(BUTTON_8) && !get_actual(BUTTON_5))
{
combo_run(AimAbuse);
}
else
{
bAutoAimPauseFire = FALSE;
combo_stop(AimAbuse);
}
}
if(sprint_toggle)
{
if(is_active(STICK_2_X))
{
if(event_active(BUTTON_15))combo_run(auto_slide);
}
if(get_actual(BUTTON_8))
{
combo_stop(auto_slide);
if(is_active(BUTTON_15))set_val(BUTTON_15, 100.0);
}
// - SPRINT MOD - - - - - - - - - - - - - - - - - - - - - - - - - - -
if(get_val(STICK_2_Y) < -90.0) {
combo_run(EasySprint);
}
if(get_actual(BUTTON_5) || get_actual(BUTTON_8) ||
get_actual(BUTTON_4) || get_actual(BUTTON_7)) {
combo_stop(EasySprint);
}
if(is_release(BUTTON_17) && time_active(BUTTON_17) <= reload_delay) {
combo_stop(EasySprint);
}
if(is_active(STICK_2_Y) && time_active(STICK_2_Y) < reload_cancel)reload_delay = 0;
}
if(STRAFE_MODz == 1) {
if(get_val(BUTTON_5)) {
combo_run(strafe);
}else if(event_release(BUTTON_5)) {
combo_stop(strafe);
}
if(is_active(STICK_2_X) || is_active(STICK_2_Y)) {
combo_stop(strafe);
}
}
if(STRAFE_MODz == 2) {
if((!get_val(BUTTON_8) && get_val(BUTTON_5)) || (event_release(BUTTON_8) && get_val(BUTTON_5))) {
combo_run(strafe);
}else if(event_release(BUTTON_5)) {
combo_stop(strafe);
}
if(is_active(STICK_2_X) || is_active(STICK_2_Y)) {
combo_stop(strafe);
}
}
}
combo RapidFire
{
set_val(BUTTON_5, hold_time ? 100.0 : 0.0);
wait(hold_time);
set_val(BUTTON_5, rest_time ? 0.0 : 100.0);
wait(rest_time);
set_val(BUTTON_5, rest_time ? 0.0 : 100.0);
}
combo recoil_compensation
{
wait(ARecoilDelay);
AntiRecoil(STICK_1_X, ARecoil_H);
AntiRecoil(STICK_1_Y, ARecoil_V);
wait(ARecoilTimed);
AntiRecoil(STICK_1_X, ARecoil_H2);
AntiRecoil(STICK_1_Y, ARecoil_V2);
wait(2000);
}
combo AimAbuse
{
bAutoAimPauseFire = FALSE;
set_val(BUTTON_8, 100);
wait(AutoAimHoldTime - AutoAimFirePrePauseTime);
bAutoAimPauseFire = TRUE;
wait(AutoAimFirePrePauseTime);
set_val(BUTTON_8, 0.0);
wait(AutoAimReleaseTime);
set_val(BUTTON_8, 100);
wait(AutoAimFirePostPauseTime);
}
combo ARA
{
set_val(STICK_1_X, irand(24, 16));
wait(40);
set_val(STICK_1_Y, irand(24, 16));
wait(40);
set_val(STICK_1_X, irand(-24, -16));
wait(40);
set_val(STICK_1_Y, irand(-24, -16));
wait(40);
}
combo ARAF
{
set_val(STICK_1_X, irand(40, 16));
wait(40);
set_val(STICK_1_Y, irand(40, 16));
wait(40);
set_val(STICK_1_X, irand(-40, -16));
wait(40);
set_val(STICK_1_Y, irand(-40, -16));
wait(40);
}
combo TurboMelee
{
set_val(BUTTON_6, 100.0);
wait(40);
set_val(BUTTON_6, 0.0);
wait(40);
set_val(BUTTON_6, 0.0);
}
combo EasySprint
{
set_val(BUTTON_9, 100.0);
wait(40);
set_val(BUTTON_9, 0.0);
wait(40);
set_val(BUTTON_9, 0.0);
reload_delay = 2000;
}
combo auto_slide {
set_val(BUTTON_9, 100.00);
set_val(BUTTON_15, 0.00);
set_val(STICK_2_X, 100.00);
set_val(STICK_2_Y, -100.00);
wait(20);
set_val(BUTTON_9, 100.00);
set_val(BUTTON_15, 100.00);
set_val(STICK_2_Y, -100.00);
wait(20);
set_val(BUTTON_9, 0.00);
set_val(BUTTON_15, 100.00);
set_val(STICK_2_Y, -100.00);
wait(40);
set_val(BUTTON_9, 100.00);
set_val(BUTTON_15, 100.00);
set_val(STICK_2_Y, -100.00);
wait(20);
set_val(BUTTON_9, 0.00);
set_val(BUTTON_15, 100.00);
set_val(STICK_2_Y, -100.00);
wait(60);
}
combo strafe
{
set_val(STICK_2_X, -100);
wait(STRAFE_SHUFFLE/2);
set_val(STICK_2_X, 100);
wait(STRAFE_SHUFFLE);
set_val(STICK_2_X, 100);
set_val(STICK_2_X, -100);
wait(STRAFE_SHUFFLE);
set_val(STICK_2_X, 100);
wait(STRAFE_SHUFFLE);
set_val(STICK_2_X, 100);
set_val(STICK_2_X, -100);
wait(STRAFE_SHUFFLE/2);
set_val(STICK_2_X, 100);
}
void update_rapidfire() {
printf("<center><font style='color:blue;font-size:14px;',><br>SHOTS PER SECOND: %.04f", sps);
hold_time = 500.0 / sps;
rest_time = hold_time - 1.0;
if(rest_time < 0.0) rest_time = 0.0;
return;
}
void update_anti_recoil(){
printf("<center><font style='color:red;font-size:14px;',><br>VERTICAL RECOIL COMPENSATION: %.04f", ARecoil_V);
printf("<center><font style='color:brown;font-size:14px;',><br>HORIZONTAL RECOIL COMPENSATION: %.04f", ARecoil_H);
printf("<center><font style='color:red;font-size:14px;',><br>VERTICAL RECOIL COMPENSATION 2: %.04f", ARecoil_V2);
printf("<center><font style='color:brown;font-size:14px;',><br>HORIZONTAL RECOIL COMPENSATION 2: %.04f", ARecoil_H2);
return;
}
int irand(int vmin, int vmax) {
return(((int)(rand() * (fix32)(vmax + 1 - vmin))) + vmin);
}
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,clamp(MinARecoilToApply + MovementARecoilToApply + get_val(AxisToApply),-100.00,100.00 - MinARecoilToApply));
}
-
Muex - Staff Sergeant
- Posts: 11
- Joined: Wed Jun 05, 2019 2:44 am
Re: Possible script combine
to answer your question no i can go and try the mod pack . When i first started getting into this it was wayy to overwhelming. so ill try it and get back.... the reason i tried the "#1 script and liked it was because it keeps me from having to use my heavy clunky gg502. i can use my fk1+ mouse and play comfy while being able to use my nav stick to a better extent.
-
Muex - Staff Sergeant
- Posts: 11
- Joined: Wed Jun 05, 2019 2:44 am
16 posts
• Page 1 of 2 • 1, 2
Return to GPC2 Script Programming
Who is online
Users browsing this forum: No registered users and 151 guests