NBA 2K Script Conversion
2 posts
• Page 1 of 1
NBA 2K Script Conversion
Hi All! Looking to see if i can get help with a NBA 2K Script made for Zen converted to T2? Hopefully it's just a couple of tweaks. Thanks!
- Code: Select all
int Release = 660; // Place Value Here!
int Holdtime;
init {
Release = get_pvar(SPVAR_1, Release , 4000, Release);
}
main
{
set_val(TRACE_1,Release);
// If XB1_LB is been pressed ...
if(get_val(XB1_LB)) {
combo_run(Shot); // ... then: run XB1_LB combo routine.
}
if(event_press(XB1_LEFT)) {
Release = Release - 1
combo_run(Saver);
combo_run(Noti);
}
if(event_press(XB1_RIGHT)) {
Release = Release + 1
combo_run(Saver);
combo_run(Noti);
}
if(event_press(XB1_UP)) {
Release = Release + 5
combo_run(Saver);
combo_run(Noti);
}
if(event_press(XB1_DOWN)) {
Release = Release - 5
combo_run(Saver);
combo_run(Noti);
} if(get_val(XB1_LB)) {
if(event_press(XB1_UP)) {
Release = 599; // Replace Value Here
combo_run(Noti);
}
}
}
//
// A combo routine has a name and must be defined after the main routine.
// Below an example showing how to simulate a button press action
// The wait() statement is only allowed directly into a combo routine block.
// For example, you can not use the command wait into the main block.
//
combo Shot {
set_val(XB1_X, 100);
wait(Release);
set_val(XB1_X, 0);
wait(450);
}
combo Noti{
set_rumble(RUMBLE_A,100)
wait(100);
set_rumble(RUMBLE_B,50)
reset_rumble();
}
combo Saver {
if(Release > Holdtime)set_pvar(SPVAR_1,Release);
}
function center_x(f_chars, f_font) {
return (OLED_WIDTH / 2) - ((f_chars * f_font) / 2);
}
define FONT_LENGTH = 2; //Creator.
define SMALL_FONT = 0;
define MEDIUM_FONT = 1;
define FONT_WIDTH = 0;
define FONT_HEIGHT = 1;
const string LINE1 = " NBA 2K24";
const string LINE2 = "OnTheFly";
const string LINE3 = "NoFaxee & JEFE ";
init {
cls_oled(0);
printf(center_x(sizeof(LINE1) - 1, OLED_FONT_MEDIUM_WIDTH), 5, OLED_FONT_MEDIUM, OLED_WHITE, LINE1[0]);
printf(center_x(sizeof(LINE2) - 1, OLED_FONT_MEDIUM_WIDTH), 25, OLED_FONT_MEDIUM, OLED_WHITE, LINE2[0]);
printf(center_x(sizeof(LINE3) - 1, OLED_FONT_SMALL_WIDTH), 45, OLED_FONT_SMALL, OLED_WHITE, LINE3[0]);
}
˙ªà±Ü∞àΩçŒˇ…˛Œ˛∫
-
vBlasts - First Sergeant
- Posts: 64
- Joined: Mon Mar 21, 2016 2:05 am
Re: NBA 2K Script Conversion
did you ever find a script for it?
-
HoodieSwish- - Private
- Posts: 1
- Joined: Sat Feb 03, 2024 7:24 pm
2 posts
• Page 1 of 1
Return to GPC2 Script Programming
Who is online
Users browsing this forum: No registered users and 94 guests