Fortnite Emote-Hotkeys

GPC2 script programming for Titan Two. Code examples, questions, requests.

Fortnite Emote-Hotkeys

Postby Silktouch » Sun Mar 11, 2018 6:51 pm

Hey!
I use the building script from MAL and want to include Emote-Shortcuts like Key_1 for Dance UP Key_2 Dance DOWN and so on. I think that it isnt hard to do, but I cant manage it with the macro recorder. Can someone guide me in the right direction?

Regards
User avatar
Silktouch
Sergeant Major
Sergeant Major
 
Posts: 70
Joined: Sat Mar 03, 2018 2:57 pm

Re: Fortnite Emote-Hotkeys

Postby J2Kbr » Sun Mar 11, 2018 9:26 pm

Please describe the button sequence needed for the two emotes you want associate with KEY_1 and KEY_2. One you can have in the D-Pad Down press, but for two is need first open the emote menu (holding dpad down?) and selecting one with left analog stick, this this correct?
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: Fortnite Emote-Hotkeys

Postby Silktouch » Mon Mar 12, 2018 6:12 am

Not holding down, only press it once and then select with the stick up, down, left, right and confirm with X, right :)
User avatar
Silktouch
Sergeant Major
Sergeant Major
 
Posts: 70
Joined: Sat Mar 03, 2018 2:57 pm

Re: Fortnite Emote-Hotkeys

Postby J2Kbr » Mon Mar 12, 2018 9:33 am

Thanks, please check if this will work.

Code: Select all
#include <keyboard.gph>
 
main {
    if(key_status(KEY_1)) {
        combo_run(EmoteUp);
    }
    if(key_status(KEY_2)) {
        combo_run(EmoteDown);
    }
    if(key_status(KEY_3)) {
        combo_run(EmoteLeft);
    }
    if(key_status(KEY_4)) {
        combo_run(EmoteRight);
    }
}
 
combo EmoteUp {
    set_val(BUTTON_11, 100.0);
    wait(40); wait(160);
 
    set_val(STICK_1_Y, -100.0);
    wait(80);
 
    set_val(STICK_1_Y, -100.0);
    set_val(BUTTON_16, 100.0);
    wait(40);
}
 
combo EmoteDown {
    set_val(BUTTON_11, 100.0);
    wait(40); wait(160);
 
    set_val(STICK_1_Y, 100.0);
    wait(80);
 
    set_val(STICK_1_Y, 100.0);
    set_val(BUTTON_16, 100.0);
    wait(40);
}
 
combo EmoteLeft {
    set_val(BUTTON_11, 100.0);
    wait(40); wait(160);
 
    set_val(STICK_1_X, -100.0);
    wait(80);
 
    set_val(STICK_1_X, -100.0);
    set_val(BUTTON_16, 100.0);
    wait(40);
}
 
combo EmoteRight {
    set_val(BUTTON_11, 100.0);
    wait(40); wait(160);
 
    set_val(STICK_1_X, 100.0);
    wait(80);
 
    set_val(STICK_1_X, 100.0);
    set_val(BUTTON_16, 100.0);
    wait(40);
}
 
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: Fortnite Emote-Hotkeys

Postby Silktouch » Mon Mar 12, 2018 9:44 am

Thank you. But this dont seem to work, when I press the button, nothing happens. I tried to assign other keys, but still the same, nothing happens.
User avatar
Silktouch
Sergeant Major
Sergeant Major
 
Posts: 70
Joined: Sat Mar 03, 2018 2:57 pm

Re: Fortnite Emote-Hotkeys

Postby alencroat » Tue Mar 13, 2018 12:47 am

the timing probably got to be adjusted, im actually also interested in keyboard as secondary because I'm running out of buttons hehe. Might just copy this one! This works for me um I just have 1 question, where can I find a tutorial, can you point me to an example showing all the keys names on key board like you did for key 1,2,3,4 .
I'm wondering what space key is called, is it just key_SPACE lol I have no idea I think i can figure out the rest.
User avatar
alencroat
Lieutenant
Lieutenant
 
Posts: 320
Joined: Sun Oct 15, 2017 5:58 pm

Re: Fortnite Emote-Hotkeys

Postby Scachi » Tue Mar 13, 2018 2:51 am

alencroat wrote:the timing probably got to be adjusted, im actually also interested in keyboard as secondary because I'm running out of buttons hehe. Might just copy this one! This works for me um I just have 1 question, where can I find a tutorial, can you point me to an example showing all the keys names on key board like you did for key 1,2,3,4 .
I'm wondering what space key is called, is it just key_SPACE lol I have no idea I think i can figure out the rest.

I just open the keyboard.gph file to see all the definitions, don't know if there is an other way.
The default include files are located in the "include" folder of your GTuner IV directory (where you unzipped/installed it, not the workspace directory).
Don't change any of the default include files contents or you will get into trouble with all scripts you copy from other users/forum/Online Resource.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: Fortnite Emote-Hotkeys

Postby Silktouch » Tue Mar 13, 2018 2:53 am

Timings dont do it too. Nothing happens :/
User avatar
Silktouch
Sergeant Major
Sergeant Major
 
Posts: 70
Joined: Sat Mar 03, 2018 2:57 pm

Re: Fortnite Emote-Hotkeys

Postby alencroat » Tue Mar 13, 2018 3:42 am

I uhh worked on this lol, ill post xbox controlls for 6 dancing
Code: Select all
    if(key_status(KEY_1)) {
        combo_run(dance1);
    }
    if(key_status(KEY_2)) {
        combo_run(dance2);
    }
    if(key_status(KEY_3)) {
        combo_run(dance3);
    }
    if(key_status(KEY_4)) {
        combo_run(dance4);
    }   
    if(key_status(KEY_5)) {
        combo_run(dance5);
    }
    if(key_status(KEY_6)) {
        combo_run(dance6);
    }
combo dance1 {
    set_val(BUTTON_11, 100.0);
    wait(40); wait(160);
 
    set_val(STICK_1_Y, -100.0);
    wait(80);
 
    set_val(BUTTON_16, 100.0);
    wait(40);
}
combo dance2 {
    set_val(BUTTON_11, 100.0);
    wait(40); wait(160);
 
    set_val(STICK_1_X, 100.0);
    set_val(STICK_1_Y, -60.0);
 
    wait(80);
 
    set_val(BUTTON_16, 100.0);
    wait(40);
}
combo dance3 {
    set_val(BUTTON_11, 100.0);
    wait(40); wait(160);
 
    set_val(STICK_1_X, 100.0);
    set_val(STICK_1_Y, 47.0);
    wait(80);
 
    set_val(BUTTON_16, 100.0);
    wait(40);
}
combo dance4 {
    set_val(BUTTON_11, 100.0);
    wait(40); wait(160);
 
    set_val(STICK_1_Y, 100.0);
    wait(80);
 
    set_val(BUTTON_16, 100.0);
    wait(40);
}
combo dance5 {
    set_val(BUTTON_11, 100.0);
    wait(40); wait(160);
 
    set_val(STICK_1_Y, 53.0);
    set_val(STICK_1_X, -93.0);
    wait(80);
 
    set_val(BUTTON_16, 100.0);
    wait(40);
}
combo dance6 {
    set_val(BUTTON_11, 100.0);
    wait(40); wait(160);
 
    set_val(STICK_1_Y, -90.0);
    set_val(STICK_1_X, -53.0);
    wait(80);
 
    set_val(BUTTON_16, 100.0);
    wait(40);
}

just add the main and all that i just cut out the piece of my full script
for me when i hit number pad from 1-6 it works all dances lol, now Im stuck on why left arrow is not working properly for some other script
User avatar
alencroat
Lieutenant
Lieutenant
 
Posts: 320
Joined: Sun Oct 15, 2017 5:58 pm

Re: Fortnite Emote-Hotkeys

Postby Silktouch » Tue Mar 13, 2018 4:05 am

Thanks, I dont know why it dont work for me.
I use T2 into XIM4 into PS4.

When I use ur script all I see in XIM Manager is that I press Key_1 and nothing happens ingame.
Maybe I must change something with my XIM combi?

Cheers
User avatar
Silktouch
Sergeant Major
Sergeant Major
 
Posts: 70
Joined: Sat Mar 03, 2018 2:57 pm

Next

Return to GPC2 Script Programming

Who is online

Users browsing this forum: midg3t2 and 138 guests