PDA

View Full Version : ayuda con unos script



Legolass
26th June 17, 09:53
Un saludo a todo el foro es mi primer post y quería pediros ayuda con dos script, el primero lo estoy usando porque es el que mejor antirecoil me da con rifle de asalto en el arma secundaria, pero quería usarlo también con escopeta en el arma principal con la opción de disparar directamente apuntando sin apretar el gatillo del mando, es decir apuntas con L2 y disparas sin tener que apretar R2. Ademas si es posible quería añadir la opción de activar los led para indicar cuando esta activo o no el rapidfire o el antirecoil. Ademas no se porque hace una animación rara mientras corre el personaje no se si es el autorun pero queria quitarlo. Seguramente son muchas peticiones pero hasta que aprenda a hacerlo yo os lo agradecería

//Posted by Vauxhall, a member of the community in the CronusMAX Forums - http://cronusmax.com/forums

//Posted : Wednesday 21st of June, 2017 9:58 UTC

//Posted by LEX LOST, a member of the community in the CronusMAX Forums - <a href="http://cronusmax.com/forums" target="_blank">http://cronusmax.com/forums</a>

//Posted : Wednesday 24th of May, 2017 23:22 UTC


// GPC Online Library
// antirecoil_complete_(vertical_+_horizontal)_and_rapidfire,_both_adjustable_on_the_fly,_with_on/off_and_save_function.gpc

//-------------------------------------------------------------------------------------------
// ANTIRECOIL (Vertical + Horizontal) and RAPIDFIRE, both adjustable on the fly, with ON/OFF and SAVE function
//-------------------------------------------------------------------------------------------
// Version: 5.0
// Platform: Multi
// Controller: Multi
// Game: All FPS games
// Author: LEX LOST
//-------------------------------------------------------------------------------------------
// XBOX INSTRUCTIONS:
// RAPIDFIRE (ON by default - Start value: 13)
// Hold LT and Press A to Enable or Disable Rapidfire (with rumble notify)
// Hold A and tap UP to increase Rate of Fire (+1 each tap on UP, while holding A)
// Hold A and tap DOWN to decrease Rate of Fire (-1 each tap on DOWN, while holding A)
// Save Rate of Fire: Hold LT and press MENU (or START, for XBOX360 users)

// ANTIRECOIL (ON by default - Start value: vertical = 30; Horizontal = 0<img src="images/smilies/animated/wink_20_anim.gif" border="0" alt="" title="Wink" class="inlineimg" />
// Hold LT and Press X to Enable or Disable Antirecoil (with rumble notify)
// Hold LT and tap UP to increase Antirecoil (+1 each tap on UP, while holding LT)
// Hold LT and tap DOWN to decrease Antirecoil (-1 each tap on DOWN, while holding LT)
// Hold LT and tap RIGHT to compensate to the right (+1 each tap on RIGHT , while holding LT)
// Hold LT and tap LEFT to compensate to the left (-1 each tap on LEFT, while holding LT)
// Save Antirecoil: Hold LT and press Y

//-------------------------------------------------------------------------------------------

//DECLARARATIONS - define

define AR_Release = 70; // change this value to determine when antirecoil stops working (min: antirecoil value)
define ONLY_WITH_SCOPE = TRUE; // if TRUE Antirecoil IS ON only when scoping

define RECOIL_UP = 13;
define RECOIL_DOWN = 14;
define RECOIL_LEFT = 15;
define RECOIL_RIGHT = 16;

//-------------------------------------------------------------------------------------------

// SENSITIVITY FINE TUNING SCRIPT
//--------------------------------------------------------------------------------------------------------//
// Version: 2.0
// Platform: Multi
// Controller: Multi - Mouse & Keyboard
// Author: LEX LOST
//--------------------------------------------------------------------------------------------------------//
// INSTRUCTIONS BELOW
//--------------------------------------------------------------------------------------------------------//

define ADS_BUTTON = 7; // 7 means LT/L2 - change for different layout
// write 6 instead of 7 if you aim with LB/L1

define GEN_SENS = 100; // General sensitivity - Default: 100 - Range [0 ~ 327]
// set a number below 100 for less sens - above 100 for more sens

define ADS_SENS = 100; // Sensitivity while aiming - Default: 100 - Range [0 ~ 327]
// set a number below 100 for less sens - above 100 for more sens

define RUN_SENS = 100; // Sensitivity while running - Default: 100 - Range [0 ~ 327]
// set a number below 100 for less sens - above 100 for more sens

define MIDPOINT = 50; /** MIDPOINT - Default: 50 - Range [0 ~ 100]
If you set a number below 50 you are defining a zone of high sensitivity range when close to rest position
(fast movements) and a low sensitivity range when far from rest position (better accuracy).
if you set a number above 50 you are defining a zone of low sensitivity when close to the rest position
(better accuracy), and a zone of high sensitivity when far from rest position (fast movements).**/

//--------------------------------------------------------------------------------------------------------//

//VARIABLES - int

int fire_button;
int scope_button;
int hold_time;
int rest_time;
int recoil_onoff = TRUE; // if TRUE ANTIRECOIL is ON by default - if FALSE, OFF by default
int rapid_onoff = TRUE; // if TRUE RAPIDFIRE is ON by default - if FALSE, OFF by default
int RATE_OF_FIRE = 13; //Range: 1 to 25 RPS (Round/s)
int ANTI_RECOIL = 30;
int ANTI_RECOIL_H = 0;
int anti_recoil;
int anti_recoil_H;

//-------------------------------------------------------------------------------------------

//INITIALIZATION - init

init{

if(get_console() == PIO_PS3) {
fire_button = 3;
scope_button = 6;
}else {
fire_button = 4;
scope_button = 7;
}
}

//-------------------------------------------------------------------------------------------

//MAIN BLOCK ROUTINES

main {

// ADS SENS
if (get_val(ADS_BUTTON) ) {
sensitivity( 9, MIDPOINT, ADS_SENS);
sensitivity(10, MIDPOINT, ADS_SENS);
} else {
// GENERAL SENS
sensitivity( 9, MIDPOINT, GEN_SENS);
sensitivity(10, MIDPOINT, GEN_SENS);
}
// RUNNING SENS
if(get_val(12) < -90) {
sensitivity( 9, MIDPOINT, RUN_SENS);
sensitivity(10, MIDPOINT, RUN_SENS);
}
if((get_val(XB1_LY)) < -98) {
combo_run(Turbo_1);
}
if(get_val(7) && event_press(20)) {
combo_run(vibrate); recoil_onoff=!recoil_onoff;
}
if(get_val(7)) {if(event_press(19)) {
combo_run(vibrate);rapid_onoff=!rapid_onoff;}
}
if(rapid_onoff) {if(get_val(4)) {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(19)){
if(event_press(13)){
RATE_OF_FIRE = RATE_OF_FIRE + 1;
}
if(event_press(14)){
RATE_OF_FIRE = RATE_OF_FIRE - 1;
}
set_val(13,0);set_val(14,0);
}
if(get_val(7)){
if(event_press(RECOIL_UP)){
ANTI_RECOIL = ANTI_RECOIL + 1;
}
if(event_press(RECOIL_DOWN)) {
ANTI_RECOIL = ANTI_RECOIL - 1;
}
set_val(RECOIL_UP,0);
set_val(RECOIL_DOWN,0);

if(event_press(RECOIL_LEFT)){
ANTI_RECOIL_H = ANTI_RECOIL_H + 1;
}
if(event_press(RECOIL_RIGHT)) {
ANTI_RECOIL_H = ANTI_RECOIL_H - 1;
}
set_val(RECOIL_LEFT,0);
set_val(RECOIL_RIGHT,0);

}
if(!ONLY_WITH_SCOPE || get_val(scope_button) && get_val(fire_button )) {
combo_run(AntiRecoil);
}
if ((get_val(10) <-AR_Release) || (get_val(10) > AR_Release) || (get_val(9) <-AR_Release) || (get_val(9) > AR_Release)) {
combo_stop (AntiRecoil);
}
}
//-------------------------------------------------------------------------------------------

//COMBO BLOCKS

combo Turbo_1 {
set_val(XB1_LS, 100);
wait(40);
set_val(XB1_LS, 0);
wait(40);
set_val(XB1_LS, 0);
}

combo vibrate {
set_rumble(RUMBLE_A, 100);
wait(300);
reset_rumble();
}

combo RAPID_FIRE {
set_val(fire_button, 100);
wait(hold_time);
set_val(fire_button, 0);
wait(rest_time);
set_val(fire_button, 0);
}
combo AntiRecoil { // This combo must be the last one
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);
}
} // End

Legolass
26th June 17, 09:55
El otro script también necesitaría ponerle el apuntado y disparo automatico con r2 sin usar l2. gracias//Posted by Vauxhall, a member of the community in the CronusMAX Forums - http://cronusmax.com/forums

//Posted : Saturday 24th of June, 2017 22:58 UTC

//Posted by LEX LOST, a member of the community in the CronusMAX Forums - <a href="http://cronusmax.com/forums" target="_blank">http://cronusmax.com/forums</a>

//Posted : Wednesday 24th of May, 2017 17:58 UTC

//-------------------------------------------------------------------------------------------
// ANTIRECOIL and RAPIDFIRE (Ambos ajustables en juego, con ON / OFF y función SAVE)
//-------------------------------------------------------------------------------------------
// Version: 6.1 - Classic
// Platform: Multi
// Controller: Multi
// Game: All FPS games
// Author: LEX LOST
//------------------------------------------------------------------------------------------

// LED indications:

// Green: rapidfire ON - antirecoil ON
// Fuchsia: antirecoil ON - rapidfire OFF
// Blue: rapidfire ON - antirecoil OFF
// Red: rapidfire OFF - antirecoil OFF;
//-------------------------------------------------------------------------------------------
// Traducido al español //Vauxhall

// RAPIDFIRE (ON por defecto - Valor de arranque: 13 - LED verde = ON, led ROJO = OFF)
// Mantenga pulsado LT y presione Y para activar o desactivar Rapidfire (vibracion como notificacion)
// Mantenga A y pulse ARRIBA para aumentar la Tasa de Fuego (+1 cada toque en ARRIBA mientras mantiene A)
// Mantenga A y pulse ABAJO para disminuir la Tasa de Fuego (-1 cada toque en ABAJO, mientras mantiene A)

// ANTIRECOIL (ON por defecto - Valor inicial: vertical = 30, Horizontal = 0)
// Retenga LT y presione A para habilitar o deshabilitar Antirecoil (vibracion como notificacion)
// Retenga LT y pulse ARRIBA para aumentar Antirecoil (+1 cada toque en ARRIBA mientras mantiene pulsado LT)
// Mantenga pulsado LT y pulse ABAJO para disminuir Antirecoil (-1 cada toque en ABAJO mientras mantiene pulsado LT)
// Mantenga pulsado LT y pulse DERECHA para compensar a la derecha (+1 cada toque en DERECHA mientras mantiene pulsado LT)
// Mantenga pulsado LT y pulse IZQUIERDA para compensar a la izquierda (+1 cada toque en IZQUIERDA mientras mantiene pulsado LT)

// GUARDAR nuevos valores en el eeprom de CronusMax: Mantenga pulsado LT y pulse MENU (o START, para usuarios de XBOX360)

// ------------------------------------------------ -------------------------------------------
// INSTRUCCIONES PLAYSTATION:

// RAPIDFIRE (ON por defecto - Valor de arranque: 13 - LED verde = ON, led ROJO = OFF)
// Retenga L2 y presione TRIANGULO para activar o desactivar Rapidfire (con rumble notify)
// Mantenga "X" y pulse ARRIBA para aumentar la Tasa de Fuego (+1 cada toque en UP, mientras mantiene "X")
// Mantenga "X" y pulse ABAJO para disminuir la Velocidad de Fuego (-1 cada toque en ABAJO, mientras mantiene "X")

// ANTIRECOIL (ON por defecto - Valor inicial: vertical = 30, Horizontal = 0)
// Retenga L2 y presione "X" para activar o desactivar Antirecoil (con rumble notify)
// Retenga L2 y pulse ARRIBA para aumentar Antirecoil (+1 cada toque en ARRIBA mientras mantiene L2)
// Retenga L2 y pulse ABAJO para disminuir Antirecoil (-1 cada toque en ABAJO, mientras mantiene L2)
// Mantenga L2 y pulse DERECHA para compensar a la derecha (+1 cada toque en DERECHA, mientras mantiene L2)
// Retenga L2 y pulse IZQUIERDA para compensar a la izquierda (+1 cada toque en IZQUIERDA mientras mantiene L2)

// Guardar nuevos valores en el eeprom de CronusMax: Mantenga pulsado L2 y presione OPTIONS (o START, para usuarios de PS3)
//-------------------------------------------------------------------------------------------

//DECLARARATIONS - define

define RF_switch = 17; // XB1_Y - PS4_TRIANGLE
define AR_switch = 19; // XB1_A - PS4_CROSS
//-------------------------------------------------------------------------------------------
define save = 2; // XB1_MENU - PS4_OPTIONS
//-------------------------------------------------------------------------------------------
define AR_Release = 70; // change this value to determine 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 SPRINT = 8;
define UP = 13;
define DOWN = 14;
define LEFT = 15;
define RIGHT = 16;
//-------------------------------------------------------------------------------------------
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 recoil_onoff = TRUE; // if TRUE Antirecoil is ON by default - if FALSE, OFF by default
int rapid_onoff = TRUE; // if TRUE Rapidfire is ON by default - if FALSE, OFF by default
int RATE_OF_FIRE = 11; // Range: 1 to 25 RPS (Round/s)
int ANTI_RECOIL = 30;
int ANTI_RECOIL_H = 0;
int anti_recoil;
int anti_recoil_H;
int Col_ind;
int fire_button;
int scope_button;
int hold_time;
int rest_time;

//-------------------------------------------------------------------------------------------

//INITIALIZATION - init

init{

if(get_console() == PIO_PS3) {
fire_button = 3;
scope_button = 6;
}else {
fire_button = 4;
scope_button = 7;
}

RATE_OF_FIRE = get_pvar(SPVAR_1, 0, 25, 11);
ANTI_RECOIL = get_pvar(SPVAR_2, -100,+100, 30);
ANTI_RECOIL_H = get_pvar(SPVAR_3, -100,+100, 0);
}

//-------------------------------------------------------------------------------------------

//MAIN BLOCK ROUTINES

main {


if(get_val(7) && event_press(AR_switch)) {
combo_run (vibrate);
recoil_onoff=!recoil_onoff;
}

if(get_val(7) && event_press(RF_switch)) {
combo_run (vibrate);
rapid_onoff=!rapid_onoff;
}

if((rapid_onoff) && recoil_onoff) colourled(Green);
if((rapid_onoff) && !recoil_onoff) colourled(Blue);
if((recoil_onoff) && !rapid_onoff) colourled(Pink);
if((!recoil_onoff) && !rapid_onoff) colourled(Red);

if(rapid_onoff) { if(get_val(4)) {
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(19)) {
if(event_press(UP)) {
RATE_OF_FIRE = RATE_OF_FIRE+ 1;
}
if(event_press(DOWN)) {
RATE_OF_FIRE = RATE_OF_FIRE- 1;
}
set_val(UP,0); set_val(DOWN,0);
}

if(get_val(scope_button) && event_press(save)){
combo_run(vibrate);
set_pvar(SPVAR_1, RATE_OF_FIRE);
set_pvar(SPVAR_2, ANTI_RECOIL);
set_pvar(SPVAR_3, ANTI_RECOIL_H);
set_val(save, 0);
}
if(get_val(7)){
if(event_press(UP)){
ANTI_RECOIL = ANTI_RECOIL+ 1;
}
if(event_press(DOWN)) {
ANTI_RECOIL = ANTI_RECOIL- 1;
}
set_val(UP,0); set_val(DOWN,0);

if(event_press(LEFT)){
ANTI_RECOIL_H = ANTI_RECOIL_H+ 1;
}
if(event_press(RIGHT)) {
ANTI_RECOIL_H = ANTI_RECOIL_H- 1;
}
set_val(LEFT,0); set_val(RIGHT,0);

}
if(!Scope_only || get_val(scope_button) && get_val(fire_button )) {
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_A, 100);
wait(300);
reset_rumble();
}

combo RAPID_FIRE {
set_val(fire_button, 100);
wait(hold_time);
set_val(fire_button, 0);
wait(rest_time);
set_val(fire_button, 0);
}

combo AntiRecoil { // This combo must be the last one
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

Vauxhall
26th June 17, 12:43
Un saludo a todo el foro es mi primer post y quería pediros ayuda con dos script, el primero lo estoy usando porque es el que mejor antirecoil me da con rifle de asalto en el arma secundaria, pero quería usarlo también con escopeta en el arma principal con la opción de disparar directamente apuntando sin apretar el gatillo del mando, es decir apuntas con L2 y disparas sin tener que apretar R2. Ademas si es posible quería añadir la opción de activar los led para indicar cuando esta activo o no el rapidfire o el antirecoil. Ademas no se porque hace una animación rara mientras corre el personaje no se si es el autorun pero queria quitarlo. Seguramente son muchas peticiones pero hasta que aprenda a hacerlo yo os lo agradecería

//-------------------------------------------------------------------------------------------
// ANTIRECOIL (Vertical + Horizontal) and RAPIDFIRE, both adjustable on the fly, with ON/OFF and SAVE function
//-------------------------------------------------------------------------------------------
// Version: 5.0
// Platform: Multi
// Controller: Multi
// Game: All FPS games
// Author: LEX LOST
//-------------------------------------------------------------------------------------------
// XBOX INSTRUCTIONS:
// RAPIDFIRE (ON by default - Start value: 13)
// Hold LT and Press A to Enable or Disable Rapidfire (with rumble notify)
// Hold A and tap UP to increase Rate of Fire (+1 each tap on UP, while holding A)
// Hold A and tap DOWN to decrease Rate of Fire (-1 each tap on DOWN, while holding A)
// Save Rate of Fire: Hold LT and press MENU (or START, for XBOX360 users)

// ANTIRECOIL (ON by default - Start value: vertical = 30; Horizontal = 0<img src="images/smilies/animated/wink_20_anim.gif" border="0" alt="" title="Wink" class="inlineimg" />
// Hold LT and Press X to Enable or Disable Antirecoil (with rumble notify)
// Hold LT and tap UP to increase Antirecoil (+1 each tap on UP, while holding LT)
// Hold LT and tap DOWN to decrease Antirecoil (-1 each tap on DOWN, while holding LT)
// Hold LT and tap RIGHT to compensate to the right (+1 each tap on RIGHT , while holding LT)
// Hold LT and tap LEFT to compensate to the left (-1 each tap on LEFT, while holding LT)
// Save Antirecoil: Hold LT and press Y

//-------------------------------------------------------------------------------------------

//DECLARARATIONS - define

define AR_Release = 70; // change this value to determine when antirecoil stops working (min: antirecoil value)
define ONLY_WITH_SCOPE = TRUE; // if TRUE Antirecoil IS ON only when scoping

define RECOIL_UP = 13;
define RECOIL_DOWN = 14;
define RECOIL_LEFT = 15;
define RECOIL_RIGHT = 16;

//-------------------------------------------------------------------------------------------

// SENSITIVITY FINE TUNING SCRIPT
//--------------------------------------------------------------------------------------------------------//
// Version: 2.0
// Platform: Multi
// Controller: Multi - Mouse & Keyboard
// Author: LEX LOST
//--------------------------------------------------------------------------------------------------------//
// INSTRUCTIONS BELOW
//--------------------------------------------------------------------------------------------------------//

define ADS_BUTTON = 7; // 7 means LT/L2 - change for different layout
// write 6 instead of 7 if you aim with LB/L1

define GEN_SENS = 100; // General sensitivity - Default: 100 - Range [0 ~ 327]
// set a number below 100 for less sens - above 100 for more sens

define ADS_SENS = 100; // Sensitivity while aiming - Default: 100 - Range [0 ~ 327]
// set a number below 100 for less sens - above 100 for more sens

define RUN_SENS = 100; // Sensitivity while running - Default: 100 - Range [0 ~ 327]
// set a number below 100 for less sens - above 100 for more sens

define MIDPOINT = 50; /** MIDPOINT - Default: 50 - Range [0 ~ 100]
If you set a number below 50 you are defining a zone of high sensitivity range when close to rest position
(fast movements) and a low sensitivity range when far from rest position (better accuracy).
if you set a number above 50 you are defining a zone of low sensitivity when close to the rest position
(better accuracy), and a zone of high sensitivity when far from rest position (fast movements).**/

//--------------------------------------------------------------------------------------------------------//

//VARIABLES - int

int fire_button;
int scope_button;
int hold_time;
int rest_time;
int recoil_onoff = TRUE; // if TRUE ANTIRECOIL is ON by default - if FALSE, OFF by default
int rapid_onoff = TRUE; // if TRUE RAPIDFIRE is ON by default - if FALSE, OFF by default
int RATE_OF_FIRE = 13; //Range: 1 to 25 RPS (Round/s)
int ANTI_RECOIL = 30;
int ANTI_RECOIL_H = 0;
int anti_recoil;
int anti_recoil_H;

//-------------------------------------------------------------------------------------------

//INITIALIZATION - init

init{

if(get_console() == PIO_PS3) {
fire_button = 3;
scope_button = 6;
}else {
fire_button = 4;
scope_button = 7;
}
}

//-------------------------------------------------------------------------------------------

//MAIN BLOCK ROUTINES

main {

// ADS SENS
if (get_val(ADS_BUTTON) ) {
sensitivity( 9, MIDPOINT, ADS_SENS);
sensitivity(10, MIDPOINT, ADS_SENS);
} else {
// GENERAL SENS
sensitivity( 9, MIDPOINT, GEN_SENS);
sensitivity(10, MIDPOINT, GEN_SENS);
}
// RUNNING SENS
if(get_val(12) < -90) {
sensitivity( 9, MIDPOINT, RUN_SENS);
sensitivity(10, MIDPOINT, RUN_SENS);
}
if((get_val(XB1_LY)) < -98) {
combo_run(Turbo_1);
}
if(get_val(7) && event_press(20)) {
combo_run(vibrate); recoil_onoff=!recoil_onoff;
}
if(get_val(7)) {if(event_press(19)) {
combo_run(vibrate);rapid_onoff=!rapid_onoff;}
}
if(rapid_onoff) {if(get_val(4)) {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(19)){
if(event_press(13)){
RATE_OF_FIRE = RATE_OF_FIRE + 1;
}
if(event_press(14)){
RATE_OF_FIRE = RATE_OF_FIRE - 1;
}
set_val(13,0);set_val(14,0);
}
if(get_val(7)){
if(event_press(RECOIL_UP)){
ANTI_RECOIL = ANTI_RECOIL + 1;
}
if(event_press(RECOIL_DOWN)) {
ANTI_RECOIL = ANTI_RECOIL - 1;
}
set_val(RECOIL_UP,0);
set_val(RECOIL_DOWN,0);

if(event_press(RECOIL_LEFT)){
ANTI_RECOIL_H = ANTI_RECOIL_H + 1;
}
if(event_press(RECOIL_RIGHT)) {
ANTI_RECOIL_H = ANTI_RECOIL_H - 1;
}
set_val(RECOIL_LEFT,0);
set_val(RECOIL_RIGHT,0);

}
if(!ONLY_WITH_SCOPE || get_val(scope_button) && get_val(fire_button )) {
combo_run(AntiRecoil);
}
if ((get_val(10) <-AR_Release) || (get_val(10) > AR_Release) || (get_val(9) <-AR_Release) || (get_val(9) > AR_Release)) {
combo_stop (AntiRecoil);
}
}
//-------------------------------------------------------------------------------------------

//COMBO BLOCKS

combo Turbo_1 {
set_val(XB1_LS, 100);
wait(40);
set_val(XB1_LS, 0);
wait(40);
set_val(XB1_LS, 0);
}

combo vibrate {
set_rumble(RUMBLE_A, 100);
wait(300);
reset_rumble();
}

combo RAPID_FIRE {
set_val(fire_button, 100);
wait(hold_time);
set_val(fire_button, 0);
wait(rest_time);
set_val(fire_button, 0);
}
combo AntiRecoil { // This combo must be the last one
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);
}
} // End





//-------------------------------------------------------------------------------------------
// ANTIRECOIL (Vertical + Horizontal) and RAPIDFIRE, both adjustable on the fly, with ON/OFF and SAVE function
//-------------------------------------------------------------------------------------------
// Version: 5.0
// Platform: Multi
// Controller: Multi
// Game: All FPS games
// Author: LEX LOST
//-------------------------------------------------------------------------------------------
// XBOX INSTRUCTIONS:
// RAPIDFIRE (ON by default - Start value: 13)
// Hold LT and Press A to Enable or Disable Rapidfire (with rumble notify)
// Hold A and tap UP to increase Rate of Fire (+1 each tap on UP, while holding A)
// Hold A and tap DOWN to decrease Rate of Fire (-1 each tap on DOWN, while holding A)
// Save Rate of Fire: Hold LT and press MENU (or START, for XBOX360 users)

// ANTIRECOIL (ON by default - Start value: vertical = 30; Horizontal = 0<img src="images/smilies/animated/wink_20_anim.gif" border="0" alt="" title="Wink" class="inlineimg" />
// Hold LT and Press X to Enable or Disable Antirecoil (with rumble notify)
// Hold LT and tap UP to increase Antirecoil (+1 each tap on UP, while holding LT)
// Hold LT and tap DOWN to decrease Antirecoil (-1 each tap on DOWN, while holding LT)
// Hold LT and tap RIGHT to compensate to the right (+1 each tap on RIGHT , while holding LT)
// Hold LT and tap LEFT to compensate to the left (-1 each tap on LEFT, while holding LT)
// Save Antirecoil: Hold LT and press Y

//-------------------------------------------------------------------------------------------

//DECLARARATIONS - define

define AR_Release = 70; // change this value to determine when antirecoil stops working (min: antirecoil value)
define ONLY_WITH_SCOPE = TRUE; // if TRUE Antirecoil IS ON only when scoping

define RECOIL_UP = 13;
define RECOIL_DOWN = 14;
define RECOIL_LEFT = 15;
define RECOIL_RIGHT = 16;

//-------------------------------------------------------------------------------------------

// SENSITIVITY FINE TUNING SCRIPT
//--------------------------------------------------------------------------------------------------------//
// Version: 2.0
// Platform: Multi
// Controller: Multi - Mouse & Keyboard
// Author: LEX LOST
//--------------------------------------------------------------------------------------------------------//
// INSTRUCTIONS BELOW
//--------------------------------------------------------------------------------------------------------//

define ADS_BUTTON = 7; // 7 means LT/L2 - change for different layout
// write 6 instead of 7 if you aim with LB/L1

define GEN_SENS = 100; // General sensitivity - Default: 100 - Range [0 ~ 327]
// set a number below 100 for less sens - above 100 for more sens

define ADS_SENS = 100; // Sensitivity while aiming - Default: 100 - Range [0 ~ 327]
// set a number below 100 for less sens - above 100 for more sens

define MIDPOINT = 50; /** MIDPOINT - Default: 50 - Range [0 ~ 100]
If you set a number below 50 you are defining a zone of high sensitivity range when close to rest position
(fast movements) and a low sensitivity range when far from rest position (better accuracy).
if you set a number above 50 you are defining a zone of low sensitivity when close to the rest position
(better accuracy), and a zone of high sensitivity when far from rest position (fast movements).**/

//--------------------------------------------------------------------------------------------------------//

//VARIABLES - int

int fire_button;
int scope_button;
int hold_time;
int rest_time;
int recoil_onoff = TRUE; // if TRUE ANTIRECOIL is ON by default - if FALSE, OFF by default
int rapid_onoff = TRUE; // if TRUE RAPIDFIRE is ON by default - if FALSE, OFF by default
int RATE_OF_FIRE = 13; //Range: 1 to 25 RPS (Round/s)
int ANTI_RECOIL = 30;
int ANTI_RECOIL_H = 0;
int anti_recoil;
int anti_recoil_H;

//-------------------------------------------------------------------------------------------

//INITIALIZATION - init

init{

if(get_console() == PIO_PS3) {
fire_button = 3;
scope_button = 6;
}else {
fire_button = 4;
scope_button = 7;
}
}

//-------------------------------------------------------------------------------------------

//MAIN BLOCK ROUTINES

main {

// ADS SENS
if (get_val(ADS_BUTTON) ) {
sensitivity( 9, MIDPOINT, ADS_SENS);
sensitivity(10, MIDPOINT, ADS_SENS);
} else {
// GENERAL SENS
sensitivity( 9, MIDPOINT, GEN_SENS);
sensitivity(10, MIDPOINT, GEN_SENS);
}
if(event_press(PS4_L2)) {
combo_run(ASHOT);
}
if((get_val(XB1_LY)) < -98) {
combo_run(Turbo_1);
}
if(get_val(7) && event_press(20)) {
combo_run(vibrate); recoil_onoff=!recoil_onoff;
}
if(get_val(7)) {if(event_press(19)) {
combo_run(vibrate);rapid_onoff=!rapid_onoff;}
}
if(rapid_onoff) {if(get_val(4)) {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(19)){
if(event_press(13)){
RATE_OF_FIRE = RATE_OF_FIRE + 1;
}
if(event_press(14)){
RATE_OF_FIRE = RATE_OF_FIRE - 1;
}
set_val(13,0);set_val(14,0);
}
if(get_val(7)){
if(event_press(RECOIL_UP)){
ANTI_RECOIL = ANTI_RECOIL + 1;
}
if(event_press(RECOIL_DOWN)) {
ANTI_RECOIL = ANTI_RECOIL - 1;
}
set_val(RECOIL_UP,0);
set_val(RECOIL_DOWN,0);

if(event_press(RECOIL_LEFT)){
ANTI_RECOIL_H = ANTI_RECOIL_H + 1;
}
if(event_press(RECOIL_RIGHT)) {
ANTI_RECOIL_H = ANTI_RECOIL_H - 1;
}
set_val(RECOIL_LEFT,0);
set_val(RECOIL_RIGHT,0);

}
if(!ONLY_WITH_SCOPE || get_val(scope_button) && get_val(fire_button )) {
combo_run(AntiRecoil);
}
if ((get_val(10) <-AR_Release) || (get_val(10) > AR_Release) || (get_val(9) <-AR_Release) || (get_val(9) > AR_Release)) {
combo_stop (AntiRecoil);
}
}
//-------------------------------------------------------------------------------------------

//COMBO BLOCKS

combo Turbo_1 {
set_val(XB1_LS, 100);
wait(40);
set_val(XB1_LS, 0);
wait(40);
set_val(XB1_LS, 0);
}

combo vibrate {
set_rumble(RUMBLE_A, 100);
wait(300);
reset_rumble();
}
combo ASHOT {
set_val(PS4_R2, 0);
wait(400);
set_val(PS4_R2, 100);
wait(50);
set_val(PS4_R2, 100);
}
combo RAPID_FIRE {
set_val(fire_button, 100);
wait(hold_time);
set_val(fire_button, 0);
wait(rest_time);
set_val(fire_button, 0);
}
combo AntiRecoil { // This combo must be the last one
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);
}
} // End

Vauxhall
26th June 17, 12:49
El otro script también necesitaría ponerle el apuntado y disparo automatico con r2 sin usar l2. gracias//Posted by Vauxhall, a member of the community in the CronusMAX Forums - http://cronusmax.com/forums

//Posted : Saturday 24th of June, 2017 22:58 UTC

//Posted by LEX LOST, a member of the community in the CronusMAX Forums - <a href="http://cronusmax.com/forums" target="_blank">http://cronusmax.com/forums</a>

//Posted : Wednesday 24th of May, 2017 17:58 UTC

//-------------------------------------------------------------------------------------------
// ANTIRECOIL and RAPIDFIRE (Ambos ajustables en juego, con ON / OFF y función SAVE)
//-------------------------------------------------------------------------------------------
// Version: 6.1 - Classic
// Platform: Multi
// Controller: Multi
// Game: All FPS games
// Author: LEX LOST
//------------------------------------------------------------------------------------------

// LED indications:

// Green: rapidfire ON - antirecoil ON
// Fuchsia: antirecoil ON - rapidfire OFF
// Blue: rapidfire ON - antirecoil OFF
// Red: rapidfire OFF - antirecoil OFF;
//-------------------------------------------------------------------------------------------
// Traducido al español //Vauxhall

// RAPIDFIRE (ON por defecto - Valor de arranque: 13 - LED verde = ON, led ROJO = OFF)
// Mantenga pulsado LT y presione Y para activar o desactivar Rapidfire (vibracion como notificacion)
// Mantenga A y pulse ARRIBA para aumentar la Tasa de Fuego (+1 cada toque en ARRIBA mientras mantiene A)
// Mantenga A y pulse ABAJO para disminuir la Tasa de Fuego (-1 cada toque en ABAJO, mientras mantiene A)

// ANTIRECOIL (ON por defecto - Valor inicial: vertical = 30, Horizontal = 0)
// Retenga LT y presione A para habilitar o deshabilitar Antirecoil (vibracion como notificacion)
// Retenga LT y pulse ARRIBA para aumentar Antirecoil (+1 cada toque en ARRIBA mientras mantiene pulsado LT)
// Mantenga pulsado LT y pulse ABAJO para disminuir Antirecoil (-1 cada toque en ABAJO mientras mantiene pulsado LT)
// Mantenga pulsado LT y pulse DERECHA para compensar a la derecha (+1 cada toque en DERECHA mientras mantiene pulsado LT)
// Mantenga pulsado LT y pulse IZQUIERDA para compensar a la izquierda (+1 cada toque en IZQUIERDA mientras mantiene pulsado LT)

// GUARDAR nuevos valores en el eeprom de CronusMax: Mantenga pulsado LT y pulse MENU (o START, para usuarios de XBOX360)

// ------------------------------------------------ -------------------------------------------
// INSTRUCCIONES PLAYSTATION:

// RAPIDFIRE (ON por defecto - Valor de arranque: 13 - LED verde = ON, led ROJO = OFF)
// Retenga L2 y presione TRIANGULO para activar o desactivar Rapidfire (con rumble notify)
// Mantenga "X" y pulse ARRIBA para aumentar la Tasa de Fuego (+1 cada toque en UP, mientras mantiene "X")
// Mantenga "X" y pulse ABAJO para disminuir la Velocidad de Fuego (-1 cada toque en ABAJO, mientras mantiene "X")

// ANTIRECOIL (ON por defecto - Valor inicial: vertical = 30, Horizontal = 0)
// Retenga L2 y presione "X" para activar o desactivar Antirecoil (con rumble notify)
// Retenga L2 y pulse ARRIBA para aumentar Antirecoil (+1 cada toque en ARRIBA mientras mantiene L2)
// Retenga L2 y pulse ABAJO para disminuir Antirecoil (-1 cada toque en ABAJO, mientras mantiene L2)
// Mantenga L2 y pulse DERECHA para compensar a la derecha (+1 cada toque en DERECHA, mientras mantiene L2)
// Retenga L2 y pulse IZQUIERDA para compensar a la izquierda (+1 cada toque en IZQUIERDA mientras mantiene L2)

// Guardar nuevos valores en el eeprom de CronusMax: Mantenga pulsado L2 y presione OPTIONS (o START, para usuarios de PS3)
//-------------------------------------------------------------------------------------------

//DECLARARATIONS - define

define RF_switch = 17; // XB1_Y - PS4_TRIANGLE
define AR_switch = 19; // XB1_A - PS4_CROSS
//-------------------------------------------------------------------------------------------
define save = 2; // XB1_MENU - PS4_OPTIONS
//-------------------------------------------------------------------------------------------
define AR_Release = 70; // change this value to determine 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 SPRINT = 8;
define UP = 13;
define DOWN = 14;
define LEFT = 15;
define RIGHT = 16;
//-------------------------------------------------------------------------------------------
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 recoil_onoff = TRUE; // if TRUE Antirecoil is ON by default - if FALSE, OFF by default
int rapid_onoff = TRUE; // if TRUE Rapidfire is ON by default - if FALSE, OFF by default
int RATE_OF_FIRE = 11; // Range: 1 to 25 RPS (Round/s)
int ANTI_RECOIL = 30;
int ANTI_RECOIL_H = 0;
int anti_recoil;
int anti_recoil_H;
int Col_ind;
int fire_button;
int scope_button;
int hold_time;
int rest_time;

//-------------------------------------------------------------------------------------------

//INITIALIZATION - init

init{

if(get_console() == PIO_PS3) {
fire_button = 3;
scope_button = 6;
}else {
fire_button = 4;
scope_button = 7;
}

RATE_OF_FIRE = get_pvar(SPVAR_1, 0, 25, 11);
ANTI_RECOIL = get_pvar(SPVAR_2, -100,+100, 30);
ANTI_RECOIL_H = get_pvar(SPVAR_3, -100,+100, 0);
}

//-------------------------------------------------------------------------------------------

//MAIN BLOCK ROUTINES

main {


if(get_val(7) && event_press(AR_switch)) {
combo_run (vibrate);
recoil_onoff=!recoil_onoff;
}

if(get_val(7) && event_press(RF_switch)) {
combo_run (vibrate);
rapid_onoff=!rapid_onoff;
}

if((rapid_onoff) && recoil_onoff) colourled(Green);
if((rapid_onoff) && !recoil_onoff) colourled(Blue);
if((recoil_onoff) && !rapid_onoff) colourled(Pink);
if((!recoil_onoff) && !rapid_onoff) colourled(Red);

if(rapid_onoff) { if(get_val(4)) {
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(19)) {
if(event_press(UP)) {
RATE_OF_FIRE = RATE_OF_FIRE+ 1;
}
if(event_press(DOWN)) {
RATE_OF_FIRE = RATE_OF_FIRE- 1;
}
set_val(UP,0); set_val(DOWN,0);
}

if(get_val(scope_button) && event_press(save)){
combo_run(vibrate);
set_pvar(SPVAR_1, RATE_OF_FIRE);
set_pvar(SPVAR_2, ANTI_RECOIL);
set_pvar(SPVAR_3, ANTI_RECOIL_H);
set_val(save, 0);
}
if(get_val(7)){
if(event_press(UP)){
ANTI_RECOIL = ANTI_RECOIL+ 1;
}
if(event_press(DOWN)) {
ANTI_RECOIL = ANTI_RECOIL- 1;
}
set_val(UP,0); set_val(DOWN,0);

if(event_press(LEFT)){
ANTI_RECOIL_H = ANTI_RECOIL_H+ 1;
}
if(event_press(RIGHT)) {
ANTI_RECOIL_H = ANTI_RECOIL_H- 1;
}
set_val(LEFT,0); set_val(RIGHT,0);

}
if(!Scope_only || get_val(scope_button) && get_val(fire_button )) {
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_A, 100);
wait(300);
reset_rumble();
}

combo RAPID_FIRE {
set_val(fire_button, 100);
wait(hold_time);
set_val(fire_button, 0);
wait(rest_time);
set_val(fire_button, 0);
}

combo AntiRecoil { // This combo must be the last one
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



//-------------------------------------------------------------------------------------------
// ANTIRECOIL and RAPIDFIRE (Ambos ajustables en juego, con ON / OFF y función SAVE)
//-------------------------------------------------------------------------------------------
// Version: 6.1 - Classic
// Platform: Multi
// Controller: Multi
// Game: All FPS games
// Author: LEX LOST
//------------------------------------------------------------------------------------------

// LED indications:

// Green: rapidfire ON - antirecoil ON
// Fuchsia: antirecoil ON - rapidfire OFF
// Blue: rapidfire ON - antirecoil OFF
// Red: rapidfire OFF - antirecoil OFF;
//-------------------------------------------------------------------------------------------
// Traducido al español //Vauxhall

// RAPIDFIRE (ON por defecto - Valor de arranque: 13 - LED verde = ON, led ROJO = OFF)
// Mantenga pulsado LT y presione Y para activar o desactivar Rapidfire (vibracion como notificacion)
// Mantenga A y pulse ARRIBA para aumentar la Tasa de Fuego (+1 cada toque en ARRIBA mientras mantiene A)
// Mantenga A y pulse ABAJO para disminuir la Tasa de Fuego (-1 cada toque en ABAJO, mientras mantiene A)

// ANTIRECOIL (ON por defecto - Valor inicial: vertical = 30, Horizontal = 0)
// Retenga LT y presione A para habilitar o deshabilitar Antirecoil (vibracion como notificacion)
// Retenga LT y pulse ARRIBA para aumentar Antirecoil (+1 cada toque en ARRIBA mientras mantiene pulsado LT)
// Mantenga pulsado LT y pulse ABAJO para disminuir Antirecoil (-1 cada toque en ABAJO mientras mantiene pulsado LT)
// Mantenga pulsado LT y pulse DERECHA para compensar a la derecha (+1 cada toque en DERECHA mientras mantiene pulsado LT)
// Mantenga pulsado LT y pulse IZQUIERDA para compensar a la izquierda (+1 cada toque en IZQUIERDA mientras mantiene pulsado LT)

// GUARDAR nuevos valores en el eeprom de CronusMax: Mantenga pulsado LT y pulse MENU (o START, para usuarios de XBOX360)

// ------------------------------------------------ -------------------------------------------
// INSTRUCCIONES PLAYSTATION:

// RAPIDFIRE (ON por defecto - Valor de arranque: 13 - LED verde = ON, led ROJO = OFF)
// Retenga L2 y presione TRIANGULO para activar o desactivar Rapidfire (con rumble notify)
// Mantenga "X" y pulse ARRIBA para aumentar la Tasa de Fuego (+1 cada toque en UP, mientras mantiene "X")
// Mantenga "X" y pulse ABAJO para disminuir la Velocidad de Fuego (-1 cada toque en ABAJO, mientras mantiene "X")

// ANTIRECOIL (ON por defecto - Valor inicial: vertical = 30, Horizontal = 0)
// Retenga L2 y presione "X" para activar o desactivar Antirecoil (con rumble notify)
// Retenga L2 y pulse ARRIBA para aumentar Antirecoil (+1 cada toque en ARRIBA mientras mantiene L2)
// Retenga L2 y pulse ABAJO para disminuir Antirecoil (-1 cada toque en ABAJO, mientras mantiene L2)
// Mantenga L2 y pulse DERECHA para compensar a la derecha (+1 cada toque en DERECHA, mientras mantiene L2)
// Retenga L2 y pulse IZQUIERDA para compensar a la izquierda (+1 cada toque en IZQUIERDA mientras mantiene L2)

// Guardar nuevos valores en el eeprom de CronusMax: Mantenga pulsado L2 y presione OPTIONS (o START, para usuarios de PS3)
//-------------------------------------------------------------------------------------------

//DECLARARATIONS - define

define RF_switch = 17; // XB1_Y - PS4_TRIANGLE
define AR_switch = 19; // XB1_A - PS4_CROSS
//-------------------------------------------------------------------------------------------
define save = 2; // XB1_MENU - PS4_OPTIONS
//-------------------------------------------------------------------------------------------
define AR_Release = 70; // change this value to determine 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 SPRINT = 8;
define UP = 13;
define DOWN = 14;
define LEFT = 15;
define RIGHT = 16;
//-------------------------------------------------------------------------------------------
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 recoil_onoff = TRUE; // if TRUE Antirecoil is ON by default - if FALSE, OFF by default
int rapid_onoff = TRUE; // if TRUE Rapidfire is ON by default - if FALSE, OFF by default
int RATE_OF_FIRE = 11; // Range: 1 to 25 RPS (Round/s)
int ANTI_RECOIL = 30;
int ANTI_RECOIL_H = 0;
int anti_recoil;
int anti_recoil_H;
int Col_ind;
int fire_button;
int scope_button;
int hold_time;
int rest_time;

//-------------------------------------------------------------------------------------------

//INITIALIZATION - init

init{

if(get_console() == PIO_PS3) {
fire_button = 3;
scope_button = 6;
}else {
fire_button = 4;
scope_button = 7;
}

RATE_OF_FIRE = get_pvar(SPVAR_1, 0, 25, 11);
ANTI_RECOIL = get_pvar(SPVAR_2, -100,+100, 30);
ANTI_RECOIL_H = get_pvar(SPVAR_3, -100,+100, 0);
}

//-------------------------------------------------------------------------------------------

//MAIN BLOCK ROUTINES

main {


if(get_val(7) && event_press(AR_switch)) {
combo_run (vibrate);
recoil_onoff=!recoil_onoff;
}
if(event_press(PS4_L2)) {
combo_run(ASHOT);
}
if(get_val(7) && event_press(RF_switch)) {
combo_run (vibrate);
rapid_onoff=!rapid_onoff;
}

if((rapid_onoff) && recoil_onoff) colourled(Green);
if((rapid_onoff) && !recoil_onoff) colourled(Blue);
if((recoil_onoff) && !rapid_onoff) colourled(Pink);
if((!recoil_onoff) && !rapid_onoff) colourled(Red);

if(rapid_onoff) { if(get_val(4)) {
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(19)) {
if(event_press(UP)) {
RATE_OF_FIRE = RATE_OF_FIRE+ 1;
}
if(event_press(DOWN)) {
RATE_OF_FIRE = RATE_OF_FIRE- 1;
}
set_val(UP,0); set_val(DOWN,0);
}

if(get_val(scope_button) && event_press(save)){
combo_run(vibrate);
set_pvar(SPVAR_1, RATE_OF_FIRE);
set_pvar(SPVAR_2, ANTI_RECOIL);
set_pvar(SPVAR_3, ANTI_RECOIL_H);
set_val(save, 0);
}
if(get_val(7)){
if(event_press(UP)){
ANTI_RECOIL = ANTI_RECOIL+ 1;
}
if(event_press(DOWN)) {
ANTI_RECOIL = ANTI_RECOIL- 1;
}
set_val(UP,0); set_val(DOWN,0);

if(event_press(LEFT)){
ANTI_RECOIL_H = ANTI_RECOIL_H+ 1;
}
if(event_press(RIGHT)) {
ANTI_RECOIL_H = ANTI_RECOIL_H- 1;
}
set_val(LEFT,0); set_val(RIGHT,0);

}
if(!Scope_only || get_val(scope_button) && get_val(fire_button )) {
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_A, 100);
wait(300);
reset_rumble();
}

combo RAPID_FIRE {
set_val(fire_button, 100);
wait(hold_time);
set_val(fire_button, 0);
wait(rest_time);
set_val(fire_button, 0);
}

combo ASHOT {
set_val(PS4_R2, 0);
wait(400);
set_val(PS4_R2, 100);
wait(50);
set_val(PS4_R2, 100);
}

combo AntiRecoil { // This combo must be the last one
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

Le deberia notificar la activacion y desactivacion por medio de una vibracion. Usted debe tener activado la vibracion del control desde los ajustes de PS4

Legolass
26th June 17, 13:09
ok muchas gracias lo probare

Legolass
26th June 17, 14:21
<br>
<br>
//-------------------------------------------------------------------------------------------<br>
// ANTIRECOIL and RAPIDFIRE (Ambos ajustables en juego, con ON / OFF y función SAVE)<br>
//-------------------------------------------------------------------------------------------<br>
// Version: 6.1 - Classic<br>
// Platform: Multi<br>
// Controller: Multi<br>
// Game: All FPS games<br>
// Author: LEX LOST<br>
//------------------------------------------------------------------------------------------<br>
<br>
// LED indications:<br>
<br>
// Green: rapidfire ON - antirecoil ON<br>
// Fuchsia: antirecoil ON - rapidfire OFF<br>
// Blue: rapidfire ON - antirecoil OFF<br>
// Red: rapidfire OFF - antirecoil OFF;<br>
//-------------------------------------------------------------------------------------------<br>
// Traducido al español //Vauxhall<br>
<br>
// RAPIDFIRE (ON por defecto - Valor de arranque: 13 - LED verde = ON, led ROJO = OFF)<br>
// Mantenga pulsado LT y presione Y para activar o desactivar Rapidfire (vibracion como notificacion)<br>
// Mantenga A y pulse ARRIBA para aumentar la Tasa de Fuego (+1 cada toque en ARRIBA mientras mantiene A)<br>
// Mantenga A y pulse ABAJO para disminuir la Tasa de Fuego (-1 cada toque en ABAJO, mientras mantiene A)<br>
<br>
// ANTIRECOIL (ON por defecto - Valor inicial: vertical = 30, Horizontal = 0)<br>
// Retenga LT y presione A para habilitar o deshabilitar Antirecoil (vibracion como notificacion)<br>
// Retenga LT y pulse ARRIBA para aumentar Antirecoil (+1 cada toque en ARRIBA mientras mantiene pulsado LT)<br>
// Mantenga pulsado LT y pulse ABAJO para disminuir Antirecoil (-1 cada toque en ABAJO mientras mantiene pulsado LT)<br>
// Mantenga pulsado LT y pulse DERECHA para compensar a la derecha (+1 cada toque en DERECHA mientras mantiene pulsado LT)<br>
// Mantenga pulsado LT y pulse IZQUIERDA para compensar a la izquierda (+1 cada toque en IZQUIERDA mientras mantiene pulsado LT)<br>
<br>
// GUARDAR nuevos valores en el eeprom de CronusMax: Mantenga pulsado LT y pulse MENU (o START, para usuarios de XBOX360)<br>
<br>
// ------------------------------------------------ -------------------------------------------<br>
// INSTRUCCIONES PLAYSTATION:<br>
<br>
// RAPIDFIRE (ON por defecto - Valor de arranque: 13 - LED verde = ON, led ROJO = OFF)<br>
// Retenga L2 y presione TRIANGULO para activar o desactivar Rapidfire (con rumble notify)<br>
// Mantenga "X" y pulse ARRIBA para aumentar la Tasa de Fuego (+1 cada toque en UP, mientras mantiene "X")<br>
// Mantenga "X" y pulse ABAJO para disminuir la Velocidad de Fuego (-1 cada toque en ABAJO, mientras mantiene "X")<br>
<br>
// ANTIRECOIL (ON por defecto - Valor inicial: vertical = 30, Horizontal = 0)<br>
// Retenga L2 y presione "X" para activar o desactivar Antirecoil (con rumble notify)<br>
// Retenga L2 y pulse ARRIBA para aumentar Antirecoil (+1 cada toque en ARRIBA mientras mantiene L2)<br>
// Retenga L2 y pulse ABAJO para disminuir Antirecoil (-1 cada toque en ABAJO, mientras mantiene L2)<br>
// Mantenga L2 y pulse DERECHA para compensar a la derecha (+1 cada toque en DERECHA, mientras mantiene L2)<br>
// Retenga L2 y pulse IZQUIERDA para compensar a la izquierda (+1 cada toque en IZQUIERDA mientras mantiene L2)<br>
<br>
// Guardar nuevos valores en el eeprom de CronusMax: Mantenga pulsado L2 y presione OPTIONS (o START, para usuarios de PS3)<br>
//-------------------------------------------------------------------------------------------<br>
<br>
//DECLARARATIONS - define<br>
<br>
define RF_switch = 17; // XB1_Y - PS4_TRIANGLE <br>
define AR_switch = 19; // XB1_A - PS4_CROSS<br>
//-------------------------------------------------------------------------------------------<br>
define save = 2; // XB1_MENU - PS4_OPTIONS<br>
//-------------------------------------------------------------------------------------------<br>
define AR_Release = 70; // change this value to determine when antirecoil stops working (min: antirecoil value + 10)<br>
define Scope_only = TRUE; // if TRUE Antirecoil IS ON only when scoping - if FALSE, is always ON<br>
//-------------------------------------------------------------------------------------------<br>
define SPRINT = 8;<br>
define UP = 13; <br>
define DOWN = 14; <br>
define LEFT = 15; <br>
define RIGHT = 16; <br>
//-------------------------------------------------------------------------------------------<br>
define Blue = 1; <br>
define Red = 2; <br>
define Green = 3; <br>
define Pink = 4; <br>
define SkyBlue = 5; <br>
define Yellow = 6; <br>
define White = 7; <br>
//------------------------------------------------------------------------------------------- <br>
data(1,<br>
2,0,0,0, //1. Blue<br>
0,2,0,0, //2. Red<br>
0,0,2,0, //3. Lime/Green<br>
0,0,0,2, //4. Fuchsia/Pink<br>
2,0,2,0, //5. SkyBlue<br>
0,2,2,0, //6. Yellow<br>
2,2,2,2 //7. White<br>
); <br>
//-------------------------------------------------------------------------------------------<br>
<br>
//VARIABLES - int<br>
<br>
int recoil_onoff = TRUE; // if TRUE Antirecoil is ON by default - if FALSE, OFF by default<br>
int rapid_onoff = TRUE; // if TRUE Rapidfire is ON by default - if FALSE, OFF by default<br>
int RATE_OF_FIRE = 11; // Range: 1 to 25 RPS (Round/s)<br>
int ANTI_RECOIL = 30;<br>
int ANTI_RECOIL_H = 0; <br>
int anti_recoil;<br>
int anti_recoil_H;<br>
int Col_ind;<br>
int fire_button;<br>
int scope_button;<br>
int hold_time;<br>
int rest_time;<br>
<br>
//-------------------------------------------------------------------------------------------<br>
<br>
//INITIALIZATION - init<br>
<br>
init{<br>
<br>
if(get_console() == PIO_PS3) {<br>
fire_button = 3;<br>
scope_button = 6;<br>
}else { <br>
fire_button = 4;<br>
scope_button = 7;<br>
}<br>
<br>
RATE_OF_FIRE = get_pvar(SPVAR_1, 0, 25, 11);<br>
ANTI_RECOIL = get_pvar(SPVAR_2, -100,+100, 30);<br>
ANTI_RECOIL_H = get_pvar(SPVAR_3, -100,+100, 0);<br>
} <br>
<br>
//-------------------------------------------------------------------------------------------<br>
<br>
//MAIN BLOCK ROUTINES<br>
<br>
main {<br>
<br>
<br>
if(get_val(7) &amp;&amp; event_press(AR_switch)) {<br>
combo_run (vibrate); <br>
recoil_onoff=!recoil_onoff;<br>
} <br>
if(event_press(PS4_L2)) {<br>
combo_run(ASHOT);<br>
}<br>
if(get_val(7) &amp;&amp; event_press(RF_switch)) {<br>
combo_run (vibrate); <br>
rapid_onoff=!rapid_onoff;<br>
} <br>
<br>
if((rapid_onoff) &amp;&amp; recoil_onoff) colourled(Green); <br>
if((rapid_onoff) &amp;&amp; !recoil_onoff) colourled(Blue); <br>
if((recoil_onoff) &amp;&amp; !rapid_onoff) colourled(Pink); <br>
if((!recoil_onoff) &amp;&amp; !rapid_onoff) colourled(Red); <br>
<br>
if(rapid_onoff) { if(get_val(4)) {<br>
combo_run (RAPID_FIRE);<br>
} <br>
} <br>
hold_time = 500 / RATE_OF_FIRE;<br>
rest_time = hold_time - 20;<br>
if(rest_time &lt; 0) rest_time = 0;<br>
<br>
if(get_val(19)) { <br>
if(event_press(UP)) {<br>
RATE_OF_FIRE = RATE_OF_FIRE+ 1;<br>
}<br>
if(event_press(DOWN)) {<br>
RATE_OF_FIRE = RATE_OF_FIRE- 1;<br>
}<br>
set_val(UP,0); set_val(DOWN,0);<br>
}<br>
<br>
if(get_val(scope_button) &amp;&amp; event_press(save)){<br>
combo_run(vibrate);<br>
set_pvar(SPVAR_1, RATE_OF_FIRE);<br>
set_pvar(SPVAR_2, ANTI_RECOIL);<br>
set_pvar(SPVAR_3, ANTI_RECOIL_H);<br>
set_val(save, 0);<br>
}<br>
if(get_val(7)){<br>
if(event_press(UP)){<br>
ANTI_RECOIL = ANTI_RECOIL+ 1;<br>
}<br>
if(event_press(DOWN)) {<br>
ANTI_RECOIL = ANTI_RECOIL- 1;<br>
}<br>
set_val(UP,0); set_val(DOWN,0);<br>
<br>
if(event_press(LEFT)){<br>
ANTI_RECOIL_H = ANTI_RECOIL_H+ 1;<br>
}<br>
if(event_press(RIGHT)) {<br>
ANTI_RECOIL_H = ANTI_RECOIL_H- 1;<br>
}<br>
set_val(LEFT,0); set_val(RIGHT,0);<br>
<br>
}<br>
if(!Scope_only || get_val(scope_button) &amp;&amp; get_val(fire_button )) {<br>
combo_run(AntiRecoil);<br>
}<br>
<br>
if( abs(get_val(10)) &gt; AR_Release || abs(get_val(9)) &gt; AR_Release) { <br>
combo_stop (AntiRecoil);<br>
}<br>
}<br>
//-------------------------------------------------------------------------------------------<br>
<br>
//COMBO BLOCKS<br>
<br>
combo vibrate {<br>
set_rumble(RUMBLE_A, 100);<br>
wait(300);<br>
reset_rumble();<br>
}<br>
<br>
combo RAPID_FIRE {<br>
set_val(fire_button, 100);<br>
wait(hold_time);<br>
set_val(fire_button, 0);<br>
wait(rest_time);<br>
set_val(fire_button, 0);<br>
}<br>
<br>
combo ASHOT {<br>
set_val(PS4_R2, 0);<br>
wait(400);<br>
set_val(PS4_R2, 100);<br>
wait(50);<br>
set_val(PS4_R2, 100);<br>
} <br>
<br>
combo AntiRecoil { // This combo must be the last one<br>
if(recoil_onoff) {<br>
anti_recoil = get_val(10) + ANTI_RECOIL;<br>
if(anti_recoil &gt; 100) anti_recoil = 100;<br>
set_val(10, anti_recoil);<br>
anti_recoil_H = get_val(9) + ANTI_RECOIL_H;<br>
if(anti_recoil_H &gt; 100) anti_recoil_H = 100;<br>
set_val(9, anti_recoil_H);<br>
}<br>
} <br>
// COLOR LED function<br>
//--------------------------------------------------------------<br>
function colourled(Colour) {<br>
Col_ind=(Colour*4)- 3;<br>
set_led(LED_1,dbyte(Col_ind ));<br>
set_led(LED_2,dbyte(Col_ind+ 1));<br>
set_led(LED_3,dbyte(Col_ind+ 2));<br>
set_led(LED_4,dbyte(Col_ind+ 3));<br>
}// End<br>
<br>
Le deberia notificar la activacion y desactivacion por medio de una vibracion. Usted debe tener activado la vibracion del control desde los ajustes de PS4<br><br>Me he explicado mal con este script para disparar tengo que apuntar con L2 y disparar con R2, lo que quiero es que pulsando solo L2 dispare en automático, seria dejando pulsado L2 apunte y dispare, apunte y dispare, asi sucesivamente, no se si se llama quickscope. gracias y perdon por la insistencia.