PUBG with Titan 2/XIM Apex using gamepack

Forum to discuss the scripts, configs and connection of XIM with the Titan devices.

Moderator: antithesis

PUBG with Titan 2/XIM Apex using gamepack

Postby nycz » Fri Mar 01, 2019 10:37 am

Hello, wondering how to set up my fire mode activations on Titan 2 so that I can use both use rapid fire/recoil control and drive vehicles at the same time using M&K?

Some time ago, I got help with this issue using the controller alone on this thread: viewtopic.php?f=25&t=9899&p=69689&hilit=vehicle#p69689 and it worked.

Now for mouse and keyboard how does this work? I assume 'Activated on Full Press' is the only option as I can't do 'Fire Trigger' by lightly tapping the mouse?
User avatar
nycz
Master Sergeant
Master Sergeant
 
Posts: 29
Joined: Sun Jul 22, 2018 1:26 pm

Re: PUBG with Titan 2/XIM Apex using gamepack

Postby J2Kbr » Mon Mar 04, 2019 1:55 pm

'Activated on Full Press' only works with gamepad. When using mouse the fire button is simple switch on/off, without pressure detection as the gamepad triggers. In this case you could activate the rapidfire/anti-recoil only when ADSing, for that select the option 'Activated on fire trigger and ADS(Scope)'.

In my personal script, I use a dedicate button on the G502 mouse to toggle the rapidfire. If you are interested, here is the script I use with PUBG:
Code: Select all
#pragma METAINFO("PUBG Battlegrounds", 2, 0, "J2Kbr")
 
/******************************************************************************
 * INPUT TRANSLATOR
 ******************************************************************************/

#include <remapper.gph>
#include <keyboard.gph>
#include <mouse.gph>
 
init {
    port_inhibit_ffb(PORT_USB_A);
 
    remapper_disable(STICK_1_X);
    remapper_disable(STICK_1_Y);
    remapper_disable(ACCEL_1_X);
    remapper_disable(ACCEL_1_Y);
    remapper_disable(ACCEL_1_Z);
    remapper_swap(BUTTON_2, BUTTON_16);
    remapper_swap(BUTTON_3, BUTTON_9);
    remapper_swap(BUTTON_9, BUTTON_15);
    remapper_mask(RMP_USB_A | RMP_BT_A);
 
    const uint8 kmap[] = {
        KEY_P,              BUTTON_17,
        KEY_OPENBRACKET,    BUTTON_2,
        KEY_CLOSEBRACKET,   BUTTON_21,
        KEY_BACKSLASH,      BUTTON_3,
    }; keymapping(kmap);
 
    const uint8 mmap[] = {
        MOUSE_X,            STICK_1_X,
        MOUSE_Y,            STICK_1_Y,
        MWHEEL_FORWARD,     BUTTON_14,
        MWHEEL_BACKWARD,    BUTTON_10,
        MBUTTON_1,          BUTTON_5,
        MBUTTON_2,          BUTTON_16,
        MBUTTON_3,          BUTTON_9,
        MBUTTON_4,          BUTTON_14,
        MBUTTON_5,          BUTTON_4,
    }; mousemapping(mmap);
 
    #define sensitivity(n)   n >> 8, n
 
    const uint8 mxyc[] = {
        BUTTON_8,
        sensitivity(2.54i), // Default
        0x01, 0x00, 0x00, 0x23, 0x0C, 0x28, 0x0C, 0x28, 0x00, 0xDB,
        0x00, 0x00, 0x11, 0x40, 0x1A, 0xA8, 0x21, 0xB8, 0x28, 0x00, 0x2D, 0x7D,
        0x32, 0xFA, 0x37, 0xAE, 0x3A, 0xD1, 0x3C, 0x63, 0x3D, 0x2E, 0x3F, 0x87,
        0x41, 0xE1, 0x45, 0x05, 0x48, 0x28, 0x4A, 0x82, 0x4D, 0xA3, 0x50, 0x00,
        0x52, 0x59, 0x54, 0xB3, 0x57, 0xD7,
        sensitivity(3.24i), // Alternate
        0x01, 0x00, 0x00, 0x1E, 0x0E, 0x80, 0x0E, 0x80, 0x00, 0xE8,
        0x00, 0x00, 0x0E, 0x1E, 0x16, 0xBD, 0x1D, 0xCC, 0x23, 0x4A, 0x28, 0xC7,
        0x2D, 0x7D, 0x32, 0x33, 0x36, 0x1E, 0x38, 0x78, 0x3A, 0x0A, 0x3C, 0x63,
        0x3F, 0x87, 0x43, 0x73, 0x45, 0xCC, 0x48, 0xF0, 0x4C, 0x14, 0x4E, 0x6E,
        0x51, 0x91, 0x53, 0xEB, 0x55, 0x7D
    }; mxyconverter(mxyc);
}
 
/******************************************************************************
 * MAIN
 ******************************************************************************/

bool toggle = TRUE;
 
init {
    led_feedback();
}
 
main {
    if(event_active(BUTTON_21)) {
        toggle = !toggle;
        led_feedback();
    }
    if(event_active(BUTTON_15)) {
        toggle = TRUE;
        led_feedback();
    }
    if(toggle) {
        if(get_val(BUTTON_5)) {
            combo_run(Rapidfire);
            mxyconverter_voffset(clamp(time_active(BUTTON_5)/17, 6, 23));
        } else if(event_release(BUTTON_5)) mxyconverter_voffset(0);
    }
    if(get_val(BUTTON_5)) {
        set_val(BUTTON_5, 100.0);
    }
    if(get_val(BUTTON_8)) {
        if(get_val(BUTTON_8) >= 100.00) {
            set_val(BUTTON_7, 100.0);
        }
        if(key_status(KEY_SEMICOLON)) {
            set_val(BUTTON_6, 100.0);   // LEAN LEFT
        }
        if(key_status(KEY_QUOTE)) {
            set_val(BUTTON_9, 100.0);   // LEAN RIGHT
        }
        set_val(BUTTON_8, 100.0);
    }
}
 
/* ************************************************************************** *
 * FUNCTIONS                                                                  *
 * ************************************************************************** */

void led_feedback() {
    if(toggle) {
        led_set(LED_3, -1.0, 0);
    } else led_reset();
}
 
/******************************************************************************
 * COMBOS
 ******************************************************************************/

combo Rapidfire {
    set_val(BUTTON_5, 100.0);
    wait(32);
    set_val(BUTTON_5, 0.0);
    wait(15);
    set_val(BUTTON_5, 0.0);
}
 
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: PUBG with Titan 2/XIM Apex using gamepack

Postby raybro » Sat Mar 09, 2019 1:23 am

Hi J2Kbr,

First, just want to say thanks for all the invaluable advice and script examples you’ve posted on these forums. Your posts were the primary factor that swayed my decision to purchase a aTitan Two, and I’ve been very happy with its performance over the past 3 months.

So I’m not a programmer but have taught myself over the past few months using the many helpful scripts provided by you and bonefisher which I have aggregated and modified to create my own custom game pack for PUBG using an Xbox controller. It basically consists of a 3 weapon switching system (linked to separate LED colors) that each have their own AR and Rapidfire settings depending on whether primary, secondary or pistol slot is selected, along with standard functions like hair-trigger activation for ADS and Fire, auto-Holdbreath when ADS and Fire, etc. It works flawlessly and does exactly what i want it to do.

Now I would like to adapt this game pack to use with K&M, and was planning to simply paste the script into a K&M translator and then modify the controller mapping references as necessary. However, the downloadable PUBG K&M input translator provided by this site does not appear to be modifiable. So a few questions:

1) Is your script provided above a full K&M input translator for PUBG (which also includes your preferred combos)?
2) Do you have any type of basic tutorial or description of your script’s functionality other than the annotations you provided in the code?
3) Other than the controller function remapping, will I need to rewrite my current script functions for AR, Rapidfire, etc. to use with K&M?

As always, any insight or advice you can provide would be greatly appreciated!
User avatar
raybro
Staff Sergeant
Staff Sergeant
 
Posts: 15
Joined: Thu Feb 07, 2019 10:04 am

Re: PUBG with Titan 2/XIM Apex using gamepack

Postby J2Kbr » Mon Mar 11, 2019 11:46 am

Thank you for your message and support. :smile0517:

raybro wrote:However, the downloadable PUBG K&M input translator provided by this site does not appear to be modifiable.

To customize an Input Translator download it instead of directly drag&drop to a memory slot.

raybro wrote:1) Is your script provided above a full K&M input translator for PUBG (which also includes your preferred combos)?

Yes, this is correct. However, this script was made to play with the PS Navigator (+mouse), instead of regular keyboard and mouse.

raybro wrote:2) Do you have any type of basic tutorial or description of your script’s functionality other than the annotations you provided in the code?

At the moment only the comments in the code.

raybro wrote:3) Other than the controller function remapping, will I need to rewrite my current script functions for AR, Rapidfire, etc. to use with K&M?

The controller remapping in this script is for the PS Navigator. If the script is modified for keyboard this part is not needed and you can use any key on the keyboard to configure the script for different AR, Rapidfire, etc.
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm


Return to XIM Apex, XIM4, XIM Edge with Titan devices

Who is online

Users browsing this forum: No registered users and 56 guests