NBA 2K20 Shot Scripts Help (New)
16 posts
• Page 2 of 2 • 1, 2
Re: NBA 2K20 Shot Scripts Help (New)
Thanks
Seeing Eye to Eye turned into an Eye for an Eye
Now everyones blind!
-
usuallyunusual - Sergeant Major of the Army
- Posts: 196
- Joined: Sat Sep 06, 2014 6:37 pm
Re: NBA 2K20 Shot Scripts Help (New)
Is there a more consistent one for more greens for open shots or more that go in for online. And is there a peekaboo script for Xbox one, Titan one..
-
LightWorkEZ - Staff Sergeant
- Posts: 12
- Joined: Tue Jul 21, 2020 8:43 am
syntax error pls help im new
- Code: Select all
/*Version 1.0
Shoot a jumpshot and immeddiately record the release by holding
(PS4)L2+R2/(XBX)LT+RT and pressing one of the D-Pad buttons to
save it to. You can use D-Pad Up/Left/Down.
To shoot your recorded shots hold the D-Pad button you saved it
to and press Square.
To adjust your recorded shot hold the D-Pad button you saved it
to and Tap (L2/LT) to subtract 1ms or tap (R2/RT) to add 5ms.
To save the recorded shots HOLD (PS4)L2+R2/(XBX)LT+RT and press
(PS4)Share/(XBX)Map
*/
define SHOT_BUTTON = PS4_SQUARE;
define HoldTime = 150;
int SHOT;
int RECORDED;
int Edit_On;
init
{
SHOT = get_pvar(SPVAR_1, 0,4000,0);
}
main {
set_val(TRACE_1,SHOT/10);
set_val(TRACE_3,RECORDED/10);
set_val(TRACE_4,Edit_On);
if((get_val(PS4_SQUARE)) && get_ptime(PS4_SQUARE) > HoldTime) RECORDED=get_ptime(20);
if(get_val(PS4_L2) && get_val(PS4_R2))
{
if(event_press(PS4_LEFT))
{
SHOT = RECORDED;
}
if( event_press(PS4_SHARE))
{
combo_run(Save_Timing);
}
set_val(PS4_LEFT,0);
set_val(PS4_SHARE,0);
set_val(SHOT_BUTTON,0);
}
if(get_val(PS4_LEFT))
{
combo_run (SAVEDRELEASE);
}
if(get_val(PS4_LEFT))
{
if(event_press(PS4_R2))
{
SHOT = SHOT + 5;
Edit_On =TRUE;
}
if(event_press(PS4_L2))
{
SHOT = SHOT - 1;
Edit_On =TRUE;
}
set_val(PS4_LEFT,0);
set_val(PS4_L2,0);
set_val(PS4_R2,0);
}
else if(Edit_On)
{
combo_run(Save_Timing);
}
}
combo SAVEDRELEASE
{
set_val(PS4_SQUARE,100);
wait(SHOT);
set_val(PS4_SQUARE,0);
wait(100);
}
combo Save_Timing
{
if(SHOT> HoldTime) set_pvar(SPVAR_1, SHOT);
Edit_On = FALSE;
}
-
Tj cxpalot - Corporal
- Posts: 4
- Joined: Sat Aug 15, 2020 9:13 pm
Re: NBA 2K20 Shot Scripts Help (New)
Thank you Tj cxpalot for sharing this script with us.
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: syntax error pls help im new
Is this script for Titan One?
Anyway to convert for Titan Two? Thanks!
Ah figured it out....
Anyway to convert for Titan Two? Thanks!
Ah figured it out....
Tj cxpalot wrote:
- Code: Select all
/*Version 1.0
Shoot a jumpshot and immeddiately record the release by holding
(PS4)L2+R2/(XBX)LT+RT and pressing one of the D-Pad buttons to
save it to. You can use D-Pad Up/Left/Down.
To shoot your recorded shots hold the D-Pad button you saved it
to and press Square.
To adjust your recorded shot hold the D-Pad button you saved it
to and Tap (L2/LT) to subtract 1ms or tap (R2/RT) to add 5ms.
To save the recorded shots HOLD (PS4)L2+R2/(XBX)LT+RT and press
(PS4)Share/(XBX)Map
*/
define SHOT_BUTTON = PS4_SQUARE;
define HoldTime = 150;
int SHOT;
int RECORDED;
int Edit_On;
init
{
SHOT = get_pvar(SPVAR_1, 0,4000,0);
}
main {
set_val(TRACE_1,SHOT/10);
set_val(TRACE_3,RECORDED/10);
set_val(TRACE_4,Edit_On);
if((get_val(PS4_SQUARE)) && get_ptime(PS4_SQUARE) > HoldTime) RECORDED=get_ptime(20);
if(get_val(PS4_L2) && get_val(PS4_R2))
{
if(event_press(PS4_LEFT))
{
SHOT = RECORDED;
}
if( event_press(PS4_SHARE))
{
combo_run(Save_Timing);
}
set_val(PS4_LEFT,0);
set_val(PS4_SHARE,0);
set_val(SHOT_BUTTON,0);
}
if(get_val(PS4_LEFT))
{
combo_run (SAVEDRELEASE);
}
if(get_val(PS4_LEFT))
{
if(event_press(PS4_R2))
{
SHOT = SHOT + 5;
Edit_On =TRUE;
}
if(event_press(PS4_L2))
{
SHOT = SHOT - 1;
Edit_On =TRUE;
}
set_val(PS4_LEFT,0);
set_val(PS4_L2,0);
set_val(PS4_R2,0);
}
else if(Edit_On)
{
combo_run(Save_Timing);
}
}
combo SAVEDRELEASE
{
set_val(PS4_SQUARE,100);
wait(SHOT);
set_val(PS4_SQUARE,0);
wait(100);
}
combo Save_Timing
{
if(SHOT> HoldTime) set_pvar(SPVAR_1, SHOT);
Edit_On = FALSE;
}
-
inc0S - Private First Class
- Posts: 2
- Joined: Tue Jul 14, 2020 6:46 pm
16 posts
• Page 2 of 2 • 1, 2
Return to GPC1 Script Programming
Who is online
Users browsing this forum: No registered users and 90 guests