will not build in titan 1
5 posts
• Page 1 of 1
will not build in titan 1
can someone help me make this work for titan 1 please please please
- Code: Select all
/* V6.2 Perfect Aim Edition - the #1 COD Script for COD Multi Player
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | |U|S|E|R| |C|O|N|F|I|G|U|R|A|T|I|O|N| | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
//-------------------------------/ START USER CONFIG \-------------------------------*/
int IN_GAME_SENS=8; // FILL OUT THE IN_GAME_STICK SENSITIVITY YOU ARE USING
define AIM_ASSIST=TRUE; // SET TO FALSE TO SWITCH OFF AIM ASSIST
define FIRE__AND_HEAL=TRUE; // AUTO HEAL - after firing your weapon (only when ADS/FIRE are unpressed)
define EASY__MELEE=TRUE; // 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 CNL_RELOAD=TRUE; // SET TO FALSE IF YOU WANT TO REMOVE CANCEL RELOAD
define KS__STREAK=TRUE; // DEACTIVATES THE D-PAD SWITCH WHEN "FALSE"
define KS__SPECIAL=TRUE; // DEACTIVATES THE D-PAD SWITCH WHEN "FALSE"
define AIM__CORRECT=TRUE; // SET ALL SENSITIVITY SETTINGS IN THE GAME TO DEFAULT, LET THE SCRIPT CONTROL YOUR
// SENSITIVITY
define ZOOM_FUNCTION=TRUE; // IF YOU WANT TO SWITCH OFF THE ZOOM SENS FUNCTION WITH R1/RB CHANGE TO "FALSE"
/*
BUTTONS AND STICKS: TACTICAL BUTTON LAY OUT IS USED BY ME, SO CHANGE IF YOU PLAY WITH A DIFFERENT LAYOUT
JUST LOOK UP THE LAYOUT YOU USE AND CHECK IF THE NUMBERS CORRESPOND TO THE RED NUMBERS ON THE LEFT. THOSE
NUMBERS WHO NOT CORRESPOND YOU CHANGE.
*/
//--STICKS DEFAULT SOUTHPAH LEGACY LEGACY_SOUTHPAH
define LY=12; // 12 10 12 10
define LX=11; // 11 9 9 11
define RX=9; // 9 11 11 9
define RY=10; // 10 12 10 12
/*
//--BUTTONS DFLT TACT LEFT NOM4 CHAR 1HAN BUMP BJ_T STCK */
define FIRE=4; // 4 4 7 4 4 6 4 4 4
define ADS=7; // 7 7 4 6 3 7 7 7 7
define SPRINT=8; // 8 8 5 8 8 8 8 8 8
define TACTICAL=6; // 6 6 3 6 6 3 19 19 6
define LETHAL=3; // 3 3 6 7 7 4 3 3 3
define PRONE=5; // 18 5 18 18 18 18 18 5 18
define JUMP=19; // 19 19 19 19 19 19 6 6 5
define MELEE=18; // 5 18 8 5 5 5 5 18 19
/*IF SWAPPED
DFLT TACT LEFT NOM4 CHAR 1HAN BUMP BJ_T STCK
define FIRE 3 3 6 3 3 7 3 3 3
define ADS 6 6 3 7 4 6 6 6 7
define SPRINT 8 8 5 8 8 8 8 8 8
define TACTICAL 7 7 4 7 7 4 19 19 7
define LETHAL 4 4 7 6 6 3 4 4 4
define PRONE 18 5 18 18 18 18 18 5 18
define JUMP 19 19 19 19 19 19 7 7 5
define MELEE 5 18 8 5 5 5 5 18 19
---------------------------/ END USER CONFIG \-----------------------------------------
! NO CHANGES AFTER HERE !
*/
define HOME=0; //PS4_PS / XB1_XBOX
define VIEW_reset=1; //PS4_SHARE / XB1_VIEW
define START=2; //PS4_OPTIONS / XB1_MENU
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=17; //PS4_TRIANGLE / XB1_Y
define RELOAD=20; //PS4_SQUARE / XB1_X
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | |L|E|D|S| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
define LED_OFF = 0;
int Blue = 1;
int Red = 2;
int Green = 3;
//int Pink = 4;
//int Skyblue = 5;
//int Yellow = 6;
int White = 4;
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | |D|A|T|A| | | | | | | | | | | | | | | | | | | | | | || | | | | | || | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
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}
};
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |V|A|R|I|A|B|L|E|S| | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
int RF_KS=FALSE;
int A__A=FALSE;
int rumble = -1;
int rumble_t;
int Fire_KS=FALSE;
int fire__mods_ON=TRUE;
int ADS_SENS, GEN_SENS=100, ADS_FIRE_SENS, Use_sens;
int b_reload;
int A__R;
int R__O__F=15;// RAPID FIRE FIRE RATE
int KILL_SWITCHES=TRUE;
int Zoom=FALSE;
int ZOOM_SENS;
int pressed;
int ZOOM_sens=TRUE;
int d_tap;
int R2F_K2S=FALSE;
int PrimaryWeapon=TRUE;
int Heal_Time=40;
int first_time=1;
int record_time=FALSE;
int RELOAD__TIME_1=1600;
int RELOAD__TIME_2=1600;
int RELOAD__TIME;
int ar,ar_y = 10,ar_x = -6;
int hold_time;
int rest_time;
init {
first_time = get_pvar(SPVAR_16, 0, 1, 1);
RELOAD__TIME_1 = get_pvar(SPVAR_2, 0, 4000, 0);
RELOAD__TIME_2 = get_pvar(SPVAR_3, 0, 4000, 0);
ar_y = get_pvar(SPVAR_4,-100,100,10);
ar_x = get_pvar(SPVAR_5,-100,100,-6);
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |M|A|I|N| |B|L|O|C|K| |S|T|A|R|T|S| |H|E|R|E| | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
main {
if (first_time == 1){RESET_Defaults();}
set_val(30,ar);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |R|E|C|O|R|D| |T|I|M|E| | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if (get_val (14))
{
if (event_press(20))
if(d_tap)
{
record_time = TRUE;
}else
d_tap = 300;
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |R|E|S|E|T| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(event_release(RELOAD))
{
if (combo_running (NO__FIRE_MOD))
{
fire__mods_ON=TRUE; combo_stop (NO__FIRE_MOD); rumble = 0; reset_leds ();
}
if (!combo_running (NO__FIRE_MOD))
{
combo_run (RELOAD_END);
}
}
if (ZOOM_FUNCTION && !get_val (6))
{//------------------------------start ZOOM_FUNCTION
if(get_val (LETHAL))
{
if (event_press(LETHAL))
{
if (d_tap)
{
combo_run (zoom_sens_KS);
}
}
}
if(event_press(LETHAL))
{
if (!d_tap)
{
d_tap = 350;
}
}
if(d_tap)
d_tap -= 10;
if (ZOOM_sens && !get_val (6))
{
if (event_press(LETHAL))
pressed = 150;
if(pressed)
{
pressed -= 10;
if(event_release(LETHAL))
{
Zoom = TRUE; rumble = 1;
}
if(get_val(LETHAL))
set_val(LETHAL,0)
}
else if(get_val(LETHAL))
Zoom = FALSE;
}
if (event_release (ADS))
{
if (Zoom)
{
Zoom = FALSE; rumble = 0;
}
}
}//----------------------------end ZOOM_FUNCTION
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | |M|E|N|U| |A|D|S| | | |b|y| |C|r|e|s|c|e|n|s| | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(event_press(VIEW_reset) && get_val (ADS))
{
RESET_Defaults();
}
if(get_val(ADS))
{//----------------------------ADS start
if(event_press(DOWN))
{
PrimaryWeapon = TRUE
RF_KS=FALSE;
rumble = 0;
Fire_KS=FALSE;
// A__A=FALSE;
A__R=FALSE;
R2F_K2S=FALSE;
}
if(event_press(UP))
{
PrimaryWeapon = TRUE
RF_KS=FALSE;
rumble = 0;
Fire_KS=FALSE;
// A__A=FALSE;
A__R=TRUE;
R2F_K2S=FALSE;
}
if(event_press(RIGHT))
{
RF_KS=TRUE;
rumble = 1;
Fire_KS=TRUE;
// A__A=FALSE;
A__R=FALSE;
R2F_K2S=FALSE;
PrimaryWeapon = TRUE
}
if(event_press(LEFT))
{
// A__A = TRUE;
PrimaryWeapon = TRUE
RF_KS=FALSE;
R2F_K2S=TRUE;
Fire_KS=TRUE;
rumble = 1;
A__R=FALSE;
}
if(event_press (2))
{
A__A = !A__A; rumble = 1;
}
set_val (2,0);
if (event_press (0))
{
KILL_SWITCHES=!KILL_SWITCHES; rumble = 1;
}
set_val (0,0);
}//----------------------------ADS end
if(event_press(SW_WEAPON)&& R2F_K2S)
{
PrimaryWeapon = !PrimaryWeapon;
}
if (!PrimaryWeapon && record_time && get_val (14))
RELOAD__TIME_2 = get_ptime(20);
if (PrimaryWeapon && record_time && get_val (14))
RELOAD__TIME_1 = get_ptime(20);
if (record_time==TRUE && event_release (20) && get_val (14))
{
rumble= 0; record_time = FALSE; save_pvars ();
}
if (record_time==FALSE &&R2F_K2S && get_val (20)&& get_ptime(20) > 600)
{
PrimaryWeapon = TRUE; rumble = 0;
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |T|O|G|G|L|E|S| | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if (get_val(18))
{//--START
if (event_press(UP))
{ar_y = ar_y + 1; combo_run(notify);
}
if (event_press(DOWN))
{ar_y = ar_y - 1; combo_run(notify);
}
if (event_press(LEFT))
{ar_x = ar_x - 1; combo_run(notify);
}
if (event_press(RIGHT))
{ar_x = ar_x + 1; 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 (event_release(18) && get_ptime(18)> 500) save_pvars ();
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |A|N|T|I| |R|E|C|O|I|L| | |b|y| |B|a|t|t|s| |&| |C|r|e|s|c|e|n|s| | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(A__R && get_val(FIRE))
{
if(get_rumble(0))
{
ar = get_rumble(0);
if(R2F_K2S || RF_KS)
{
ar /= 2;
}
if(ar < 50 && abs(get_val(RY)) < (ar + ar_y) && abs(get_val(RX)) < (ar + ar_y))
{
set_val(RY,(ar + ar_y));
set_val(RX,ar_x);
}
}
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |E|A|S|Y| |S|L|I|D|E| | | |b|y| |C|r|e|s|c|e|n|s| | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(EASY__SLIDE_DROP && get_val(PRONE))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| | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
deadzone(FIRE,ADS,99,99);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |A|I|M| | |C|O|R|R|E|C|T|I|O|N|S| |b|y| |C|r|e|s|c|e|n|s| | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
ADS_SENS=105-(IN_GAME_SENS*2);
ADS_FIRE_SENS=100-(IN_GAME_SENS*2);
ZOOM_SENS=90-(IN_GAME_SENS*2);
if(AIM__CORRECT)
{
if (!Zoom)
{
if(get_val(FIRE) && get_val(ADS))
{
Use_sens = ADS_FIRE_SENS;
}
if(!get_val(FIRE) && !get_val(ADS))
{
Use_sens = GEN_SENS;
}
if(!get_val(FIRE) && get_val(ADS))
{
Use_sens = ADS_SENS;
}
}
if(Zoom)
{
if(get_val(ADS))
{
Use_sens = ZOOM_SENS
}
else
{
Use_sens = GEN_SENS;
}
}
if (Use_sens >100) Use_sens=100;
sensitivity(RX, NOT_USE, Use_sens);
sensitivity(RY, NOT_USE, Use_sens);
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |A|U|T|O| |H|E|A|L| | | |b|y| |C|r|e|s|c|e|n|s| | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(FIRE__AND_HEAL)
{
if (event_release (FIRE))
{
combo_run (Fire_and_Heal);
}
if (get_val (ADS) || get_val (FIRE))
{
combo_stop (Fire_and_Heal);
}
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |E|A|S|Y| |R|U|N| | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if (/*!easy_run_KS && */!get_val(ADS)&& get_val(LY) < -25)combo_run (EASY_RUN);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |E|A|S|Y| |M|E|L|E|E| | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if (EASY__MELEE && get_val(SPRINT))set_val(MELEE, 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;
if(fire__mods_ON && RF_KS && get_val(FIRE) || !PrimaryWeapon && R2F_K2S && get_val(FIRE))combo_run (RAPID_FIRE);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |A|K|I|M|B|O| |/|A|U|T|O| |A|I|M| | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(A__A && get_val(FIRE)) set_val(ADS,100);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |C|A|N|C|E|L| |R|E|L|O|A|D| |b|y| |C|r|e|s|c|e|n|s| | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if (CNL_RELOAD)
{
if (!PrimaryWeapon)
{
RELOAD__TIME = RELOAD__TIME_2;
}
else if (PrimaryWeapon)
{
RELOAD__TIME = RELOAD__TIME_1;
}
if (b_reload && (event_press(FIRE)||event_press(ADS))) combo_run(CANCEL_RLD);
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |A|I|M| |A|S|S|I|S|T| | | |b|y| |B|a|t|t|s| | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if (AIM_ASSIST)
{
if(get_val(ADS)) combo_run(AA_XY); else combo_stop(AA_XY);
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | |K|I|L|L| |S|W|I|T|C|H| |&| |S|U|P|E|R| |P|W| |S|W|I|T|C|H| |b|y| |C|r|e|s|c|e|n|s
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if (!get_val (18) || (!get_val (19)))
{
if (KS__SPECIAL)
{
if (event_press (UP) && !get_val (ADS))
{
combo_run(SPECIAL);
}
}
if (KS__STREAK)
{
if(event_press (LEFT) && !get_val (ADS))
{
combo_run(KILL);
}
}
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |L|E|D|S|&|R|U|M|B|L|E|&|R|E|C|O|I|L| |R|E|L|E|A|S|E| | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
//-----------------------------------------LEDS
if (ADS_SENS >100 || ADS_FIRE_SENS >100)colorLED (Red);
else if (combo_running(AA_XY))colorLED (Green);
else if (R2F_K2S && !PrimaryWeapon) colorLED (White);
else if (RF_KS && !R2F_K2S) colorLED (White);
else if (!RF_KS && R2F_K2S)colorLED (Blue);
else colorLED (Blue);
//-----------------------------------------RUMBLE
if(rumble >= 0)
{
if(!rumble_t)
set_rumble(1,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(RY,xy_val(RY, 24));
wait(20);
set_val(RX,xy_val(RX, 24));
set_val(LX,xy_val(LX, 24));
wait(20);
set_val(RY,xy_val(RY, 24 * -1));
wait(20);
set_val(RX,xy_val(RX, 24 * -1));
set_val(LX,xy_val(LX, 24 * -1));
wait(20);
}
combo RELOAD_END {
b_reload=TRUE;
wait(RELOAD__TIME);
b_reload=FALSE;
combo_stop (RELOAD_END);
}
combo RAPID_FIRE {
set_val(FIRE,100);
wait(hold_time);
set_val(FIRE, 0);
wait(rest_time);
}
combo CANCEL_RLD {
combo_run (notify);
set_val(SW_WEAPON, 100);
wait(30);
wait(20);
set_val(SW_WEAPON, 100);
wait(30);
wait(20);
b_reload=FALSE;
}
combo Fire_and_Heal {
wait(20);
set_val(TACTICAL,100);
wait(Heal_Time);
}
combo notify {
set_rumble(1,100);
wait(80);
reset_rumble();
wait (50);
combo_stop(notify);
}
combo EASY_RUN {
set_val(SPRINT,100);
wait(30);
wait(100);
}
combo zoom_sens_KS{
ZOOM_sens = FALSE;
KILL_SWITCHES = FALSE;
wait (10000);
ZOOM_sens = TRUE;
KILL_SWITCHES = TRUE;
}
combo SPECIAL {
if (!get_val (17))
set_val(LETHAL,100);
if (!get_val (17))
set_val(TACTICAL,100);
wait(100);
if (Fire_KS==TRUE && !get_val (17)&& KILL_SWITCHES)
combo_run (NO__FIRE_MOD);
wait(40);
}
combo KILL {
if (Fire_KS==TRUE && !get_val (17)&& KILL_SWITCHES)
combo_run (NO__FIRE_MOD);
wait (40);
set_val (SW_WEAPON, 100);
wait(400);
set_val (SW_WEAPON,0);
wait(40);
reset_leds ();
}
combo NO__FIRE_MOD {
fire__mods_ON=FALSE;
combo_run (BLINK_AR);
wait (30000);
fire__mods_ON=TRUE;
combo_stop (BLINK_AR);
}
combo BLINK_AR {
wait(350);
set_rumble(RUMBLE_B, 100);
colorLED(0);
wait(100);
reset_leds ();
reset_rumble ();
wait(50);
}
combo DROP_SHOT{
set_val(PRONE,100);
wait(800);
}
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 () {
ar_y = 10;
ar_x= -6;
RELOAD__TIME_1=1600;
RELOAD__TIME_2=1600;
first_time=0;
save_pvars ();
}
function save_pvars (){
set_pvar(SPVAR_2, RELOAD__TIME_1);
set_pvar(SPVAR_3, RELOAD__TIME_2);
set_pvar(SPVAR_4, ar_y);
set_pvar(SPVAR_5, ar_x);
set_pvar(SPVAR_16, first_time);
rumble = 1;
}
function colorLED(Color_Name) {
set_led(LED_1,LDS [Color_Name][0]);
set_led(LED_2,LDS [Color_Name][1]);
set_led(LED_3,LDS [Color_Name][2]);
set_led(LED_4,LDS [Color_Name][3]);
}
-
kdogg - Private First Class
- Posts: 2
- Joined: Thu Jun 27, 2019 3:29 am
Re: will not build in titan 1
Converted:
- Code: Select all
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | |D|A|T|A| | | | | | | | | | | | | | | | | | | | | | || | | | | | || | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
data (
0,0,0,0,
2,0,0,0,
0,2,0,0,
0,0,2,0,
2,2,2,2
);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | |U|S|E|R| |C|O|N|F|I|G|U|R|A|T|I|O|N| | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
//-------------------------------/ START USER CONFIG \-------------------------------*/
int IN_GAME_SENS=8; // FILL OUT THE IN_GAME_STICK SENSITIVITY YOU ARE USING
define AIM_ASSIST=TRUE; // SET TO FALSE TO SWITCH OFF AIM ASSIST
define FIRE__AND_HEAL=TRUE; // AUTO HEAL - after firing your weapon (only when ADS/FIRE are unpressed)
define EASY__MELEE=TRUE; // 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 CNL_RELOAD=TRUE; // SET TO FALSE IF YOU WANT TO REMOVE CANCEL RELOAD
define KS__STREAK=TRUE; // DEACTIVATES THE D-PAD SWITCH WHEN "FALSE"
define KS__SPECIAL=TRUE; // DEACTIVATES THE D-PAD SWITCH WHEN "FALSE"
define AIM__CORRECT=TRUE; // SET ALL SENSITIVITY SETTINGS IN THE GAME TO DEFAULT, LET THE SCRIPT CONTROL YOUR
// SENSITIVITY
define ZOOM_FUNCTION=TRUE; // IF YOU WANT TO SWITCH OFF THE ZOOM SENS FUNCTION WITH R1/RB CHANGE TO "FALSE"
/*
BUTTONS AND STICKS: TACTICAL BUTTON LAY OUT IS USED BY ME, SO CHANGE IF YOU PLAY WITH A DIFFERENT LAYOUT
JUST LOOK UP THE LAYOUT YOU USE AND CHECK IF THE NUMBERS CORRESPOND TO THE RED NUMBERS ON THE LEFT. THOSE
NUMBERS WHO NOT CORRESPOND YOU CHANGE.
*/
//--STICKS DEFAULT SOUTHPAH LEGACY LEGACY_SOUTHPAH
define LY=12; // 12 10 12 10
define LX=11; // 11 9 9 11
define RX=9; // 9 11 11 9
define RY=10; // 10 12 10 12
/*
//--BUTTONS DFLT TACT LEFT NOM4 CHAR 1HAN BUMP BJ_T STCK */
define FIRE=4; // 4 4 7 4 4 6 4 4 4
define ADS=7; // 7 7 4 6 3 7 7 7 7
define SPRINT=8; // 8 8 5 8 8 8 8 8 8
define TACTICAL=6; // 6 6 3 6 6 3 19 19 6
define LETHAL=3; // 3 3 6 7 7 4 3 3 3
define PRONE=5; // 18 5 18 18 18 18 18 5 18
define JUMP=19; // 19 19 19 19 19 19 6 6 5
define MELEE=18; // 5 18 8 5 5 5 5 18 19
/*IF SWAPPED
DFLT TACT LEFT NOM4 CHAR 1HAN BUMP BJ_T STCK
define FIRE 3 3 6 3 3 7 3 3 3
define ADS 6 6 3 7 4 6 6 6 7
define SPRINT 8 8 5 8 8 8 8 8 8
define TACTICAL 7 7 4 7 7 4 19 19 7
define LETHAL 4 4 7 6 6 3 4 4 4
define PRONE 18 5 18 18 18 18 18 5 18
define JUMP 19 19 19 19 19 19 7 7 5
define MELEE 5 18 8 5 5 5 5 18 19
---------------------------/ END USER CONFIG \-----------------------------------------
! NO CHANGES AFTER HERE !
*/
define HOME=0; //PS4_PS / XB1_XBOX
define VIEW_reset=1; //PS4_SHARE / XB1_VIEW
define START=2; //PS4_OPTIONS / XB1_MENU
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=17; //PS4_TRIANGLE / XB1_Y
define RELOAD=20; //PS4_SQUARE / XB1_X
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | |L|E|D|S| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
define LED_OFF = 0;
int Blue = 1;
int Red = 2;
int Green = 3;
int White = 4;
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |V|A|R|I|A|B|L|E|S| | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
int RF_KS=FALSE;
int A__A=FALSE;
int rumble = -1;
int rumble_t;
int Fire_KS=FALSE;
int fire__mods_ON=TRUE;
int ADS_SENS, GEN_SENS=100, ADS_FIRE_SENS, Use_sens;
int b_reload;
int A__R;
int R__O__F=15;// RAPID FIRE FIRE RATE
int KILL_SWITCHES=TRUE;
int Zoom=FALSE;
int ZOOM_SENS;
int pressed;
int ZOOM_sens=TRUE;
int d_tap;
int R2F_K2S=FALSE;
int PrimaryWeapon=TRUE;
int Heal_Time=40;
int first_time=1;
int record_time=FALSE;
int RELOAD__TIME_1=1600;
int RELOAD__TIME_2=1600;
int RELOAD__TIME;
int ar,ar_y = 10,ar_x = -6;
int hold_time;
int rest_time;
init {
first_time = get_pvar(SPVAR_16, 0, 1, 1);
RELOAD__TIME_1 = get_pvar(SPVAR_2, 0, 4000, 0);
RELOAD__TIME_2 = get_pvar(SPVAR_3, 0, 4000, 0);
ar_y = get_pvar(SPVAR_4,-100,100,10);
ar_x = get_pvar(SPVAR_5,-100,100,-6);
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |M|A|I|N| |B|L|O|C|K| |S|T|A|R|T|S| |H|E|R|E| | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
main {
if (first_time == 1){RESET_Defaults();}
set_val(30,ar);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |R|E|C|O|R|D| |T|I|M|E| | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if (get_val (14))
{
if (event_press(20))
if(d_tap)
{
record_time = TRUE;
}else
d_tap = 300;
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |R|E|S|E|T| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(event_release(RELOAD))
{
if (combo_running (NO__FIRE_MOD))
{
fire__mods_ON=TRUE; combo_stop (NO__FIRE_MOD); rumble = 0; reset_leds ();
}
if (!combo_running (NO__FIRE_MOD))
{
combo_run (RELOAD_END);
}
}
if (ZOOM_FUNCTION && !get_val (6))
{//------------------------------start ZOOM_FUNCTION
if(get_val (LETHAL))
{
if (event_press(LETHAL))
{
if (d_tap)
{
combo_run (zoom_sens_KS);
}
}
}
if(event_press(LETHAL))
{
if (!d_tap)
{
d_tap = 350;
}
}
if(d_tap)
d_tap = d_tap-10;
if (ZOOM_sens && !get_val (6))
{
if (event_press(LETHAL))
pressed = 150;
if(pressed)
{
pressed = pressed-10;
if(event_release(LETHAL))
{
Zoom = TRUE; rumble = 1;
}
if(get_val(LETHAL))
set_val(LETHAL,0)
}
else if(get_val(LETHAL))
Zoom = FALSE;
}
if (event_release (ADS))
{
if (Zoom)
{
Zoom = FALSE; rumble = 0;
}
}
}//----------------------------end ZOOM_FUNCTION
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | |M|E|N|U| |A|D|S| | | |b|y| |C|r|e|s|c|e|n|s| | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(event_press(VIEW_reset) && get_val (ADS))
{
RESET_Defaults();
}
if(get_val(ADS))
{//----------------------------ADS start
if(event_press(DOWN))
{
PrimaryWeapon = TRUE
RF_KS=FALSE;
rumble = 0;
Fire_KS=FALSE;
// A__A=FALSE;
A__R=FALSE;
R2F_K2S=FALSE;
}
if(event_press(UP))
{
PrimaryWeapon = TRUE
RF_KS=FALSE;
rumble = 0;
Fire_KS=FALSE;
// A__A=FALSE;
A__R=TRUE;
R2F_K2S=FALSE;
}
if(event_press(RIGHT))
{
RF_KS=TRUE;
rumble = 1;
Fire_KS=TRUE;
// A__A=FALSE;
A__R=FALSE;
R2F_K2S=FALSE;
PrimaryWeapon = TRUE
}
if(event_press(LEFT))
{
// A__A = TRUE;
PrimaryWeapon = TRUE
RF_KS=FALSE;
R2F_K2S=TRUE;
Fire_KS=TRUE;
rumble = 1;
A__R=FALSE;
}
if(event_press (2))
{
A__A = !A__A; rumble = 1;
}
set_val (2,0);
if (event_press (0))
{
KILL_SWITCHES=!KILL_SWITCHES; rumble = 1;
}
set_val (0,0);
}//----------------------------ADS end
if(event_press(SW_WEAPON)&& R2F_K2S)
{
PrimaryWeapon = !PrimaryWeapon;
}
if (!PrimaryWeapon && record_time && get_val (14))
RELOAD__TIME_2 = get_ptime(20);
if (PrimaryWeapon && record_time && get_val (14))
RELOAD__TIME_1 = get_ptime(20);
if (record_time==TRUE && event_release (20) && get_val (14))
{
rumble= 0; record_time = FALSE; save_pvars ();
}
if (record_time==FALSE &&R2F_K2S && get_val (20)&& get_ptime(20) > 600)
{
PrimaryWeapon = TRUE; rumble = 0;
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |T|O|G|G|L|E|S| | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if (get_val(18))
{//--START
if (event_press(UP))
{ar_y = ar_y + 1; combo_run(notify);
}
if (event_press(DOWN))
{ar_y = ar_y - 1; combo_run(notify);
}
if (event_press(LEFT))
{ar_x = ar_x - 1; combo_run(notify);
}
if (event_press(RIGHT))
{ar_x = ar_x + 1; 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 (event_release(18) && get_ptime(18)> 500) save_pvars ();
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |A|N|T|I| |R|E|C|O|I|L| | |b|y| |B|a|t|t|s| |&| |C|r|e|s|c|e|n|s| | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(A__R && get_val(FIRE))
{
if(get_rumble(0))
{
ar = get_rumble(0);
if(R2F_K2S || RF_KS)
{
ar = ar / 2;
}
if(ar < 50 && abs(get_val(RY)) < (ar + ar_y) && abs(get_val(RX)) < (ar + ar_y))
{
set_val(RY,(ar + ar_y));
set_val(RX,ar_x);
}
}
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |E|A|S|Y| |S|L|I|D|E| | | |b|y| |C|r|e|s|c|e|n|s| | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(EASY__SLIDE_DROP && get_val(PRONE))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| | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
deadzone(FIRE,ADS,99,99);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |A|I|M| | |C|O|R|R|E|C|T|I|O|N|S| |b|y| |C|r|e|s|c|e|n|s| | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
ADS_SENS=105-(IN_GAME_SENS*2);
ADS_FIRE_SENS=100-(IN_GAME_SENS*2);
ZOOM_SENS=90-(IN_GAME_SENS*2);
if(AIM__CORRECT)
{
if (!Zoom)
{
if(get_val(FIRE) && get_val(ADS))
{
Use_sens = ADS_FIRE_SENS;
}
if(!get_val(FIRE) && !get_val(ADS))
{
Use_sens = GEN_SENS;
}
if(!get_val(FIRE) && get_val(ADS))
{
Use_sens = ADS_SENS;
}
}
if(Zoom)
{
if(get_val(ADS))
{
Use_sens = ZOOM_SENS
}
else
{
Use_sens = GEN_SENS;
}
}
if (Use_sens >100) Use_sens=100;
sensitivity(RX, NOT_USE, Use_sens);
sensitivity(RY, NOT_USE, Use_sens);
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |A|U|T|O| |H|E|A|L| | | |b|y| |C|r|e|s|c|e|n|s| | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(FIRE__AND_HEAL)
{
if (event_release (FIRE))
{
combo_run (Fire_and_Heal);
}
if (get_val (ADS) || get_val (FIRE))
{
combo_stop (Fire_and_Heal);
}
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |E|A|S|Y| |R|U|N| | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if (/*!easy_run_KS && */!get_val(ADS)&& get_val(LY) < -25)combo_run (EASY_RUN);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |E|A|S|Y| |M|E|L|E|E| | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if (EASY__MELEE && get_val(SPRINT))set_val(MELEE, 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;
if(fire__mods_ON && RF_KS && get_val(FIRE) || !PrimaryWeapon && R2F_K2S && get_val(FIRE))combo_run (RAPID_FIRE);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |A|K|I|M|B|O| |/|A|U|T|O| |A|I|M| | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if(A__A && get_val(FIRE)) set_val(ADS,100);
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |C|A|N|C|E|L| |R|E|L|O|A|D| |b|y| |C|r|e|s|c|e|n|s| | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if (CNL_RELOAD)
{
if (!PrimaryWeapon)
{
RELOAD__TIME = RELOAD__TIME_2;
}
else if (PrimaryWeapon)
{
RELOAD__TIME = RELOAD__TIME_1;
}
if (b_reload && (event_press(FIRE)||event_press(ADS))) combo_run(CANCEL_RLD);
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |A|I|M| |A|S|S|I|S|T| | | |b|y| |B|a|t|t|s| | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if (AIM_ASSIST)
{
if(get_val(ADS)) combo_run(AA_XY); else combo_stop(AA_XY);
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | |K|I|L|L| |S|W|I|T|C|H| |&| |S|U|P|E|R| |P|W| |S|W|I|T|C|H| |b|y| |C|r|e|s|c|e|n|s
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
if (!get_val (18) || (!get_val (19)))
{
if (KS__SPECIAL)
{
if (event_press (UP) && !get_val (ADS))
{
combo_run(SPECIAL);
}
}
if (KS__STREAK)
{
if(event_press (LEFT) && !get_val (ADS))
{
combo_run(KILL);
}
}
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | | | | | |L|E|D|S|&|R|U|M|B|L|E|&|R|E|C|O|I|L| |R|E|L|E|A|S|E| | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
//-----------------------------------------LEDS
if (ADS_SENS >100 || ADS_FIRE_SENS >100)colorLED (Red);
else if (combo_running(AA_XY))colorLED (Green);
else if (R2F_K2S && !PrimaryWeapon) colorLED (White);
else if (RF_KS && !R2F_K2S) colorLED (White);
else if (!RF_KS && R2F_K2S)colorLED (Blue);
else colorLED (Blue);
//-----------------------------------------RUMBLE
if(rumble >= 0)
{
if(!rumble_t)
set_rumble(1,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(RY,xy_val(RY, 24));
wait(20);
set_val(RX,xy_val(RX, 24));
set_val(LX,xy_val(LX, 24));
wait(20);
set_val(RY,xy_val(RY, 24 * -1));
wait(20);
set_val(RX,xy_val(RX, 24 * -1));
set_val(LX,xy_val(LX, 24 * -1));
wait(20);
}
combo RELOAD_END {
b_reload=TRUE;
wait(RELOAD__TIME);
b_reload=FALSE;
combo_stop (RELOAD_END);
}
combo RAPID_FIRE {
set_val(FIRE,100);
wait(hold_time);
set_val(FIRE, 0);
wait(rest_time);
}
combo CANCEL_RLD {
combo_run (notify);
set_val(SW_WEAPON, 100);
wait(30);
wait(20);
set_val(SW_WEAPON, 100);
wait(30);
wait(20);
b_reload=FALSE;
}
combo Fire_and_Heal {
wait(20);
set_val(TACTICAL,100);
wait(Heal_Time);
}
combo notify {
set_rumble(1,100);
wait(80);
reset_rumble();
wait (50);
combo_stop(notify);
}
combo EASY_RUN {
set_val(SPRINT,100);
wait(30);
wait(100);
}
combo zoom_sens_KS{
ZOOM_sens = FALSE;
KILL_SWITCHES = FALSE;
wait (10000);
ZOOM_sens = TRUE;
KILL_SWITCHES = TRUE;
}
combo SPECIAL {
if (!get_val (17))
set_val(LETHAL,100);
if (!get_val (17))
set_val(TACTICAL,100);
wait(100);
if (Fire_KS==TRUE && !get_val (17)&& KILL_SWITCHES)
combo_run (NO__FIRE_MOD);
wait(40);
}
combo KILL {
if (Fire_KS==TRUE && !get_val (17)&& KILL_SWITCHES)
combo_run (NO__FIRE_MOD);
wait (40);
set_val (SW_WEAPON, 100);
wait(400);
set_val (SW_WEAPON,0);
wait(40);
reset_leds ();
}
combo NO__FIRE_MOD {
fire__mods_ON=FALSE;
combo_run (BLINK_AR);
wait (30000);
fire__mods_ON=TRUE;
combo_stop (BLINK_AR);
}
combo BLINK_AR {
wait(350);
set_rumble(RUMBLE_B, 100);
colorLED(0);
wait(100);
reset_leds ();
reset_rumble ();
wait(50);
}
combo DROP_SHOT{
set_val(PRONE,100);
wait(800);
}
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 () {
ar_y = 10;
ar_x= -6;
RELOAD__TIME_1=1600;
RELOAD__TIME_2=1600;
first_time=0;
save_pvars ();
}
function save_pvars (){
set_pvar(SPVAR_2, RELOAD__TIME_1);
set_pvar(SPVAR_3, RELOAD__TIME_2);
set_pvar(SPVAR_4, ar_y);
set_pvar(SPVAR_5, ar_x);
set_pvar(SPVAR_16, first_time);
rumble = 1;
}
function colorLED(Color_Name) {
set_led(LED_1,dbyte((Color_Name*4)+0));
set_led(LED_2,dbyte((Color_Name*4)+1));
set_led(LED_3,dbyte((Color_Name*4)+2));
set_led(LED_4,dbyte((Color_Name*4)+3));
}
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: will not build in titan 1
Still 2 errors and itwill shake in game while in ads please help
------ GPC: Build started ------
> 4: New* :
> WARNING line 591: value '10000' is out of range [10 ~ 4000].
> WARNING line 619: value '30000' is out of range [10 ~ 4000].
> Bytecode size: 4006 bytes (97.8%)
> Stack memory: 76 words (67.9%)
Build succeeded with 2 warnings...
------ GPC: Build started ------
> 4: New* :
> WARNING line 591: value '10000' is out of range [10 ~ 4000].
> WARNING line 619: value '30000' is out of range [10 ~ 4000].
> Bytecode size: 4006 bytes (97.8%)
> Stack memory: 76 words (67.9%)
Build succeeded with 2 warnings...
-
kdogg - Private First Class
- Posts: 2
- Joined: Thu Jun 27, 2019 3:29 am
Re: will not build in titan 1
- Code: Select all
define AIM_ASSIST=TRUE; // SET TO FALSE TO SWITCH OFF AIM ASSIST
You need to change it to FALSE to stop the screen shake.
You can ignore the warnings.
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
Re: will not build in titan 1
kdogg wrote: > WARNING line 591: value '10000' is out of range [10 ~ 4000].
> WARNING line 619: value '30000' is out of range [10 ~ 4000].
Build succeeded with 2 warnings...
TItan One doesn't support values above 4000. However, you can stack wait to get the same value, e.g
wait (4000);
wait (4000);
wait (2000);
is the working version on Titan One of wait (10000);
-
antithesis - Colonel
- Posts: 1912
- Joined: Sat May 28, 2016 10:45 pm
5 posts
• Page 1 of 1
Return to GPC1 Script Programming
Who is online
Users browsing this forum: No registered users and 76 guests