War Zone (2) .GPC

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 10

// GPC Online Library

// modern_warfare_warzone_.gpc

// GPC Online Library

/*
// Thanks to itzsnacks Modern Warfare Ultimate 2.8 script removed features & added
Sweet Evil's Aim Assist

// Modern Warfare WARZONE Script For CronusMax Plus Ver 1.2

// Features

// Sweet Evil's Aim Assist - Aim Boost - Aim Correction - Aim Perfection

// Anti-Recoil Standard

// Rapid Fire

// Ping while you ADS

# # # # # # # # # # # # # # # #
# /\/\/\/\/\/\/\/\/\/\/\/\/\/ #
# /\/\/\/\ Made By /\/\/\/\ #
# /\/\/\ Taylordrift21 \/\/\/ #
# /\/\/\/\/\/\/\/\/\/\/\/\/\/ #
# # # # # # # # # # # # # # # #

=====================
=== Reset Toggles ===
==================================================
=== OPTIONS/MENU + SHARE/VIEW To Reset Toggles ===
==================================================

===================
=== Toggle Menu ===

===================================================================================
==========================
=== Before being able to turn ON/OFF Toggles you will have to open the Toggle Menu
by doing the following ===
=== OPTIONS/MENU + D-PAD UP
===
=== When ON your LED will flash Rainbow now you able to turn on any features you
want ===
=== After you done make sure to disable the Toggle Menu
===
=== Your LED will be Black when your out of the Toggle Menu
===

===================================================================================
==========================

===============================================================================
=== TOGGLES YOU CAN ACTIVATE ===
===============================================================================
=== Hold L2/LT And Press R2/RT For Rapid Fire ===
=== 1 Rumble = ON 2 = OFF ===
===============================================================================
*/
define Sampling_Time = 8;//10*; //10 //8 //16
define Aim_Boost = 8;//7;* //8 //6 // Play with these to suit
yourself
define Aim_Correction = 12//11//12;* //5//6//11 //3 // Play with these to suit
yourself
define Aim_Perfection_Limit = 30;//30; //20 //25* //26 // Play with these to
suit yourself
//operating aim perfection interval
define POS_Aim_Limit = 70;//70; //75
define NEG_Aim_Limit = -70;//-70; //75
define POS_Micro_MVT_Limit = 25;
define NEG_Micro_MVT_Limit = -25;
//Layout
define PS = 0;
define SHARE = 1;
define OPTIONS = 2;
define R1 = 3;
define R2 = 4;
define R3 = 5;
define L1 = 6;
define L2 = 7;
define L3 = 8;
define RX = 9;
define RY = 10;
define LX = 11;
define LY = 12;
define UP = 13;
define DOWN = 14;
define LEFT = 15;
define RIGHT = 16;
define TRIANGLE = 17;
define CIRCLE = 18;
define CROSS = 19;
define SQUARE = 20
define TOUCHPAD = 27;
//Customize Toggles
int RF_Toggle = OFF; //Change OFF TO ON If you want Rapid Fire ON By Default
//Speed Of Features
int RF_Speed = 40; //Rapid Fire
//Custom Sensitivity
int GEN_SENS = 100;
int ADS_SENS = 100;
int FIRE_SENS = 100;
int ADS_FIRE_SENS = 100;
int GRENADE_SENS = 100;
int USE_SENS;
int CS = ON;
/*NOTE:
Default = 100
Ranges from 0 to 327*/
//Autoping
int autoping=TRUE // Change to FALSE If you don't want autoping // TRUE means
autoping is ON
// Double tap
int q;
int double__tap[30];
init {
while(q < 30)
{double__tap[q] = -1;
q++;}}
//Anti Recoil
int AR = 30; //Vertical Recoil
int AR_H = 0: //Horizontal Recoil
int AR_I = 1; //Change 1 to -1 If you play with Inverted
int ARS;
//Aim Assist
int AS = ON; //Change ON TO OFF If you don't want Aim Assist
int aa = 24; // Decrease if shake or increase if you want stronger
aim assist (it will cause more shake)
int aa_delay = 20; // Increase if game lag
//Toggles
int Toggle_Menu;
// Sweet Evil's Aim Assist
int X_Last_Value = 0;
int Y_Last_Value = 0;
int X_Current_Value = 0;
int Y_Current_Value = 0;
int Sampling_Done = FALSE;
int spiroide_pulse = 0;
int fine_pulse = 0;
int Joystick_calibration = FALSE;
int RX_Axis_Joystick_calibrate = 0;
int RY_Axis_Joystick_calibrate = 0;

main {
//update main every 8ms --> only for PS4
//vm_tctrl(-2);
if (Joystick_calibration == FALSE)
{
RX_Axis_Joystick_calibrate = get_val(9);
RY_Axis_Joystick_calibrate = get_val(10);
Joystick_calibration = TRUE;
}
X_Last_Value = X_Current_Value;
Y_Last_Value = Y_Current_Value;
X_Current_Value = get_lval(9)- RX_Axis_Joystick_calibrate;
Y_Current_Value = get_lval(10)- RY_Axis_Joystick_calibrate;
//--LT pulled
if(get_val(7))
{
//--current & last value less than limit
if(abs(X_Current_Value) <= POS_Micro_MVT_Limit &&
abs(Y_Current_Value) <= POS_Micro_MVT_Limit)
{
//--both have a value
//if(X_Last_Value && X_Current_Value)
//{
//--difference between the 2 values less than 15
if(abs(X_Last_Value - X_Current_Value) < 15)
{
combo_stop(Aim_Assist_Perfection);
Sampling_Done = FALSE;

//--RT pulled more than 95%


if(get_val(4) > 95)
{
combo_stop(Fine_Tune_Aim);
fine_pulse = 0;
combo_run(spiroide_Aim_Assit);
}
else
{
combo_stop(spiroide_Aim_Assit);
spiroide_pulse = 0;
combo_run(Fine_Tune_Aim);
}
}
//}
}
//--current and last greater than limit
else if(abs(X_Current_Value) <= POS_Aim_Limit &&
abs(Y_Current_Value) <= POS_Aim_Limit)
{
combo_stop(Fine_Tune_Aim);
combo_stop(spiroide_Aim_Assit);
spiroide_pulse = 0;
fine_pulse = 0;
combo_run(Aim_Assist_Perfection);
}
}
else //--LT not pulled
{
combo_stop(Fine_Tune_Aim);
combo_stop(spiroide_Aim_Assit);
combo_stop(Aim_Assist_Perfection);
spiroide_pulse = 0;
fine_pulse = 0;
Sampling_Done = FALSE;
}

if(get_val(OPTIONS) && event_press(SHARE)) {


RF_Toggle = OFF;
Toggle_Menu = OFF;}

if(CS)
if(!get_val(L2) && !get_val(R2)) {
USE_SENS=GEN_SENS;}
else if(get_val(L2) && !get_val(R2)) {
USE_SENS=ADS_SENS;}
else if(!get_val(L2) && get_val(R2)) {
USE_SENS=FIRE_SENS;}
else if(get_val(L2) && get_val(R2)) {
USE_SENS=ADS_FIRE_SENS;}
else if(get_val(R1)) {
USE_SENS=GRENADE_SENS;}
sensitivity(RY,NOT_USE,USE_SENS);
sensitivity(RX,NOT_USE,USE_SENS);

LED(0,0,0,0);

deadzone(L2,R2,100,100);

if(AS)
if(get_val(L2)) combo_run(AS);

if(get_val(L2) && get_val(R2))


combo_run(AR);

if(RF_Toggle && get_val(R2))


combo_run(RF)

//-- auto ping


if(autoping)
{
if(get_val(L2)&&double_click(UP))
combo_run(auto_ping);
if(!get_val(L2))
combo_stop(auto_ping);
}

if(get_val(OPTIONS) && event_press(UP)) {


Toggle_Menu=!Toggle_Menu;}

if(Toggle_Menu) {
combo_run(Rainbow_Flash);

if(get_val(L2) && event_press(R2)) {


RF_Toggle=!RF_Toggle;
if(RF_Toggle) combo_run(Flash_ON);
else combo_run(Flash_OFF);}}

if(abs(get_val(RY)) > AR + 2 || abs(get_val(RX)) > AR + 2) {


combo_stop(AR);}}

combo Aim_Assist_Perfection
{
// Save the first joystick position
X_Last_Value = X_Current_Value
Y_Last_Value = Y_Current_Value

// Sampling frequency
wait(Sampling_Time);

// Save the second joystick position


X_Current_Value = get_lval(9)- RX_Axis_Joystick_calibrate;
Y_Current_Value = get_lval(10)- RY_Axis_Joystick_calibrate;

if (Sampling_Done == TRUE )
{
//Applying BOOST
//Aim_Perfection(Last_Value, Current_Value, Boost, Correction, X_AXIS,
Y_AXIS )
Aim_Perfection(X_Last_Value, X_Current_Value, 1, 0, 1, 0 );
Aim_Perfection(Y_Last_Value, Y_Current_Value, 1, 0, 0, 1 );
}

X_Last_Value = X_Current_Value;
Y_Last_Value = Y_Current_Value;

// Sampling frequency
wait(Sampling_Time);

// Save the second joystick position


X_Current_Value = get_lval(9)- RX_Axis_Joystick_calibrate;
Y_Current_Value = get_lval(10)- RX_Axis_Joystick_calibrate;

if (Sampling_Done == TRUE )
{
//Applying CORRECTION
//Aim_Perfection(Last_Value, Current_Value, Boost, Correction, X_AXIS,
Y_AXIS )
Aim_Perfection(X_Last_Value, X_Current_Value, 0, 1, 1, 0 );
Aim_Perfection(Y_Last_Value, Y_Current_Value, 0, 1, 0, 1 );
}

Sampling_Done = TRUE;
wait(Sampling_Time);
}

combo Fine_Tune_Aim {

set_val(9,(15 - fine_pulse));//right
set_val(11,(-15 + fine_pulse));//move left
wait(Sampling_Time);

wait(Sampling_Time);
wait(Sampling_Time);

set_val(9,(15 - fine_pulse));//right+down
set_val(10,(10 - fine_pulse));
set_val(11,(-5 + fine_pulse));//move left
wait(Sampling_Time);

wait(Sampling_Time);
wait(Sampling_Time);

set_val(10,(10 - fine_pulse));// down


wait(Sampling_Time);

wait(Sampling_Time);
wait(Sampling_Time);
wait(Sampling_Time);

set_val(9,(-15 + fine_pulse));//left+down
set_val(10,(10 - fine_pulse));
set_val(11,(5 - fine_pulse))//move right
wait(Sampling_Time);

wait(Sampling_Time)
wait(Sampling_Time)

set_val(9,(-15 + fine_pulse));// left


set_val(11,(15 - fine_pulse))//move right
wait(Sampling_Time);

wait(Sampling_Time);
wait(Sampling_Time);
set_val(9,(-15 + fine_pulse)); //left + up
set_val(10,(-10 + fine_pulse));
set_val(11,(5 - fine_pulse))//move right
wait(Sampling_Time);

wait(Sampling_Time);
wait(Sampling_Time);

set_val(10,(-10 + fine_pulse)); //up


wait(Sampling_Time);

wait(Sampling_Time);
wait(Sampling_Time);
wait(Sampling_Time);

set_val(9,(15 - fine_pulse));//right+up
set_val(10,(-10 + fine_pulse));
set_val(11,(-5 + fine_pulse))//move left
wait(Sampling_Time);

wait(Sampling_Time);

fine_pulse = fine_pulse + 2;

if ( fine_pulse >10)
{
fine_pulse = 0;
}
}

combo spiroide_Aim_Assit {

set_val(9,(4 + spiroide_pulse));//right
set_val(11,(-15+ spiroide_pulse));//move left
wait(Sampling_Time);

wait(Sampling_Time);

set_val(10,(5 + spiroide_pulse));// down


wait(Sampling_Time);

wait(Sampling_Time);
wait(Sampling_Time);
wait(Sampling_Time);

set_val(9,(-4 - spiroide_pulse));//left
set_val(11,15 - spiroide_pulse );//move right
wait(Sampling_Time);

wait(Sampling_Time)

set_val(10,(5 + spiroide_pulse));// down


wait(Sampling_Time);

wait(Sampling_Time);
wait(Sampling_Time);
wait(Sampling_Time);
spiroide_pulse = spiroide_pulse + 2;

if ( spiroide_pulse >10)
{
spiroide_pulse = 0;
}
}

combo AR {
ARS = get_val(RY) + AR;
if(ARS > 100) ARS = 100;
set_val(RY,ARS * AR_I);
ARS = get_val(RX) + AR_H;
if(ARS > 100) ARS = 100;
set_val(RX,ARS);}

combo auto_ping
{set_val(UP,100);
wait(20)
set_val(UP,0);
wait(20)
set_val(UP,100);
wait(20)
set_val(UP,0);
}

combo AS {
set_val(RY,xy_val(RY,aa));
wait(aa_delay)
set_val(RX,xy_val(RX,aa));
set_val(LX,xy_val(LX,aa));
wait(aa_delay)
set_val(RY,xy_val(RY,inv(aa)));
wait(aa_delay)
set_val(RX,xy_val(RX,inv(aa)));
set_val(LX,xy_val(LX,inv(aa)));
wait(aa_delay)
}
function xy_val(f_axis,f_val) {
if(abs(get_val(f_axis)) < aa + 1)
return f_val;
return get_val(f_axis);
}

combo RF {
set_val(R2,100);
wait(40);
set_val(R2,0);
wait(RF_Speed);}

combo Rainbow_Flash {
LED(2,0,2,0);
wait(100);
LED(0,0,0,0);
wait(100);
LED(0,0,0,2);
wait(100);
LED(0,0,0,0);
wait(100);
LED(0,2,2,0);
wait(100);
LED(0,0,0,0);
wait(100);}

combo Flash_ON {
LED(0,0,2,0);
wait(400);
reset_leds();}

combo Flash_OFF {
LED(0,2,0,0);
wait(200);
LED(0,0,0,0);
wait(100);
LED(0,2,0,0);
wait(200);
reset_leds();}

function Aim_Perfection(Last_Value, Current_Value, Boost, Correction, X_AXIS,


Y_AXIS )
{

if(abs(Last_Value - Current_Value) < Aim_Perfection_Limit)


{
//--moving right
if(Last_Value < Current_Value)
{
if (Boost)
{
if (X_AXIS)
set_val(9, (Current_Value + Aim_Boost));

if (Y_AXIS)
set_val(10, (Current_Value + Aim_Boost));
}

else if(Correction)
{
if (X_AXIS)
set_val(9, (Current_Value - Aim_Correction));

if (Y_AXIS)
set_val(10, (Current_Value - Aim_Correction));

}
}
else //--moving left
{

if (Boost)
{
if (X_AXIS)
set_val(9, (Current_Value - Aim_Boost));

if (Y_AXIS)
set_val(10, (Current_Value - Aim_Boost));
}

else if(Correction)
{
if (X_AXIS)
set_val(9, (Current_Value + Aim_Correction));

if (Y_AXIS)
set_val(10, (Current_Value + Aim_Correction));

}
}
}
}

function double_click(button) {
if (double__tap[button] >= 0) {
double__tap[button] += get_rtime();
if (double__tap[button] > 450)
double__tap[button] = -1;

}
if (event_release(button) && get_ptime(button) <= 200) {
if (double__tap[button] < 0) {
double__tap[button] = 0;
} else {
double__tap[button] = -1;
return 1;
}
}
return 0;
}

function LED(a,b,c,d) {
set_led(LED_1,a);
set_led(LED_2,b);
set_led(LED_3,c);
set_led(LED_4,d);}

define ON = TRUE;
define OFF = FALSE;

You might also like