Decompile mpGetPlayerRankings

This commit is contained in:
Ryan Dwyer
2022-01-10 12:18:46 +10:00
parent 5ce64627ae
commit 980a94b057
7 changed files with 191 additions and 507 deletions
+2 -2
View File
@@ -17,9 +17,9 @@ void mpSetDefaultSetup(void);
void mpSetDefaultNamesIfEmpty(void);
s32 mpCalculateTeamScoreLimit(void);
void mpApplyLimits(void);
s32 mpGetPlayerRankings(struct mpteaminfo *info);
s32 mpGetPlayerRankings(struct ranking *rankings);
s32 mpCalculateTeamScore(s32 arg0, s32 *arg1);
s32 mpGetTeamRankings(struct mpteaminfo *info);
s32 mpGetTeamRankings(struct ranking *rankings);
s32 func0f188bcc(void);
s32 mpGetNumWeaponOptions(void);
char *mpGetWeaponLabel(s32 weaponnum);
+6 -3
View File
@@ -4571,7 +4571,7 @@ struct mpchrconfig {
/*0x1a*/ u16 unk1a;
/*0x1c*/ u16 unk1c;
/*0x1e*/ s8 placement; // 0 = winner, 1 = second place etc
/*0x20*/ u32 unk20;
/*0x20*/ s32 rankablescore;
/*0x24*/ s16 killcounts[12]; // per player - each index is a chrslot
/*0x3c*/ s16 numdeaths;
/*0x3e*/ s16 numpoints;
@@ -5188,9 +5188,12 @@ struct chrbio {
u32 description;
};
struct mpteaminfo {
struct ranking {
struct mpchrconfig *mpchr;
u32 teamnum;
union {
u32 teamnum;
u32 chrnum;
};
u32 positionindex;
u8 unk0c;
s32 score;