PS4 Bf4 Auto Dauerfeuer

Wenn geschossen wird (R2) wird das in ein Dauerfeuer umgewandelt.
Version1
Authortinahady
Publish DateSat, 3 May 2014 - 14:53
Last UpdateSat, 3 May 2014 - 14:53
Downloads41
RATE


0

0

Code: Select all
// GPC Online Library
// Geklaut von Hady
// PS4_Bf4_Auto_Dauerfeuer.gpc
define FIRE_BUTTON=4;
define RATE_OF_FIRE1 = 20// Range: 1 to 25 RPS (Round/s)
// VARIABLES
// ---------------------------------------------------------
int hold_time1, rest_time1;
int fire_button;
// INITIALIZATION
// ---------------------------------------------------------
init {
    if(get_console() == PIO_PS3) { // PS3 Trigger & Bumper
       fire_button = 3;
      } else { // Natural Trigger & Bumper
       fire_button = 4;
             }
      hold_time1 = 500 / RATE_OF_FIRE1;
      rest_time1 = hold_time1 - 20;
      if(rest_time1 < 0) rest_time1 = 0;
}
// MAIN PROCEDURE
// ---------------------------------------------------------
main {
   if(get_val(fire_button))combo_run(RapidFire);
   else if (combo_running(RapidFire))combo_stop(RapidFire);
}
// COMBOS
// ---------------------------------------------------------
// Rapid Fire
combo RapidFire {
    set_val(fire_button, 100);
    wait(hold_time1);
    set_val(fire_button, 0);
    wait(rest_time1);
    set_val(fire_button, 0);
    }