BUNNYS AIMBOT

JKDSFSHF
Version1.0
AuthorMyNanSmokes
Publish DateFri, 15 Jun 2018 - 16:35
Last UpdateFri, 15 Jun 2018 - 16:35
Downloads729
RATE


0

1

Code: Select all
// GPC Online Library
// generic_antirecoil_script.gpc
 
/* *
* ANTI-RECOIL GPC SCRIPT
* *********************************************************** */

 
// Use Anti-recoil only when scoping
define ONLY_WITH_SCOPE = TRUE;
 
// Anti-recoil strongness
// Value range from 0 to 100
// Each weapon may need a specific value
define ANTI_RECOIL=40; //change this value to compensate to the vertical recoil
define ANTI_RECOIL_LEFT=40; //change this value to compensate to the left
define ANTI_RECOIL_RIGHT=40; //change this value to compensate to the right
 
//
// No need to make changes in the code below.
//
 
//
//  VARIABLES
// ---------------------------------------------------------
int fire_button, scope_button;
int anti_recoil;
 
//
//  INITIALIZATION
// ---------------------------------------------------------
init {
    if(get_console() == PIO_PS3) { // PS3 Trigger & Bumper
        fire_button = 3;
        scope_button = 6;
    } else { // Natural Trigger & Bumper
        fire_button = 4;
        scope_button = 7;
    }
}
 
//
//  MAIN PROCEDURE
// ---------------------------------------------------------
main {
    if(!ONLY_WITH_SCOPE || get_val(scope_button)) {
        combo_run(AntiRecoil);
    }
}
 
//
//  COMBOS
// ---------------------------------------------------------
combo AntiRecoil { // This combo must be the last one
    if(get_val(fire_button)) {
        anti_recoil = get_val(10) + ANTI_RECOIL;
        if(anti_recoil > 100) anti_recoil = 100;
        set_val(10, anti_recoil);
    }
}