Category: Call of Duty
Author: RobinHood
Description:
// UPDATED AIMBOTZ //=============================================================== // BUTTON LAYOUT //=============================================================== define FIRE_BTN = PS4_R1; define ADS_BTN = PS4_L1; define SPRINT_BTN = PS4_L3; define PRONE_BTN = PS4_CIRCLE; define JUMP_BTN = PS4_CROSS; define SWITCHWEAPON_BTN = PS4_TRIANGLE; define RELOAD_BTN = PS4_SQUARE; define MELEE_BTN = PS4_R3; define TACTICAL_BTN = PS4_L2; define GRANADE_BTN = PS4_R2; define UP = PS4_UP; define RIGHT = PS4_RIGHT; define DOWN = PS4_DOWN; define LEFT = PS4_LEFT; define RX = PS4_RX; define RY = PS4_RY; define LX = PS4_LX; define LY = PS4_LY; //=============================================================== // ADJUSTABLE VARIABLES //=============================================================== // Index to find Value Name string - switchable in game with left/right in ModEdit - int valName_idx; int AR_Primary_V = 36; // val > 32 for assalt rifles - HOLD L1 / LB + UP or DOWN for ajust recoil int AR_Primary_H = 0; int AR_Second_V = 0; // val > 28 for SMG - HOLD L1 / LB + UP or DOWN for ajust recoil int AR_Second_H = -0; int quick_scope_val; int smartF_hold; int smartF_rest; int burstF_hold; int burstF_rest; int StrafeShotTime = 0; int RF_hold; int RF_release; int Aim_Boost = 7; int Aim_Correction = 12; int AimAssistTime; int AimAssistSize; //---Adjustable Variables Count define AMOUNT_OF_VALNAME_IDX = 15; //const string TITLE = "My Game"; // 18 char max const string TITLE = "UNKNOWN"; // 11 char max const string OFF = "OFF"; const string ON = "ON"; const string SCRIPT_ONOFF = "SCRIPT off"; // modName # of the last Mod Name string - Used for cycle modName_idx define MAX_MODS_COUNT = 11; // Mod Name - Text to Display const string AR_PRIM_SECOND = "ANTI RECOIL" ; const string AUTOSLIDEEASY = "DON'T USE" ; const string AUTOSLIDE = "SLIDE MW" ; const string QUICKSCOPE = "Quick Scope" ; const string SMARTFIRE = "Smart Fire" ; const string BURSTFIRE = "Burst Fire" ; const string HOLDBREATH = "Hold Breath" ; const string FASTMELEE = "Fast Melee" ; const string STRAFESHOT = "Strafe Shot" ; const string RAPIDFIRE = "Rapid Fire" ; const string AIMASSISTSWEET = "AIM ASSIST" ; const string BATTSSTICKYAIM = "Zen Polar" ; // Index to find Mod Name string - switchable in game with left/right in ModMenu int modName_idx; // Toggles int AR_Prim_Sec_onoff = 1 ; int AutoSlideCancelEasy = 0 ; int AutoSlideCancel = 0 ; int quick_scope_onoff = 0 ; int smart_fire_onoff = 0 ; int burst_fire_onoff = 0 ; int holdbreath_onoff = 0 ; int ToggleFastMelee = 0 ; int ToggleStrafeShot = 0 ; int rapidfire_onoff = 0 ; int sweet_evil_onoff = 0 ; int ToggleBattsStickyAim = 0 ; // Mod VALUES - Text to Display const string AR_PRIMARY_V = "AR Prim V" ; const string AR_PRIMARY_H = "AR Prim H" ; const string AR_SECOND_VERTICAL = "AR Second V" ; const string AR_SECOND_HORIZONTAL = "AR Secon H" ; const string QUICK_SCOPE_VAL = "Quick Scope" ; const string SMARTFIRE_HOLD = "Smart Hold"; const string SMARTFIRE_RELEASE = "Smart Rest" ; const string BURSTFIRE_HOLD = "Burst Hold"; const string BURSTFIRE_RELEASE = "Burst Rest" ; const string STRAFE_SHOT_TIME = "StShot Time" ; const string RAPIDFIRE_HOLD = "RF Hold"; const string RAPIDFIRE_RELEASE = "RF Release" ; const string AIMBOOST = "Aim Boost" ; const string AIMCORRECTION = "Aim Correct" ; const string AIMASSIST_TIME = "AA Time"; const string AIMASSISTSIZE = "AA Size" ; // Constant bytes - Convert numbers array - ASCII_NUM[column number] const int8 ASCII_NUM[] = // 0 1 2 3 4 5 6 7 8 9 (column numbers) {48,49,50,51,52,53,54,55,56,57}; const string NO_EDIT_VAR1 = " ";// 17 const string NO_EDIT_VAR2 = " ";// 12 const uint8 Options [] = { 24 , // AR_PRIM_SECOND # 1 0 , // AUTOSLIDEEASY # 2 1 , // AUTOSLIDE # 3 1 , // QUICKSCOPE # 4 9 , // SMARTFIRE # 5 9 , // BURSTFIRE # 6 7 , // HOLDBREATH # 7 1 , // FASTMELEE # 8 32 , // STRAFESHOT # 9 9 , // RAPIDFIRE # 10 1 , // AIMASSISTSWEET # 11 1 // BATTSSTICKYAIM # 12 }; const uint8 EditVal [] = { 1 , // AR_PRIM_SECOND # 1 0 , // AUTOSLIDEEASY # 2 0 , // AUTOSLIDE # 3 1 , // QUICKSCOPE # 4 3 , // SMARTFIRE # 5 3 , // BURSTFIRE # 6 0 , // HOLDBREATH # 7 0 , // FASTMELEE # 8 1 , // STRAFESHOT # 9 1 , // RAPIDFIRE # 10 1 , // AIMASSISTSWEET # 11 1 // BATTSSTICKYAIM # 12 }; const uint8 OptRange [][] = { { 0 , 3 }, // AR_PRIM_SECOND # 1 { 0 , 0 }, // AUTOSLIDEEASY # 2 { 0 , 0 }, // AUTOSLIDE # 3 { 4 , 4 }, // QUICKSCOPE # 4 { 5 , 6 }, // SMARTFIRE # 5 { 7 , 8 }, // BURSTFIRE # 6 { 0 , 0 }, // HOLDBREATH # 7 { 0 , 0 }, // FASTMELEE # 8 { 9 , 9 }, // STRAFESHOT # 9 { 10 , 11 }, // RAPIDFIRE # 10 { 12 , 13 }, // AIMASSISTSWEET # 11 { 14 , 15 } // BATTSSTICKYAIM # 12 }; const uint8 Min_Max_Options [][]={ { 0 , 2 }, // AR_PRIM_SECOND # 1 { 0 , 1 }, // AUTOSLIDEEASY # 2 { 0 , 1 }, // AUTOSLIDE # 3 { 0 , 1 }, // QUICKSCOPE # 4 { 0 , 3 }, // SMARTFIRE # 5 { 0 , 3 }, // BURSTFIRE # 6 { 0 , 2 }, // HOLDBREATH # 7 { 0 , 1 }, // FASTMELEE # 8 { 0 , 4 }, // STRAFESHOT # 9 { 0 , 3 }, // RAPIDFIRE # 10 { 0 , 1 }, // AIMASSISTSWEET # 11 { 0 , 1 } // BATTSSTICKYAIM # 12 }; ///////////////////////////////////////////////////////////////////////////// /// INITIALIZATION BLOCK ///////////////////////////////////////////////////////////////////////////// init { AR_Prim_Sec_onoff = get_pvar(SPVAR_1,1,2,2); AutoSlideCancelEasy = get_pvar(SPVAR_2,0,1,0); AutoSlideCancel = get_pvar(SPVAR_3,0,1,0); quick_scope_onoff = get_pvar(SPVAR_4,0,1,0); smart_fire_onoff = get_pvar(SPVAR_5,1,3,0); burst_fire_onoff = get_pvar(SPVAR_6,1,3,0); holdbreath_onoff = get_pvar(SPVAR_7,1,2,0); ToggleFastMelee = get_pvar(SPVAR_8,0,1,0); ToggleStrafeShot = get_pvar(SPVAR_9,1,4,0); rapidfire_onoff = get_pvar(SPVAR_10,1,3,0); sweet_evil_onoff = get_pvar(SPVAR_11,0,1,0); ToggleBattsStickyAim = get_pvar(SPVAR_12,0,1,0); AR_Primary_V = get_pvar(SPVAR_13, 1,99, 28); AR_Primary_H = get_pvar(SPVAR_14,-99,99, 2); AR_Second_V = get_pvar(SPVAR_15, 1,99, 28); AR_Second_H = get_pvar(SPVAR_16,-99,99, 2); quick_scope_val = get_pvar(SPVAR_17, 50,600, 350); smartF_hold = get_pvar(SPVAR_18, 30, 60, 40); smartF_rest = get_pvar(SPVAR_19, 100, 800, 350); burstF_hold = get_pvar(SPVAR_20, 100, 800, 510); burstF_rest = get_pvar(SPVAR_21, 100, 800, 350); StrafeShotTime = get_pvar(SPVAR_22, 1,999, 400); RF_hold = get_pvar(SPVAR_23, 1,1000, 20); RF_release = get_pvar(SPVAR_24, 1,1000, 30); Aim_Boost = get_pvar(SPVAR_25, 1,30, 7); Aim_Correction = get_pvar(SPVAR_26, 1,30, 12); AimAssistTime = get_pvar(SPVAR_27, 1,100, 20); AimAssistSize = get_pvar(SPVAR_28, 1,100, 15); }// end of init block ///////////////////////////////////////////////////////////////////////////// /// MAIN BLOCK ///////////////////////////////////////////////////////////////////////////// main {//--------------------------------- ///////////////////////////////////////// if(get_ival(ADS_BTN)){ if(event_press(PS4_SHARE)){ EntireScript_OnOff = !EntireScript_OnOff; blinck(EntireScript_OnOff); cls_oled(0); draw_rectangle(); //display_mod(f_idx, f_string, mod_name, f_toggle, f_option) display_mod( center_x(sizeof(SCRIPT_ONOFF)- 1, OLED_FONT_MEDIUM_WIDTH) ,SCRIPT_ONOFF [0],EntireScript_OnOff ,1); show_mesage_time = 2000; //--- Set Virtual Machine Speed to Default if script is OFF if(!EntireScript_OnOff) set_Virtual_Machine_Speed(VM_Default); } } if(show_mesage_time){ show_mesage_time -= get_rtime(); if(show_mesage_time = 5000) { cls_oled(0); count_black = 0; display_black = FALSE; } } ///////////////////////////////////////////////////////// // MENU EDIT VALUES if(ModEdit){ block_all_inputs(); if(MenuTimeOut){ CheckIfBtnIsPressed(); } //--- Exit from EDIT MENU if(event_release(PS4_CIRCLE)){ ModEdit = FALSE; display_EDIT = FALSE; ModMenu = TRUE; refresh_OLED = TRUE; // display MODS } //////////////////////////////////////////////////////////////////////////////// // GO FORWARD if(!get_ival(ADS_BTN) && event_press(PS4_DOWN)){ valName_idx ++; if(valName_idx > OptRange[ modName_idx ][ 1 ]) valName_idx = OptRange[ modName_idx ][ 1 ]; refresh_OLED = FALSE; display_EDIT = TRUE; } /////////////////////////////////////////////////////////////////////////////// // GO BACK if(!get_ival(ADS_BTN) && event_press(PS4_UP)){ valName_idx --; if(valName_idx 11) modName_idx = 0; ////////////////////////////////////// if(modName_idx == 0 ) { blinck( AR_Prim_Sec_onoff); } ///////////////////////////////////// ////////////////////////////////////// if(modName_idx == 1 ) { blinck( AutoSlideCancelEasy); } ///////////////////////////////////// ////////////////////////////////////// if(modName_idx == 2 ) { blinck( AutoSlideCancel); } ///////////////////////////////////// ////////////////////////////////////// if(modName_idx == 3 ) { blinck( quick_scope_onoff); } ///////////////////////////////////// ////////////////////////////////////// if(modName_idx == 4 ) { blinck( smart_fire_onoff); } ///////////////////////////////////// ////////////////////////////////////// if(modName_idx == 5 ) { blinck( burst_fire_onoff); } ///////////////////////////////////// ////////////////////////////////////// if(modName_idx == 6 ) { blinck( holdbreath_onoff); } ///////////////////////////////////// ////////////////////////////////////// if(modName_idx == 7 ) { blinck( ToggleFastMelee); } ///////////////////////////////////// ////////////////////////////////////// if(modName_idx == 8 ) { blinck( ToggleStrafeShot); } ///////////////////////////////////// ////////////////////////////////////// if(modName_idx == 9 ) { blinck( rapidfire_onoff); } ///////////////////////////////////// ////////////////////////////////////// if(modName_idx == 10 ) { blinck( sweet_evil_onoff); } ///////////////////////////////////// ////////////////////////////////////// if(modName_idx == 11 ) { blinck( ToggleBattsStickyAim); } ///////////////////////////////////// } if(!get_ival(ADS_BTN) && event_press(PS4_UP)){ modName_idx --; if(modName_idx 100){ set_val(SPRINT_BTN, 100);// SPRINT BTN } } if(event_release(ADS_BTN)){ hbreath_time = 0; } //----------------------------- } //=========================================== // QUICK SCOPE //=========================================== if (quick_scope_onoff) { //QUICKSCOPE TAP 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); } } } else if(abs(X_Current_Value) AR_Release_Prim || abs(get_val(RY)) > AR_Release_Prim) { combo_stop (AntiRecoilPrimary); } if( get_val(ADS_BTN) && get_val(FIRE_BTN)) { combo_run(AntiRecoilPrimary); } } //====================================================== // ANTI RECOIL SECONDARY WEAPON //====================================================== //====================================================== if(AR_Prim_Sec_onoff && !primary_weapon) { // hold RS/R3 + UP/DOWN (Vertical Recoil) or LEFT/RIGHT(Horizontal Recoil) if(get_val(PS4_L1)){ if(event_press(XB1_UP)) { AR_Second_V +=1; on_the_fly_display(center_x(sizeof(AR_SECOND_VERTICAL)- 1,OLED_FONT_MEDIUM_WIDTH),AR_SECOND_VERTICAL[0],AR_Second_V); } if(event_press(XB1_DOWN)){ AR_Second_V -=1; on_the_fly_display(center_x(sizeof(AR_SECOND_VERTICAL)- 1,OLED_FONT_MEDIUM_WIDTH),AR_SECOND_VERTICAL[0],AR_Second_V); } //horizontal------------------------------------ if(event_press(XB1_LEFT)){ AR_Second_H -=1; on_the_fly_display(center_x(sizeof(AR_SECOND_HORIZONTAL)- 1,OLED_FONT_MEDIUM_WIDTH),AR_SECOND_HORIZONTAL[0],AR_Second_H); } if(event_press(XB1_RIGHT)){ AR_Second_H +=1; on_the_fly_display(center_x(sizeof(AR_SECOND_HORIZONTAL)- 1,OLED_FONT_MEDIUM_WIDTH),AR_SECOND_HORIZONTAL[0],AR_Second_H); } set_val(PS4_UP,0); set_val(PS4_RIGHT,0); set_val(PS4_DOWN,0);set_val(PS4_LEFT,0); //--- SAVE AR VALUES if(event_press(PS4_PS)){ combo_run(MESSAGE); } set_val(PS4_PS,0); }// get RS if( abs(get_val(RX)) > AR_Release_Second || abs(get_val(RY)) > AR_Release_Second) { combo_stop (ARSecondary); } if( get_val(ADS_BTN) && get_val(FIRE_BTN)) { combo_run(ARSecondary); } } //====================================================== //=========================================== // AUTO SLIDE CANCEL //=========================================== //=============================================== //--- Auto Slide Cancel with custom slide lenth (recommended for low skill players)ASCE //=============================================== if((event_press(PS4_UP) && get_val(PS4_CIRCLE)) || (event_press(XB1_Y) && get_val(PS4_UP))) {// AutoSlideCancelEasy = !AutoSlideCancelEasy; set_rumble_tipe (AutoSlideCancelEasy); if(AutoSlideCancelEasy)AutoSlideCancel = FALSE; } if(AutoSlideCancelEasy){ if(get_ival (PRONE_BTN)){ combo_run(ASCE); } } //=============================================== //--- Auto Slide Cancel with the ability to choose the length of your slide. //=============================================== if((event_press(PS4_UP) && get_val(PS4_CROSS)) || (event_press(PS4_CROSS) && get_val(PS4_UP))) {//- AutoSlideCancel = !AutoSlideCancel; if(AutoSlideCancel)AutoSlideCancelEasy = FALSE; set_rumble_tipe (AutoSlideCancelEasy); } if(AutoSlideCancel) { if((get_val(LY) 60) || (get_val(LX) 60)){ if(event_release (PRONE_BTN)){ combo_run(ASC) } } } //=========================================== // Batts Sticky Aim //=========================================== if(ToggleBattsStickyAim){ if(get_ival(FIRE_BTN)) combo_run(StickyAim); } //=========================================== // FAST MELEE //=========================================== if(ToggleFastMelee) { if(!get_val(ADS_BTN)){ if(get_val(MELEE_BTN)) combo_run(FastMelee); } if(get_val(ADS_BTN)) combo_stop(FastMelee); } } // end of MODS CODE } // ENTIRE SCRIPT KILL SWITCH } // end of main block ///////////////////////////////////////////////////////////////////////////// /// COMBO BLOCK ///////////////////////////////////////////////////////////////////////////// //-- VM Speed define VM_Default = 0; function set_Virtual_Machine_Speed (f_speed){ if (f_speed == 0) vm_tctrl(-0);//10 ms Default else if(f_speed == 1) vm_tctrl(-2);// 8 ms else if(f_speed == 2) vm_tctrl(-4);// 6 ms else if(f_speed == 3) vm_tctrl(-6);// 4 ms else if(f_speed == 4) vm_tctrl(-8);// 2 ms else if(f_speed == 5) vm_tctrl(-9);// 1 ms } int hbreath_time; //=============================================== // ANTIRECOIL PRIMARY //=============================================== int AR_Release_Prim = 70; int ar_prim_v, ar_prim_h; combo AntiRecoilPrimary { //--- vertical_recoil ar_prim_v = get_val(RY) + (AR_Primary_V ); if(ar_prim_v > 100) ar_prim_v = 100; set_val(RY, ar_prim_v); //--- Horizontal_Recoil ar_prim_h = get_val(RX) + (AR_Primary_H ); if(ar_prim_h >100) ar_prim_h = 100; else if(ar_prim_h 100) ar_second_v = 100; set_val(RY, ar_second_v); //--- Horizontal_Recoil ar_second_h = get_val(RX) + (AR_Second_H ); if(ar_second_h >100) ar_second_h = 100; else if(ar_second_h = 1) set_rumble(rumble_tipe, 0); wait(300); reset_rumble(); wait(100); if(profile_numbr > 1)set_rumble(rumble_tipe, 0); wait(300); reset_rumble(); wait(100); if(profile_numbr > 2)set_rumble(rumble_tipe, 0); wait(300); reset_rumble(); } define PRIMARY_Profile = 1; define SECONDARY_Profile = 2; function set_profile_notify(f_profile,rumbl_type){ profile_numbr = f_profile; rumble_tipe = rumbl_type; combo_run(PROFILES_VIBRATE_NOTIFY); } //=============================================== // VIBRATE SETUP //=============================================== combo vibrate { set_rumble(rumble_tipe, 100); wait(300); reset_rumble(); wait(100); set_rumble(rumble_tipe, 100); wait(300); reset_rumble(); } //=============================================== // RUMBLE_TIPE //=============================================== function set_rumble_tipe ( val) { if( val){ rumble_tipe = RUMBLE_A ; LED_OnOff = Green;} else { rumble_tipe = RUMBLE_B ; LED_OnOff = Red ;} combo_run(vibrate); combo_run(LED_BLINK); } //=============================================== // DOUBLE CLICK //=============================================== int b_dblclick; function double_click (button) { if (b_dblclick) { b_dblclick -=get_rtime(); } if (event_press(button) ) { if(b_dblclick){ b_dblclick = 0; return TRUE; }else{ b_dblclick = 300; return FALSE; } } return FALSE; } define Sampling_Time = 10; define Aim_Perfection_Limit = 30; define POS_Aim_Limit = 70; define NEG_Aim_Limit = -70; define POS_Micro_MVT_Limit = 25; define NEG_Micro_MVT_Limit = -25; 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; combo Aim_Assist_Perfection{ X_Last_Value = X_Current_Value Y_Last_Value = Y_Current_Value wait(Sampling_Time); X_Current_Value = get_lval(RX)- RX_Axis_Joystick_calibrate; Y_Current_Value = get_lval(RY)- RY_Axis_Joystick_calibrate; if (Sampling_Done == TRUE ){ 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; wait(Sampling_Time); X_Current_Value = get_lval(RX)- RX_Axis_Joystick_calibrate; Y_Current_Value = get_lval(RY)- RX_Axis_Joystick_calibrate; if (Sampling_Done == TRUE ){ 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(RX,(15 - fine_pulse)); set_val(LX,(-15 + fine_pulse)); wait(Sampling_Time); wait(Sampling_Time); wait(Sampling_Time); set_val(RX,(15 - fine_pulse)); set_val(RY,(10 - fine_pulse)); set_val(LX,(-5 + fine_pulse)); wait(Sampling_Time); wait(Sampling_Time); wait(Sampling_Time); set_val(RY,(10 - fine_pulse)); wait(Sampling_Time); wait(Sampling_Time); wait(Sampling_Time); wait(Sampling_Time); set_val(RX,(-15 + fine_pulse)); set_val(RY,(10 - fine_pulse)); set_val(LX,(5 - fine_pulse)) wait(Sampling_Time); wait(Sampling_Time) wait(Sampling_Time) set_val(RX,(-15 + fine_pulse)); set_val(LX,(15 - fine_pulse)) wait(Sampling_Time); wait(Sampling_Time); wait(Sampling_Time); set_val(RX,(-15 + fine_pulse)); set_val(RY,(-10 + fine_pulse)); set_val(LX,(5 - fine_pulse)) wait(Sampling_Time); wait(Sampling_Time); wait(Sampling_Time); set_val(RY,(-10 + fine_pulse)); wait(Sampling_Time); wait(Sampling_Time); wait(Sampling_Time); wait(Sampling_Time); set_val(RX,(15 - fine_pulse)); set_val(RY,(-10 + fine_pulse)); set_val(LX,(-5 + fine_pulse)) wait(Sampling_Time); wait(Sampling_Time); fine_pulse = fine_pulse + 2; if ( fine_pulse >10){ fine_pulse = 0;} } combo spiroide_Aim_Assit { set_val(RX,(4 + spiroide_pulse)); set_val(LX,(-15+ spiroide_pulse)); wait(Sampling_Time); wait(Sampling_Time); set_val(RY,(5 + spiroide_pulse)); wait(Sampling_Time); wait(Sampling_Time); wait(Sampling_Time); wait(Sampling_Time); set_val(RX,(-4 - spiroide_pulse)); set_val(LX,15 - spiroide_pulse ); wait(Sampling_Time); wait(Sampling_Time) set_val(RY,(5 + spiroide_pulse)); wait(Sampling_Time); wait(Sampling_Time); wait(Sampling_Time); wait(Sampling_Time); spiroide_pulse = spiroide_pulse + 2; if ( spiroide_pulse >10){ spiroide_pulse = 0;} } function Aim_Perfection(Last_Value, Current_Value, Boost, Correction, X_AXIS, Y_AXIS ) { if(abs(Last_Value - Current_Value) 2)blink_n = 1; } const uint8 FONT_STATS[][] = { { 7, 10, 18 }, // Small { 11, 18, 11 }, // Medium { 16, 26, 7 } // Large }; function display_edit( f_string, f_print, f_val) { printf(f_string, 0, OLED_FONT_MEDIUM, OLED_WHITE, f_print); number_to_string(f_val, find_digits(f_val)); } function f_go_forward (f_variable) { f_variable +=1; if(f_variable > Min_Max_Options[modName_idx][1] )f_variable = Min_Max_Options[modName_idx][1]; // max option need_to_be_save = TRUE; blinck( f_variable ); return f_variable; } function f_go_back (f_variable) { f_variable -=1; if(f_variable = 1; c_c_c--) { if(f_digits >= c_c_c) { putc_oled(ssss,ASCII_NUM[f_val / c_val]); f_val = f_val % c_val; ssss += 1; if(c_c_c == 4) { putc_oled(ssss,44); //--add "," ssss += 1; } } c_val /= 10; } puts_oled(center_x(ssss - 1,OLED_FONT_LARGE_WIDTH),37,OLED_FONT_LARGE,ssss - 1,OLED_WHITE); // adjustable value centered in X } int n_str_; int horiz_X_center_sufix; function print_number(f_val,f_digits ,print_s_x , print_s_y , f_font) { n_str_ = 1; c_val = 10000; if(f_val = 1; c_c_c--) { if(f_digits >= c_c_c) { putc_oled(n_str_,ASCII_NUM[f_val / c_val]); f_val = f_val % c_val; n_str_ += 1; } c_val /= 10; } puts_oled(print_s_x,print_s_y,f_font,n_str_ - 1,OLED_WHITE); // adjustable value centered in X } function edit_val( f_val, f_min, f_max ) { // antirecoil = edit_val( 0 , antirecoil, 99 , 99 ) line_oled(1,18,127,18,1,1); // print the range values // on the left: min value print_number(f_min ,find_digits(f_min) ,4 , 22 , OLED_FONT_SMALL); // on the right: max value print_number(f_max ,find_digits(f_max) ,97 , 22 , OLED_FONT_SMALL); if(get_val(ADS_BTN)){ if(press_hold(PS4_RIGHT)){ f_val ++; if(f_val > f_max ) f_val = f_max; display_EDIT = TRUE; need_to_be_save = TRUE; } if(press_hold(PS4_LEFT)){ f_val --; if(f_val f_max ) f_val = f_max; display_EDIT = TRUE; need_to_be_save = TRUE; } if(press_hold(PS4_DOWN)){ f_val -=10; if(f_val 250 && get_ptime(f_btn) % (get_rtime() * 8) == 0; } function find_digits(f_num) { // find_digits(value) // return Number of Digits in Value Passed f_num = abs(f_num); if(f_num / 10000 > 0) return 5; if(f_num / 1000 > 0) return 4; if(f_num / 100 > 0) return 3; if(f_num / 10 > 0) return 2; return 1; } /////////////////////////////////////////////// // FUNCTIONS function center_x(f_chars,f_font) { // center_x(number of chars,font size); // return X for Centering String Horizontally return (OLED_WIDTH / 2) - ((f_chars * f_font) / 2); } function draw_rectangle() { line_oled(1,25,127,25,1,1); rect_oled(0, 0,OLED_WIDTH,64,FALSE,1); } const string ModOption_24_0 = "Disable"; const string ModOption_24_1 = "Automatic"; const string ModOption_24_2 = "Manually"; const string ModOption_0_0 = ""; const string ModOption_0_1 = ""; const string ModOption_7_0 = "Disable"; const string ModOption_7_1 = "Like CoD"; const string ModOption_7_2 = "Like PUBG"; const string ModOption_32_0 = "Disable"; const string ModOption_32_1 = "Fire Only"; const string ModOption_32_2 = "ADS & Fire"; const string ModOption_32_3 = "ADS Only"; const string ModOption_32_4 = "On Button"; define ShotModOptions = 31; define FireModOptions = 9; const string ModOption_31_0 = "Disable"; const string ModOption_31_1 = "Fire Only"; const string ModOption_31_2 = "ADS & Fire"; const string ModOption_31_3 = "ADS Only"; const string ModOption_31_4 = "On Fire"; function display_mod( f_string, mod_name, f_toggle, f_option) { // Display MOD_NAME printf(f_string, 3, OLED_FONT_MEDIUM, OLED_WHITE, mod_name); if(f_option == 1) { // Display Disable / Enable if(f_toggle == 1) printf(center_x(sizeof(ON) - 1, OLED_FONT_LARGE_WIDTH),37,OLED_FONT_LARGE,OLED_WHITE, ON[0]);// Enable else printf(center_x(sizeof(OFF) - 1, OLED_FONT_LARGE_WIDTH),37,OLED_FONT_LARGE,OLED_WHITE,OFF[0]);// Disable } if(f_option == ShotModOptions)// 31 { if(f_toggle == 0) printf(center_x(sizeof(ModOption_31_0) - 1, OLED_FONT_MEDIUM_WIDTH),37,OLED_FONT_MEDIUM,OLED_WHITE, ModOption_31_0[0]);// Disable if(f_toggle == 1) printf(center_x(sizeof(ModOption_31_1) - 1, OLED_FONT_MEDIUM_WIDTH),37,OLED_FONT_MEDIUM,OLED_WHITE, ModOption_31_1[0]);// Fire Only if(f_toggle == 2) printf(center_x(sizeof(ModOption_31_2) - 1, OLED_FONT_MEDIUM_WIDTH),37,OLED_FONT_MEDIUM,OLED_WHITE, ModOption_31_2[0]);// ADS & Fire if(f_toggle == 3) printf(center_x(sizeof(ModOption_31_3) - 1, OLED_FONT_MEDIUM_WIDTH),37,OLED_FONT_MEDIUM,OLED_WHITE, ModOption_31_3[0]);// ADS Only } if(f_option == FireModOptions)// 9 FireModOptions { if(f_toggle == 0) printf(center_x(sizeof(ModOption_31_0) - 1, OLED_FONT_MEDIUM_WIDTH),37,OLED_FONT_MEDIUM,OLED_WHITE, ModOption_31_0[0]);// Disable if(f_toggle == 1) printf(center_x(sizeof(ModOption_31_1) - 1, OLED_FONT_MEDIUM_WIDTH),37,OLED_FONT_MEDIUM,OLED_WHITE, ModOption_31_1[0]);// Fire Only if(f_toggle == 2) printf(center_x(sizeof(ModOption_31_2) - 1, OLED_FONT_MEDIUM_WIDTH),37,OLED_FONT_MEDIUM,OLED_WHITE, ModOption_31_2[0]);// ADS & Fire if(f_toggle == 3) printf(center_x(sizeof(ModOption_31_4) - 1, OLED_FONT_MEDIUM_WIDTH),37,OLED_FONT_MEDIUM,OLED_WHITE, ModOption_31_4[0]);// On Fire } if(f_option == 24) { if(f_toggle == 0) printf(center_x(sizeof(ModOption_24_0) - 1, OLED_FONT_MEDIUM_WIDTH),37,OLED_FONT_MEDIUM,OLED_WHITE, ModOption_24_0[0]);// Disable if(f_toggle == 1) printf(center_x(sizeof(ModOption_24_1) - 1, OLED_FONT_MEDIUM_WIDTH),37,OLED_FONT_MEDIUM,OLED_WHITE, ModOption_24_1[0]);// Automatic if(f_toggle == 2) printf(center_x(sizeof(ModOption_24_2) - 1, OLED_FONT_MEDIUM_WIDTH),37,OLED_FONT_MEDIUM,OLED_WHITE, ModOption_24_2[0]);// Manually } if(f_option == 0) { if(f_toggle == 0) printf(center_x(sizeof(ModOption_0_0) - 1, OLED_FONT_MEDIUM_WIDTH),37,OLED_FONT_MEDIUM,OLED_WHITE, ModOption_0_0[0]);// if(f_toggle == 1) printf(center_x(sizeof(ModOption_0_1) - 1, OLED_FONT_MEDIUM_WIDTH),37,OLED_FONT_MEDIUM,OLED_WHITE, ModOption_0_1[0]);// } if(f_option == 7) { if(f_toggle == 0) printf(center_x(sizeof(ModOption_7_0) - 1, OLED_FONT_MEDIUM_WIDTH),37,OLED_FONT_MEDIUM,OLED_WHITE, ModOption_7_0[0]);// Disable if(f_toggle == 1) printf(center_x(sizeof(ModOption_7_1) - 1, OLED_FONT_MEDIUM_WIDTH),37,OLED_FONT_MEDIUM,OLED_WHITE, ModOption_7_1[0]);// Like CoD if(f_toggle == 2) printf(center_x(sizeof(ModOption_7_2) - 1, OLED_FONT_MEDIUM_WIDTH),37,OLED_FONT_MEDIUM,OLED_WHITE, ModOption_7_2[0]);// Like PUBG } if(f_option == 32) { if(f_toggle == 0) printf(center_x(sizeof(ModOption_32_0) - 1, OLED_FONT_MEDIUM_WIDTH),37,OLED_FONT_MEDIUM,OLED_WHITE, ModOption_32_0[0]);// Disable if(f_toggle == 1) printf(center_x(sizeof(ModOption_32_1) - 1, OLED_FONT_MEDIUM_WIDTH),37,OLED_FONT_MEDIUM,OLED_WHITE, ModOption_32_1[0]);// Fire Only if(f_toggle == 2) printf(center_x(sizeof(ModOption_32_2) - 1, OLED_FONT_MEDIUM_WIDTH),37,OLED_FONT_MEDIUM,OLED_WHITE, ModOption_32_2[0]);// ADS & Fire if(f_toggle == 3) printf(center_x(sizeof(ModOption_32_3) - 1, OLED_FONT_MEDIUM_WIDTH),37,OLED_FONT_MEDIUM,OLED_WHITE, ModOption_32_3[0]);// ADS Only if(f_toggle == 4) printf(center_x(sizeof(ModOption_32_4) - 1, OLED_FONT_MEDIUM_WIDTH),37,OLED_FONT_MEDIUM,OLED_WHITE, ModOption_32_4[0]);// On Button } }//display mod end /* ====================================================== Logo Picture : script.gpc ====================================================== */ const int16 BOOT_LOGO[] = { 128, 64, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x3FFF,0xFFFC,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0xFFFF,0xFFFF,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,0xFFFF,0xFFFF,0x8000,0x0000,0x0000,0x0000,0x0000,0x000F,0xFFFF,0xFFFF,0xF000,0x0000,0x0000,0x0000,0x0000,0x001F,0xFFFF,0xFFFF,0xF800,0x0000,0x0000, 0x0000,0x0000,0x003F,0xFFFF,0xFFFF,0xFC00,0x0000,0x0000,0x0000,0x0000,0x007F,0xFFFF,0xFFFF,0xFE00,0x0000,0x0000,0x0000,0x0000,0x007C,0x007F,0xFE00,0x3E00,0x0000,0x0000,0x0000,0x0000,0x00FC,0x007F,0xFE00,0x3F00,0x0000,0x0000, 0x0000,0x0000,0x00E0,0x0007,0xE000,0x0700,0x0000,0x0000,0x0000,0x0000,0x00E1,0xFF87,0xE1FF,0x8700,0x0000,0x0000,0x0000,0x0000,0x00E1,0xFF87,0xE1FF,0x8700,0x0000,0x0000,0x0000,0x0000,0x00FF,0xFFFF,0xFFFF,0xFF00,0x0000,0x0000, 0x0000,0x0000,0x00FF,0xFFFF,0xFFFF,0xFF00,0x0000,0x0000,0x0000,0x0000,0x00FC,0x007F,0xFE00,0x3F00,0x0000,0x0000,0x0000,0x0000,0x00FC,0x007F,0xFE00,0x3F00,0x0000,0x0000,0x0000,0x0000,0x00FC,0x007F,0xFE00,0x3F00,0x0000,0x0000, 0x0000,0x0000,0x00FF,0xFFFF,0xFFFF,0xFF00,0x0000,0x0000,0x0000,0x0000,0x00FF,0xFFFF,0xFFFF,0xFF00,0x0000,0x0000,0x0000,0x0000,0x00FF,0xFFFF,0xFFFF,0xFF00,0x0000,0x0000,0x0000,0x0000,0x00FF,0xFFFF,0xFFFF,0xFF00,0x0000,0x0000, 0x0000,0x0000,0x00E1,0xFF87,0xE1FF,0x8700,0x0000,0x0000,0x0000,0x0000,0x00E1,0xFF87,0xE1FF,0x8700,0x0000,0x0000,0x0000,0x0000,0x00E0,0x3F80,0x01FC,0x0700,0x0000,0x0000,0x0000,0x0000,0x00FC,0x3FF0,0x0FFC,0x3F00,0x0000,0x0000, 0x0000,0x0000,0x00FC,0x3FF8,0x1FFC,0x3F00,0x0000,0x0000,0x0000,0x0000,0x00FF,0xC007,0xE003,0xFF00,0x0000,0x0000,0x0000,0x0000,0x007F,0xC007,0xE003,0xFE00,0x0000,0x0000,0x0000,0x0000,0x001F,0xC000,0x0003,0xF800,0x0000,0x0000, 0x0000,0x0000,0x001F,0xFFF0,0x0FFF,0xF800,0x0000,0x0000,0x0000,0x0000,0x001F,0xFFF0,0x0FFF,0xF800,0x0000,0x0000,0x0000,0x0000,0x001F,0xFFFF,0xFFFF,0xF800,0x0000,0x0000,0x0000,0x0000,0x000F,0xFFFF,0xFFFF,0xF000,0x0000,0x0000, 0x0000,0x0000,0x0001,0xFF80,0x01FF,0x8000,0x0000,0x0000,0x0000,0x0000,0x0001,0xFF80,0x01FF,0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x3F80,0x01FC,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x3FFC,0x3FFC,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x03FC,0x3FE0,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x03FC,0x3FC0,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x03FC,0x3FC0,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x007C,0x3E00,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x007C,0x3E00,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000 } // picture /* ====================================================== DrawLogo(x, y, invert) ====================================================== */ int logoX,logoX2,logoY, logoY2; int logoBit,logoOffset,logoData; function DrawLogo(x, y, invert) { logoOffset = 2; logoBit = 16; for (logoY = 0; logoY = 128) { logoX2 -= 128; } if (logoY2 = 64) { logoY2 -= 64; } if (test_bit(logoData, logoBit - 1)) { pixel_oled(logoX2, logoY2, !invert); }else{ pixel_oled(logoX2, logoY2, invert); } logoBit--; // Decrement the bit flag, we are moving to the next bit if (!logoBit) { // Check if we have just handled the last bit logoBit = 16; // Reset the bit flag logoOffset++; // Move to the next value } } } } const uint8 MenuButtons [] = { PS4_RIGHT , //0. Up PS4_LEFT , //1. Down PS4_UP , //2. go back PS4_DOWN , //3. go forward PS4_CROSS , //4. enter in Edit Menu PS4_CIRCLE , //5. exit Menu PS4_OPTIONS , //5. enter in Menu PS4_L2 //6. hold ADS };//--- End Menu Buttons int menu_btn_indx; int MenuTimeOut; define menu_time_active = 30000; function CheckIfBtnIsPressed (){ for(menu_btn_indx = 0; menu_btn_indx < 7; menu_btn_indx++){ if(event_press(MenuButtons[menu_btn_indx]) ){ MenuTimeOut = menu_time_active; } if(MenuTimeOut){ MenuTimeOut -=1; if(MenuTimeOut <= 0 ){ ModMenu = FALSE; ModEdit = FALSE; display_EDIT = FALSE; display_black = TRUE; } } } } function display_MOD_status(f_val,f_size,f_label){ if(!ModMenu && !ModEdit){ // Clear OLED Screen cls_oled(0); // will clear oled printf(f_size, 3, OLED_FONT_MEDIUM ,OLED_WHITE, f_label); if( f_val ){ printf(center_x(sizeof(ON) - 1, OLED_FONT_LARGE_WIDTH),37,OLED_FONT_LARGE,OLED_WHITE, ON[0]);//MOD is ON } else{ printf(center_x(sizeof(OFF) - 1, OLED_FONT_LARGE_WIDTH),37,OLED_FONT_LARGE,OLED_WHITE, OFF[0]);// MOD is OFF } time_to_clear_screen = 1500; } }File: AIMBOTZ_ANONYMOUS_V2_1.gpc
Size: 98.25 KiB
View download: [FREE] - AIMBOTZ Anonymous V2 (Call of Duty)