help to fix error please
5 posts
• Page 1 of 1
help to fix error please
- Code: Select all
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | |U|S|E|R| |C|O|N|F|I|G|U|R|A|T|I|O|N| | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
//---------------------------/ START USER CONFIG---------------------------------------*/
int IN_GAME_SENS=11; // FILL OUT THE IN_GAME_STICK SENSITIVITY YOU ARE USING
define S__L=0; // FILL OUT YOUR STICK LAYOUT (SEE LIST BELOW)
define B__L=0; // FILL OUT YOUR BUTTON LAYOUT (SEE LIST BELOW)
define Black_Out=TRUE; // IF YOU WANT TO USE THIS SCRIPT FOR MULTIPLAYER SET "FALSE"
define FIRE__AND_HEAL=TRUE; // AUTO HEAL - after firing your weapon (only when ADS/FIRE are unpressed)
define EASY__MELEE=FALSE; // MELEE SUPER FAST WITH LEFT STICK CLICK (FOR TACTICAL BTN LAYOUTS ONLY)
define EASY__SLIDE_DROP=TRUE; // TAP CROUCH/PRONE BTN TO PRONE/EASY SLIDE
define RELOAD__TIME=1800; // SET LONGEST RELOAD TIME FOR YOUR CLASSES
define ZOOM_FUNCTION=TRUE; // IF YOU WANT TO SWITCH OFF THE ZOOM SENS FUNCTION CHANGE TO "FALSE"
define AIM__CORRECT=TRUE; // RECOMENDED TO SET ALL SENSITIVITY SETTINGS IN THE GAME TO DEFAULT AND
// LET THE SCRIPT CONTROL YOU SENSITIVITY
/*
STICK LAYOUTS (S__L):
DEFAULT = 0;
SOUTHPAW = 1;
LEGACY = 2;
LEGACY_SOUTHPAW = 3;
BUTTON LAYOUTS (B__L):
DEFAULT = 0;
TACTICAL = 1;
LEFTY = 2;
NOM4D = 3;
CHARLIE = 4;
ONE_HAND_GUNSLINGER = 5;
BUMPER_JUMPER = 6;
BUMPER_JUMPER_TACTICAL = 7;
STICK_AND_MOVE = 8;
DEFAULT_SWAP = 9;
TACTICAL_SWAP = 10;
LEFTY_SWAP = 11;
NOM4D_SWAP = 12;
CHARLIE_SWAP = 13;
ONE_HAND_GUNSLINGER_SWAP= 14;
BUMPER_JUMPER_SWAP = 15;
BUMPER_JUMPER_TACT_SWAP = 16;
STICK_AND_MOVE_SWAP = 17;
---------------------------/ END USER CONFIG-----------------------------------------*/
const byte BTTN[][] = {
{4,7,8,6,3,18,19,5},
{4,7,8,6,3,5,19,18},
{7,4,5,3,6,18,19,8},
{4,6,8,6,7,18,19,5},
{4,3,8,6,7,18,19,5},
{6,7,8,3,4,18,19,5},
{4,7,8,19,3,18,6,5},
{4,7,8,19,3,5,6,18},
{4,7,8,6,3,18,5,19},
{3,6,8,7,4,18,19,5},
{3,6,8,7,4,5,19,18},
{6,3,5,4,7,18,19,8},
{3,7,8,7,6,18,19,5},
{3,4,8,7,6,18,19,5},
{7,6,8,4,3,18,19,5},
{3,6,8,19,4,18,7,5},
{3,6,8,19,4,5,7,18},
{3,6,8,7,4,18,5,19}
};
const byte STCK[][] = {
{12,11,9,10},
{10,9,11,12},
{12,9,11,10},
{10,11,9,12}
};
const byte LDS[][] = {
{0,0,0,0},
{2,0,0,0},
{0,2,0,0},
{0,0,2,0},
{0,0,0,2},
{2,0,2,0},
{0,2,2,0},
{2,2,2,2}
};
define STCK_1= 1;
define STCK_2= 2;
define STCK_3= 3;
define STCK_4= 4;
define BTTN_1= 1;
define BTTN_2= 2;
define BTTN_3= 3;
define BTTN_4= 4;
define BTTN_5= 5;
define BTTN_6= 6;
define BTTN_7= 7;
define BTTN_8= 8;
define BTTN_9= 9;
define BTTN_10= 10;
define BTTN_11= 11;
define BTTN_12= 12;
define BTTN_13= 13;
define BTTN_14= 14;
define BTTN_15= 15;
define BTTN_16= 16;
define BTTN_17= 17;
define BTTN_18= 18;
int qy, qx, zx, zq, f, a, s, l, t, p, j, m;
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | |L|E|D|S| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
define OFF = 0;
define Blue = 1;
define Red = 2;
define Green = 3;
define Pink = 4;
define Skyblue = 5;
define Yellow = 6;
define White = 7;
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |V|A|R|I|A|B|L|E|S| | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
int hold_time;
int rest_time;
int RF_KS=FALSE;
int rumble = -1;
int rumble_t;
int ADS_SENS, GEN_SENS=100, ADS_FIRE_SENS, Use_sens;
int NO__RECOIL__Y;
int anti_recoil;
int b_reload;
int A__R;
int R__O__F=15; // RAPID FIRE FIRE RATE
int Zoom=FALSE;
int ZOOM_SENS;
int pressed;
int ZOOM_sens=TRUE;
int d_tap;
int first_time=1;
int R2F_K2S=FALSE;
int PrimaryWeapon=FALSE;
int Heal_Time;
int Script_OFF= FALSE;
init {
//--ANTI RECOIL /--------------------------------------
NO__RECOIL__Y = get_pvar(SPVAR_1,-100,100, 15);
first_time=get_pvar(SPVAR_2, 0, 1, 1);
ADS_SENS=105-(IN_GAME_SENS*2);
ADS_FIRE_SENS=100-(IN_GAME_SENS*2);
ZOOM_SENS=95-(IN_GAME_SENS*2);
}
main{
qy = STCK[S__L][0];
qx = STCK[S__L][1];
zx = STCK[S__L][2];
zq = STCK[S__L][3];
f = BTTN[B__L][0];
a = BTTN[B__L][1];
s = BTTN[B__L][2];
t = BTTN[B__L][3];
l = BTTN[B__L][4];
p = BTTN[B__L][5];
j = BTTN[B__L][6];
m = BTTN[B__L][7];
if (get_val (14)&& (event_press (18) || event_press(17)|| event_press(j) )) combo_run (BLOCK_SCRIPT);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |R|E|S|E|T| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(event_release(20))
{
combo_stop (BLOCK_SCRIPT); combo_run (RELOAD_END); Script_OFF = FALSE;
}
if (Script_OFF == FALSE)
{
if (Black_Out == TRUE) Heal_Time = 4000;
else Heal_Time = 40;
if (first_time == 1)
{
RESET_Defaults();
rumble = 1;
}
if (ZOOM_FUNCTION && !get_val (t)) {
if(get_val (l))
{
if (event_press(l))
{
if (d_tap)
{
combo_run (zoom_sens_KS);
}
}
}
if(event_press(l))
{
if (!d_tap)
{
d_tap = 350;
}
}
if(d_tap)
d_tap -= 10;
if (ZOOM_sens && !get_val (t)){
//--rb pressed start timer
if (event_press(l))
pressed = 150;
//--countdown
if(pressed) {
pressed -= 10;
if(event_release(l)) {
Zoom = TRUE;
rumble = 1;
}
if(get_val(l))
set_val(l,0)
}
else if(get_val(l))
Zoom = FALSE;
}
if (event_release (a)){
if (Zoom){
Zoom = FALSE;
rumble = 0; }
}
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | |M|E|N|U| |A|D|S| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(event_press(1) && get_val (a))
{
RESET_Defaults();
rumble = 1;
}
if(get_val(a))
{
//--FIRE MODS OFF
if(event_press(14))
{//D-pad DOWN
PrimaryWeapon = TRUE
RF_KS=FALSE;
rumble = 0;
A__R=FALSE;
R2F_K2S=FALSE;
}
//--FIRE MODS OFF // ANTI RECOIL ON
if(event_press(13))
{//D-pad DOWN
PrimaryWeapon = TRUE
RF_KS=FALSE;
rumble = 0;
A__R=TRUE;
R2F_K2S=FALSE;
}
//--RAPID FIRE ON
if(event_press(16))
{//D-pad RIGHT
RF_KS=TRUE;
rumble = 1;
A__R=FALSE;
R2F_K2S=FALSE;
}
//-RF SECONDANRY
if(event_press(15))
{//D-pad LEFT
PrimaryWeapon = TRUE
RF_KS=FALSE;
R2F_K2S=TRUE;
rumble = 1;
A__R=FALSE;
}
}
if(event_release(17)&& get_ptime(17)<300&& R2F_K2S){
if (PrimaryWeapon){rumble = 1;} if (!PrimaryWeapon) {rumble = 0;}
PrimaryWeapon = !PrimaryWeapon;}
if(R2F_K2S){
if (Black_Out == FALSE && event_release(20) && get_ptime(20) > 300|| Black_Out == TRUE && event_release(17)&& get_ptime(17)> 200){ PrimaryWeapon = TRUE; rumble = 0;}
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |T|O|G|G|L|E|S| | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
//--HOLD CIRCLE/B OR HOLD R1/RB
if (get_val(18) || get_val (l))
{//-START
if (event_press(13))
{ NO__RECOIL__Y = NO__RECOIL__Y + 1; combo_run(notify);
}
if (event_press(14))
{NO__RECOIL__Y = NO__RECOIL__Y - 1; combo_run(notify);
}
if (event_press(15))
{ NO__RECOIL__Y = NO__RECOIL__Y - 10; combo_run(notify);
}
if (event_press(16))
{NO__RECOIL__Y = NO__RECOIL__Y + 10; combo_run(notify);
}
if (event_press(1))
{IN_GAME_SENS = IN_GAME_SENS - 1; combo_run(notify);
}
if (event_press(2))
{IN_GAME_SENS = IN_GAME_SENS + 1; combo_run(notify);
}
}//--END
if (get_val(17)) // HOLD TRIANGLE/Y
{
if (event_press(13)) //--D-PAD UP = RATE OF FIRE + 1
{
R__O__F = R__O__F + 1; combo_run(notify);
}
if (event_press(14)) //--D-PAD DOWN = RATE OF FIRE - 1
{
R__O__F = R__O__F - 1; combo_run(notify);
}
if (event_press(15)) //--D-PAD LEFT = RATE OF FIRE - 5
{
R__O__F = R__O__F - 5; combo_run(notify);
}
if (event_press(16)) //--D-PAD RIGHT = RATE OF FIRE + 5
{
R__O__F = R__O__F + 5; combo_run(notify);
}
}
if (R__O__F < 1) R__O__F =1
if (R__O__F > 25) R__O__F =25
if (event_release(18) && get_ptime(18)> 500) save_pvars ();
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |A|N|T|I| |R|E|C|O|I|L| | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if (get_val(a)&& get_val(f) && A__R) combo_run(no___recoil);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |E|A|S|Y| |S|L|I|D|E| | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(EASY__SLIDE_DROP && get_val(p))combo_run(DROP_SHOT);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |T|U|R|B|O| |B|T|N| |A|.|K|.| |H|A|I|R| |T|R|I|G|G|E|R|S| | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
turbo(f);
turbo(a);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |A|I|M| | |C|O|R|R|E|C|T|I|O|N|S| | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(AIM__CORRECT)
{
if (!Zoom)
{
if(get_val(f) && get_val(a))
{
Use_sens = ADS_FIRE_SENS;
}
if(!get_val(f) && !get_val(a))
{
Use_sens = GEN_SENS;
}
if(!get_val(f) && get_val(a))
{
Use_sens = ADS_SENS;
}
}
if(Zoom)
{
if(get_val(a))
{
Use_sens = ZOOM_SENS
}
else
{
Use_sens = GEN_SENS;
}
}
if (Use_sens >100) Use_sens=100;
sensitivity(zx, NOT_USE, Use_sens);
sensitivity(zq, NOT_USE, Use_sens);
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |A|U|T|O| |H|E|A|L| | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(FIRE__AND_HEAL && event_release (f))combo_run (Fire_and_Heal);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |E|A|S|Y| |R|U|N| | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if (/*!easy_run_KS && */!get_val(a)&& get_val(qy) < -25)combo_run (EASY_RUN);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |E|A|S|Y| |M|E|L|E|E| | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if (EASY__MELEE && get_val(s))set_val(m, 100);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |R|A|P|I|D| |F|I|R|E| |&| |J|I|T|T|E|R| | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
*/
hold_time = 500 / R__O__F;
rest_time = hold_time - 20;
if(rest_time < 0) rest_time = 0;
//-- RF PRIMARY
if (RF_KS && get_val(f) || !PrimaryWeapon && R2F_K2S && get_val(f))combo_run (RAPID_FIRE);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |C|A|N|C|E|L| |R|E|L|O|A|D| | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if (b_reload && (event_press(f)||event_press(a))) combo_run(CANCEL_RLD);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |A|I|M| |A|S|S|I|S|T| | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(get_val(a)) combo_run(AA_XY); else combo_stop(AA_XY);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |L|E|D|S|&|R|U|M|B|L|E|&|R|E|C|O|I|L| |R|E|L|E|A|S|E| | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
//f(rumble) combo_run(RUMBLE);
//-----------------------------------------RECOIL RELEASE
if(abs(get_val(zq))> NO__RECOIL__Y + 30)combo_stop(no___recoil);
//-----------------------------------------LEDS
if (NO__RECOIL__Y < 1 || NO__RECOIL__Y > 100 || ADS_SENS >100 || ADS_FIRE_SENS >100)colorLED (Red);
else if (R2F_K2S && !PrimaryWeapon) colorLED (White);
else if (RF_KS && !R2F_K2S) colorLED (White);
else if (!RF_KS && R2F_K2S)colorLED (Pink);
else colorLED (Blue);
//--rumble
if(rumble >= 0) {
if(!rumble_t)
set_rumble(RUMBLE_B,60);
rumble_t += get_rtime();
if(rumble_t == 250)
reset_rumble();
if(rumble_t == 400) {
rumble--;
rumble_t = 0;
}
}
}
}
//--END OF MAIN
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |C|O|M|B|O| |S|E|C|T|I|O|N| | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
combo AA_XY {
set_val(zq,xy_val(zq, 24));
wait(20);
set_val(zx,xy_val(zx, 24));
set_val(qx,xy_val(qx, 24));
wait(20);
set_val(zq,xy_val(zq, 24 * -1));
wait(20);
set_val(zx,xy_val(zx, 24 * -1));
set_val(qx,xy_val(qx, 24 * -1));
wait(20);
}
combo RELOAD_END {
b_reload=TRUE;
wait(RELOAD__TIME);
b_reload=FALSE;
combo_stop (RELOAD_END);
}
combo CANCEL_RLD {
combo_run (notify);
set_val(17, 100);
wait(30);
wait(20);
set_val(17, 100);
wait(30);
wait(20);
b_reload=FALSE;
}
combo Fire_and_Heal {
wait(20);
if (!get_val (a)|| !get_val (f))
set_val(t,100);
wait(Heal_Time); // for black out: change the wait time to the required wait time (4000)
}
combo notify {
set_rumble(RUMBLE_B,100);
wait(80);
reset_rumble();
wait (50);
combo_stop(notify);
}
combo EASY_RUN {
set_val(s,100);
wait(30);
wait(100);
}
combo zoom_sens_KS{
ZOOM_sens = FALSE;
wait (10000);
ZOOM_sens = TRUE;
}
combo RAPID_FIRE {
set_val(f,100);
wait(hold_time);
set_val(f, 0);
wait(rest_time);
}
combo DROP_SHOT{
set_val(p,100);
wait(800);
}
combo no___recoil {
anti_recoil = get_val(zq) + NO__RECOIL__Y;
if (anti_recoil > 100) anti_recoil = 100;
set_val(zq, anti_recoil);
}
combo BLOCK_SCRIPT{
colorLED (OFF);
Script_OFF = TRUE;
wait (30000);
reset_leds ();
Script_OFF = FALSE;
combo_stop (BLOCK_SCRIPT);
}
function turbo(btn) {
if (!get_val(btn)) return;
set_val(btn, 100);
}
function xy_val(f_axis,f_val) {
if(abs(get_val(f_axis)) < 25)
return f_val;
return get_val(f_axis);
}
function RESET_Defaults () {
NO__RECOIL__Y = 15;
first_time = 0;
save_pvars();
}
function save_pvars (){
set_pvar(SPVAR_1 , NO__RECOIL__Y);
set_pvar(SPVAR_2 , first_time);
// rumble (1);
}
function colorLED(Color) {
set_led(LED_1,LDS [Color][0]);
set_led(LED_2,LDS [Color][1]);
set_led(LED_3,LDS [Color][2]);
set_led(LED_4,LDS [Color][3]);
}
-
slippy - Sergeant
- Posts: 6
- Joined: Thu Jun 27, 2019 1:20 pm
Re: help to fix error please
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: help to fix error please
they are different as I only want blackout mode not multiplayer which is the one you've linked to
-
slippy - Sergeant
- Posts: 6
- Joined: Thu Jun 27, 2019 1:20 pm
Re: help to fix error please
Converted:
- Code: Select all
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | |U|S|E|R| |C|O|N|F|I|G|U|R|A|T|I|O|N| | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
*/
data(
// 00: STCK[][]
12,11,9,10,
10,9,11,12,
12,9,11,10,
10,11,9,12,
// 16: LDS[][]
0,0,0,0,
2,0,0,0,
0,2,0,0,
0,0,2,0,
0,0,0,2,
2,0,2,0,
0,2,2,0,
2,2,2,2,
// 48: BTTN[][]
4,7,8,6,3,18,19,5,
4,7,8,6,3,5,19,18,
7,4,5,3,6,18,19,8,
4,6,8,6,7,18,19,5,
4,3,8,6,7,18,19,5,
6,7,8,3,4,18,19,5,
4,7,8,19,3,18,6,5,
4,7,8,19,3,5,6,18,
4,7,8,6,3,18,5,19,
3,6,8,7,4,18,19,5,
3,6,8,7,4,5,19,18,
6,3,5,4,7,18,19,8,
3,7,8,7,6,18,19,5,
3,4,8,7,6,18,19,5,
7,6,8,4,3,18,19,5,
3,6,8,19,4,18,7,5,
3,6,8,19,4,5,7,18,
3,6,8,7,4,18,5,19
);
/*---------------------------/ START USER CONFIG---------------------------------------*/
int IN_GAME_SENS=11; // FILL OUT THE IN_GAME_STICK SENSITIVITY YOU ARE USING
define S__L=0; // FILL OUT YOUR STICK LAYOUT (SEE LIST BELOW)
define B__L=0; // FILL OUT YOUR BUTTON LAYOUT (SEE LIST BELOW)
define Black_Out=TRUE; // IF YOU WANT TO USE THIS SCRIPT FOR MULTIPLAYER SET "FALSE"
define FIRE__AND_HEAL=TRUE; // AUTO HEAL - after firing your weapon (only when ADS/FIRE are unpressed)
define EASY__MELEE=FALSE; // MELEE SUPER FAST WITH LEFT STICK CLICK (FOR TACTICAL BTN LAYOUTS ONLY)
define EASY__SLIDE_DROP=TRUE; // TAP CROUCH/PRONE BTN TO PRONE/EASY SLIDE
define RELOAD__TIME=1800; // SET LONGEST RELOAD TIME FOR YOUR CLASSES
define ZOOM_FUNCTION=TRUE; // IF YOU WANT TO SWITCH OFF THE ZOOM SENS FUNCTION CHANGE TO "FALSE"
define AIM__CORRECT=TRUE; // RECOMENDED TO SET ALL SENSITIVITY SETTINGS IN THE GAME TO DEFAULT AND
// LET THE SCRIPT CONTROL YOU SENSITIVITY
/*
STICK LAYOUTS (S__L):
DEFAULT = 0;
SOUTHPAW = 1;
LEGACY = 2;
LEGACY_SOUTHPAW = 3;
BUTTON LAYOUTS (B__L):
DEFAULT = 0;
TACTICAL = 1;
LEFTY = 2;
NOM4D = 3;
CHARLIE = 4;
ONE_HAND_GUNSLINGER = 5;
BUMPER_JUMPER = 6;
BUMPER_JUMPER_TACTICAL = 7;
STICK_AND_MOVE = 8;
DEFAULT_SWAP = 9;
TACTICAL_SWAP = 10;
LEFTY_SWAP = 11;
NOM4D_SWAP = 12;
CHARLIE_SWAP = 13;
ONE_HAND_GUNSLINGER_SWAP= 14;
BUMPER_JUMPER_SWAP = 15;
BUMPER_JUMPER_TACT_SWAP = 16;
STICK_AND_MOVE_SWAP = 17;
---------------------------/ END USER CONFIG-----------------------------------------*/
define STCK_1= 1;
define STCK_2= 2;
define STCK_3= 3;
define STCK_4= 4;
define BTTN_1= 1;
define BTTN_2= 2;
define BTTN_3= 3;
define BTTN_4= 4;
define BTTN_5= 5;
define BTTN_6= 6;
define BTTN_7= 7;
define BTTN_8= 8;
define BTTN_9= 9;
define BTTN_10= 10;
define BTTN_11= 11;
define BTTN_12= 12;
define BTTN_13= 13;
define BTTN_14= 14;
define BTTN_15= 15;
define BTTN_16= 16;
define BTTN_17= 17;
define BTTN_18= 18;
int qy, qx, zx, zq, f, a, s, l, t, p, j, m;
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | |L|E|D|S| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
define OFF = 0;
define Blue = 1;
define Red = 2;
define Green = 3;
define Pink = 4;
define Skyblue = 5;
define Yellow = 6;
define White = 7;
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |V|A|R|I|A|B|L|E|S| | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
int hold_time;
int rest_time;
int RF_KS=FALSE;
int rumble = -1;
int rumble_t;
int ADS_SENS, GEN_SENS=100, ADS_FIRE_SENS, Use_sens;
int NO__RECOIL__Y;
int anti_recoil;
int b_reload;
int A__R;
int R__O__F=15; // RAPID FIRE FIRE RATE
int Zoom=FALSE;
int ZOOM_SENS;
int pressed;
int ZOOM_sens=TRUE;
int d_tap;
int first_time=1;
int R2F_K2S=FALSE;
int PrimaryWeapon=FALSE;
int Heal_Time;
int Script_OFF= FALSE;
init {
//--ANTI RECOIL /--------------------------------------
NO__RECOIL__Y = get_pvar(SPVAR_1,-100,100, 15);
first_time=get_pvar(SPVAR_2, 0, 1, 1);
ADS_SENS=105-(IN_GAME_SENS*2);
ADS_FIRE_SENS=100-(IN_GAME_SENS*2);
ZOOM_SENS=95-(IN_GAME_SENS*2);
}
main{
qy = dbyte(S__L+0);
qx = dbyte(S__L+1);
zx = dbyte(S__L+2);
zq = dbyte(S__L+3);
f = dbyte(B__L+48);
a = dbyte(B__L+49);
s = dbyte(B__L+50);
t = dbyte(B__L+51);
l = dbyte(B__L+52);
p = dbyte(B__L+53);
j = dbyte(B__L+54);
m = dbyte(B__L+55);
if (get_val (14)&& (event_press (18) || event_press(17)|| event_press(j) )) combo_run (BLOCK_SCRIPT);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |R|E|S|E|T| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(event_release(20))
{
combo_stop (BLOCK_SCRIPT); combo_run (RELOAD_END); Script_OFF = FALSE;
}
if (Script_OFF == FALSE)
{
if (Black_Out == TRUE) Heal_Time = 4000;
else Heal_Time = 40;
if (first_time == 1)
{
RESET_Defaults();
rumble = 1;
}
if (ZOOM_FUNCTION && !get_val (t)) {
if(get_val (l))
{
if (event_press(l))
{
if (d_tap)
{
combo_run (zoom_sens_KS);
}
}
}
if(event_press(l))
{
if (!d_tap)
{
d_tap = 350;
}
}
if(d_tap)
d_tap = d_tap-10;
if (ZOOM_sens && !get_val (t)){
//--rb pressed start timer
if (event_press(l))
pressed = 150;
//--countdown
if(pressed) {
pressed = pressed-10;
if(event_release(l)) {
Zoom = TRUE;
rumble = 1;
}
if(get_val(l))
set_val(l,0)
}
else if(get_val(l))
Zoom = FALSE;
}
if (event_release (a)){
if (Zoom){
Zoom = FALSE;
rumble = 0; }
}
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | |M|E|N|U| |A|D|S| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(event_press(1) && get_val (a))
{
RESET_Defaults();
rumble = 1;
}
if(get_val(a))
{
//--FIRE MODS OFF
if(event_press(14))
{//D-pad DOWN
PrimaryWeapon = TRUE
RF_KS=FALSE;
rumble = 0;
A__R=FALSE;
R2F_K2S=FALSE;
}
//--FIRE MODS OFF // ANTI RECOIL ON
if(event_press(13))
{//D-pad DOWN
PrimaryWeapon = TRUE
RF_KS=FALSE;
rumble = 0;
A__R=TRUE;
R2F_K2S=FALSE;
}
//--RAPID FIRE ON
if(event_press(16))
{//D-pad RIGHT
RF_KS=TRUE;
rumble = 1;
A__R=FALSE;
R2F_K2S=FALSE;
}
//-RF SECONDANRY
if(event_press(15))
{//D-pad LEFT
PrimaryWeapon = TRUE
RF_KS=FALSE;
R2F_K2S=TRUE;
rumble = 1;
A__R=FALSE;
}
}
if(event_release(17)&& get_ptime(17)<300&& R2F_K2S){
if (PrimaryWeapon){rumble = 1;} if (!PrimaryWeapon) {rumble = 0;}
PrimaryWeapon = !PrimaryWeapon;}
if(R2F_K2S){
if (Black_Out == FALSE && event_release(20) && get_ptime(20) > 300|| Black_Out == TRUE && event_release(17)&& get_ptime(17)> 200){ PrimaryWeapon = TRUE; rumble = 0;}
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |T|O|G|G|L|E|S| | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
//--HOLD CIRCLE/B OR HOLD R1/RB
if (get_val(18) || get_val (l))
{//-START
if (event_press(13))
{ NO__RECOIL__Y = NO__RECOIL__Y + 1; combo_run(notify);
}
if (event_press(14))
{NO__RECOIL__Y = NO__RECOIL__Y - 1; combo_run(notify);
}
if (event_press(15))
{ NO__RECOIL__Y = NO__RECOIL__Y - 10; combo_run(notify);
}
if (event_press(16))
{NO__RECOIL__Y = NO__RECOIL__Y + 10; combo_run(notify);
}
if (event_press(1))
{IN_GAME_SENS = IN_GAME_SENS - 1; combo_run(notify);
}
if (event_press(2))
{IN_GAME_SENS = IN_GAME_SENS + 1; combo_run(notify);
}
}//--END
if (get_val(17)) // HOLD TRIANGLE/Y
{
if (event_press(13)) //--D-PAD UP = RATE OF FIRE + 1
{
R__O__F = R__O__F + 1; combo_run(notify);
}
if (event_press(14)) //--D-PAD DOWN = RATE OF FIRE - 1
{
R__O__F = R__O__F - 1; combo_run(notify);
}
if (event_press(15)) //--D-PAD LEFT = RATE OF FIRE - 5
{
R__O__F = R__O__F - 5; combo_run(notify);
}
if (event_press(16)) //--D-PAD RIGHT = RATE OF FIRE + 5
{
R__O__F = R__O__F + 5; combo_run(notify);
}
}
if (R__O__F < 1) R__O__F =1
if (R__O__F > 25) R__O__F =25
if (event_release(18) && get_ptime(18)> 500) save_pvars ();
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |A|N|T|I| |R|E|C|O|I|L| | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if (get_val(a)&& get_val(f) && A__R) combo_run(no___recoil);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |E|A|S|Y| |S|L|I|D|E| | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(EASY__SLIDE_DROP && get_val(p))combo_run(DROP_SHOT);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |T|U|R|B|O| |B|T|N| |A|.|K|.| |H|A|I|R| |T|R|I|G|G|E|R|S| | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
turbo(f);
turbo(a);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |A|I|M| | |C|O|R|R|E|C|T|I|O|N|S| | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(AIM__CORRECT)
{
if (!Zoom)
{
if(get_val(f) && get_val(a))
{
Use_sens = ADS_FIRE_SENS;
}
if(!get_val(f) && !get_val(a))
{
Use_sens = GEN_SENS;
}
if(!get_val(f) && get_val(a))
{
Use_sens = ADS_SENS;
}
}
if(Zoom)
{
if(get_val(a))
{
Use_sens = ZOOM_SENS
}
else
{
Use_sens = GEN_SENS;
}
}
if (Use_sens >100) Use_sens=100;
sensitivity(zx, NOT_USE, Use_sens);
sensitivity(zq, NOT_USE, Use_sens);
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |A|U|T|O| |H|E|A|L| | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(FIRE__AND_HEAL && event_release (f))combo_run (Fire_and_Heal);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |E|A|S|Y| |R|U|N| | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if (/*!easy_run_KS && */!get_val(a)&& get_val(qy) < -25)combo_run (EASY_RUN);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |E|A|S|Y| |M|E|L|E|E| | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if (EASY__MELEE && get_val(s))set_val(m, 100);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |R|A|P|I|D| |F|I|R|E| |&| |J|I|T|T|E|R| | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
*/
hold_time = 500 / R__O__F;
rest_time = hold_time - 20;
if(rest_time < 0) rest_time = 0;
//-- RF PRIMARY
if (RF_KS && get_val(f) || !PrimaryWeapon && R2F_K2S && get_val(f))combo_run (RAPID_FIRE);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |C|A|N|C|E|L| |R|E|L|O|A|D| | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if (b_reload && (event_press(f)||event_press(a))) combo_run(CANCEL_RLD);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |A|I|M| |A|S|S|I|S|T| | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(get_val(a)) combo_run(AA_XY); else combo_stop(AA_XY);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |L|E|D|S|&|R|U|M|B|L|E|&|R|E|C|O|I|L| |R|E|L|E|A|S|E| | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
//f(rumble) combo_run(RUMBLE);
//-----------------------------------------RECOIL RELEASE
if(abs(get_val(zq))> NO__RECOIL__Y + 30)combo_stop(no___recoil);
//-----------------------------------------LEDS
if (NO__RECOIL__Y < 1 || NO__RECOIL__Y > 100 || ADS_SENS >100 || ADS_FIRE_SENS >100)colorLED (Red);
else if (R2F_K2S && !PrimaryWeapon) colorLED (White);
else if (RF_KS && !R2F_K2S) colorLED (White);
else if (!RF_KS && R2F_K2S)colorLED (Pink);
else colorLED (Blue);
//--rumble
if(rumble >= 0) {
if(!rumble_t)
set_rumble(RUMBLE_B,60);
rumble_t = rumble_t+get_rtime();
if(rumble_t == 250)
reset_rumble();
if(rumble_t == 400) {
rumble--;
rumble_t = 0;
}
}
}
}
//--END OF MAIN
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |C|O|M|B|O| |S|E|C|T|I|O|N| | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
combo AA_XY {
set_val(zq,xy_val(zq, 24));
wait(20);
set_val(zx,xy_val(zx, 24));
set_val(qx,xy_val(qx, 24));
wait(20);
set_val(zq,xy_val(zq, 24 * -1));
wait(20);
set_val(zx,xy_val(zx, 24 * -1));
set_val(qx,xy_val(qx, 24 * -1));
wait(20);
}
combo RELOAD_END {
b_reload=TRUE;
wait(RELOAD__TIME);
b_reload=FALSE;
combo_stop (RELOAD_END);
}
combo CANCEL_RLD {
combo_run (notify);
set_val(17, 100);
wait(30);
wait(20);
set_val(17, 100);
wait(30);
wait(20);
b_reload=FALSE;
}
combo Fire_and_Heal {
wait(20);
if (!get_val (a)|| !get_val (f))
set_val(t,100);
wait(Heal_Time); // for black out: change the wait time to the required wait time (4000)
}
combo notify {
set_rumble(RUMBLE_B,100);
wait(80);
reset_rumble();
wait (50);
combo_stop(notify);
}
combo EASY_RUN {
set_val(s,100);
wait(30);
wait(100);
}
combo zoom_sens_KS{
ZOOM_sens = FALSE;
wait (10000);
ZOOM_sens = TRUE;
}
combo RAPID_FIRE {
set_val(f,100);
wait(hold_time);
set_val(f, 0);
wait(rest_time);
}
combo DROP_SHOT{
set_val(p,100);
wait(800);
}
combo no___recoil {
anti_recoil = get_val(zq) + NO__RECOIL__Y;
if (anti_recoil > 100) anti_recoil = 100;
set_val(zq, anti_recoil);
}
combo BLOCK_SCRIPT{
colorLED (OFF);
Script_OFF = TRUE;
wait (30000);
reset_leds ();
Script_OFF = FALSE;
combo_stop (BLOCK_SCRIPT);
}
function turbo(btn) {
if (!get_val(btn)) return;
set_val(btn, 100);
}
function xy_val(f_axis,f_val) {
if(abs(get_val(f_axis)) < 25)
return f_val;
return get_val(f_axis);
}
function RESET_Defaults () {
NO__RECOIL__Y = 15;
first_time = 0;
save_pvars();
}
function save_pvars (){
set_pvar(SPVAR_1 , NO__RECOIL__Y);
set_pvar(SPVAR_2 , first_time);
// rumble (1);
}
function colorLED(Color) {
set_led(LED_1,dbyte(Color+16));
set_led(LED_2,dbyte(Color+17));
set_led(LED_3,dbyte(Color+18));
set_led(LED_4,dbyte(Color+19));
}
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
5 posts
• Page 1 of 1
Return to GPC1 Script Programming
Who is online
Users browsing this forum: No registered users and 113 guests