**SCRIPT RELEASE** Easy Slide Cancel for Call Of Duty - MW

Documentation, usage tips and configuration guides for Titan Two scripts and bytecodes published by the community users.

**SCRIPT RELEASE** Easy Slide Cancel for Call Of Duty - MW

Postby Justin420time » Tue Mar 15, 2022 6:31 am

This is the release of my script for "Slide Cancel".
Credits go to Mad and "AIMXPLOIT V6.0 AKA XXPOLIGONERAXX"

Where it all started: viewtopic.php?f=26&t=19344

I just wanted a simple script so I never have to release my thumbs from the joysticks.

**EDITED ON Tuesday 3-15-2022**
I had to add code for when pressing ADS, so it doesn't mess with anything..
**EDITED ON Tuesday 3-26-2022**
FIXED CODE.. It will now work great when controls are set correctly!

Here it is:

Code: Select all
#pragma METAINFO("Easy Sprint Cancel - xkjtx", 1, 0, "<xKJTx>")
 
#include "titanone.gph"
#include "ColorLED.gph"
 
/*
    New "Easy Sprint Cancel" script made with Titan Two Gtuner for Call Of Duty: Modern Warfare/Warzone:
        Created by "xKJTx" and credits to "Mad" Plus,
        I used some code from "AIMXPLOIT V6.0 AKA XXPOLIGONERAXX". Thanks everyone!
 
        You will need "titanone.gph" and "ColorLED.gph" in the same directory,
        for this script to work correctly with all code involved.
 
        "Default" Controller setup. (But plans to add Switch from Default to Tactical)
            Although, if you use "Automatic Tactical Sprint" you do not need Tactical controls.
 
        Also, you need to change Automatic Sprint in Options,
        to 'Automatic Tactical Sprint' when pushing forward.
 
        Activate script = (Right Joystick Click)+(D-pad Up)
 
    ***You never have to take your thumbs off the joysticks when you have Sprint Cancel toggled ON!!!***
 
        Added 'Always On - 100% Trigger Press' and all buttons listed in code..
        **Warning** If prone, just press Click Left-Joystick and you will start running/Sprinting again..
 
 
*/

 
define White = 0;
define Off = 1;
define Blue = 2;
define Red = 3;
define Green = 4;
define Pink = 5;
define SkyBlue = 6;
define Yellow = 7;
 
data(1,
  0,0,0,0, //0
  2,0,0,0, //1
  0,2,0,0, //2
  0,0,2,0, //3
  0,0,0,2, //4
  2,0,2,0, //5
  0,2,2,0, //6
  2,2,2,2, //7
);
 
int Sprint_Cancel = FALSE;
int Col_ind;
int rld_time = 1400;
int b_reload = FALSE;
 
main {
    // Click Right Joystick + BUTTON_2(Touch Click/PS4)(View/XboxOne)
    if (get_val(BUTTON_6) && event_press(PS4_UP)) {
        combo_run(c_vibrate);
        Sprint_Cancel =! Sprint_Cancel;
        if (Sprint_Cancel) ColorLED(CG,200,200,4,CG);
        else f_colourled(Off);
    }
 
    // Sprint Cancel
    if (Sprint_Cancel) {
        if(event_release(BUTTON_9) && time_release(BUTTON_9) < 250) { // Click Left Joystick button under 250ms
            if(!b_reload && get_actual(STICK_2_Y) < -50f) { // and left stick is pushed 50% forward
                combo_run(c_Sprint_Cancel); // Run combo
            }
        }
    }
 
     // If reload is pressed stop running combo || Stop combo when pressing ADS
    if (get_val(PS4_SQUARE) || get_val(PS4_L2)) {
        combo_stop(c_Sprint_Cancel);
    }
 
    if (event_release(PS4_SQUARE)) {
        b_reload = TRUE;
    }
    if (b_reload) {
        b_reload = b_reload + get_rtime();
    }
    if (b_reload >= rld_time) {
        b_reload = 0;
        b_reload = FALSE;
    }
 
    // This code sets 'Always On 100% Trigger Press' and all buttons below..
    if (get_val(PS4_PS) >= 1) set_val(PS4_PS, 100);
    if (get_val(PS4_SHARE) >= 1) set_val(PS4_SHARE, 100);
    if (get_val(PS4_OPTIONS) >= 1) set_val(PS4_OPTIONS, 100);
    if (get_val(PS4_R1) >= 1) set_val(PS4_R1, 100);
    if (get_val(PS4_R2) >= 1) set_val(PS4_R2, 100);
    if (get_val(PS4_R3) >= 1) set_val(PS4_R3, 100);
    if (get_val(PS4_L1) >= 1) set_val(PS4_L1, 100);
    if (get_val(PS4_L2) >= 1) set_val(PS4_L2, 100);
    if (get_val(PS4_L3) >= 1) set_val(PS4_L3, 100);
    if (get_val(PS4_UP) >= 1) set_val(PS4_UP, 100);
    if (get_val(PS4_DOWN) >= 1) set_val(PS4_DOWN, 100);
    if (get_val(PS4_LEFT) >= 1) set_val(PS4_LEFT, 100);
    if (get_val(PS4_RIGHT) >= 1) set_val(PS4_RIGHT, 100);
    if (get_val(PS4_TRIANGLE) >= 1) set_val(PS4_TRIANGLE, 100);
    if (get_val(PS4_CIRCLE) >= 1) set_val(PS4_CIRCLE, 100);
 
}
 
// Dont need to press Jump with this combo while Automatic Tactical Sprint enabled in options.
combo c_Sprint_Cancel {
    set_val(PS4_CIRCLE, 0);
    wait(175);
    set_val(PS4_CIRCLE, 100);
    wait(125);
    set_val(PS4_CIRCLE, 0);
    wait(60);
    set_val(PS4_CIRCLE, 100);
    wait(60);
    set_val(PS4_CIRCLE, 0);
    wait(60);
    set_val(PS4_CIRCLE, 100);
    wait(45);
    set_val(BUTTON_9, 0);
    wait(45);
    set_val(BUTTON_9, 100);
    wait(45);
}
 
// Rumble when turning On/Off
combo RumbleOnce {
  ffb_set(FFB_1, 100.0, 250); // command motor FFB_1 to run at 100% for 250ms
  wait(0);          // !Important! only run the previous lines once
  wait(500);        // repeat the lines between this wait and the previous
                    //  (none=just waiting) for 500ms
  ffb_reset();      // this command allows the console to control the rumbles again
}
combo c_vibrate {
    wait(200);
    call(RumbleOnce);
}
 
//color change
function f_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));
}
Last edited by Justin420time on Sun Mar 27, 2022 6:34 am, edited 3 times in total.
paypal.me/xkjtx
UserBenchmarks:Game 96%,Desk 95%,Work 90%
CPU:AMD Ryzen 5 3600XT-87.5%
GPU:Nvidia RTX 3060-104.1%
RAM:Unknown 8G 135-K 4x8GB-94.7%
MBD:Gigabyte GA-B550 AORUS PRO AC
User avatar
Justin420time
First Sergeant
First Sergeant
 
Posts: 44
Joined: Fri Nov 02, 2018 6:48 pm

Re: **SCRIPT RELEASE** Easy Slide Cancel for Call Of Duty -

Postby Justin420time » Sun Mar 27, 2022 6:03 am

**EDITED ON Tuesday 3-26-2022**
FIXED CODE.. It will now work great when controls are set correctly now!

**Warning** If prone, just press Click Left-Joystick and you will start running/Sprinting again..
paypal.me/xkjtx
UserBenchmarks:Game 96%,Desk 95%,Work 90%
CPU:AMD Ryzen 5 3600XT-87.5%
GPU:Nvidia RTX 3060-104.1%
RAM:Unknown 8G 135-K 4x8GB-94.7%
MBD:Gigabyte GA-B550 AORUS PRO AC
User avatar
Justin420time
First Sergeant
First Sergeant
 
Posts: 44
Joined: Fri Nov 02, 2018 6:48 pm

Re: **SCRIPT RELEASE** Easy Slide Cancel for Call Of Duty -

Postby Scachi » Sun Mar 27, 2022 9:02 am

There is a sub forum for script documentation:
viewforum.php?f=23

Mad will move it when he spots it I think.
Last edited by Scachi on Sun Mar 27, 2022 4:21 pm, edited 1 time in total.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: **SCRIPT RELEASE** Easy Slide Cancel for Call Of Duty -

Postby Justin420time » Sun Mar 27, 2022 10:53 am

Scachi wrote:There is a sub forum for script documentation:
viewforum.php?f=23


I knew I was missing where to put it.. Sorry..

Is there anyway you can move it and update my script? Or do I have to create a new thread?


-Justin

P.S. THANK YOU!
paypal.me/xkjtx
UserBenchmarks:Game 96%,Desk 95%,Work 90%
CPU:AMD Ryzen 5 3600XT-87.5%
GPU:Nvidia RTX 3060-104.1%
RAM:Unknown 8G 135-K 4x8GB-94.7%
MBD:Gigabyte GA-B550 AORUS PRO AC
User avatar
Justin420time
First Sergeant
First Sergeant
 
Posts: 44
Joined: Fri Nov 02, 2018 6:48 pm


Return to User's Script Documentation

Who is online

Users browsing this forum: No registered users and 64 guests

cron