Discover gbpak and rumble functions

This commit is contained in:
Ryan Dwyer committed 2021-09-23 18:36:28 +10:00
1 parent 6e216d3f09
commit d1a5f42edd
31 files changed
+581 -574

No files matched your search

+4 -4
View File
@@ -4502,19 +4502,19 @@ void chrDamage(struct chrdata *chr, f32 damage, struct coord *vector, struct gse
joyGetContpadNumsForPlayer(g_Vars.currentplayernum, &contpad1, &contpad2);
if (contpad1 >= 0) {
pak0f11dc04(contpad1, 0.25f, -1, -1);
pakRumble(contpad1, 0.25f, -1, -1);
}
if (contpad2 >= 0) {
pak0f11dc04(contpad2, 0.25f, -1, -1);
pakRumble(contpad2, 0.25f, -1, -1);
}
#else
setCurrentPlayerNum(propGetPlayerNum(vprop));
pak0f11dc04((s8)g_Vars.currentplayernum, 0.25f, -1, -1);
pakRumble((s8)g_Vars.currentplayernum, 0.25f, -1, -1);
if (optionsGetControlMode(g_Vars.currentplayerstats->mpindex) >= CONTROLMODE_21) {
pak0f11dc04((s8)(PLAYERCOUNT() + g_Vars.currentplayernum), 0.25f, -1, -1);
pakRumble((s8)(PLAYERCOUNT() + g_Vars.currentplayernum), 0.25f, -1, -1);
}
#endif