Dynasty Warriors 8: Three basic combos + smart camera (in-game adjustable)

More info inside the script. ------------------------------------------------------------ Smart camera allows you to have better control over the camera (Right Stick) while moving the left stick.
Version1.00
Authorlouisvign
Publish DateWed, 18 Jun 2014 - 15:14
Last UpdateWed, 18 Jun 2014 - 15:14
Downloads30
RATE


2

0

Code: Select all
//// Dynasty Warriors 8 Xtreme Legends Complete Edition:   Three basic combos and better + adjustable smart camera
 
////                    *READ ME*
//// Smart Camera = Camera "turns/rotates" depending on where you are moving to. (It's like being able to move and look around with the right stick at the same time)
//// Combo 1 = Square + Square + Triangle
//// Combo 2 = Square + Square + square + Triangle
//// Combo 3 = Square + Square + Square + square + Triangle
//// Note: Delays should be adjusted according to weapons used.
 
//// How to use
//// Combo 1: Tap the top section of the touchpad
//// Combo 2: Tap the bottom section of the touchpad
//// Combo 3: Tape the left section of the touchpad
//// Note: No swipes; Location based.
 
//// Smart Camera: Tap OPTIONS to enable (LED should now be RED)
/// Adjust Smart Camera: Hold OPTIONS and press DPAD UP(increases sensitivity) or DPAD DOWN (decreases sensitivity)
/// Note: When adjusting; LED will blink white to confirm a change.
 
/// Made by Loui2; Contact me through consoletuner forums if you wish: Feel free to use this script how ever you like.
 
int camerarateleft = -100;
int camerarateright =  100;
 
int camera = FALSE;
//////////////////////////
main {
 
 
if(get_val(29) <= 100 && get_val(29) > 30 && get_val(28) >-40 && get_val(28)<40 && ps4_touchpad(PS4T_P1))
    {combo_run(combo1) }
if(get_val(29) >= -100 && get_val(29) < - 30 && get_val(28) >-40 && get_val(28)<40 && ps4_touchpad(PS4T_P1))
    {combo_run(combo2) }
if(get_val(28) >= -100 && get_val(28) < - 30 && ps4_touchpad(PS4T_P1))
    {combo_run(combo3)}
 
 
 
if (camera && get_val(PS4_LX) < -50) {
    combo_run(cameraleft);}
if (camera && get_val(PS4_LX) >50) {
    combo_run(cameraright);}
if (camera && get_val(PS4_RX) < -20) {
    combo_stop(cameraleft);
    combo_stop(cameraright);
}
if (camera && get_val(PS4_RX) > 20) {
    combo_stop(cameraleft);
    combo_stop(cameraright);
}
 
 
if(event_release(PS4_OPTIONS) && get_ptime(PS4_OPTIONS) <200) {
    camera = !camera }
 
if (camera) {
    set_led(LED_1, 0);set_led(LED_2, 1);set_led(LED_3, 0);set_led(LED_4, 0);}
if (!camera) {
set_led(LED_1, 1);set_led(LED_2, 0);set_led(LED_3, 0);set_led(LED_4, 0);}
 
 
 
if(get_val(PS4_OPTIONS) >99 && event_press(PS4_UP)){
    camerarateleft = camerarateleft  -5
    camerarateright = camerarateright + 5
    combo_run(adjust)}
if(get_val(PS4_OPTIONS) >99 && event_press(PS4_DOWN)){
    camerarateleft = camerarateleft  + 5
    camerarateright = camerarateright - 5
    combo_run(adjust)}
 
 
if(camerarateleft <-100) {
    camerarateleft = -100;
}
if(camerarateleft >0) {
    camerarateleft = 0;
}
if(camerarateright >100) {
    camerarateright = 100;
}
if(camerarateright <0) {
    camerarateright = 0;
}
}
 
 
combo combo1 {  ///Square + Square + Triangle
    wait(50);
    set_val(PS4_SQUARE, 100);
    wait(110);
    set_val(PS4_SQUARE, 0);
    wait(340);
    set_val(PS4_SQUARE, 100);
    wait(110);
    set_val(PS4_SQUARE, 0);
    wait(250);
    set_val(PS4_TRIANGLE, 100);
    wait(110);
    set_val(PS4_TRIANGLE, 0);
    wait(110);
    set_val(PS4_TRIANGLE, 100);
    wait(30);
    set_val(PS4_TRIANGLE, 100);
    wait(70);
    set_val(PS4_TRIANGLE, 0);
    wait(50);
}
 
combo combo2{
    set_val(PS4_SQUARE, 100);
    wait(110);
    set_val(PS4_SQUARE, 0);
    wait(340);
    set_val(PS4_SQUARE, 100);
    wait(110);
    set_val(PS4_SQUARE, 0);
    wait(340);
    set_val(PS4_SQUARE, 100);
    wait(110);
    set_val(PS4_SQUARE, 0);
    wait(250);
    set_val(PS4_TRIANGLE, 100);
    wait(110);
    set_val(PS4_TRIANGLE, 0);
    wait(340);
    set_val(PS4_TRIANGLE, 100);
    wait(110);
    set_val(PS4_TRIANGLE, 0);
    wait(50);
}
 
combo combo3 {
    wait(50);
    set_val(PS4_SQUARE, 100);
    wait(110);
    set_val(PS4_SQUARE, 0);
    wait(340);
    set_val(PS4_SQUARE, 100);
    wait(110);
    set_val(PS4_SQUARE, 0);
    wait(340);
    set_val(PS4_SQUARE, 100);
    wait(110);
    set_val(PS4_SQUARE, 0);
    wait(340);
    set_val(PS4_SQUARE, 100);
    wait(110);
    set_val(PS4_SQUARE, 0);
    wait(250);
    set_val(PS4_TRIANGLE, 100);
    wait(110);
    set_val(PS4_TRIANGLE, 0);
    wait(110);
    set_val(PS4_TRIANGLE, 100);
    wait(30);
    set_val(PS4_TRIANGLE, 100);
    wait(70);
    set_val(PS4_TRIANGLE, 0);
    wait(50);
}
 
combo cameraleft {
    set_val (PS4_RX, camerarateleft) }
 
combo cameraright{
    set_val (PS4_RX, camerarateright) }
 
 
 
 
combo adjust {
    reset_leds();
    wait(20);
    set_led(LED_1, 2);
    set_led(LED_2, 1);
    set_led(LED_3, 2);
    set_led(LED_4, 3);
    wait(100);
    reset_leds();
    }