/*
_ سيف ابو زهراء
======================
Rainbow Six Siege
======================
1___ رابد فاير مثلث فقط
=================================
2___ يل تو + سهم يمين شوت مود
=================================
3___ تحكم بالارتداد بنفسك السلاح
=================================
4___ حفظ الثبات السلاح يل تو +اوبشن
=================================
*/
define AANTI_RECOIL = 0;
define ANTI_RECOIL_LEFT = 0;
define ANTI_RECOIL_RIGHT = 0;
int rapidfire;
int rapidfire2;
int value= 33;
int value2= -33;
int delay= 11;
int anti_recoil;
int anti_recoil_left;
int anti_recoil_right;
int crouch_shot_onoff = FALSE;
int rf_onoff = FALSE;
int Aim_BTN;
int Shoot_BTN;
int RX;
int RY;
int Crouch_BTN;
int LeanLeft;
int LeanRight;
int Right;
int Switch;
init {
if(get_console() == PIO_PS4){ Aim_BTN = PS4_R2; Shoot_BTN = PS4_R2; RX = PS4_RX; RY = PS4_RY; Crouch_BTN = PS4_CIRCLE; LeanLeft = PS4_L3; LeanRight = PS4_R3; Right = PS4_RIGHT; Switch = PS4_TRIANGLE
}else{
Aim_BTN = XB1_RT; Shoot_BTN = XB1_RT; RX = XB1_RX; RY = XB1_RY; Crouch_BTN = XB1_B; LeanLeft = XB1_LS; LeanRight = XB1_RS; Right = XB1_RIGHT; Switch = XB1_Y
}
}
main {
if (get_val(Aim_BTN) && event_press(LeanLeft)) combo_run(LeanLeft);
if(combo_running(LeanLeft)) {set_val(LeanLeft, 0);}
if (get_val(Aim_BTN) && event_press(LeanRight)) combo_run(LeanRight);
if(combo_running(LeanRight)) set_val(LeanRight, 0);
if (event_press(Switch)) rf_onoff = !rf_onoff
if (get_val(Shoot_BTN) && rf_onoff) combo_run(rapidfire);
if (event_press(Right)) crouch_shot_onoff = !crouch_shot_onoff
if (get_val(Aim_BTN) && crouch_shot_onoff) combo_run(Crouch_Shot);
if (get_val(Shoot_BTN)) combo_run(Anti_Recoil);
}
combo Crouch_Shot {
set_val(Crouch_BTN, 100);
wait(80);
wait(60);
}
combo LeanRight {
set_val(LeanLeft, 100);
wait(40);
set_val(LeanRight, 100);
set_val(LeanLeft, 100);
wait(90);
set_val(LeanRight, 100);
set_val(LeanLeft, 0);
wait(10);
set_val(LeanRight, 0);
}
combo LeanLeft {
set_val(LeanRight, 100);
wait(40);
set_val(LeanLeft, 100);
set_val(LeanRight, 100);
wait(90);
set_val(LeanLeft, 100);
set_val(LeanRight, 0);
wait(10);
set_val(LeanLeft, 0);
}
combo rapidfire {
set_val(Shoot_BTN,100);
wait(30);
set_val(Shoot_BTN,0);
wait(19);
wait(10);}
combo RT_C {
set_val(RY, -32);
wait(delay)
set_val(RX, 32);
set_val(RY, 22);
wait(delay)
set_val(RY, 22);
wait(delay)
set_val(RX, -32);
set_val(RY, 22);
wait(delay)
}
combo Anti_Recoil {
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);
}
define save = 2;
define AR_Release = 70;
define Scope_only = TRUE;
define UP = 13;
define DOWN = 14;
define LEFT = 15;
define RIGHT = 16;
int recoil_onoff = TRUE;
int ANTI_RECOIL = 30;
int ANTI_RECOIL_H = 0;
int aanti_recoil;
int anti_recoil_H;
int fire_button;
int scope_button;
init{
if(get_console() == PIO_PS3) {
fire_button = 3;
scope_button = 6;
}else {
fire_button = 4;
scope_button = 7;
}
ANTI_RECOIL = get_pvar(SPVAR_2, -100,+100, 30);
ANTI_RECOIL_H = get_pvar(SPVAR_3, -100,+100, 0);
}
main {
if(get_val(scope_button) && event_press(save)){
combo_run(vibrate);
set_pvar(SPVAR_2, ANTI_RECOIL);
set_pvar(SPVAR_3, ANTI_RECOIL_H);
set_val(save, 0);
}
if(get_val(7)){
if(event_press(UP)){
ANTI_RECOIL = ANTI_RECOIL+ 1;
}
if(event_press(DOWN)) {
ANTI_RECOIL = ANTI_RECOIL- 1;
}
set_val(UP,0); set_val(DOWN,0);
if(event_press(LEFT)){
ANTI_RECOIL_H = ANTI_RECOIL_H+ 1;
}
if(event_press(RIGHT)) {
ANTI_RECOIL_H = ANTI_RECOIL_H- 1;
}
set_val(LEFT,0); set_val(RIGHT,0);
}
if(!Scope_only || get_val(scope_button) && get_val(fire_button )) {
combo_run(AntiRecoil);
}
if( abs(get_val(10)) > AR_Release || abs(get_val(9)) > AR_Release) {
combo_stop (AntiRecoil);
}
}
combo vibrate {
set_rumble(RUMBLE_A, 100);
wait(300);
reset_rumble();
}
combo AntiRecoil {
if(recoil_onoff) {
anti_recoil = get_val(10) + ANTI_RECOIL;
if(anti_recoil > 100) anti_recoil = 100;
set_val(10, anti_recoil);
anti_recoil_H = get_val(9) + ANTI_RECOIL_H;
if(anti_recoil_H > 100) anti_recoil_H = 100;
set_val(9, anti_recoil_H);
}
}