Apex Legends Gamepack
34 posts
• Page 3 of 4 • 1, 2, 3, 4
Re: Apex Legends Gamepack
Hi J2Kbr, I am sorry to be annoying, but any luck finding the time to configure the new game-pack update with DontAtMe's script?
Apologies again for being persistent, just looking forward to it
Apologies again for being persistent, just looking forward to it
-
Mochi - Sergeant First Class
- Posts: 24
- Joined: Wed Mar 20, 2019 8:02 am
Re: Apex Legends Gamepack
Mochi wrote:Hi J2Kbr, I am sorry to be annoying, but any luck finding the time to configure the new game-pack update with DontAtMe's script?
Apologies again for being persistent, just looking forward to it
Me too, i keep refreshing these pages several times a day to see if either the finished script (using DontAtMe's xbox values) or gamepack has been uploaded.
Really looking forward to it
-
anderson78 - Corporal
- Posts: 5
- Joined: Sat Apr 13, 2019 11:49 pm
Re: Apex Legends Gamepack
Mochi wrote:Hi J2Kbr, I am sorry to be annoying, but any luck finding the time to configure the new game-pack update with DontAtMe's script?
Apologies again for being persistent, just looking forward to it
-
Mochi - Sergeant First Class
- Posts: 24
- Joined: Wed Mar 20, 2019 8:02 am
Re: Apex Legends Gamepack
Sorry guy, since May 5th I am far from the office (planned trip to USA). Will be back by the end of next week.
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: Apex Legends Gamepack
J2Kbr wrote:Sorry guy, since May 5th I am far from the office (planned trip to USA). Will be back by the end of next week.
Thank you and looking forward
-
Mochi - Sergeant First Class
- Posts: 24
- Joined: Wed Mar 20, 2019 8:02 am
Re: Apex Legends Gamepack
Here is a cleaned up version of my script.
I removed the bullet tracking feature, from this script, because it was only half implemented, and made the code harder to understand.
This script is able to detect all six weapon groups, for Xbox One Only.
Feel free to use this as reference for when you are updating the game pack.
- Code: Select all
uint8 group_detected;
main {
if (is_active(BUTTON_5))
group_detected = ffb_detect(ffb_get_actual(FFB_3, NULL));
else {
if (group_detected) {
if (check_release(BUTTON_5, 250) || event_active(BUTTON_14))
group_detected = NULL;
}
}
}
uint8 ffb_detect(fix32 val) {
static fix32 v;
static uint8 current_group;
static uint8 old_group;
if (!group_detected) {
v = (val * 255f / 100f) * 10f;
current_group = detect_group(v);
if (current_group && current_group != old_group) {
int8 * print_group[] = {
0,
"<h1>Group 1</h1><h3> ALTERNATOR, PROWLER, R-99",
"<h1>Group 2</h1><h3> DEVOTION, FLATLINE, HAVOC, HEMLOCK, R-301, SPITFIRE",
"<h1>Group 3</h1><h3> PP2020, RE-45",
"<h1>Group 4</h1><h3> EVA-B AUTO, PACEKEEPER",
"<h1>Group 5</h1><h3> MOZAMBIQUE, WINGMAN",
"<h1>Group 6</h1><h3> G7-SCOUTE, KRABER, LONGBOW, TRIPPLE TAKE"
};
printf(print_group[current_group]);
old_group = current_group;
}
}
return current_group;
}
uint8 detect_group(fix32 v) {
if (v > 80f) return 5;
else if (v > 65f) return 4;
else if (v > 55f && ffb_get_actual(FFB_1, NULL) > 39f) return 6;
else if (v > 55f) return 3;
else if (v > 35f) return 2;
else if (v > 25f) return 1;
return 0;
}
I removed the bullet tracking feature, from this script, because it was only half implemented, and made the code harder to understand.
This script is able to detect all six weapon groups, for Xbox One Only.
Feel free to use this as reference for when you are updating the game pack.
-
DontAtMe - Captain
- Posts: 502
- Joined: Tue Oct 02, 2018 4:49 am
Re: Apex Legends Gamepack
J2Kbr wrote:Sorry guy, since May 5th I am far from the office (planned trip to USA). Will be back by the end of next week.
I been trying to get the script working on the PS4 for the weapon group. But the detection is in fact flipped between the xbox and ps4. Any update on when you be adding SL-AR to the Apex Gamepack? Thanks.
-
TrayDay - First Sergeant
- Posts: 60
- Joined: Wed Nov 02, 2016 11:12 pm
Re: Apex Legends Gamepack
I come back to this thread every few days... but don't think he has the time to update it
-
Mochi - Sergeant First Class
- Posts: 24
- Joined: Wed Mar 20, 2019 8:02 am
Re: Apex Legends Gamepack
Sorry to bother J2Kbr, but if you don't plan to update the gamepack as you are understandably busy; would it be alright to share the code that you created for the PS4 that identifies the 6 weapon groups? That would lessen the irritability that I keep bumping this thread :D
-
Mochi - Sergeant First Class
- Posts: 24
- Joined: Wed Mar 20, 2019 8:02 am
Re: Apex Legends Gamepack
DontAtMe wrote:Here is a cleaned up version of my script.
- Code: Select all
uint8 group_detected;
main {
if (is_active(BUTTON_5))
group_detected = ffb_detect(ffb_get_actual(FFB_3, NULL));
else {
if (group_detected) {
if (check_release(BUTTON_5, 250) || event_active(BUTTON_14))
group_detected = NULL;
}
}
}
uint8 ffb_detect(fix32 val) {
static fix32 v;
static uint8 current_group;
static uint8 old_group;
if (!group_detected) {
v = (val * 255f / 100f) * 10f;
current_group = detect_group(v);
if (current_group && current_group != old_group) {
int8 * print_group[] = {
0,
"<h1>Group 1</h1><h3> ALTERNATOR, PROWLER, R-99",
"<h1>Group 2</h1><h3> DEVOTION, FLATLINE, HAVOC, HEMLOCK, R-301, SPITFIRE",
"<h1>Group 3</h1><h3> PP2020, RE-45",
"<h1>Group 4</h1><h3> EVA-B AUTO, PACEKEEPER",
"<h1>Group 5</h1><h3> MOZAMBIQUE, WINGMAN",
"<h1>Group 6</h1><h3> G7-SCOUTE, KRABER, LONGBOW, TRIPPLE TAKE"
};
printf(print_group[current_group]);
old_group = current_group;
}
}
return current_group;
}
uint8 detect_group(fix32 v) {
if (v > 80f) return 5;
else if (v > 65f) return 4;
else if (v > 55f && ffb_get_actual(FFB_1, NULL) > 39f) return 6;
else if (v > 55f) return 3;
else if (v > 35f) return 2;
else if (v > 25f) return 1;
return 0;
}
I removed the bullet tracking feature, from this script, because it was only half implemented, and made the code harder to understand.
This script is able to detect all six weapon groups, for Xbox One Only.
Feel free to use this as reference for when you are updating the game pack.
So if I add this to the current Apex Legends Game Pack it will allow the recoil to adjust based off of the group type? I've been very happy with the other features of the game pack and the auto-fire, but I haven't found a good anti-recoil.
-
n3rdwith - Corporal
- Posts: 4
- Joined: Fri Jun 07, 2019 4:39 pm
34 posts
• Page 3 of 4 • 1, 2, 3, 4
Who is online
Users browsing this forum: No registered users and 151 guests