Fortnite Aim Assist, Rapid Fire & Double Pump (Builder pro)

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

Fortnite Aim Assist, Rapid Fire & Double Pump (Builder pro)

Postby OMG-STI » Mon Jun 18, 2018 4:46 am

Hi folks,
My first post and i'd like to share a little fortnite script.
I'm by no means some elite scripter/coding guru so please, go easy :)
Im only reading/writing these scripts for just over a week but i think this works very vell indeed (especially the double pump).
This was wrote for PS4 using Titan two, im sure you can convert this to other devices better than i can.
Anyway, enjoy and feel free to edit and share on my mistakes.
Usage
L2 + DPad Left = double pump mode on/off
L2 + Dpad Right = aim assist on/off
L2 + DPad Up = rapid fire on/off
L2 + DPad Down = Twitch on/off
L2 + R1 = Tap fir(for Assault rifles mainly)
just to elaborateon on the tap fire. Hold L2 + R1 together, this will slow down shots from Auto weapons and increase the accuracy.
When using double pump. Keep the two guns side by side and make sure the left one is in use.
Enjoy.

Code: Select all
#pragma METAINFO("<FORTNITE - OMG-STI>", 1, 2, "")
//#include <titanone.gph>
int  prd = 20;//press then release delay
int  swd = 680;//switch weapon delay
int  Twitch = 16;//Twitch amount
bool pm;//Pump mode
bool aa;//Aim assist mode
bool tw;//Twitch mode
bool rf;//rapid fire mode
 
main {//start main
 
//Axe
if (event_active (BUTTON_14)){
combo_stop (DP);
pm = FALSE ;
ColorLED ('B');}
 
//Build
if (pm && event_active (BUTTON_15)){
combo_stop (DP);
pm = FALSE;
ColorLED ('B');}
 
//Twitch
if (event_active (BUTTON_11) && is_active (BUTTON_8)){
tw = !tw;
combo_run (Return);}
if (tw && is_active (BUTTON_8)){
combo_run (Twitching);}
 
//AimAssist
if(event_active (BUTTON_13) && is_active (BUTTON_8)){
aa = !aa;
combo_run (Return);}
if (aa && is_active (BUTTON_8)){
combo_run (AimAssist);}
 
//Fire tap
if (is_active (BUTTON_8) && is_active (BUTTON_4)){
set_val (BUTTON_4,0), set_val (BUTTON_5,0);
combo_run (Accuracy);}
 
//Rapid fire
if (event_active (BUTTON_10) && is_active (BUTTON_8)){
rf = !rf;
combo_run (Return2);}
if (rf && is_active (BUTTON_5)){
combo_run (Rapid);}
 
//Pump on
if (event_active (BUTTON_12) && is_active (BUTTON_8)){
pm = !pm;
if (pm){
ColorLED ('P');}
else {
ColorLED ('B');}}
if (pm && event_active (BUTTON_5)){
combo_run (DP);
set_val (BUTTON_5,0);}
 
}//end main
 
combo DP{
set_val(BUTTON_5,100);
wait (prd);
set_val (BUTTON_5,0);
wait (prd);
set_val (BUTTON_4,100);
wait (prd);
set_val (BUTTON_4,0);
wait (swd);//switch weapon delay(Change weapon time - Change swd at the top of the script)
set_val(BUTTON_5,100);
wait (prd);
set_val (BUTTON_5,0);
wait (prd);
set_val (BUTTON_7,100);
wait (prd);
set_val (BUTTON_7,0);
wait (swd);}//switch weapon delay(Change weapon time - Change swd at the top of the script)
 
combo Twitching{
set_val (STICK_1_Y,Twitch * -1);
wait (prd);
set_val (STICK_1_X,Twitch);
wait (prd);
set_val (STICK_1_Y,Twitch);
wait (prd);
set_val (STICK_1_X,Twitch * -1);
wait (prd);}
 
combo AimAssist{
set_val (BUTTON_8, 100.0);
wait (85);
set_val (BUTTON_8, 0.0);
wait (prd);}
 
combo Accuracy{
set_val (BUTTON_5,100.0);
wait (prd);
set_val (BUTTON_5,0.0);
wait (300);}
 
combo Rapid{
set_val(BUTTON_5,100);
wait(prd);
set_val(BUTTON_5,0);
wait(prd);}
 
combo Return{
wait (prd);
set_val (BUTTON_15,100);
wait (prd);}
 
combo Return2{
wait (60);
set_val (BUTTON_15,100);
wait (prd);}
 
void ColorLED(char Color){
    fix32 Color1, Color2, Color3, Color4;   
    if(Color == 'B') {Color1 = 100.0;}
    if(Color == 'P') {Color4 = 100.0;}
    led_set(LED_1, Color1, 0);
    led_set(LED_2, Color2, 0);
    led_set(LED_3, Color3, 0);
    led_set(LED_4, Color4, 0);   
    return;}
 
Last edited by OMG-STI on Sat Jun 23, 2018 10:24 am, edited 5 times in total.
User avatar
OMG-STI
Staff Sergeant
Staff Sergeant
 
Posts: 11
Joined: Mon Jun 18, 2018 3:26 am

Re: Fortnite Aim Assist & Double Pump (Builder pro)

Postby Jmayo890 » Mon Jun 18, 2018 4:56 pm

Thanks great idea, coded well, works perfectly no glitches. Good idea implementing double pump with aim assist!
User avatar
Jmayo890
Staff Sergeant
Staff Sergeant
 
Posts: 12
Joined: Tue Oct 17, 2017 10:55 pm

Re: Fortnite Aim Assist & Double Pump (Builder pro)

Postby tomtay79 » Mon Jun 18, 2018 7:37 pm

:smile0202: Oh so excited to try this been looking for a double pump. Thanks so much and I'll give feedback once I've tried it. :joia:

Edit:

Holly f'ing sh#t , that is mean as!!!!

I got a bit confused with the hold r1 r2 comment. This works ace , 1 touch trigger then onto next pump then 1 press again and it goes straight back. I thought you ment I would need to press r1 r2 together but that would defeat the point in having this script.

:smile0517: :smile0517: :smile0203:
User avatar
tomtay79
Sergeant Major
Sergeant Major
 
Posts: 81
Joined: Wed Oct 11, 2017 10:08 pm
Location: Glasgow

Re: Fortnite Aim Assist & Double Pump (Builder pro)

Postby OMG-STI » Tue Jun 19, 2018 1:30 am

Glad you approve. :smile0202:
I'll work with it some more but it seems to do exactly what i intended.
Maybe coloured LED's to say what mode you are in but tbh, i'm not too bothered.
I'm for sure seeing more potential findinds experimenting about with Aim assist, i'll update it if they prove to be any good.
They do have promise thats for sure.
User avatar
OMG-STI
Staff Sergeant
Staff Sergeant
 
Posts: 11
Joined: Mon Jun 18, 2018 3:26 am

Re: Fortnite Aim Assist & Double Pump (Builder pro)

Postby teckx » Tue Jun 19, 2018 2:44 am

What does twitch do ?
User avatar
teckx
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 194
Joined: Tue Mar 27, 2018 1:53 pm

Re: Fortnite Aim Assist & Double Pump (Builder pro)

Postby OMG-STI » Tue Jun 19, 2018 4:28 am

It will move the sight around in a small area of the target, kind of like how aim assist works on COD's.
I have mixed feelings if it actually helps, you decide. Let us know.
If it ain't working for you replace #include <titanone.gph> with //#include <titanone.gph> at the top of the script
User avatar
OMG-STI
Staff Sergeant
Staff Sergeant
 
Posts: 11
Joined: Mon Jun 18, 2018 3:26 am

Re: Fortnite Aim Assist & Double Pump (Builder pro)

Postby tomtay79 » Tue Jun 19, 2018 11:33 am

I have twitch on another script bonefish did it it works well but I don't use it much.

This script would be ace if you just made the double pump l2 and dpad left for on off, l2 dpad right to turn the aim abuse off/on with the titan 2 showing 0/1 for on off or lights. L2 and dpad down for your twitch and if your feeling generous a rapid fire for dpad up. Just a suggestion if your going to add more to it.
User avatar
tomtay79
Sergeant Major
Sergeant Major
 
Posts: 81
Joined: Wed Oct 11, 2017 10:08 pm
Location: Glasgow

Re: Fortnite Aim Assist & Double Pump (Builder pro)

Postby J2Kbr » Tue Jun 19, 2018 2:24 pm

thank you OMG-STI for sharing your script with us!! :)

If possible, please also publish your script on Gtuner IV (menu Tools -> Publish Wizard ...) I am positive it will be of interest for many users and there it will not be "lost" on the forums.
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 Aim Assist & Double Pump (Builder pro)

Postby OMG-STI » Tue Jun 19, 2018 3:06 pm

Thanks for the positive comments and testing. I'll definitely look in to improving it with your requests, they sound great. I'll publish it when I've worked on it a bit more for sure.
I just wanted to have a good test of it first.
User avatar
OMG-STI
Staff Sergeant
Staff Sergeant
 
Posts: 11
Joined: Mon Jun 18, 2018 3:26 am

Re: Fortnite Aim Assist & Double Pump (Builder pro)

Postby OMG-STI » Tue Jun 19, 2018 10:56 pm

tomtay79 wrote:I have twitch on another script bonefish did it it works well but I don't use it much.

This script would be ace if you just made the double pump l2 and dpad left for on off, l2 dpad right to turn the aim abuse off/on with the titan 2 showing 0/1 for on off or lights. L2 and dpad down for your twitch and if your feeling generous a rapid fire for dpad up. Just a suggestion if your going to add more to it.


I added some stuff what you requested. :smile0517:
still working with LED stuff but getting toggles and timings right took priority.
you may as well give it a shot before i mess with anything more.
Remember to use circle to exit building mode and not triangle as the toggle pump mode is bound to circle.
User avatar
OMG-STI
Staff Sergeant
Staff Sergeant
 
Posts: 11
Joined: Mon Jun 18, 2018 3:26 am

Next

Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 143 guests