Decompile mpconfigs segment

This commit is contained in:
Ryan Dwyer
2020-04-26 21:48:17 +10:00
parent 0ba7d1fb76
commit 15ee3c168e
18 changed files with 3635 additions and 2174 deletions
+209 -12
View File
@@ -1378,6 +1378,68 @@
#define MOVEMODE_GRAB 4
#define MOVEMODE_CUTSCENE 5
#define MPBODY_DARK_COMBAT 0x00
#define MPBODY_DARK_TRENCH 0x01
#define MPBODY_DARK_FROCK 0x02
#define MPBODY_DARK_RIPPED 0x03
#define MPBODY_DARK_AF1 0x04
#define MPBODY_DARK_LEATHER 0x05
#define MPBODY_DARK_NEGOTIATOR 0x06
#define MPBODY_DARKWET 0x07
#define MPBODY_DARKAQUALUNG 0x08
#define MPBODY_DARKSNOW 0x09
#define MPBODY_DARKLAB 0x0a
#define MPBODY_THEKING 0x0b
#define MPBODY_ELVIS1 0x0c
#define MPBODY_ELVISWAISTCOAT 0x0d
#define MPBODY_CARRINGTON 0x0e
#define MPBODY_CARREVENINGSUIT 0x0f
#define MPBODY_MRBLONDE 0x10
#define MPBODY_CASSANDRA 0x11
#define MPBODY_TRENT 0x12
#define MPBODY_JONATHAN 0x13
#define MPBODY_CILABTECH 0x14
#define MPBODY_CIFEMTECH 0x15
#define MPBODY_CISOLDIER 0x16
#define MPBODY_DDSHOCK 0x17
#define MPBODY_FEM_GUARD 0x18
#define MPBODY_DD_SECGUARD 0x19
#define MPBODY_DD_GUARD 0x1a
#define MPBODY_DD_SHOCK_INF 0x1b
#define MPBODY_SECRETARY 0x1c
#define MPBODY_OFFICEWORKER 0x1d
#define MPBODY_OFFICEWORKER2 0x1e
#define MPBODY_NEGOTIATOR 0x1f
#define MPBODY_DDSNIPER 0x20
#define MPBODY_G5_GUARD 0x21
#define MPBODY_G5_SWAT_GUARD 0x22
#define MPBODY_CIAGUY 0x23
#define MPBODY_FBIGUY 0x24
#define MPBODY_AREA51GUARD 0x25
#define MPBODY_A51TROOPER 0x26
#define MPBODY_A51AIRMAN 0x27
#define MPBODY_OVERALL 0x28
#define MPBODY_STRIPES 0x29
#define MPBODY_LABTECH 0x2a
#define MPBODY_FEMLABTECH 0x2b
#define MPBODY_DD_LABTECH 0x2c
#define MPBODY_BIOTECH 0x2d
#define MPBODY_ALASKAN_GUARD 0x2e
#define MPBODY_PILOTAF1 0x2f
#define MPBODY_STEWARD 0x30
#define MPBODY_STEWARDESS 0x31
#define MPBODY_STEWARDESS_COAT 0x32
#define MPBODY_PRESIDENT 0x33
#define MPBODY_NSA_LACKEY 0x34
#define MPBODY_PRES_SECURITY 0x35
#define MPBODY_PRESIDENT_CLONE2 0x36
#define MPBODY_PELAGIC_GUARD 0x37
#define MPBODY_MAIAN_SOLDIER 0x38
#define MPBODY_CONNERY 0x39
#define MPBODY_MOORE 0x3a
#define MPBODY_DALTON 0x3b
#define MPBODY_DJBOND 0x3c
#define MPCONFIG_TEMPLE 0x00
#define MPCONFIG_PISTOLS 0x01
#define MPCONFIG_FARSIGHT 0x02
@@ -1423,6 +1485,82 @@
#define MPCONFIG_CHALLENGE29 0x2a
#define MPCONFIG_CHALLENGE30 0x2b
#define MPHEAD_DARK_COMBAT 0x00
#define MPHEAD_DARK_FROCK 0x01
#define MPHEAD_DARKAQUA 0x02
#define MPHEAD_DARK_SNOW 0x03
#define MPHEAD_ELVIS 0x04
#define MPHEAD_ELVIS_GOGS 0x05
#define MPHEAD_CARRINGTON 0x06
#define MPHEAD_MRBLONDE 0x07
#define MPHEAD_CASSANDRA 0x08
#define MPHEAD_TRENT 0x09
#define MPHEAD_JONATHAN 0x0a
#define MPHEAD_VD 0x0b
#define MPHEAD_PRESIDENT 0x0c
#define MPHEAD_DDSHOCK 0x0d
#define MPHEAD_BIOTECH 0x0e
#define MPHEAD_DDSNIPER 0x0f
#define MPHEAD_A51FACEPLATE 0x10
#define MPHEAD_SECRETARY 0x11
#define MPHEAD_FEM_GUARD 0x12
#define MPHEAD_FEM_GUARD2 0x13
#define MPHEAD_MAIAN_S 0x14
#define MPHEAD_JON 0x15
#define MPHEAD_BEAU1 0x16
#define MPHEAD_ROSS 0x17
#define MPHEAD_MARK2 0x18
#define MPHEAD_CHRIST 0x19
#define MPHEAD_RUSS 0x1a
#define MPHEAD_DARLING 0x1b
#define MPHEAD_BRIAN 0x1c
#define MPHEAD_JAMIE 0x1d
#define MPHEAD_DUNCAN2 0x1e
#define MPHEAD_KEITH 0x1f
#define MPHEAD_STEVEM 0x20
#define MPHEAD_GRANT 0x21
#define MPHEAD_PENNY 0x22
#define MPHEAD_DAVEC 0x23
#define MPHEAD_JONES 0x24
#define MPHEAD_GRAHAM 0x25
#define MPHEAD_ROBERT 0x26
#define MPHEAD_NEIL2 0x27
#define MPHEAD_SHAUN 0x28
#define MPHEAD_ROBIN 0x29
#define MPHEAD_COOK 0x2a
#define MPHEAD_PRYCE 0x2b
#define MPHEAD_SILKE 0x2c
#define MPHEAD_SMITH 0x2d
#define MPHEAD_GARETH 0x2e
#define MPHEAD_MURCHIE 0x2f
#define MPHEAD_WONG 0x30
#define MPHEAD_CARTER 0x31
#define MPHEAD_TINTIN 0x32
#define MPHEAD_MUNTON 0x33
#define MPHEAD_STAMPER 0x34
#define MPHEAD_PHELPS 0x35
#define MPHEAD_ALEX 0x36
#define MPHEAD_JULIANNE 0x37
#define MPHEAD_LAURA 0x38
#define MPHEAD_EDMCG 0x39
#define MPHEAD_ANKA 0x3a
#define MPHEAD_LESLIE_S 0x3b
#define MPHEAD_MATT_C 0x3c
#define MPHEAD_PEER_S 0x3d
#define MPHEAD_EILEEN_T 0x3e
#define MPHEAD_ANDY_R 0x3f
#define MPHEAD_BEN_R 0x40
#define MPHEAD_STEVE_K 0x41
#define MPHEAD_SANCHEZ 0x42
#define MPHEAD_TIM 0x43
#define MPHEAD_KEN 0x44
#define MPHEAD_EILEEN_H 0x45
#define MPHEAD_SCOTT_H 0x46
#define MPHEAD_JOEL 0x47
#define MPHEAD_GRIFFEY 0x48
#define MPHEAD_MOTO 0x49
#define MPHEAD_WINNER 0x4a
#define MPLOCKTYPE_NONE 0
#define MPLOCKTYPE_LASTWINNER 1
#define MPLOCKTYPE_LASTLOSER 2
@@ -1430,6 +1568,7 @@
#define MPLOCKTYPE_PLAYER 4
#define MPLOCKTYPE_CHALLENGE 5
#define MPOPTION_ONEHITKILLS 0x00000001
#define MPOPTION_TEAMSENABLED 0x00000002
#define MPOPTION_NORADAR 0x00000004
#define MPOPTION_NOAUTOAIM 0x00000008
@@ -1437,18 +1576,19 @@
#define MPOPTION_NOPICKUPHIGHLIGHT 0x00000020
#define MPOPTION_SLOWMOTION_ON 0x00000040
#define MPOPTION_SLOWMOTION_SMART 0x00000080
#define MPOPTION_NOPICKUPHIGHLIGHT 0x00000020
#define MPOPTION_FASTMOVEMENT 0x00000100
#define MPOPTION_DISPLAYTEAM 0x00000200
#define MPOPTION_KILLSSCORE 0x00000400
#define MPOPTION_HIGHLIGHTBRIEFCASE 0x00000800
#define MPOPTION_SHOWONRADAR1 0x00001000
#define MPOPTION_SHOWONRADAR2 0x00002000
#define MPOPTION_HILLONRADAR 0x00004000
#define MPOPTION_MOBILEHILL 0x00008000
#define MPOPTION_HIGHLIGHTTERMINAL 0x00020000
#define MPOPTION_SHOWONRADAR3 0x00040000
#define MPOPTION_HIGHLIGHTTARGET 0x00080000
#define MPOPTION_SHOWONRADAR4 0x00100000
#define MPOPTION_HTB_HIGHLIGHTBRIEFCASE 0x00000800
#define MPOPTION_HTB_SHOWONRADAR 0x00001000
#define MPOPTION_CTC_SHOWONRADAR 0x00002000
#define MPOPTION_KOH_HILLONRADAR 0x00004000
#define MPOPTION_KOH_MOBILEHILL 0x00008000
#define MPOPTION_00010000 0x00010000
#define MPOPTION_HTM_HIGHLIGHTTERMINAL 0x00020000
#define MPOPTION_HTM_SHOWONRADAR 0x00040000
#define MPOPTION_PAC_HIGHLIGHTTARGET 0x00080000
#define MPOPTION_PAC_SHOWONRADAR 0x00100000
#define MPPLAYERTITLE_BEGINNER 0
#define MPPLAYERTITLE_TRAINEE 1
@@ -1486,6 +1626,63 @@
#define MPSCENARIO_KINGOFTHEHILL 4
#define MPSCENARIO_CAPTURETHECASE 5
#define MPSIMDIFF_MEAT 0
#define MPSIMDIFF_EASY 1
#define MPSIMDIFF_NORMAL 2
#define MPSIMDIFF_HARD 3
#define MPSIMDIFF_PERFECT 4
#define MPSIMDIFF_DARK 5
#define MPSIMDIFF_OFF 6
#define MPTEAM_0 0
#define MPTEAM_1 1
#define MPTEAM_2 2
#define MPTEAM_3 3
#define MPTEAM_4 4
#define MPTEAM_5 5
#define MPTEAM_6 6
#define MPTEAM_7 7
#define MPWEAPON_NONE 0x00
#define MPWEAPON_FALCON2 0x01
#define MPWEAPON_FALCON2_SILENCER 0x02
#define MPWEAPON_FALCON2_SCOPE 0x03
#define MPWEAPON_MAGSEC4 0x04
#define MPWEAPON_MAULER 0x05
#define MPWEAPON_PHOENIX 0x06
#define MPWEAPON_DY357MAGNUM 0x07
#define MPWEAPON_DY357LX 0x08
#define MPWEAPON_CMP150 0x09
#define MPWEAPON_CYCLONE 0x0a
#define MPWEAPON_CALLISTONTG 0x0b
#define MPWEAPON_RCP120 0x0c
#define MPWEAPON_LAPTOPGUN 0x0d
#define MPWEAPON_DRAGON 0x0e
#define MPWEAPON_K7AVENGER 0x0f
#define MPWEAPON_AR34 0x10
#define MPWEAPON_SUPERDRAGON 0x11
#define MPWEAPON_SHOTGUN 0x12
#define MPWEAPON_REAPER 0x13
#define MPWEAPON_SNIPERRIFLE 0x14
#define MPWEAPON_FARSIGHTXR20 0x15
#define MPWEAPON_DEVASTATOR 0x16
#define MPWEAPON_ROCKETLAUNCHER 0x17
#define MPWEAPON_SLAYER 0x18
#define MPWEAPON_COMBATKNIFE 0x19
#define MPWEAPON_CROSSBOW 0x1a
#define MPWEAPON_TRANQUILIZER 0x1b
#define MPWEAPON_GRENADE 0x1c
#define MPWEAPON_NBOMB 0x1d
#define MPWEAPON_TIMEDMINE 0x1e
#define MPWEAPON_PROXIMITYMINE 0x1f
#define MPWEAPON_REMOTEMINE 0x20
#define MPWEAPON_LASER 0x21
#define MPWEAPON_XRAYSCANNER 0x22
#define MPWEAPON_CLOAKINGDEVICE 0x23
#define MPWEAPON_COMBATBOOST 0x24
#define MPWEAPON_SHIELD 0x25
#define MPWEAPON_DISABLED 0x26
#define MUSIC_NONE 0x00
#define MUSIC_TITLE2 0x01
#define MUSIC_EXTRACTION 0x02
@@ -2407,8 +2604,8 @@
#define WEAPON_ROCKET2 0x58
#define WEAPON_59 0x59
#define WEAPON_5A 0x5a
#define WEAPON_5B 0x5b
#define WEAPON_5C 0x5c
#define WEAPON_MPSHIELD 0x5b
#define WEAPON_DISABLED 0x5c
#define WEAPON_SUICIDEPILL 0x5d
#define WEAPONFLAG_00000010 0x00000010
+1 -1
View File
@@ -360,7 +360,7 @@ extern struct mpscenariooverview g_MpScenarioOverviews[];
extern u32 var8008716c;
extern u32 var800871fc;
extern u32 var80087264;
extern u16 mpweaponstable[];
extern struct mpweapon mpweaponstable[];
extern struct mpweaponset g_MpWeaponSets[12];
extern u32 var800874c8;
extern u32 var800874cc;
+31
View File
@@ -5611,4 +5611,35 @@ struct menuthing {
s8 unk0a;
};
struct mpconfigsim {
u16 mphead;
u8 mpbody;
u8 team;
u8 difficulties[4]; // per player count
};
struct mpconfig {
/*0x00*/ char name[12];
/*0x0c*/ u32 options;
/*0x10*/ u8 scenario;
/*0x11*/ u8 stage;
/*0x12*/ u8 timelimit; // minus 1, 60 = no limit
/*0x13*/ u8 scorelimit; // minus 1, 100 = no limit
/*0x14*/ u16 teamscorelimit; // minus 1, 400 = no limit
/*0x16*/ u16 unk16;
/*0x18*/ u8 weapons[16];
struct mpconfigsim simulants[8];
};
struct mpweapon {
u8 weaponnum;
u8 unk01;
u8 unk02;
u8 unk03;
u16 unk04;
u16 model;
u8 unk08;
u8 unk09;
};
#endif