RDR 2

GPC1 script programming for Titan One. Code examples, questions, requests.

RDR 2

Postby UFO » Sat Dec 01, 2018 3:48 am

Any plans to make a gamepack for online

rapid fire
aimassists

;)
User avatar
UFO
Master Sergeant
Master Sergeant
 
Posts: 28
Joined: Fri Mar 09, 2018 4:59 am

Re: RDR 2

Postby J2Kbr » Sun Dec 02, 2018 9:09 am

The Red Dead Redemption 2 Gamepack is on the plans. ;)
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: RDR 2

Postby Dimakra666 » Thu Dec 13, 2018 7:08 pm

UFO wrote:Any plans to make a gamepack for online

rapid fire
aimassists

;)
here is a script to get u started
Code: Select all
#pragma METAINFO("rdr2script", 1, 00, "author name")
#include <titanone.gph>               
/*                                                               *****************************
*v1.1.2                                                           * ____     _____    __   __ *
*Red Dead Redemption 2                                           *|  _  \  |  _  \  |  | |  |*
* GPC SCRIPT                                                   *| |_| /     | | |  ) |  | |  |*
/////////////////////////////////////////////////////////////  *| |\ \   | |_|  ) |  | |  |*
* SCRIPT FEATURES                                               *|_| \_|  |_____/  |__| |__|*
* =Aim Abuse    (L2/LT+DPAD UP)                                   *****************************
* =Aim Assist
* =AutoRun (Hold A/CROSS)
* =RP (Hold RT/R2 til weapon needs reloading)
/////////////////////////////////////////////////////////////
*  Red Dead Redemption 2 Gpc Script/aimabuse/aimassist/est
* Script by Xbl Jedi
/////////////////////////////////////////////////////////////
 Whats new?
* Now you can turn aim assist and abuse off/On (L2/LT+DPAD UP)
* Offical release til game has update.
* Special thanks for community and everyone who helped with testing!
                        /NOTE/
Must set ingame sensitivity as in game sens for best results.
*/
////////////////////////////////////////////////////////////
int In_Game_Sens = 7;
int AimAbuse = TRUE;
int AimAssist = FALSE;
int RumbleNotify = TRUE;
int AutoAim = TRUE;
int AutoRun = TRUE;
int Rumble_Type = RUMBLE_A;
int B1;
int Block;
int B2;
//////////////////////////////////////////////////////////////
int AimSpeed = 160;                                                                                                           
int delay = 10;
int valueX = 18;                                                                             
int delayA = 6;
/////////////////////////////////////////////////////////////
int a;int b;
 
   define FIRE_BTN   = XB1_RT; //PS4_R2       //XB1_RT
   define ADS_BTN    = XB1_LT; //PS4_L2       //XB1_LT
   define MELEE_BTN = XB1_RS; //PS4_R3        //XB1_RS
   define SPRINT_BTN = XB1_LS; //PS4_L3       //XB1_LS
   define EXCEPT_BTN   = XB1_A; //PS4_CROSS     //XB1_A
   define RIGHT_BUMP = XB1_RB; //PS4_R1       //XB1_RB
   define LEFT_BUMP  = XB1_LB; //PS4_L1       //XB1_LB
   define SWAP_BTN   = XB1_Y; //PS4_TRIANGLE  //XB1_Y
   define JIBBER_BTN  = XB1_B; //PS4_CIRCLE   //XB1_B
   define JUMP_BTN = XB1_X; //PS4_SQUARE    //XB1_X
   define LX         = XB1_LX; //PS4_LX       //XB1_LX
   define RX         = XB1_RX; //PS4_RX       //XB1_RX
   define RY         = XB1_RY; //PS4_RY       //XB1_RY
   define LY         = XB1_LY; //PS4_LY       //XB1_LY
   define UP         = XB1_UP; //PS4_UP       //XB1_UP
   define DOWN       = XB1_DOWN; //PS4_DOWN   //XB1_DOWN
   define LEFT       = XB1_LEFT; //PS4_LEFT   //XB1_LEFT
   define RIGHT      = XB1_RIGHT; //PS4_RIGHT //XB1_RIGHT
   define HOME       = XB1_XBOX; //PS4_PS     //XB1_XBOX
   define VIEW       = XB1_VIEW; //PS4_SHARE  //XB1_VIEW
 
///////////////////////////////////////////////////////////////
main {
if(AimAssist){
if(get_val(ADS_BTN)){
combo_run(Aim_Assist);
}
if((get_val(RX)) > valueX || (get_val(RX)) < valueX*(-1)){
combo_stop(Aim_Assist);
}
}
if (Aim_Abuse){
if(get_val(ADS_BTN) && event_press(UP)){
B1 = UP;
B2 = ADS_BTN;
combo_run(BLOCK);
Aim_Abuse =!Aim_Abuse;   
if(Aim_Abuse == TRUE){combo_run(Notify);a=0;b=2;}
if(Aim_Abuse == FALSE){combo_run(Notify);a=2;b=0;}
if(Aim_Abuse){
if(get_val(ADS_BTN)&&get_ptime(ADS_BTN)>= 240){
combo_run(Aim_Abuse);}
if(event_release(ADS_BTN)){ combo_stop(Aim_Abuse);}
}
}
if (event_press(FIRE_BTN))  {                
    AutoAim =! AutoAim;}
if(AutoRun){
if(get_val(EXCEPT_BTN)){
combo_run(Auto_Run);
}
}   
if (get_val(FIRE_BTN))  {
combo_run(R_P);
}
}
}
combo Notify {
if(RumbleNotify){set_rumble(RUMBLE_B,65);}
set_led(LED_1,0);
set_led(LED_2,a);
set_led(LED_3,b);
set_led(LED_4,0);
wait(250);
set_led(LED_1,0);
set_led(LED_2,0);
set_led(LED_3,0);
set_led(LED_4,0);
wait(250);
reset_leds();
}
combo BLOCK{
set_val(B1,0);
set_val(B2,0);
wait(650);
}
combo Auto_Run{
set_val(EXCEPT_BTN,100);
wait(10);
set_val(EXCEPT_BTN,100);
wait(10);
set_val(EXCEPT_BTN,100);
wait(10);
}
combo R_P{
set_val(FIRE_BTN,100);
set_val(FIRE_BTN,0);
set_val(FIRE_BTN,100);
set_val(FIRE_BTN,0);
set_val(FIRE_BTN,100);
set_val(FIRE_BTN,0);
set_val(FIRE_BTN,100);
set_val(FIRE_BTN,0);
set_val(FIRE_BTN,100);
set_val(FIRE_BTN,0);
set_val(FIRE_BTN,100);
set_val(FIRE_BTN,0);
wait (10);
}
combo Aim_Assist {
set_val(RX, valueX);
wait(delayA);
wait(4);
set_val(RX, valueX*(-1));
wait(delayA);
}
combo Aim_Abuse{
set_val(ADS_BTN,100);
wait(AimSpeed);
set_val(ADS_BTN,0);
wait(delay);   
}
Attachments
RdR2 1.1.2 for gtunerIV.gpc
(4.41 KiB) Downloaded 338 times
Last edited by Dimakra666 on Thu Dec 13, 2018 7:12 pm, edited 1 time in total.
User avatar
Dimakra666
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 231
Joined: Fri Feb 17, 2017 3:34 am

Re: RDR 2

Postby Dimakra666 » Thu Dec 13, 2018 7:10 pm

UFO wrote:Any plans to make a gamepack for online

rapid fire
aimassists

;)
Attachments
RdR2 1.1.2 for gtunerIV.gpc
(4.41 KiB) Downloaded 302 times
User avatar
Dimakra666
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 231
Joined: Fri Feb 17, 2017 3:34 am

Re: RDR 2

Postby Emit » Mon Dec 24, 2018 2:45 pm

Hey
I am trying to get it to work on my T2 but with no luck..
When i Compile i get GPC Build succeeded with 0 warnings, however in Second-pass i got GPC: Unreferenced: dbyte, dchar and a bunch of other things like Rumble_Type etc.
When i L2+DPAD UP i does nothing no Rumble or so on..
Do i have to do something else? what i am missing..
thx in advance
User avatar
Emit
Private
Private
 
Posts: 1
Joined: Sun Dec 11, 2016 10:03 pm

Re: RDR 2

Postby Dimakra666 » Mon Dec 24, 2018 2:55 pm

Try this version, haven't tested yet, it may work :joia:
Attachments
rdr2_v2.0.0.gpc
(4.42 KiB) Downloaded 403 times
User avatar
Dimakra666
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 231
Joined: Fri Feb 17, 2017 3:34 am

Re: RDR 2

Postby alanmcgregor » Mon Dec 24, 2018 3:44 pm

The first script looks like junk, I mean makes no sense the need of Aim Assist or Auto Aim, when in-game we have a legit aimbot, lock-on on WIDE setting.

Now the Auto Aim is a L2 spam, and in this game you don't want that because the gun mechanics uses this button to pull the hammer or clear the chamber for the next bullet on rifles adding a delay.

Rapid-fire is also point less, this game has a strong bloom implemented, you can see it when using the Simple crosshair, a circle is shrinking into the target, when is closed is guarantee laser hit; what is not even if you aim at point blank, red dot showing, you will either fail the shoot or make less damage.

Sorry no meant to be harsh, but it looks like someone just trying to apply mods that works for other games but not RD2D or never really play the game.

The second script makes mores sense, that one looks like was wrote for someone who really put hours in the game and came up with some QoL solutions.
User avatar
alanmcgregor
Major
Major
 
Posts: 981
Joined: Tue Mar 27, 2018 8:38 am

Re: RDR 2

Postby Dimakra666 » Mon Dec 24, 2018 5:01 pm

I got the script from someone else and haven't tried them, i dont realy use any mods for online, olmost everytjing is pointless eccept quick swap weapon and tonics, auto run, dead eye on ads.
User avatar
Dimakra666
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 231
Joined: Fri Feb 17, 2017 3:34 am

Re: RDR 2

Postby nightfox_exe » Tue Feb 26, 2019 5:10 am

Any working gamepack for online, I see many people hitting in one shot already ?
User avatar
nightfox_exe
Private First Class
Private First Class
 
Posts: 3
Joined: Mon Dec 31, 2018 1:16 pm

Re: RDR 2

Postby lordzombies » Thu Jan 02, 2020 12:25 pm

Im getting "there's an error in the script" for both of these scripts. using a titan one.
RDR2 1.1.2
WARNING line 144: value '4' is out of range [10 ~ 4000]

RDR V2.0.0
ERROR line 52: syntax error near unexpected token 'data'
User avatar
lordzombies
Sergeant
Sergeant
 
Posts: 7
Joined: Tue Mar 12, 2019 5:26 pm

Next

Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 69 guests