PDA

View Full Version : THE DIVISION script Ps3 arma primaria HOUSE arma secundaria M4



wolverine79
19th April 18, 06:32
Hola buenos dias,necesito un script para The division ps4 para arma primaria HOUSE y secundaria M4,con rapid fire y disparo a la cabeza.

Muchas gracias y saludos.

LEX LOST
19th April 18, 07:21
Hola buenos dias,necesito un script para The division ps4 para arma primaria HOUSE y secundaria M4,con rapid fire y disparo a la cabeza.

Muchas gracias y saludos.

prueba esto: primaria M4 secundaria HOUSE




// Author: noozbar

// COLOR INDICATION:
// GREEN = Primary weapon
// RED = Secondary weapon
// BLUE = Pistol / Sidearm


// / / / _ _ _ ____ ____ _ _ _ _ _ ____ / / /
// / / / | | | |__| |__/ |\ | | |\ | | __ / / /
// . . . |_|_| | | | \ | \| | | \| |__] . . .
//-----------------------------------------------------------
// It's up to you to change the TRUE / FALSE values in the "script settings" to set it for your way of playing.

// Script acts on the keys of your controller, not on the game.
// Script does not know what weapon you have in hand, you have to be careful that your weapon and the assigned color go together,
// otherwise there is the option "panic button" in the settings.

// Choose your primary and secondary weapons with TRUE / FALSE and go down set all the other options of the script.
// For example, put all primary weapons on FALSE, so that you can play with any weapon normally,
// without any assistance on that weapon while your secondary weapon has the pop shot you want with your SASG.

// If you activate Strafe and you spam PS4 Square or Xbox X in the inventory or in the PS4 / Xbox menu,
// you may activate the Strafe combo in the game or in your menu!

// AntiRecoil has been adjusted with the In Game sensitivity options shown below.
// If you have not the same settings In Game, your weapon may shoot to the sky or to the ground.
// It will be necessary to adjust the recoils value.

// Exemple for primary weapon:
// In "main section", find "PRIMARY WEAPON", then find the part of the weapon you are using
// If you play WITH Striker mode, change the [type of weapon]_Recoil_[number] values inside Recoil WITH Striker mode
// If you play WITHOUT Striker mode, change the [type of weapon]_Recoil_[number] values inside Recoil WITHOUT Striker mode
// For MDR and Shotgun, change the ANTI_RECOIL value inside Recoil WITH (or WITHOUT) Striker mode.

// If your weapon shoot to the ground, discrease values.
// If your weapon shoot to the sky, increase values.

// Now enjoy


// In Game settings:

// 100% Camera Sensitivity

// 90% Aim Sensitivity

// 90% Scope Sensitivity

// 0% Analog Dead Zone Size

// 0% Stability (no stability on your gear and weapon mods)

// Press to sprint = OFF (recommended if AutoRun and Strafe are TRUE)

// Invert Y Axis = Always OFF
// If you play with inverted axis, go down in the settings of the script and set Axis_inverted = TRUE
// In game option "Invert Y axis" MUST BE OFF!

//______________________________________________________________________________________________________________________//
//___________________________________________________OPTIONS START______________________________________________________//
//______________________________________________________________________________________________________________________//
// ____ _ _ ____ ____ ____ ____ _ _ ____ _ _ ____ ____ ___ ___ _ ____ _ _ ____
// | |__| | | | | [__ |___ \_/ | | | | |__/ | | |__] | | | | |\ | [__
// |___ | | |__| |__| ___] |___ | |__| |__| | \ |__| | | | |__| | \| ___]
//----------------------------------------------------------------------------------------------------------------------//
// PRIMARY WEAPON (or green light):

// Choose your primary weapon, only one value can be TRUE! (If no values are TRUE, you can play with any weapon)

// Assault Rifle
int LW_M4_onoff = TRUE
int BullFrog_onoff = FALSE
int MDR_onoff = FALSE
int WarlordAK_onoff = FALSE
int CaduceusSCARL_onoff = FALSE

//----------------------------------------------------------------------------------------------------------------------//
// SECONDARY WEAPON (or red light):

// Choose your secondary weapon, only one value can be TRUE! (If no values are TRUE, you can play with any weapon)

// SMG
int House_2_onoff = TRUE // Use with 5% or 6% Rate of Fire more !
int MP5_2_onoff = FALSE // Use with 5% or 6% Rate of Fire more !
int Midas_2_onoff = FALSE // Use with 5% or 6% Rate of Fire more !

//----------------------------------------------------------------------------------------------------------------------//
// Pistol setting (or blue light):
// RapidFire
int RATE_OF_FIRE = 13; // Range: 1 to 25 RPS (Round/s)

// Double tap to switch to Pistol
int Switch_Speed = 300; // Double tap speed (increase to slow double tap speed)l

//----------------------------------------------------------------------------------------------------------------------//
// AutoRun setting:
// Work better when in game option "Press to Sprint" is turned OFF

int AutoRun_onoff = TRUE // TRUE = AutoTun ON // FALSE = AutoRun OFF

//----------------------------------------------------------------------------------------------------------------------//
// Parkour setting:

// Double tap PS4 Circle or Xbox B to activate, double tap again to desactivate

int Parkour_onoff = TRUE // TRUE = Parkour ON // FALSE = Parkour OFF

int timelimit = 175; // Double tap speed (increase to slow double tap speed)

//----------------------------------------------------------------------------------------------------------------------//
// Strafe settings:

// Double tap PS4 Square or Xbox X to Strafe, double tap again to stop Strafe
// Work better when in game option "Press to Sprint" is turned OFF

int Strafe_onoff = TRUE // TRUE = Strafe ON // FALSE = Strafe OFF

int Tap_Speed = 175; // Double tap speed (increase to slow double tap speed)
int straight_time = 250; // Time to run straight
int side_time = 750; // Time to run to the right/left

//----------------------------------------------------------------------------------------------------------------------//
// Hair Trigger setting:

int HairTrigger_onoff = TRUE // TRUE = HairTrigger ON // FALSE = HairTrigger

//----------------------------------------------------------------------------------------------------------------------//
// Swap Triggers setting:

int R1L1_onoff = FALSE // FALSE = shoot and aim with R2/L2 // TRUE = shoot and aim with R1/L1

//----------------------------------------------------------------------------------------------------------------------//
// Inverted Axis setting:

// If you play with inverted axis, set TRUE, in game option "Invert Y axis" MUST BE OFF!

int Axis_inverted = FALSE // TRUE Right Y axis inverted

//----------------------------------------------------------------------------------------------------------------------//
// AutoMark/Mark Targets setting:

int AutoMark_onoff = FALSE // FALSE = AutoMark OFF // TRUE = AutoMark ON

//----------------------------------------------------------------------------------------------------------------------//
// Panic Button setting:

int PanicBTN_onoff = TRUE // Press D-Pad UP to only change CronusMAX color
// Usefull if you have the wrong color with your current weapon

//----------------------------------------------------------------------------------------------------------------------//
// Classified 6p Striker (30% stability) settings:

int Striker_onoff = FALSE // TRUE if you run 6 pieces Striker, else FALSE

//______________________________________________________________________________________________________________________//
//___________________________________________________OPTIONS END________________________________________________________//
//______________________________________________________________________________________________________________________//

define Switch_button = 17;
define FIRE_BTN = 4;
define R_Stick = 5;
define ADS_BTN = 7;
define L_Stick = 8;
define R_X = 9;
define R_Y = 10;
define L_X = 11;
define L_Y = 12;
define D_UP = 13;
define D_DOWN = 14;
define Parkour_BTN = 18; // PS4 Circle / Xbox B
define Strafe_BTN = 20; // PS4 Square / Xbox X

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
);

int ANTI_RECOIL; // For AntiRecoil combo
int ANTI_RECOIL_LEFT; // For AntiRecoil combo
int ANTI_RECOIL_RIGHT; // For AntiRecoil combo
int AR_Release = 90; // For AntiRecoil combo
int anti_recoil; // For AntiRecoil combo
int anti_recoil_left; // For AntiRecoil combo
int anti_recoil_right; // For AntiRecoil combo
int Switch; // For Switch weapon
int Pistol_onoff = FALSE; // For Sidearm / Pistol
int Dble_Switch = 0; // For Sidearm / Pistol
int hold_time; // For RapidFire
int rest_time; // For RapidFire
int Col_ind; // For CronusMAX color
int Parkour; // For Parkour
int DbleClick = 0; // For Parkour
int Dble_Tap = 0; // For Strafe
int Loop; // For Strafe
int AR_Time_1; // For Assault Rifle
int AR_Time_2; // For Assault Rifle
//_______________________________________________________________________________________________________________________//
// _ _ ____ _ _ _ ____ ___ ____ ____ ___
// |\/| |__| | |\ | [__ | |__| |__/ |
// | | | | | | \| ___] | | | | \ |

main { // main start

if(event_press(Switch_button)) {Switch=!Switch; Pistol_onoff = FALSE;}
//_______________________________________________________________________________________________________________________//

// ____ ___ ___ _ ____ _ _ ____
// | | |__] | | | | |\ | [__
// |__| | | | |__| | \| ___]


//Swap Triggers
if(R1L1_onoff) {
swap(3, 4); swap(6, 7);
}

//Panic Button
if(PanicBTN_onoff) {
if(event_release(D_UP) && get_ptime(D_UP) > 55) {
Switch=!Switch;
}
}

//AutoRun (Work better when in game option "Press to Sprint" is turned OFF)
//Hold D pad Left and press PS4 Circle or Xbox B to enable or disable AutoRun
if(get_val(15) && event_press(18)) {
AutoRun_onoff=!AutoRun_onoff;
}
if(AutoRun_onoff){
if(!combo_running(Strafe_v2) && !get_val(ADS_BTN) && get_val(L_Y) < -90) {
set_val(L_Stick, 100);
}
}

//Parkour (if Parkour_onoff is TRUE, double tap PS4 Circle or Xbox B to activate, double tap again to desactivate)
if(Parkour_onoff){
if(DbleClick > 0) DbleClick = DbleClick - get_rtime();
if(event_press(Parkour_BTN) && DbleClick <= 0) {
DbleClick = timelimit;
}
else if(event_press(Parkour_BTN) && DbleClick > 0) {
Parkour = !Parkour;
}
if(Parkour) {
if(!combo_running(Strafe_v2) && !get_val(ADS_BTN) && get_val(L_Y) < -70) {
set_val(Parkour_BTN,100);
}
}
}

//Strafe (if Strafe_onoff is TRUE, double tap PS4 square or Xbox X to activate, double tap again to desactivate)
if(Strafe_onoff) {
if(Dble_Tap > 0) Dble_Tap = Dble_Tap - get_rtime();
if(event_press(Strafe_BTN) && Dble_Tap <= 0) {
Dble_Tap = Tap_Speed;
}
else if(event_press(Strafe_BTN) && Dble_Tap > 0) {
Loop = !Loop;
}
if(Loop) {
combo_run(Strafe_v2);
}
else{combo_stop(Strafe_v2);}
}

//Hair Trigger
if(HairTrigger_onoff) {
if(get_val(FIRE_BTN) > 0){
set_val(FIRE_BTN,100);
}
if(get_val(ADS_BTN) > 0){
set_val(ADS_BTN,100);
}
}

//Inverted Axis
if(Axis_inverted) {
set_val(R_Y, inv(get_val(R_Y)));
}

// AutoMark (Mark Targets)
if(AutoMark_onoff) {
if(get_val(ADS_BTN)) {
combo_run(MarkTargets);
}
}

//_______________________________________________________________________________________________________________________//
// ____ _ ___ ____ ____ ____ _ _ / ___ _ ____ ___ ____ _
// [__ | | \ |___ |__| |__/ |\/| / |__] | [__ | | | |
// ___] | |__/ |___ | | | \ | | / | | ___] | |__| |___ color blue

//----------------------------------------------------- All Pistols / Sidearms ------------------------------------------//

// Switch to sidearm
if(Dble_Switch > 0) Dble_Switch = Dble_Switch - get_rtime();
if(event_press(Switch_button) && Dble_Switch <= 0) { Dble_Switch = Switch_Speed;}
else if(event_press(Switch_button) && Dble_Switch > 0) { Pistol_onoff = TRUE; Switch = !Switch; }

if(Pistol_onoff) { // Pistol start

ANTI_RECOIL = 30; // Pistol AntiRecoil

if(get_val(FIRE_BTN)){
combo_run(AntiRecoil);combo_run(RAPID_FIRE);
}
else if(event_release(FIRE_BTN)) {
combo_stop(AntiRecoil);combo_stop(RAPID_FIRE);
}
hold_time = 500 / RATE_OF_FIRE;
rest_time = hold_time - 20;
if(rest_time < 0) rest_time = 0;

} // Pistol end

//_______________________________________________________________________________________________________________________//
if(!Pistol_onoff) { // NOT Pistol start
//_______________________________________________________________________________________________________________________//

if(!Switch) {
// ___ ____ _ _ _ ____ ____ _ _ _ _ _ ____ ____ ___ ____ _ _
// |__] |__/ | |\/| |__| |__/ \_/ | | | |___ |__| |__] | | |\ |
// | | \ | | | | | | \ | |_|_| |___ | | | |__| | \| color green

//----------------------------------------------------- All Assault Rifle -----------------------------------------------//

if(LW_M4_onoff || BullFrog_onoff || MDR_onoff || WarlordAK_onoff || CaduceusSCARL_onoff) { // Any AR on
if(get_val(FIRE_BTN)){
combo_run(AntiRecoil);
}
else if(event_release(FIRE_BTN)) {
combo_stop(AntiRecoil);combo_stop(MDR);
}

if(combo_running(AntiRecoil)){ // If antirecoil run on
if(MDR_onoff) { // MDR on
combo_run(MDR);
} // MDR off
} // If antirecoil run off

} // Any AR off

//----------------------------------------------------- LW M4 part ------------------------------------------------------//
if(LW_M4_onoff){ // LWM4 TRUE start

ANTI_RECOIL = 0; // Do not modify this value
ANTI_RECOIL_LEFT = 0; // Change this value to compensate horizontal recoil (0 - 100)
ANTI_RECOIL_RIGHT = 0; // Change this value to compensate horizontal recoil (0 - 100)

if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 150) { // Burst before antirecoil
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 150ms fireing
ANTI_RECOIL = 20; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 150ms fireing
ANTI_RECOIL = 12; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 650) { // +500
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 650ms fireing
ANTI_RECOIL = 30; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 650ms fireing
ANTI_RECOIL = 17; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 1150) { // +500
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 1150ms fireing
ANTI_RECOIL = 40; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 1150ms fireing
ANTI_RECOIL = 22; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 1900) { // +750
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 1900ms fireing
ANTI_RECOIL = 51; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 1900ms fireing
ANTI_RECOIL = 28; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 2650) { // +750
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 2650ms fireing
ANTI_RECOIL = 63; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 2650ms fireing
ANTI_RECOIL = 38; // Change this value to compensate vertical recoil (0 - 100)
}
}
} // LWM4 TRUE end


//----------------------------------------------------- BullFrog part ---------------------------------------------------//
if(BullFrog_onoff){ // BullFrog TRUE start

ANTI_RECOIL = 0; // Do not modify this value
ANTI_RECOIL_LEFT = 0; // Change this value to compensate horizontal recoil (0 - 100)
ANTI_RECOIL_RIGHT = 0; // Change this value to compensate horizontal recoil (0 - 100)

if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 150) { // Burst before antirecoil
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 150ms fireing
ANTI_RECOIL = 22; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 150ms fireing
ANTI_RECOIL = 14; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 650) { // +500
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 650ms fireing
ANTI_RECOIL = 33; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 650ms fireing
ANTI_RECOIL = 21; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 1150) { // +500
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 1150ms fireing
ANTI_RECOIL = 45; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 1150ms fireing
ANTI_RECOIL = 28; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 1900) { // +750
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 1900ms fireing
ANTI_RECOIL = 59; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 1900ms fireing
ANTI_RECOIL = 36; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 2650) { // +750
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 2650ms fireing
ANTI_RECOIL = 67; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 2650ms fireing
ANTI_RECOIL = 46; // Change this value to compensate vertical recoil (0 - 100)
}
}
} // BullFrog TRUE end

//----------------------------------------------------- MDR part --------------------------------------------------------//
if(MDR_onoff) { // MDR TRUE start

AR_Time_1 = 71; // Change this value if you add magazine with rate of fire
AR_Time_2 = 101; // Change this value if you add magazine with rate of fire
ANTI_RECOIL_LEFT = 0; // Change this value to compensate horizontal recoil (0 - 100)
ANTI_RECOIL_RIGHT = 0; // Change this value to compensate horizontal recoil (0 - 100)

// Recoil WITH Striker mode
if(Striker_onoff){ // SK on start
ANTI_RECOIL = 16; // Change this value to compensate vertical recoil (0 - 100)
} // SK on end


// Recoil WITHOUT Striker mode
if(!Striker_onoff){ // SK off start
ANTI_RECOIL = 22; // Change this value to compensate vertical recoil (0 - 100)
} // SK off end
} // MDR TRUE end

//----------------------------------------------------- Warlord / AK47 part ---------------------------------------------//
if(WarlordAK_onoff){ // Warlord/AK47 TRUE start

ANTI_RECOIL = 0; // Do not modify this value
ANTI_RECOIL_LEFT = 5; // Change this value to compensate horizontal recoil (0 - 100)
ANTI_RECOIL_RIGHT = 0; // Change this value to compensate horizontal recoil (0 - 100)

if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 150) { // Burst before antirecoil
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 150ms fireing
ANTI_RECOIL = 18; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 150ms fireing
ANTI_RECOIL = 14; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 800) { // +650
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 8000ms fireing
ANTI_RECOIL = 26; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 800ms fireing
ANTI_RECOIL = 16; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 1450) { // +650
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 1450ms fireing
ANTI_RECOIL = 35; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 1450ms fireing
ANTI_RECOIL = 18; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 2400) { // +950
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 2400ms fireing
ANTI_RECOIL = 45; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 2400ms fireing
ANTI_RECOIL = 21; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 3650) { // +1250
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 3650ms fireing
ANTI_RECOIL = 56; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 3650ms fireing
ANTI_RECOIL = 27; // Change this value to compensate vertical recoil (0 - 100)
}
}
} // Warlord/AK47 TRUE end

//----------------------------------------------------- Caduceus / SCAR L part ------------------------------------------//
if(CaduceusSCARL_onoff){ // Caduceus/SCAR L TRUE start

ANTI_RECOIL = 0; // Do not modify this value
ANTI_RECOIL_LEFT = 0; // Change this value to compensate horizontal recoil (0 - 100)
ANTI_RECOIL_RIGHT = 0; // Change this value to compensate horizontal recoil (0 - 100)

if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 150) { // Burst before antirecoil
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 150ms fireing
ANTI_RECOIL = 23; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 150ms fireing
ANTI_RECOIL = 15; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 800) { // +650
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 8000ms fireing
ANTI_RECOIL = 30; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 800ms fireing
ANTI_RECOIL = 17; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 1450) { // +650
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 1450ms fireing
ANTI_RECOIL = 39; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 1450ms fireing
ANTI_RECOIL = 20; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 2400) { // +950
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 2400ms fireing
ANTI_RECOIL = 49; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 2400ms fireing
ANTI_RECOIL = 24; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 3650) { // +1250
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 3650ms fireing
ANTI_RECOIL = 60; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 3650ms fireing
ANTI_RECOIL = 32; // Change this value to compensate vertical recoil (0 - 100)
}
}
} // Caduceus/SCAR L TRUE end

} //PRIMARY end

//_______________________________________________________________________________________________________________________//

if(Switch) {
// ____ ____ ____ ____ _ _ ___ ____ ____ _ _ _ _ _ ____ ____ ___ ____ _ _
// [__ |___ | | | |\ | | \ |__| |__/ \_/ | | | |___ |__| |__] | | |\ |
// ___] |___ |___ |__| | \| |__/ | | | \ | |_|_| |___ | | | |__| | \| color red

//----------------------------------------------------- All SMG ---------------------------------------------------------//

if(House_2_onoff || MP5_2_onoff || Midas_2_onoff) { // Any SMG on
if(get_val(FIRE_BTN)){
combo_run(AntiRecoil);
}
else if(event_release(FIRE_BTN)) {
combo_stop(AntiRecoil);
}
} // Any SMG off

//----------------------------------------------------- House part ------------------------------------------------------//
if(House_2_onoff){ // House TURE start

ANTI_RECOIL = 0; // Do not modify this value
ANTI_RECOIL_LEFT = 0; // Change this value to compensate horizontal recoil (0 - 100)
ANTI_RECOIL_RIGHT = 0; // Change this value to compensate horizontal recoil (0 - 100)

if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 150) { // Burst before antirecoil
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 150ms fireing
ANTI_RECOIL = 14; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 150ms fireing
ANTI_RECOIL = 10; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 750) { // +600
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 750ms fireing
ANTI_RECOIL = 24; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 750ms fireing
ANTI_RECOIL = 17; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 1350) { // +600
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 1350ms fireing
ANTI_RECOIL = 34; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 1350ms fireing
ANTI_RECOIL = 24; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 2150) { // +800
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 2150ms fireing
ANTI_RECOIL = 46; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 2150ms fireing
ANTI_RECOIL = 31; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 2950) { // +800
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 2950ms fireing
ANTI_RECOIL = 58; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 2950ms fireing
ANTI_RECOIL = 39; // Change this value to compensate vertical recoil (0 - 100)
}
}
} // House TRUE end

//----------------------------------------------------- MP5 part --------------------------------------------------------//
if(MP5_2_onoff){ // MP5 TRUE start

ANTI_RECOIL = 0; // Do not modify this value
ANTI_RECOIL_LEFT = 0; // Change this value to compensate horizontal recoil (0 - 100)
ANTI_RECOIL_RIGHT = 0; // Change this value to compensate horizontal recoil (0 - 100)

if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 150) { // Burst before antirecoil
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 150ms fireing
ANTI_RECOIL = 12; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 150ms fireing
ANTI_RECOIL = 7; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 1000) { // +850
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 1000ms fireing
ANTI_RECOIL = 22; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 1000ms fireing
ANTI_RECOIL = 12; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 1850) { // +850
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 1850ms fireing
ANTI_RECOIL = 30; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 1850ms fireing
ANTI_RECOIL = 19; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 2850) { // +1000
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 2850ms fireing
ANTI_RECOIL = 40; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 2850ms fireing
ANTI_RECOIL = 26; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 3850) { // +1000
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 3850ms fireing
ANTI_RECOIL = 50; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 3850ms fireing
ANTI_RECOIL = 32; // Change this value to compensate vertical recoil (0 - 100)
}
}
} // MP5 TRUE end

//----------------------------------------------------- Midas part ------------------------------------------------------//
if(Midas_2_onoff){ // Midas TURE start

ANTI_RECOIL = 0; // Do not modify this value
ANTI_RECOIL_LEFT = 0; // Change this value to compensate horizontal recoil (0 - 100)
ANTI_RECOIL_RIGHT = 0; // Change this value to compensate horizontal recoil (0 - 100)

if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 150) { // Burst before antirecoil
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 150ms fireing
ANTI_RECOIL = 5; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 150ms fireing
ANTI_RECOIL = 5; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 1000) { // +850
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 1000ms fireing
ANTI_RECOIL = 12; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 1000ms fireing
ANTI_RECOIL = 8; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 2000) { // +1000
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 2000ms fireing
ANTI_RECOIL = 17; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 2000ms fireing
ANTI_RECOIL = 12; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 3000) { // +1000
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 3000ms fireing
ANTI_RECOIL = 22; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 3000ms fireing
ANTI_RECOIL = 15; // Change this value to compensate vertical recoil (0 - 100)
}
}
if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 4250) { // +1250
if(!Striker_onoff){
// Antirecoil WITHOUT Striker
// Antirecoil after 4250ms fireing
ANTI_RECOIL = 28; // Change this value to compensate vertical recoil (0 - 100)
}
if(Striker_onoff){
// Antirecoil WITH Striker
// Antirecoil after 4250ms fireing
ANTI_RECOIL = 18; // Change this value to compensate vertical recoil (0 - 100)
}
}
} // Midas TRUE end

} //SECONDARY end

//_______________________________________________________________________________________________________________________//
} // NOT Pistol end
//_______________________________________________________________________________________________________________________//

if(abs(get_val(R_Y)) > AR_Release || abs(get_val(R_X)) > 100) {
combo_stop(AntiRecoil);
}

// COLOR INDICATION
if(!Switch) colourled(Green);
else colourled(Red);
if(Pistol_onoff) colourled(Blue);

} //main end
// _ _ ____ _ _ _ ____ _ _ ___
// |\/| |__| | |\ | |___ |\ | | \
// | | | | | | \| |___ | \| |__/
//_______________________________________________________________________________________________________________________//
// ____ ____ _ _ ___ ____ ____ ____ ____ ___ _ ____ _ _
// | | | |\/| |__] | | [__ |___ | | | | | |\ |
// |___ |__| | | |__] |__| ___] |___ |___ | | |__| | \|

combo RAPID_FIRE { // RAPIDFIRE FOR PISTOL
set_val(FIRE_BTN, 100);
wait(hold_time);
set_val(FIRE_BTN, 0);
wait(rest_time);
set_val(FIRE_BTN, 0);
}

combo MDR { // RAPIDFIRE FOR MDR
wait(AR_Time_1);
set_val(FIRE_BTN, 0);
wait(AR_Time_2);
}

//_______________________________________________________________________________________________________________________//

combo Strafe_v2 { // Run straight, right, straight, left
set_val(L_Y, -100);
set_val(L_Stick, 100);
wait(straight_time);
set_val(L_X, 100);
set_val(L_Y, 50);
wait(side_time);
set_val(L_Y, -100);
set_val(L_Stick, 100);
wait(straight_time);
set_val(L_X, -100);
set_val(L_Y, 50);
wait(side_time);
}

combo MarkTargets {
set_val(D_UP, 100);
wait(50);
set_val(D_UP, 0);
wait(1000);
}

//_______________________________________________________________________________________________________________________//

combo AntiRecoil {
anti_recoil = get_val(R_Y) + ANTI_RECOIL;
if(anti_recoil > 100) anti_recoil = 100;
set_val(R_Y, anti_recoil);
anti_recoil_left = get_val(R_X) - ANTI_RECOIL_LEFT;
if(anti_recoil_left > 100) anti_recoil_left = 100;
set_val(R_X, anti_recoil_left);
anti_recoil_right = get_val(R_X) + ANTI_RECOIL_RIGHT;
if(anti_recoil_right > 100) anti_recoil_right = 100;
set_val(R_X, anti_recoil_right);
}

// 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

Vagabundo
20th April 18, 06:34
Hola soy muy nuevo con cronus, he observado que el antirecoil funciona algo, pero el auto apuntado a cabeza no se como se puede mejorar, y el fuego rápido no lo aprecio.
Como se retocaría el scrip.
Gracias,

jaime2018
6th August 18, 10:40
hola soy nuevo con el cronusmax. lo compre por amazon, queria saber si lo puedo utilizar en xbox one ese script GRACIAS :guiño: