Could someone be kind enough to convert this for Titan One
6 posts
• Page 1 of 1
Could someone be kind enough to convert this for Titan One
Would someone be kind enough to get this to work on the Titan One please.
- Code: Select all
//Posted : Friday 24th of August, 2018 21:27 UTC
//-------------------------------------------------------------------------------------------
// ANTIRECOIL, RAPIDFIRE, EASY SPRINT, AUTO HOLD BREATH & EASY RELOAD FOR PUBG (PRESET B ONLY)
// ( with ON/OFF adjustable on the fly for Rapid Fire & AntiRecoil, and SAVE function)
//-------------------------------------------------------------------------------------------
// Version : 6.1 - Classic
// Platform : Multi
// Controller: Multi
// Game : All FPS games
// Author : LEX LOST
//------------------------------------------------------------------------------------------
// LED indications:
// Green: rapidfire ON - antirecoil ON
// PURPLE: antirecoil OFF - rapidfire ON
// White: rapidfire OFF - antirecoil ON
// Red: rapidfire OFF - antirecoil OFF;
//-------------------------------------------------------------------------------------------
// INSTRUCTIONS:
// RAPIDFIRE (ON by default - Start value: 17 - Pink led = ON; Red led = OFF)
// Tap XB1_RIGHT to Enable or Disable Rapidfire (with rumble notify)
// Hold XB1_X and tap XB1_RB to increase Rate of Fire (+1 each tap on XB1_RB, while holding XB1_X)
// Hold XB1_X and tap XB1_LB to decrease Rate of Fire (-1 each tap on XB1_LB, while holding XB1_X)
// ANTIRECOIL (ON by default - Start value: vertical = 25; Horizontal = -3)
// Hold XB1_RS and Press XB1_UP to Enable or Disable Antirecoil (with rumble notify)
// Hold XB1_LT and tap XB1_UP to increase Antirecoil (+1 each tap on XB1_UP, while holding XB1_LT)
// Hold XB1_LT and tap XB1_DOWN to decrease Antirecoil (-1 each tap on XB1_DOWN, while holding XB1_LT)
// Hold XB1_LT and tap XB1_RIGHT to compensate to the right (+1 each tap on XB1_RIGHT , while holding XB1_LT)
// Hold XB1_LT and tap XB1_LEFT to compensate to the left (+1 each tap on XB1_LEFT, while holding XB1_LT)
// SAVE new values into the device eeprom: Hold LT/L2 and press MENU (or START, for XBOX360 users)
//-------------------------------------------------------------------------------------------
// Save new values into the device eeprom: Hold L2/LT and press OPTIONS/MENU (or START, for PS3 users)
//-------------------------------------------------------------------------------------------
// AUTO HOLD BREATH, must use in-game Preset B, set at 85% of Left Trigger pull
// AUTO RUN, No quick on/off, set at 77% of Left Stick Forward
// QUICK RELOAD, No quick on/off, Press down on the Right Stick
// HAIR TRIGGERS, set at 85% to assist AUTO HOLD BREATH
//-------------------------------------------------------------------------------------------
//DECLARARATIONS - define
define FIRE_BTN = XB1_RT;
define ADS_BTN = XB1_LT;
define SPRINT_BTN = XB1_LS;
define MELEE_BTN = XB1_B;
define JUMP_BTN = XB1_A;
define RELOAD_BTN = XB1_X;
define PRONE_BTN = XB1_RS;
define SW_WEAPON_BTN = XB1_Y;
define TACTICAL = XB1_LB;
define LETHAL = XB1_RB;
define DOWN = XB1_DOWN;
define LEFT = XB1_LEFT;
define LY = XB1_LY;
define LX = XB1_LX;
define RY = XB1_RY;
define RX = XB1_RX;
define RF_switch = XB1_RIGHT; //
define AR_switch = XB1_UP; //
//-------------------------------------------------------------------------------------------
define save = 2; // XB1_MENU - PS4_OPTIONS
//-------------------------------------------------------------------------------------------
define AR_Release = 20; // change this value to set when antirecoil stops working (min: antirecoil value + 10)
define Scope_only = TRUE; // if TRUE Antirecoil IS ON only when scoping - if FALSE, is always ON
//-------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------
define Blue = 1;
define Red = 2;
define Green = 3;
define Pink = 4;
define SkyBlue = 5;
define Yellow = 6;
define White = 7;
//-------------------------------------------------------------------------------------------
data(1,
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
);
//-------------------------------------------------------------------------------------------
//VARIABLES - int
int rapid_onoff = TRUE; // if TRUE Rapidfire is ON by default - if FALSE, OFF by default
int RATE_OF_FIRE = 16; // Range: 1 to 25 RPS (Round/s) CHANGE ROF HERE
int hold_time;
int rest_time;
int recoil_onoff = TRUE; // if TRUE Anti Recoil is ON by default - if FALSE, OFF by default
int ANTI_RECOIL = 37; // Change vertical anti-recoil value here before loading on to CM
int ANTI_RECOIL_H = 6; // Change horizontal anti-recoil value here before loading on to CM
int anti_recoil;
int anti_recoil_H;
int AutoSprintON = TRUE;
int ADSHoldBreathforPUBG = TRUE;
int hair_trigger = TRUE;
int Col_ind;
int rumble_type;
//-------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------
//INITIALIZATION - init
init{
RATE_OF_FIRE = get_pvar(SPVAR_2, 0, 25, 16);
ANTI_RECOIL = get_pvar(SPVAR_3, -100,+100, 37);
ANTI_RECOIL_H = get_pvar(SPVAR_4, -100,+100, 6);
}
//-------------------------------------------------------------------------------------------
//MAIN BLOCK ROUTINES
main {
if(get_val(XB1_RS) && event_press(AR_switch)) {
recoil_onoff=!recoil_onoff;
set_rumble_type(recoil_onoff);
}
if(event_press(RF_switch)) {
rapid_onoff=!rapid_onoff;
set_rumble_type(rapid_onoff);
}
if(rapid_onoff && recoil_onoff) colourled(Green);
if(rapid_onoff && !recoil_onoff) colourled(Pink);
if(recoil_onoff && !rapid_onoff ) colourled(White);
if(!recoil_onoff && !rapid_onoff ) colourled(Red);
// HAIR TRIGGER
if(hair_trigger) {
if(get_val(FIRE_BTN) >= 85) set_val(FIRE_BTN,100);
if(get_val(ADS_BTN) >= 85) set_val(ADS_BTN,100);
}
// AUTO HOLD BREATH FOR PUBG
if(get_val(ADS_BTN)>= 100) {combo_run(ADSHoldBreathforPUBG);}
else if(get_val(ADS_BTN) < 85 && ADSHoldBreathforPUBG) { combo_stop(ADSHoldBreathforPUBG);
}
// QUICK RELOAD WITH XB1_RS
if(get_val(PRONE_BTN)) {combo_run(Reload);
}
// AUTO SPRINT SENSITIVITY
if(get_val(LY) < -77 && AutoSprintON) { combo_run(AutoSprint); }
else if(get_val(LY) > -77 && AutoSprintON) { combo_stop(AutoSprint); set_val(SPRINT_BTN,0);
}
if(rapid_onoff) {
if(get_val(FIRE_BTN)) {
combo_run (RAPID_FIRE);
}
}
hold_time = 500 / RATE_OF_FIRE;
rest_time = hold_time - 20;
if(rest_time < 0) rest_time = 0;
if(get_val(XB1_X)) {
if(event_press(XB1_RB)) {
RATE_OF_FIRE = RATE_OF_FIRE + 1;
}
if(event_press(XB1_LB)) {
RATE_OF_FIRE = RATE_OF_FIRE - 1;
}
set_val(XB1_RB,0); set_val(XB1_LB,0);
}
if(get_val(ADS_BTN) && event_press(save)){
rumble_type = RUMBLE_A;
combo_run(vibrate);
set_pvar(SPVAR_2, RATE_OF_FIRE);
set_pvar(SPVAR_3, ANTI_RECOIL);
set_pvar(SPVAR_4, ANTI_RECOIL_H);
set_val(save, 0);
}
if(get_val(XB1_LT)){
if(event_press(XB1_UP)){
ANTI_RECOIL = ANTI_RECOIL + 1;
}
if(event_press(XB1_DOWN)) {
ANTI_RECOIL = ANTI_RECOIL - 1;
}
set_val(XB1_UP,0); set_val(XB1_DOWN,0);
if(event_press(XB1_RIGHT)){
ANTI_RECOIL_H = ANTI_RECOIL_H + 1;
}
if(event_press(XB1_LEFT)) {
ANTI_RECOIL_H = ANTI_RECOIL_H - 1;
}
set_val(XB1_RIGHT,0); set_val(XB1_LEFT,0);
}
if(!Scope_only || get_val(ADS_BTN) && get_val(FIRE_BTN )) {
combo_run(AntiRecoil);
}
if( abs(get_val(10)) > AR_Release || abs(get_val(9)) > AR_Release) {
combo_stop (AntiRecoil);
}
}
//-------------------------------------------------------------------------------------------
//COMBO BLOCKS
combo vibrate {
set_rumble(rumble_type, 100);
wait(300);
reset_rumble();
}
function set_rumble_type ( val) {
if( val) rumble_type = RUMBLE_A ;
else rumble_type = RUMBLE_B ;
combo_run(vibrate);
}
combo ADSHoldBreathforPUBG {
set_val(7, 100);
wait(250);
set_val(6, 100);
set_val(7, 100);
wait(4250);
set_val(6, 100);
set_val(7, 100);
wait(250);
set_val(6, 0);
set_val(7, 100);
wait(100)
set_val(7,100);
wait(100)
set_val(7,0)
}
combo Reload {
set_val(20, 0);
wait(10);
set_val(20, 100);
wait(1500);
set_val(20, 100);
}
combo AutoSprint {
set_val(SPRINT_BTN, 100);
wait(10);
set_val(SPRINT_BTN, 100);
}
combo RAPID_FIRE {
set_val(FIRE_BTN, 100);
wait(hold_time);
set_val(FIRE_BTN, 0);
wait(rest_time);
set_val(FIRE_BTN, 0);
}
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);
}
}
// 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));
}// End
-
pokerhontis99 - Master Sergeant
- Posts: 34
- Joined: Thu Jul 28, 2016 2:45 pm
Re: Could someone be kind enough to convert this for Titan O
- Code: Select all
//Posted : Friday 24th of August, 2018 21:27 UTC
//-------------------------------------------------------------------------------------------
// ANTIRECOIL, RAPIDFIRE, EASY SPRINT, AUTO HOLD BREATH & EASY RELOAD FOR PUBG (PRESET B ONLY)
// ( with ON/OFF adjustable on the fly for Rapid Fire & AntiRecoil, and SAVE function)
//-------------------------------------------------------------------------------------------
// Version : 6.1 - Classic
// Platform : Multi
// Controller: Multi
// Game : All FPS games
// Author : LEX LOST
//------------------------------------------------------------------------------------------
// LED indications:
// Green: rapidfire ON - antirecoil ON
// PURPLE: antirecoil OFF - rapidfire ON
// White: rapidfire OFF - antirecoil ON
// Red: rapidfire OFF - antirecoil OFF;
//-------------------------------------------------------------------------------------------
// INSTRUCTIONS:
// RAPIDFIRE (ON by default - Start value: 17 - Pink led = ON; Red led = OFF)
// Tap XB1_RIGHT to Enable or Disable Rapidfire (with rumble notify)
// Hold XB1_X and tap XB1_RB to increase Rate of Fire (+1 each tap on XB1_RB, while holding XB1_X)
// Hold XB1_X and tap XB1_LB to decrease Rate of Fire (-1 each tap on XB1_LB, while holding XB1_X)
// ANTIRECOIL (ON by default - Start value: vertical = 25; Horizontal = -3)
// Hold XB1_RS and Press XB1_UP to Enable or Disable Antirecoil (with rumble notify)
// Hold XB1_LT and tap XB1_UP to increase Antirecoil (+1 each tap on XB1_UP, while holding XB1_LT)
// Hold XB1_LT and tap XB1_DOWN to decrease Antirecoil (-1 each tap on XB1_DOWN, while holding XB1_LT)
// Hold XB1_LT and tap XB1_RIGHT to compensate to the right (+1 each tap on XB1_RIGHT , while holding XB1_LT)
// Hold XB1_LT and tap XB1_LEFT to compensate to the left (+1 each tap on XB1_LEFT, while holding XB1_LT)
// SAVE new values into the device eeprom: Hold LT/L2 and press MENU (or START, for XBOX360 users)
//-------------------------------------------------------------------------------------------
// Save new values into the device eeprom: Hold L2/LT and press OPTIONS/MENU (or START, for PS3 users)
//-------------------------------------------------------------------------------------------
// AUTO HOLD BREATH, must use in-game Preset B, set at 85% of Left Trigger pull
// AUTO RUN, No quick on/off, set at 77% of Left Stick Forward
// QUICK RELOAD, No quick on/off, Press down on the Right Stick
// HAIR TRIGGERS, set at 85% to assist AUTO HOLD BREATH
//-------------------------------------------------------------------------------------------
//DECLARARATIONS - define
define FIRE_BTN = XB1_RT;
define ADS_BTN = XB1_LT;
define SPRINT_BTN = XB1_LS;
define MELEE_BTN = XB1_B;
define JUMP_BTN = XB1_A;
define RELOAD_BTN = XB1_X;
define PRONE_BTN = XB1_RS;
define SW_WEAPON_BTN = XB1_Y;
define TACTICAL = XB1_LB;
define LETHAL = XB1_RB;
define DOWN = XB1_DOWN;
define LEFT = XB1_LEFT;
define LY = XB1_LY;
define LX = XB1_LX;
define RY = XB1_RY;
define RX = XB1_RX;
define RF_switch = XB1_RIGHT; //
define AR_switch = XB1_UP; //
//-------------------------------------------------------------------------------------------
define save = 2; // XB1_MENU - PS4_OPTIONS
//-------------------------------------------------------------------------------------------
define AR_Release = 20; // change this value to set when antirecoil stops working (min: antirecoil value + 10)
define Scope_only = TRUE; // if TRUE Antirecoil IS ON only when scoping - if FALSE, is always ON
//-------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------
define Blue = 1;
define Red = 2;
define Green = 3;
define Pink = 4;
define SkyBlue = 5;
define Yellow = 6;
define White = 7;
//-------------------------------------------------------------------------------------------
data(1,
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
);
//-------------------------------------------------------------------------------------------
//VARIABLES - int
int rapid_onoff = TRUE; // if TRUE Rapidfire is ON by default - if FALSE, OFF by default
int RATE_OF_FIRE = 16; // Range: 1 to 25 RPS (Round/s) CHANGE ROF HERE
int hold_time;
int rest_time;
int recoil_onoff = TRUE; // if TRUE Anti Recoil is ON by default - if FALSE, OFF by default
int ANTI_RECOIL = 37; // Change vertical anti-recoil value here before loading on to CM
int ANTI_RECOIL_H = 6; // Change horizontal anti-recoil value here before loading on to CM
int anti_recoil;
int anti_recoil_H;
int AutoSprintON = TRUE;
int ADSHoldBreathforPUBG = TRUE;
int hair_trigger = TRUE;
int Col_ind;
int rumble_type;
//-------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------
//INITIALIZATION - init
init{
RATE_OF_FIRE = get_pvar(SPVAR_2, 0, 25, 16);
ANTI_RECOIL = get_pvar(SPVAR_3, -100,+100, 37);
ANTI_RECOIL_H = get_pvar(SPVAR_4, -100,+100, 6);
}
//-------------------------------------------------------------------------------------------
//MAIN BLOCK ROUTINES
main {
if(get_val(XB1_RS) && event_press(AR_switch)) {
recoil_onoff=!recoil_onoff;
set_rumble_type(recoil_onoff);
}
if(event_press(RF_switch)) {
rapid_onoff=!rapid_onoff;
set_rumble_type(rapid_onoff);
}
if(rapid_onoff && recoil_onoff) colourled(Green);
if(rapid_onoff && !recoil_onoff) colourled(Pink);
if(recoil_onoff && !rapid_onoff ) colourled(White);
if(!recoil_onoff && !rapid_onoff ) colourled(Red);
// HAIR TRIGGER
if(hair_trigger) {
if(get_val(FIRE_BTN) >= 85) set_val(FIRE_BTN,100);
if(get_val(ADS_BTN) >= 85) set_val(ADS_BTN,100);
}
// AUTO HOLD BREATH FOR PUBG
if(get_val(ADS_BTN)>= 100) {combo_run(cADSHoldBreathforPUBG);}
else if(get_val(ADS_BTN) < 85 && ADSHoldBreathforPUBG) { combo_stop(cADSHoldBreathforPUBG);
}
// QUICK RELOAD WITH XB1_RS
if(get_val(PRONE_BTN)) {combo_run(Reload);
}
// AUTO SPRINT SENSITIVITY
if(get_val(LY) < -77 && AutoSprintON) { combo_run(AutoSprint); }
else if(get_val(LY) > -77 && AutoSprintON) { combo_stop(AutoSprint); set_val(SPRINT_BTN,0);
}
if(rapid_onoff) {
if(get_val(FIRE_BTN)) {
combo_run (RAPID_FIRE);
}
}
hold_time = 500 / RATE_OF_FIRE;
rest_time = hold_time - 20;
if(rest_time < 0) rest_time = 0;
if(get_val(XB1_X)) {
if(event_press(XB1_RB)) {
RATE_OF_FIRE = RATE_OF_FIRE + 1;
}
if(event_press(XB1_LB)) {
RATE_OF_FIRE = RATE_OF_FIRE - 1;
}
set_val(XB1_RB,0); set_val(XB1_LB,0);
}
if(get_val(ADS_BTN) && event_press(save)){
rumble_type = RUMBLE_A;
combo_run(vibrate);
set_pvar(SPVAR_2, RATE_OF_FIRE);
set_pvar(SPVAR_3, ANTI_RECOIL);
set_pvar(SPVAR_4, ANTI_RECOIL_H);
set_val(save, 0);
}
if(get_val(XB1_LT)){
if(event_press(XB1_UP)){
ANTI_RECOIL = ANTI_RECOIL + 1;
}
if(event_press(XB1_DOWN)) {
ANTI_RECOIL = ANTI_RECOIL - 1;
}
set_val(XB1_UP,0); set_val(XB1_DOWN,0);
if(event_press(XB1_RIGHT)){
ANTI_RECOIL_H = ANTI_RECOIL_H + 1;
}
if(event_press(XB1_LEFT)) {
ANTI_RECOIL_H = ANTI_RECOIL_H - 1;
}
set_val(XB1_RIGHT,0); set_val(XB1_LEFT,0);
}
if(!Scope_only || get_val(ADS_BTN) && get_val(FIRE_BTN )) {
combo_run(AntiRecoil);
}
if( abs(get_val(10)) > AR_Release || abs(get_val(9)) > AR_Release) {
combo_stop (AntiRecoil);
}
}
//-------------------------------------------------------------------------------------------
//COMBO BLOCKS
combo vibrate {
set_rumble(rumble_type, 100);
wait(300);
reset_rumble();
}
combo cADSHoldBreathforPUBG {
set_val(7, 100);
wait(250);
set_val(6, 100);
set_val(7, 100);
wait(2250);
set_val(6, 100);
set_val(7, 100);
wait(2000);
set_val(6, 100);
set_val(7, 100);
wait(250);
set_val(6, 0);
set_val(7, 100);
wait(100);
set_val(7,100);
wait(100)
set_val(7,0);
}
combo Reload {
set_val(20, 0);
wait(10);
set_val(20, 100);
wait(1500);
set_val(20, 100);
}
combo AutoSprint {
set_val(SPRINT_BTN, 100);
wait(10);
set_val(SPRINT_BTN, 100);
}
combo RAPID_FIRE {
set_val(FIRE_BTN, 100);
wait(hold_time);
set_val(FIRE_BTN, 0);
wait(rest_time);
set_val(FIRE_BTN, 0);
}
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);
}
}
function set_rumble_type ( val) {
if( val) rumble_type = RUMBLE_A ;
else rumble_type = RUMBLE_B ;
combo_run(vibrate);
}
// 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));
}// End
-
Scachi - Brigadier General
- Posts: 3044
- Joined: Wed May 11, 2016 6:25 am
- Location: Germany
Re: Could someone be kind enough to convert this for Titan O
Thank you, i really i appreciate it. Could i ask what you had to change in order for it to work?
-
pokerhontis99 - Master Sergeant
- Posts: 34
- Joined: Thu Jul 28, 2016 2:45 pm
Re: Could someone be kind enough to convert this for Titan O
I sorted the combos/functions. They can't be mixed, like
combo
function
function
combo
The Titan 1 requires the combos first, then the functions.
So I changed it to
combo
combo
function
function
combo
function
function
combo
The Titan 1 requires the combos first, then the functions.
So I changed it to
combo
combo
function
function
-
Scachi - Brigadier General
- Posts: 3044
- Joined: Wed May 11, 2016 6:25 am
- Location: Germany
Re: Could someone be kind enough to convert this for Titan O
Great thank you, i will get some different scripts and have a mess around with them to see if i can get them to work. One more question if you don't mind, when i auto sprint my character doesn't run as it should, he starts to run then stutters, starts to run then stutters etc.
Is there a value i should change in order for the auto sprint to work as it should?
Is there a value i should change in order for the auto sprint to work as it should?
-
pokerhontis99 - Master Sergeant
- Posts: 34
- Joined: Thu Jul 28, 2016 2:45 pm
Re: Could someone be kind enough to convert this for Titan O
Some games have settings for run to be enabled/disable with a stick-click, or being active as long as the stick-click is active.
Maybe the scripts autorun is only working good for games where you have to keep the button pressed for running, not toggling the run state with it.
Maybe the scripts autorun is only working good for games where you have to keep the button pressed for running, not toggling the run state with it.
-
Scachi - Brigadier General
- Posts: 3044
- Joined: Wed May 11, 2016 6:25 am
- Location: Germany
6 posts
• Page 1 of 1
Return to GPC1 Script Programming
Who is online
Users browsing this forum: No registered users and 65 guests