I could REALLY use some 2K help

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

I could REALLY use some 2K help

Postby slapahoedoe » Fri Nov 22, 2019 3:43 pm

I've come by several posts about 2K green lights, VC shooting farms, and other odds and ins..
I personally play 2K20 on Xbox One and am seeking out a green light script, I am aware theirs different timings for different attributes/badges etc.

How can I go about getting the timing for my 3 shot in MyCareer and create a script telling my "x" button to hold for "...ms" then release? Any help is much appreciated, also semi-new to the forums and this is my first post so.. WHADDUP EVRYBODY! :smile0202:
User avatar
slapahoedoe
Private First Class
Private First Class
 
Posts: 2
Joined: Fri Nov 22, 2019 3:34 pm

Re: I could REALLY use some 2K help

Postby Mad » Fri Nov 22, 2019 8:54 pm

You can use this script to get the hold time to print out in Gtuner. Connect prog to PC:
Code: Select all
main {
  if(event_release(BUTTON_17)) {
    printf("Held for %ims",time_active(BUTTON_17));
  }
}


So play as normal, once you get the shot correct use the time printed out in the script below.

If you cant connect to a PC while playing, you'll have to adjust the hold_time value with some trial and error.

I figured you'd need the X button so i attached the combo to dpad down.

Example;
Code: Select all
#define hold_time 100 // button hold time
 
#define hold_btn BUTTON_17
 
main {
  if(event_active(BUTTON_11)) combo_run(Hold_X);
}
 
combo Hold_X {
  set_val(hold_btn, 100);
  wait(hold_time);
  set_val(hold_btn, 0);
  wait(60);
}


Also here is a VC farming script: viewtopic.php?f=26&t=13931
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am

Re: I could REALLY use some 2K help

Postby slapahoedoe » Wed Nov 27, 2019 5:33 pm

Hey thanks for the help man! I really appreciate it, upon further trial and error I've come to realize that the 2K 'greenlight' system puts a lot more variables into play other than just a simple button timing release lmao. I should've been smarter than that xD
User avatar
slapahoedoe
Private First Class
Private First Class
 
Posts: 2
Joined: Fri Nov 22, 2019 3:34 pm


Return to GPC2 Script Programming

Who is online

Users browsing this forum: midg3t2 and 212 guests