My best combo to spot and ping in Modern Warfare 2.0

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

My best combo to spot and ping in Modern Warfare 2.0

Postby Justin420time » Thu Dec 01, 2022 2:47 am

Code: Select all
#pragma METAINFO("MW2 - MP-WZ-DMZ Spotter 1", 1, 0889, "Justin420time")
/*
 
    My best combo to spot and ping in Modern Warfare 2.0 v1.121
 
    Turn off/on(on by default) by pressing and holding Right Joystick IN(BUTTON_6) and tap LeftBumper.
 
    Hold Left Trigger and Double tap Left JoyStick IN(BUTTON_9).
    It will mark once, but in succession will mark twice and REDPING.
 
*/

#include "titanone.gph"
#include "ColorLED.gph"
 
 
//Auto Spot
int Auto_Spot = TRUE;
 
int WaitWE20 = 20;
int WaitWE200 = 200;
int b_reload = FALSE;
int hold_time;
int rest_time;
int rld_time = 1400;
int RATE_OF_FIRE = 32765;
 
main {
    hold_time = 200 / RATE_OF_FIRE;
    rest_time = hold_time - 20;
    if (rest_time < 0) rest_time = 0;
    // If Reload is pressed stop running combo
    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;
    }
    //Auto Spot
    if (get_val(BUTTON_6) && event_press(XB1_LB)) {
        combo_run(c_vibrate);
        Auto_Spot =! Auto_Spot;
        if (Auto_Spot) ColorLED(CP,100,100,2,CG);
        else ColorLED(CR,100,100,2);
    }
    if (Auto_Spot) {
        if(!b_reload && get_val(BUTTON_8) && event_active(BUTTON_9) && time_release(BUTTON_9) < WaitWE200){
            combo_run(SPOT_MARKER);
        }
    }
}
// Rumble
combo RumbleOnce {
    ffb_set(FFB_2,100.0,200); // command motor FFB_1 to run at 100% for 200ms
    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 {
    call(RumbleOnce);
}
//Auto Spot
combo SPOT_MARKER {
    set_val(XB1_UP, 100);
    wait(WaitWE20);
    set_val(XB1_UP, 0);
    wait(WaitWE20);
}
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 39 guests