PDA

View Full Version : Destiny Script



firesing
1st August 15, 14:59
Ако може да добавиш към първия скрипт ето тези неща от втория скрипт който съм постнал

define SENSADS_INCREASE_BY=10; // This is the amount you want to add to your primary sens, while ADS.
define SENSRUN_INCREASE_BY=150; // This is the amount you want to add to your primary sens, while sprinting.
define ANTI_RECOIL=30; //change this value to compensate to the vertical recoil
define ANTI_RECOIL_LEFT=0; //change this value to compensate to the left
define ANTI_RECOIL_RIGHT=0; //change this value to compensate to the right
define ONLY_WITH_SCOPE=TRUE; //Use Anti-recoil only when scoping
define ADS_BUTTON = XB1_LT;

int Veh_sens;int autosprint;




main {
if(get_val(7) || combo_running(Auto_Sprint)) {sensitivity (9,NOT_USE,80);sensitivity (10,NOT_USE,80);}
if(Veh_sens) {sensitivity (9,NOT_USE,200);sensitivity (10,NOT_USE,200);}
if(event_press(CEMU_EXTRA1)) {combo_run(Turn_180);}
if(event_press(CEMU_EXTRA2)) {combo_run(Vehicle);Veh_sens=TRUE;}
if(get_val(CEMU_EXTRA3)) {set_val(3,100);set_val(6,100);}
if(event_press(CEMU_EXTRA4)) {autosprint=!autosprint;}
if(autosprint) {
if(get_val(12) <-99 && !get_val(7) && !combo_running(reload)) {combo_run(Auto_Sprint);}
else {combo_stop(Auto_Sprint);}
}
if(event_press(20)){combo_run(reload);}
if(event_press(20) || event_press(19) || event_press(1)) {Veh_sens=FALSE;}
}




combo reload {
wait(1500);
}
combo Auto_Sprint{
set_val(8,100);
wait(100);
wait(100);
}




combo Turn_180 {
set_val(9,100);
wait(510);
}




combo Vehicle {
set_val(1,100);
wait(50);
wait(50);
set_val(20,100);
wait(1200);
}


/************************************************** ******************* * MULTIPLATFORM ANTI-RECOIL VERTICAL + HORIZONTAL (LEFT + RIGHT) * ADS Toggle + ADS sensitivity + SPRINT sensitivity
* Author: LEX LOST
* System: MULTI
* Controller: MULTI - Optimized for MOUSE & KEYBOARD
* GAME: Battlefield series - COD series - Black Ops series
************************************************** ********************/
//DECLARARATIONS - define
//--------------------------------------------------------------
define SENSADS_INCREASE_BY=10; // This is the amount you want to add to your primary sens, while ADS.
define SENSRUN_INCREASE_BY=150; // This is the amount you want to add to your primary sens, while sprinting.
define ANTI_RECOIL=30; //change this value to compensate to the vertical recoil
define ANTI_RECOIL_LEFT=0; //change this value to compensate to the left
define ANTI_RECOIL_RIGHT=0; //change this value to compensate to the right
define ONLY_WITH_SCOPE=TRUE; //Use Anti-recoil only when scoping
define ADS_BUTTON = XB1_LT;
define GRENADE_BUTTON = XB1_LB;
define MELEE_BUTTON = XB1_RB;
define SWITCH_WEAPON_BUTTON = XB1_Y;
define R_X = XB1_RX;
define R_Y = XB1_RY;




define SUPER = CEMU_EXTRA1; // Press for super
define ROF_UP = CEMU_EXTRA2; // Press for increase RF
define ROF_DOWN = CEMU_EXTRA3; // Press for decrease RF
define ROF_RESET = CEMU_EXTRA4; // Press for reset RF
//VARIABLES - int
//--------------------------------------------------------------
int fire_button;
int scope_button;
int anti_recoil;
int anti_recoil_left;
int anti_recoil_right;
int auto_ads;
int check = TRUE;
int RATE_OF_FIRE_DEFAULT = 10 ; // The default rate of fire for reset
int RATE_OF_FIRE = 10 ; // The initial rate of fire. Fractions should look like this 15.5 = 155. Use 155 for 15.5
int MyRate = 0;
int MyBit;
int MyResult;
int hold_time;
int rest_time;




//INITIALIZATION - init
//--------------------------------------------------------------
init {
if(get_console() == PIO_XB1) {
fire_button = 3;
scope_button = 6;}
else { // Natural Trigger & Bumper
fire_button = 4;
scope_button = 7;}
//MAIN BLOCK RUTINES
//--------------------------------------------------------------
}




main { // Start of MAIN BLOCK
// Start of MAIN BLOCK
// SUPER to one button L1+R1
if(get_val(SUPER)) {set_val(3,100);set_val(6,100);}




// ADS TOGGLE
if(event_press(7)) {auto_ads = !auto_ads;}
if(auto_ads) {set_val(7, 100);}




// SENSITIVITY ADS
if(get_val(scope_button)){
sensitivity( 9, NOT_USE, 100 + SENSADS_INCREASE_BY);
sensitivity(10, NOT_USE, 100 + SENSADS_INCREASE_BY);}




// SENSITIVITY SPRINT
if(get_val(8)){
sensitivity( 9, NOT_USE, 100 + SENSRUN_INCREASE_BY);
sensitivity(10, NOT_USE, 100 + SENSRUN_INCREASE_BY);}




// ONLY WITH SCOPE ANTIRECOIL
if(!ONLY_WITH_SCOPE || get_val(scope_button)) {combo_run(AntiRecoil);}
// RAPIDFIRE
set_bits(MyBit, 0, 15, 255*257);
MyResult = (MyBit - ((1500*10)+536))*-1;
hold_time = MyResult / RATE_OF_FIRE;
rest_time = hold_time - 20;
if(rest_time < 0) rest_time = 0;
MyRate = MyRate - get_rtime()*2;
if(event_press(ROF_UP)) {
RATE_OF_FIRE = RATE_OF_FIRE + 10;}
if(event_press(ROF_DOWN)) {
RATE_OF_FIRE = RATE_OF_FIRE - 10;}
if(event_press(ROF_RESET)) {
RATE_OF_FIRE = RATE_OF_FIRE_DEFAULT ;}
if(event_press(fire_button)) {set_val(fire_button, 100); check = TRUE; MyRate = hold_time;}
else if(get_val(fire_button) && check) {set_val(fire_button, 100);}
else if(!check) {set_val(fire_button, 0);}
if(!get_val(fire_button) && MyRate<=0 && check == FALSE) {MyRate = hold_time; check =TRUE;}
if(MyRate<=0 && check == TRUE) {MyRate = rest_time; check =FALSE;}




}// End of MAIN BLOCK
//COMBO BLOCKS
//--------------------------------------------------------------
//Antirecoil This combo must be the last one
combo AntiRecoil {//begin
if(get_val(fire_button)) {
anti_recoil = get_val(10) + ANTI_RECOIL;
if(anti_recoil > 100) anti_recoil = 100;
set_val(10, anti_recoil);
anti_recoil_left = get_val(9) -ANTI_RECOIL_LEFT;
if(anti_recoil_left > 100) anti_recoil_left = 100;
set_val(9, anti_recoil_left);
anti_recoil_right = get_val(9) +ANTI_RECOIL_RIGHT;
if(anti_recoil_right > 100) anti_recoil_right = 100;
set_val(9, anti_recoil_right);}
}//end

Excalibur
1st August 15, 15:05
Здравей морски !

Искаш да добавя анти рекойл ( против откат ) часта към първия скрипт , така ли да те разбирам ?

firesing
1st August 15, 15:07
И sprint speed

Excalibur
1st August 15, 16:39
И sprint speed



Ето ти първия вариант. Пробвай спринта как работи с блокиране на А и Д бутона.







//DECLARARATIONS - define
//--------------------------------------------------------------
define SENSADS = 80; // towa e chvstvitelnosta kogato se celish - ADS.
define SENSRUN = 150; // This is the amount you want to add to your primary sens, while sprinting.
define ANTI_RECOIL=30; //change this value to compensate to the vertical recoil
define ANTI_RECOIL_LEFT=0; //change this value to compensate to the left
define ANTI_RECOIL_RIGHT=0; //change this value to compensate to the right
define ONLY_WITH_SCOPE=TRUE; //Use Anti-recoil only when scoping


define R_X = XB1_RX;
define R_Y = XB1_RY;
define fire_button = XB1_RT;
define scope_button = XB1_LT;
// normalnata chuvstvitelnost e = 100 uvelichi nad 100 za da uvelichish chuvstvitelnosta
define SprintSens = 120; //



int Veh_sens;
int autosprint;
int Block_A_D = TRUE;
int anti_recoil;
int anti_recoil_left;
int anti_recoil_right;



main {//<main> block


// ON / OFF blokirane na A i D butoni
if(event_press(CEMU_EXTRA5)){
Block_A_D = !Block_A_D;
}


if(Block_A_D){
if(get_val(8)){
if(get_val(R_X)) set_val(R_X,0);


}
}


// увеличи стойността 80 ако искаш да увеличиш чувствителността
if(get_val(7) || combo_running(Auto_Sprint)) {
sensitivity ( 9,NOT_USE, SENSADS); //
sensitivity (10,NOT_USE, SENSADS);
}


if(Veh_sens) {
sensitivity ( 9,NOT_USE,200);
sensitivity (10,NOT_USE,200);
}


//
if(event_press(CEMU_EXTRA1)) {combo_run(Turn_180);}


if(event_press(CEMU_EXTRA2)) {combo_run(Vehicle);Veh_sens=TRUE;}


if(get_val(CEMU_EXTRA3)) {set_val(3,100);set_val(6,100);}


if(event_press(CEMU_EXTRA4)) {autosprint=!autosprint;}
if(autosprint) {
if(get_val(12) <-99 && !get_val(7) && !combo_running(reload)) {combo_run(Auto_Sprint);}
else {combo_stop(Auto_Sprint);}
}
if(event_press(20)){combo_run(reload);}
if(event_press(20) || event_press(19) || event_press(1)) {Veh_sens=FALSE;}


// Protiv Otkata
if(get_val(fire_button) && get_val(scope_button)){
combo_run(AntiRecoil);
}


}// <main> block




combo reload {
wait(1500);
}
combo Auto_Sprint{
set_val(8,100);
wait(100);
wait(100);
}




combo Turn_180 {
set_val(9,100);
wait(510);
}




combo Vehicle {
set_val(1,100);
wait(50);
wait(50);
set_val(20,100);
wait(1200);
}


//Antirecoil This combo must be the last one
combo AntiRecoil {//begin


anti_recoil = get_val(10) + ANTI_RECOIL;
if(anti_recoil > 100) anti_recoil = 100;
set_val(10, anti_recoil);
anti_recoil_left = get_val(9) -ANTI_RECOIL_LEFT;
if(anti_recoil_left > 100) anti_recoil_left = 100;
set_val(9, anti_recoil_left);
anti_recoil_right = get_val(9) +ANTI_RECOIL_RIGHT;
if(anti_recoil_right > 100) anti_recoil_right = 100;
set_val(9, anti_recoil_right);


}//end

firesing
2nd August 15, 03:56
Да добавиш на този скрипт блокирането на A и Д а от долния скрипт Extra 2

define ADS_BUTTON = XB1_LT;define GRENADE_BUTTON = XB1_LB;
define MELEE_BUTTON = XB1_RB;
define R_X = XB1_RX;
define R_Y = XB1_RY;
define SPRINT_BUTTON = XB1_LS;
define SUPER_KEY = CEMU_EXTRA1;
define ADS_SENS = 80;
define SPRINT_SENS = 170;
define SENS_UP = CEMU_EXTRA9;
define SENS_DOWN = CEMU_EXTRA8;
define SENS_RESET = CEMU_EXTRA7;
define X_AXIS = XB1_RX;
define Y_AXIS = XB1_RY;




int sensMultiply = 0;








main {




sensitivity( X_AXIS, NOT_USE, 100 + (10 * sensMultiply));
sensitivity( Y_AXIS, NOT_USE, 100 + (10 * sensMultiply));




if (event_press(SENS_UP))
{
sensMultiply = sensMultiply + 1;
}
if (event_press(SENS_DOWN))
{
sensMultiply = sensMultiply - 1;
}
if (event_press(SENS_RESET))
{
sensMultiply = 0;
}




if (get_val(ADS_BUTTON))
{
sensitivity(R_X, NOT_USE, ADS_SENS);
sensitivity(R_Y, NOT_USE, ADS_SENS);
}
if (get_val(SPRINT_BUTTON))
{
sensitivity(R_X, NOT_USE, SPRINT_SENS);
sensitivity(R_Y, NOT_USE, SPRINT_SENS);
}
if (get_val(SUPER_KEY)) combo_run(super);




}




combo super
{
set_val(MELEE_BUTTON,100);
set_val(GRENADE_BUTTON,100);
wait(100);
set_val(MELEE_BUTTON,0);
set_val(GRENADE_BUTTON,0);
}


/* Change these to match your console
*/
define ADS_BUTTON = XB1_LT;
define GRENADE_BUTTON = XB1_LB;
define MELEE_BUTTON = XB1_RB;
define SWITCH_WEAPON_BUTTON = XB1_Y;
define R_X = XB1_RX;
define R_Y = XB1_RY;


// Assign a keyboard key to CEMU_EXTRA1 to easily use your Super Ability
define SUPER_KEY = CEMU_EXTRA1;


// Assign a keyboard key to CEMU_EXTRA2 to easily switch to your Heavy Weapon
define HEAVY_KEY = CEMU_EXTRA2;


/*
ADS Sensitivity
A number below 100 will decrease ADS sensitivity.
A number above 100 will increase ADS sensitivity.
*/
define ADS_SENS = 105;


main {


if (get_val(ADS_BUTTON))
{
sensitivity(R_X, NOT_USE, ADS_SENS);
sensitivity(R_Y, NOT_USE, ADS_SENS);
}


if (get_val(SUPER_KEY)) combo_run(super);
else if (get_val(HEAVY_KEY)) combo_run(switchToHeavyWeapon);


}


combo super
{
set_val(MELEE_BUTTON,100);
set_val(GRENADE_BUTTON,100);
wait(100);
set_val(MELEE_BUTTON,0);
set_val(GRENADE_BUTTON,0);
}


combo switchToHeavyWeapon
{
set_val(SWITCH_WEAPON_BUTTON,100);
wait(500);
set_val(SWITCH_WEAPON_BUTTON,0);
}

Excalibur
2nd August 15, 04:40
Gotov si ,eto ti skripta :



//Posted by firesing, a member of the community in the CronusMAX Forums - http://www.cronusmax.com/forums

//Posted : Sunday 2nd of August, 2015 7:59 UTC
////////////////////////////////////////////////////////////////


define R_X = XB1_RX;
define R_Y = XB1_RY;
define SPRINT_BUTTON = XB1_LS;
define GRENADE_BUTTON = XB1_LB;
define MELEE_BUTTON = XB1_RB;
define SWITCH_WEAPON_BUTTON = XB1_Y;
// Svarji buton ot klaviaturata kym EXTRA INPUT 2 za lesno prevkluchvane na Heavy Weapon
define HEAVY_KEY = CEMU_EXTRA2;
// Svarji buton ot klaviaturata kym EXTRA INPUT 1 za lesno vkluchvane na Super Ability
define SUPER_KEY = CEMU_EXTRA1;


define ADS_SENS = 80;
define SPRINT_SENS = 170;
define SENS_UP = CEMU_EXTRA9;
define SENS_DOWN = CEMU_EXTRA8;
define SENS_RESET = CEMU_EXTRA7;



////////////////////////////////////////////////////////////////
int sensMultiply = 0;
int BlockBtn_A_D;

main {//--------------------------------------------------------------------



sensitivity( R_X, NOT_USE, 100 + (10 * sensMultiply));
sensitivity( R_Y, NOT_USE, 100 + (10 * sensMultiply));



// EXTRA INPUT 9
if (event_press(SENS_UP))
{
sensMultiply = sensMultiply + 1;
}// EXTRA INPUT 8
else if (event_press(SENS_DOWN))
{
sensMultiply = sensMultiply - 1;
}// EXTRA INPUT 7
else if (event_press(SENS_RESET))
{
sensMultiply = 0;
}

// ON / OFF Blok na A i D buton
if(event_press(CEMU_EXTRA2)){
BlockBtn_A_D = !BlockBtn_A_D;
}
// Ako natisnesh Sprint i blokiraneto e ON - blokira A i D buton
if(get_val(SPRINT_BUTTON) && BlockBtn_A_D){
if(get_val(R_X)) set_val(R_X,0);


}




// Ako natisnesh Sprint
if (get_val(SPRINT_BUTTON))
{
sensitivity(R_X, NOT_USE, SPRINT_SENS);
sensitivity(R_Y, NOT_USE, SPRINT_SENS);
}



// -------------------------------------
if (get_val(SUPER_KEY)) combo_run(super);
else if (get_val(HEAVY_KEY)) combo_run(switchToHeavyWeapon);


}//-------------------------------------------------------------------------


combo super {
set_val(MELEE_BUTTON ,100);
set_val(GRENADE_BUTTON,100);
wait(100);
set_val(MELEE_BUTTON ,0);
set_val(GRENADE_BUTTON,0);
}
combo switchToHeavyWeapon {
set_val(SWITCH_WEAPON_BUTTON,100);
wait(500);
set_val(SWITCH_WEAPON_BUTTON, 0);
}

Excalibur
2nd August 15, 04:44
Imashe greshka , eto novia redaktiran skript:


//Posted by firesing, a member of the community in the CronusMAX Forums - http://www.cronusmax.com/forums

//Posted : Sunday 2nd of August, 2015 7:59 UTC
////////////////////////////////////////////////////////////////


define R_X = XB1_RX;
define R_Y = XB1_RY;
define SPRINT_BUTTON = XB1_LS;
define GRENADE_BUTTON = XB1_LB;
define MELEE_BUTTON = XB1_RB;
define SWITCH_WEAPON_BUTTON = XB1_Y;
// Svarji buton ot klaviaturata kym EXTRA INPUT 2 za lesno prevkluchvane na Heavy Weapon
define HEAVY_KEY = CEMU_EXTRA2;
// Svarji buton ot klaviaturata kym EXTRA INPUT 1 za lesno vkluchvane na Super Ability
define SUPER_KEY = CEMU_EXTRA1;


define ADS_SENS = 80;
define SPRINT_SENS = 170;
define SENS_UP = CEMU_EXTRA9;
define SENS_DOWN = CEMU_EXTRA8;
define SENS_RESET = CEMU_EXTRA7;



////////////////////////////////////////////////////////////////
int sensMultiply = 0;
int BlockBtn_A_D = TRUE;

main {//--------------------------------------------------------------------



sensitivity( R_X, NOT_USE, 100 + (10 * sensMultiply));
sensitivity( R_Y, NOT_USE, 100 + (10 * sensMultiply));



// EXTRA INPUT 9
if (event_press(SENS_UP))
{
sensMultiply = sensMultiply + 1;
}// EXTRA INPUT 8
else if (event_press(SENS_DOWN))
{
sensMultiply = sensMultiply - 1;
}// EXTRA INPUT 7
else if (event_press(SENS_RESET))
{
sensMultiply = 0;
}

// ON / OFF Blok na A i D buton EXTRA INPUT 3
if(event_press(CEMU_EXTRA3)){
BlockBtn_A_D = !BlockBtn_A_D;
}
// Ako natisnesh Sprint i blokiraneto e ON - blokira A i D buton
if(get_val(SPRINT_BUTTON) && BlockBtn_A_D){
if(get_val(11)) set_val(11,0);


}




// Ako natisnesh Sprint
if (get_val(SPRINT_BUTTON))
{
sensitivity(R_X, NOT_USE, SPRINT_SENS);
sensitivity(R_Y, NOT_USE, SPRINT_SENS);
}



// SUPER EXTRA INPUT 1 / Hevy Weapon - EXTRA INPUT 2
if (get_val(SUPER_KEY)) combo_run(super);
else if (get_val(HEAVY_KEY)) combo_run(switchToHeavyWeapon);


}//-------------------------------------------------------------------------


combo super {
set_val(MELEE_BUTTON ,100);
set_val(GRENADE_BUTTON,100);
wait(100);
set_val(MELEE_BUTTON ,0);
set_val(GRENADE_BUTTON,0);
}
combo switchToHeavyWeapon {
set_val(SWITCH_WEAPON_BUTTON,100);
wait(500);
set_val(SWITCH_WEAPON_BUTTON, 0);
}

Excalibur
2nd August 15, 04:56
A tova e varianta, v kojto kato pusnesh sprinta, bi triabvalo da spre da ticha.



//Posted by firesing, a member of the community in the CronusMAX Forums - http://www.cronusmax.com/forums

//Posted : Sunday 2nd of August, 2015 7:59 UTC
////////////////////////////////////////////////////////////////


define R_X = XB1_RX;
define R_Y = XB1_RY;
define SPRINT_BUTTON = XB1_LS;
define GRENADE_BUTTON = XB1_LB;
define MELEE_BUTTON = XB1_RB;
define SWITCH_WEAPON_BUTTON = XB1_Y;
// Svarji buton ot klaviaturata kym EXTRA INPUT 2 za lesno prevkluchvane na Heavy Weapon
define HEAVY_KEY = CEMU_EXTRA2;
// Svarji buton ot klaviaturata kym EXTRA INPUT 1 za lesno vkluchvane na Super Ability
define SUPER_KEY = CEMU_EXTRA1;


define ADS_SENS = 80;
define SPRINT_SENS = 170;
define SENS_UP = CEMU_EXTRA9;
define SENS_DOWN = CEMU_EXTRA8;
define SENS_RESET = CEMU_EXTRA7;



////////////////////////////////////////////////////////////////
int sensMultiply = 0;
int BlockBtn_A_D = TRUE;

main {//--------------------------------------------------------------------



sensitivity( R_X, NOT_USE, 100 + (10 * sensMultiply));
sensitivity( R_Y, NOT_USE, 100 + (10 * sensMultiply));



// EXTRA INPUT 9
if (event_press(SENS_UP))
{
sensMultiply = sensMultiply + 1;
}// EXTRA INPUT 8
else if (event_press(SENS_DOWN))
{
sensMultiply = sensMultiply - 1;
}// EXTRA INPUT 7
else if (event_press(SENS_RESET))
{
sensMultiply = 0;
}

// ON / OFF Blok na A i D buton EXTRA INPUT 3
if(event_press(CEMU_EXTRA3)){
BlockBtn_A_D = !BlockBtn_A_D;
}
// Ako natisnesh Sprint i blokiraneto e ON - blokira A i D buton
if(get_val(SPRINT_BUTTON) && BlockBtn_A_D){
if(get_val(11)) set_val(11,0);


}




// Ako natisnesh Sprint
if (get_val(SPRINT_BUTTON))
{
sensitivity(R_X, NOT_USE, SPRINT_SENS);
sensitivity(R_Y, NOT_USE, SPRINT_SENS);
}else{
combo_run(STOP_RUNNING);
}



// SUPER EXTRA INPUT 1 / Hevy Weapon - EXTRA INPUT 2
if (get_val(SUPER_KEY)) combo_run(super);
else if (get_val(HEAVY_KEY)) combo_run(switchToHeavyWeapon);


}//-------------------------------------------------------------------------


combo STOP_RUNNING {
set_val(12,0);
wait(20);
}

combo super {
set_val(MELEE_BUTTON ,100);
set_val(GRENADE_BUTTON,100);
wait(100);
set_val(MELEE_BUTTON ,0);
set_val(GRENADE_BUTTON,0);
}
combo switchToHeavyWeapon {
set_val(SWITCH_WEAPON_BUTTON,100);
wait(500);
set_val(SWITCH_WEAPON_BUTTON, 0);
}

Excalibur
2nd August 15, 06:07
Okay, tova e varianta s namaliavane na chuvstvitelnostta kogato se pricelish.



//Posted by firesing, a member of the community in the CronusMAX Forums - http://www.cronusmax.com/forums

//Posted : Sunday 2nd of August, 2015 7:59 UTC
////////////////////////////////////////////////////////////////


define R_X = XB1_RX;
define R_Y = XB1_RY;
define ADS_BUTTON = XB1_LT;
define SPRINT_BUTTON = XB1_LS;
define GRENADE_BUTTON = XB1_LB;
define MELEE_BUTTON = XB1_RB;
define SWITCH_WEAPON_BUTTON = XB1_Y;
// Svarji buton ot klaviaturata kym EXTRA INPUT 2 za lesno prevkluchvane na Heavy Weapon
define HEAVY_KEY = CEMU_EXTRA2;
// Svarji buton ot klaviaturata kym EXTRA INPUT 1 za lesno vkluchvane na Super Ability
define SUPER_KEY = CEMU_EXTRA1;


define ADS_SENS = 80;
define SPRINT_SENS = 170;
define SENS_UP = CEMU_EXTRA9;
define SENS_DOWN = CEMU_EXTRA8;
define SENS_RESET = CEMU_EXTRA7;



////////////////////////////////////////////////////////////////
int sensMultiply = 0;
int BlockBtn_A_D = TRUE;

main {//--------------------------------------------------------------------



sensitivity( R_X, NOT_USE, 100 + (10 * sensMultiply));
sensitivity( R_Y, NOT_USE, 100 + (10 * sensMultiply));



// EXTRA INPUT 9
if (event_press(SENS_UP))
{
sensMultiply = sensMultiply + 1;
}// EXTRA INPUT 8
else if (event_press(SENS_DOWN))
{
sensMultiply = sensMultiply - 1;
}// EXTRA INPUT 7
else if (event_press(SENS_RESET))
{
sensMultiply = 0;
}

// ON / OFF Blok na A i D buton EXTRA INPUT 3
if(event_press(CEMU_EXTRA3)){
BlockBtn_A_D = !BlockBtn_A_D;
}
// Ako natisnesh Sprint i blokiraneto e ON - blokira A i D buton
if(get_val(SPRINT_BUTTON) && BlockBtn_A_D){
if(get_val(11)) set_val(11,0);


}


if (get_val(ADS_BUTTON))
{
sensitivity(R_X, NOT_USE, ADS_SENS);
sensitivity(R_Y, NOT_USE, ADS_SENS);
}


// Ako natisnesh Sprint
if (get_val(SPRINT_BUTTON))
{
sensitivity(R_X, NOT_USE, SPRINT_SENS);
sensitivity(R_Y, NOT_USE, SPRINT_SENS);
}else{
combo_run(STOP_RUNNING);
}



// SUPER EXTRA INPUT 1 / Hevy Weapon - EXTRA INPUT 2
if (get_val(SUPER_KEY)) combo_run(super);
else if (get_val(HEAVY_KEY)) combo_run(switchToHeavyWeapon);


}//-------------------------------------------------------------------------


combo STOP_RUNNING {
set_val(12,0);
wait(20);
}

combo super {
set_val(MELEE_BUTTON ,100);
set_val(GRENADE_BUTTON,100);
wait(100);
set_val(MELEE_BUTTON ,0);
set_val(GRENADE_BUTTON,0);
}
combo switchToHeavyWeapon {
set_val(SWITCH_WEAPON_BUTTON,100);
wait(500);
set_val(SWITCH_WEAPON_BUTTON, 0);
}