[Request] Combine scripts

GPC1 script programming for Titan One. Code examples, questions, requests.

[Request] Combine scripts

Postby zanvog » Thu Jan 04, 2018 6:40 pm

Hi to console tuner forum!

i would like to ask if someone can combine these scripts (i try but i FAIL :innocent_smile_1: )

the scripts is for Titan 1 , PS4 & the game destiny 2 (and probably for all fps games with the right mapping )

SCRIPTS:
1) From the antithesis destiny fun packs want the :

Rapid-Fire: Separate Primary and Special ON/OFF rapid-fire modes
Includes SHOOT hold and SHOOT rest times for Primary and Special in both HIP and ADS, allowing fine control over fire-rates
Works with all weapons, including Fusion Rifles and can improve the ADS fire-rate of Automatic Rifles in Focused Fire mode including Suros Regime

Anti-Recoil: Primary and Special left, right and vertical anti-recoil, with separate HIP and ADS modes
Anti-recoil supports Xim 4 and MaxAim, as well as controllers

Sniper Mode: Reduced sensitivity while ADS for improved accuracy and experimenting with Aim Assist lock-on

2) From Bonefisher aim assist script.

these are the scipts if someone can help.. :joia:
User avatar
zanvog
First Sergeant
First Sergeant
 
Posts: 50
Joined: Fri Aug 18, 2017 10:10 pm

Re: [Request] Combine scripts

Postby bmpt guard » Wed Jan 10, 2018 11:23 pm

zanvog wrote:Hi to console tuner forum!

i would like to ask if someone can combine these scripts (i try but i FAIL :innocent_smile_1: )

the scripts is for Titan 1 , PS4 & the game destiny 2 (and probably for all fps games with the right mapping )

SCRIPTS:
1) From the antithesis destiny fun packs want the :

Rapid-Fire: Separate Primary and Special ON/OFF rapid-fire modes
Includes SHOOT hold and SHOOT rest times for Primary and Special in both HIP and ADS, allowing fine control over fire-rates
Works with all weapons, including Fusion Rifles and can improve the ADS fire-rate of Automatic Rifles in Focused Fire mode including Suros Regime

Anti-Recoil: Primary and Special left, right and vertical anti-recoil, with separate HIP and ADS modes
Anti-recoil supports Xim 4 and MaxAim, as well as controllers

Sniper Mode: Reduced sensitivity while ADS for improved accuracy and experimenting with Aim Assist lock-on

2) From Bonefisher aim assist script.

these are the scipts if someone can help.. :joia:

try this you can add to it.
Code: Select all
 
// DESTINY LOST MIDA COUPLED switch
// Antirecoil
// Rapidfire - primary (switchable with change weapon button or with dpad right if you respawn with the other weapon)
// Autorevive (double tap on reload button)
//--------------------------------------------------------------
//DECLARARATIONS - define
//--------------------------------------------------------------
define Blue      = 1;
define Red       = 2;
define Green     = 3;
define Pink      = 4;
define SkyBlue   = 5;
define Yellow    = 6;
define White     = 7;
 
data(1,// begin of data segment--------
  2,0,0,0, //1. Blue
  0,2,0,0, //2. Red
  0,0,2,0, //3. Lime/Green
  0,0,0,2, //4. Fuchsia/Pink
  2,0,2,0, //5. SkyBlue
  0,2,2,0, //6. Yellow
  2,2,2,2  //7. White
); // end of data segment--------------
 
//DECLARARATIONS - define
//--------------------------------------------------------------
define ANTI_RECOIL          = 41;    // change this value to compensate to the vertical recoil
define ANTI_RECOIL_LEFT     = 16;    // change this value to compensate to the left
define ANTI_RECOIL_RIGHT    = 0;     // change this value to compensate to the right
define REVIVE_TIME             = 6000;// Revive time is 4 seconds which is 4000ms Decrease if using Crest of Alpha Lupi or Light Beyond Nemesis
define TIME_LIMIT             = 300;
define RATE_OF_FIRE         = 13;   // Range: 1 to 25 RPS (Round/s)
define SENS_INCREASE_BY     = 20;   // Increase sensitivity by 100%
define SENS_REDUCE_BY       = 2;    // Reduce sensitivity by 5%
define TIMEOUT              = 100// 100 ms
define SHOOT_BUTTON         = XB1_RT;
define TRIGGER_BUTTON       = XB1_LT;
define MELEE_BUTTON         = XB1_RB;
define GRENADE_BUTTON       = XB1_LB;
define SPRINT_BUTTON        = XB1_LS;
define RELOAD_BUTTON        = XB1_X;
define WEAPON_SWITCH_BUTTON = XB1_Y;
define WAVE_BUTTON          = XB1_UP;
define JUMP_BUTTON          = XB1_A;
 
//VARIABLES - int
//--------------------------------------------------------------
int REVIVE_ONOFF  = TRUE; // AUTOREVIVE on by default
int rf_onoff = FALSE;
int onoff;
 
 
int anti_recoil;
int anti_recoil_left;
int anti_recoil_right;
int hold_time, rest_time;
int Col_ind;
int DOUBLE_CLICK  = 0;
//INITIALIZATION - init
//--------------------------------------------------------------
init {
 
     hold_time = 500 / RATE_OF_FIRE;
     rest_time = hold_time - 20;
     if(rest_time < 0) rest_time = 0;
}
//MAIN BLOCK RUTINES
//--------------------------------------------------------------
main {  // Start of MAIN BLOCK
 
    if(REVIVE_ONOFF){
        if(DOUBLE_CLICK > 0) DOUBLE_CLICK = DOUBLE_CLICK - get_rtime();
    if(event_press(RELOAD_BUTTON) && DOUBLE_CLICK <= 0) {DOUBLE_CLICK = TIME_LIMIT; }
        else if(event_press(RELOAD_BUTTON) && DOUBLE_CLICK > 0) {
        combo_run(REVIVE_COMBO);
     }}
// SENSITIVITY
    if(get_val(SHOOT_BUTTON )>5)set_val(SHOOT_BUTTON ,100);
    if(get_val(TRIGGER_BUTTON )>5)set_val(TRIGGER_BUTTON ,100);
    sensitivity(XB1_RX, NOT_USE, 100 - SENS_REDUCE_BY);
    sensitivity(XB1_RY, NOT_USE, 100 - SENS_REDUCE_BY);
 
 
// RAPIDFIRE SWITCH
   // ON/OFF mode
//   if(get_val(XB1_Y) && get_ptime(XB1_Y)>=400){ rf_onoff = TRUE;}
 
// RAPIDFIRE COLOR INDICATION
     if(!rf_onoff) colourled(Green);
     else colourled(Red);
 
// RAPIDFIRE
   //  Mode ON OFF
    if(event_press(XB1_Y))  {rf_onoff = !rf_onoff;}
    if(event_press(XB1_RIGHT))  {rf_onoff = !rf_onoff;}
 
    if(!rf_onoff) {if(get_val(4)) {combo_run(rapidfire);}}
 
// Sensitivity increase to 100% on LT & RT for quickest aim or shoot.
    if(get_val(TRIGGER_BUTTON) || get_val(SHOOT_BUTTON)) {
        sensitivity(XB1_LT, NOT_USE, 100 + SENS_INCREASE_BY);
        sensitivity(XB1_RT, NOT_USE, 100 + SENS_INCREASE_BY);}
 
// Sensitivity reduce by 5% on RIGHT analog stick when either trigger buttons are pressed.
    if(get_val(TRIGGER_BUTTON) || get_val(SHOOT_BUTTON)) {
        sensitivity(XB1_RX, NOT_USE, 100 - SENS_REDUCE_BY);
        sensitivity(XB1_RY, NOT_USE, 100 - SENS_REDUCE_BY);}
 
// Increase sensitivity when moving either LEFT or RIGHT analog sticks.
    else if(!get_val(TRIGGER_BUTTON) || !get_val(SHOOT_BUTTON)) {
        sensitivity(XB1_RX, NOT_USE, 100 + SENS_INCREASE_BY);
        sensitivity(XB1_RY, NOT_USE, 100 + SENS_INCREASE_BY); }
 
 
// Press Dpad up button for Super Ability
    if(event_press(WAVE_BUTTON)){ combo_run(SuperAbility);
        set_val(WAVE_BUTTON, 0); }
 
 
// AutoSprint
    if(get_val(7) && event_press(18))  {
        combo_run (vibrate);
        onoff=!onoff;
        }
    if(onoff) {
 
    if(get_val(XB1_LY) < -90) {  combo_run(AutoSprint); }
   }
 
// Stop AutoSprint from running when either triggers are pressed.
    if(combo_running(AutoSprint) && get_val(TRIGGER_BUTTON) || get_val(SHOOT_BUTTON)) {
        combo_stop(AutoSprint);
        }
    if (get_val(4)) {
        combo_run(AntiRecoil);
        }
    if ((get_val(10) <-70) || (get_val(10) > 70) || (get_val(9) <-70) || (get_val(9) > 70)) {
        combo_stop (AntiRecoil);
        }
    }
// End of MAIN BLOCK
//COMBO BLOCKS
//--------------------------------------------------------------
combo vibrate   {
    set_rumble(RUMBLE_A, 40);
    wait(200);
    reset_rumble();
    }
combo REVIVE_COMBO{
    set_val(RELOAD_BUTTON, 100);
    wait(REVIVE_TIME);
    set_val(RELOAD_BUTTON, 0);
    }   
combo SuperAbility {
    rf_onoff = TRUE;
    set_val(GRENADE_BUTTON, 100);
    set_val(MELEE_BUTTON, 100);
    wait(200);
    set_val(GRENADE_BUTTON, 0);
    set_val(MELEE_BUTTON, 0);
    }
combo AutoSprint {
    set_val(SPRINT_BUTTON, 100);
    wait(200);
    set_val(SPRINT_BUTTON, 0);
    wait(200);
    set_val(SPRINT_BUTTON, 0);
    }
combo rapidfire {
    set_val(4, 100);
    wait(hold_time);
    set_val(4, 0);
    wait(rest_time);
    set_val(4, 0);
    }
combo AntiRecoil {//Antirecoil This combo must be the last one
    if(get_val(4)) {
    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
// COLOR LED function
//--------------------------------------------------------------
function colourled(Colour) {
    Col_ind=(Colour*4) - 3;
    set_led(LED_1,dbyte(Col_ind  ));
    set_led(LED_2,dbyte(Col_ind + 1));
    set_led(LED_3,dbyte(Col_ind + 2));
    set_led(LED_4,dbyte(Col_ind + 3));
    }
User avatar
bmpt guard
Command Sergeant Major
Command Sergeant Major
 
Posts: 142
Joined: Thu May 12, 2016 9:33 pm

Re: [Request] Combine scripts

Postby zanvog » Sat Jan 13, 2018 1:39 pm

WoW thanx a lot for the reply !! i will try it right now!! Thanx again :smile0203: :joia: :smile0517:
User avatar
zanvog
First Sergeant
First Sergeant
 
Posts: 50
Joined: Fri Aug 18, 2017 10:10 pm


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 38 guests