mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-26 04:12:34 +01:00
Merge branch 'master' into develop-SoapyMan
This commit is contained in:
commit
3041acd2db
@ -35,13 +35,13 @@
|
||||
|
||||
#define MAX_CONTROLLERS 2
|
||||
|
||||
struct PADRAW
|
||||
typedef struct PADRAW
|
||||
{
|
||||
unsigned char status; // size=0, offset=0
|
||||
unsigned char id; // size=0, offset=1
|
||||
unsigned char buttons[2]; // size=2, offset=2
|
||||
unsigned char analog[4]; // size=4, offset=4
|
||||
};
|
||||
} *LPPADRAW;
|
||||
|
||||
extern void PadInitDirect(unsigned char* pad1, unsigned char* pad2);
|
||||
extern void PadInitMtap(unsigned char* unk00, unsigned char* unk01);
|
||||
|
@ -40,7 +40,7 @@ void StoreGameFlags(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ TannerCanEnterCar(struct _CAR_DATA *cp /*$a0*/, int distToCarSq /*$a1*/)
|
||||
// int /*$ra*/ TannerCanEnterCar(CAR_DATA *cp /*$a0*/, int distToCarSq /*$a1*/)
|
||||
// line 297, offset 0x0001bbe8
|
||||
/* begin block 1 */
|
||||
// Start line: 298
|
||||
@ -50,7 +50,7 @@ void StoreGameFlags(void)
|
||||
// Start line: 310
|
||||
// Start offset: 0x0001BC7C
|
||||
// Variables:
|
||||
// struct SVECTOR *carCollBox; // $v0
|
||||
// SVECTOR *carCollBox; // $v0
|
||||
// int carRange; // $a0
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x0001BCCC
|
||||
@ -70,7 +70,7 @@ void StoreGameFlags(void)
|
||||
// End Line: 661
|
||||
|
||||
// [D] [T]
|
||||
int TannerCanEnterCar(_CAR_DATA *cp, int distToCarSq)
|
||||
int TannerCanEnterCar(CAR_DATA *cp, int distToCarSq)
|
||||
{
|
||||
int carRange;
|
||||
|
||||
@ -106,7 +106,7 @@ int TannerCanEnterCar(_CAR_DATA *cp, int distToCarSq)
|
||||
// Start line: 325
|
||||
// Start offset: 0x0001BA90
|
||||
// Variables:
|
||||
// struct _CAR_DATA *cp; // $a2
|
||||
// CAR_DATA *cp; // $a2
|
||||
/* end block 1 */
|
||||
// End offset: 0x0001BBB8
|
||||
// End Line: 341
|
||||
@ -127,8 +127,8 @@ int TannerStuckInCar(int doSpeedCheck, int player_id)
|
||||
short *playerFelony;
|
||||
int speed;
|
||||
|
||||
_CAR_DATA *cp;
|
||||
_PLAYER* lp;
|
||||
CAR_DATA *cp;
|
||||
PLAYER* lp;
|
||||
|
||||
cp = NULL;
|
||||
lp = &player[player_id];
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
extern void StoreGameFlags(); // 0x0001BBB8
|
||||
|
||||
extern int TannerCanEnterCar(_CAR_DATA *cp, int distToCarSq); // 0x0001BBE8
|
||||
extern int TannerCanEnterCar(CAR_DATA *cp, int distToCarSq); // 0x0001BBE8
|
||||
|
||||
extern int TannerStuckInCar(int doSpeedCheck, int player_id); // 0x0001BA90
|
||||
|
||||
|
@ -4,16 +4,16 @@
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ PointFaceCheck(struct _CAR_DATA *cp0 /*$t7*/, struct _CAR_DATA *cp1 /*$t8*/, int i /*$t9*/, struct TestResult *least /*$a3*/, int nSign /*stack 16*/)
|
||||
// void /*$ra*/ PointFaceCheck(CAR_DATA *cp0 /*$t7*/, CAR_DATA *cp1 /*$t8*/, int i /*$t9*/, TestResult *least /*$a3*/, int nSign /*stack 16*/)
|
||||
// line 83, offset 0x0001c160
|
||||
/* begin block 1 */
|
||||
// Start line: 84
|
||||
// Start offset: 0x0001C160
|
||||
// Variables:
|
||||
// int k; // $t5
|
||||
// struct VECTOR normal; // stack offset -56
|
||||
// struct VECTOR diff; // stack offset -40
|
||||
// struct VECTOR point; // stack offset -24
|
||||
// VECTOR normal; // stack offset -56
|
||||
// VECTOR diff; // stack offset -40
|
||||
// VECTOR point; // stack offset -24
|
||||
// int depth; // $t0
|
||||
|
||||
/* begin block 1.1 */
|
||||
@ -34,7 +34,7 @@
|
||||
// End Line: 167
|
||||
|
||||
// [D] [T]
|
||||
void PointFaceCheck(_CAR_DATA *cp0, _CAR_DATA *cp1, int i, TestResult *least, int nSign)
|
||||
void PointFaceCheck(CAR_DATA *cp0, CAR_DATA *cp1, int i, TestResult *least, int nSign)
|
||||
{
|
||||
int partialDepth;
|
||||
int depth;
|
||||
@ -126,7 +126,7 @@ void PointFaceCheck(_CAR_DATA *cp0, _CAR_DATA *cp1, int i, TestResult *least, in
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ collided3d(struct _CAR_DATA *cp0 /*$s3*/, struct _CAR_DATA *cp1 /*$s2*/, struct TestResult *least /*$s1*/)
|
||||
// int /*$ra*/ collided3d(CAR_DATA *cp0 /*$s3*/, CAR_DATA *cp1 /*$s2*/, TestResult *least /*$s1*/)
|
||||
// line 133, offset 0x0001c408
|
||||
/* begin block 1 */
|
||||
// Start line: 134
|
||||
@ -148,7 +148,7 @@ void PointFaceCheck(_CAR_DATA *cp0, _CAR_DATA *cp1, int i, TestResult *least, in
|
||||
// End Line: 267
|
||||
|
||||
// [D] [T]
|
||||
int collided3d(_CAR_DATA *cp0, _CAR_DATA *cp1, TestResult *least)
|
||||
int collided3d(CAR_DATA *cp0, CAR_DATA *cp1, TestResult *least)
|
||||
{
|
||||
int i;
|
||||
|
||||
@ -182,13 +182,13 @@ int collided3d(_CAR_DATA *cp0, _CAR_DATA *cp1, TestResult *least)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ CarCarCollision3(struct _CAR_DATA *c0 /*$a0*/, struct _CAR_DATA *c1 /*$a1*/, int *depth /*$s2*/, struct VECTOR *where /*$s0*/, struct VECTOR *normal /*stack 16*/)
|
||||
// int /*$ra*/ CarCarCollision3(CAR_DATA *c0 /*$a0*/, CAR_DATA *c1 /*$a1*/, int *depth /*$s2*/, VECTOR *where /*$s0*/, VECTOR *normal /*stack 16*/)
|
||||
// line 153, offset 0x0001c380
|
||||
/* begin block 1 */
|
||||
// Start line: 154
|
||||
// Start offset: 0x0001C380
|
||||
// Variables:
|
||||
// struct TestResult tr; // stack offset -56
|
||||
// TestResult tr; // stack offset -56
|
||||
// int res; // $t1
|
||||
/* end block 1 */
|
||||
// End offset: 0x0001C408
|
||||
@ -205,7 +205,7 @@ int collided3d(_CAR_DATA *cp0, _CAR_DATA *cp1, TestResult *least)
|
||||
// End Line: 361
|
||||
|
||||
// [D] [T]
|
||||
int CarCarCollision3(_CAR_DATA *c0, _CAR_DATA *c1, int *depth, VECTOR *where, VECTOR *normal)
|
||||
int CarCarCollision3(CAR_DATA *c0, CAR_DATA *c1, int *depth, VECTOR *where, VECTOR *normal)
|
||||
{
|
||||
int res;
|
||||
TestResult tr;
|
||||
|
@ -2,11 +2,11 @@
|
||||
#define BCOLL3D_H
|
||||
|
||||
|
||||
extern void PointFaceCheck(_CAR_DATA *cp0, _CAR_DATA *cp1, int i, TestResult *least, int nSign); // 0x0001C160
|
||||
extern void PointFaceCheck(CAR_DATA *cp0, CAR_DATA *cp1, int i, TestResult *least, int nSign); // 0x0001C160
|
||||
|
||||
extern int collided3d(_CAR_DATA *cp0, _CAR_DATA *cp1, TestResult *least); // 0x0001C408
|
||||
extern int collided3d(CAR_DATA *cp0, CAR_DATA *cp1, TestResult *least); // 0x0001C408
|
||||
|
||||
extern int CarCarCollision3(_CAR_DATA *c0, _CAR_DATA *c1, int *depth, VECTOR *where, VECTOR *normal); // 0x0001C380
|
||||
extern int CarCarCollision3(CAR_DATA *c0, CAR_DATA *c1, int *depth, VECTOR *where, VECTOR *normal); // 0x0001C380
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -23,13 +23,13 @@
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ bcollided2d(struct CDATA2D *body /*$t4*/, int needOverlap /*$fp*/)
|
||||
// int /*$ra*/ bcollided2d(CDATA2D *body /*$t4*/, int needOverlap /*$fp*/)
|
||||
// line 120, offset 0x0001c51c
|
||||
/* begin block 1 */
|
||||
// Start line: 121
|
||||
// Start offset: 0x0001C51C
|
||||
// Variables:
|
||||
// struct VECTOR delta; // stack offset -56
|
||||
// VECTOR delta; // stack offset -56
|
||||
// int dtheta; // $v1
|
||||
// int ac; // $s6
|
||||
// int as; // $s5
|
||||
@ -160,7 +160,7 @@ int bcollided2d(CDATA2D *body, int needOverlap)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ bFindCollisionPoint(struct CDATA2D *body /*$t6*/, struct CRET2D *collisionResult /*$s0*/)
|
||||
// void /*$ra*/ bFindCollisionPoint(CDATA2D *body /*$t6*/, CRET2D *collisionResult /*$s0*/)
|
||||
// line 195, offset 0x0001c8c0
|
||||
/* begin block 1 */
|
||||
// Start line: 196
|
||||
@ -330,7 +330,7 @@ void bFindCollisionPoint(CDATA2D *body, CRET2D *collisionResult)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ bFindCollisionTime(struct CDATA2D *cd /*$s5*/, struct CRET2D *collisionResult /*stack 4*/)
|
||||
// int /*$ra*/ bFindCollisionTime(CDATA2D *cd /*$s5*/, CRET2D *collisionResult /*stack 4*/)
|
||||
// line 275, offset 0x0001cc30
|
||||
/* begin block 1 */
|
||||
// Start line: 276
|
||||
@ -342,7 +342,7 @@ void bFindCollisionPoint(CDATA2D *body, CRET2D *collisionResult)
|
||||
// int neverfree; // $fp
|
||||
// int time; // $s1
|
||||
// int step; // $s3
|
||||
// struct CDATA2D original[2]; // stack offset -248
|
||||
// CDATA2D original[2]; // stack offset -248
|
||||
/* end block 1 */
|
||||
// End offset: 0x0001CEEC
|
||||
// End Line: 357
|
||||
@ -459,7 +459,7 @@ int bFindCollisionTime(CDATA2D *cd, CRET2D *collisionResult)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ ApplyDamage(struct _CAR_DATA *cp /*$a0*/, char region /*$a1*/, int value /*$a2*/, char fakeDamage /*$a3*/)
|
||||
// void /*$ra*/ ApplyDamage(CAR_DATA *cp /*$a0*/, char region /*$a1*/, int value /*$a2*/, char fakeDamage /*$a3*/)
|
||||
// line 384, offset 0x0001ceec
|
||||
/* begin block 1 */
|
||||
// Start line: 385
|
||||
@ -481,7 +481,7 @@ int bFindCollisionTime(CDATA2D *cd, CRET2D *collisionResult)
|
||||
// End Line: 994
|
||||
|
||||
// [D] [T]
|
||||
void ApplyDamage(_CAR_DATA *cp, char region, int value, char fakeDamage)
|
||||
void ApplyDamage(CAR_DATA *cp, char region, int value, char fakeDamage)
|
||||
{
|
||||
short *pRegion;
|
||||
|
||||
@ -553,7 +553,7 @@ void ApplyDamage(_CAR_DATA *cp, char region, int value, char fakeDamage)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ DamageCar3D(struct _CAR_DATA *cp /*$s1*/, long (*delta)[4] /*$t4*/, int strikeVel /*$t6*/, struct _CAR_DATA *pOtherCar /*$s2*/)
|
||||
// int /*$ra*/ DamageCar3D(CAR_DATA *cp /*$s1*/, LONGVECTOR* delta /*$t4*/, int strikeVel /*$t6*/, CAR_DATA *pOtherCar /*$s2*/)
|
||||
// line 470, offset 0x0001d0b0
|
||||
/* begin block 1 */
|
||||
// Start line: 471
|
||||
@ -562,8 +562,8 @@ void ApplyDamage(_CAR_DATA *cp, char region, int value, char fakeDamage)
|
||||
// int l; // $v1
|
||||
// int w; // $v0
|
||||
// int region; // $a1
|
||||
// long nose[4]; // stack offset -56
|
||||
// long door[4]; // stack offset -40
|
||||
// LONGVECTOR nose; // stack offset -56
|
||||
// LONGVECTOR door; // stack offset -40
|
||||
// int impact; // $s3
|
||||
// int QQQ; // $t7
|
||||
|
||||
@ -592,7 +592,7 @@ void ApplyDamage(_CAR_DATA *cp, char region, int value, char fakeDamage)
|
||||
// End Line: 1169
|
||||
|
||||
// [D] [T]
|
||||
int DamageCar3D(_CAR_DATA *cp, long(*delta)[4], int strikeVel, _CAR_DATA *pOtherCar)
|
||||
int DamageCar3D(CAR_DATA *cp, LONGVECTOR* delta, int strikeVel, CAR_DATA *pOtherCar)
|
||||
{
|
||||
char region;
|
||||
int value;
|
||||
@ -706,13 +706,13 @@ int DamageCar3D(_CAR_DATA *cp, long(*delta)[4], int strikeVel, _CAR_DATA *pOther
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DamageCar(struct _CAR_DATA *cp /*$s2*/, struct CDATA2D *cd /*$s1*/, struct CRET2D *collisionResult /*$s3*/, int strikeVel /*$s0*/)
|
||||
// void /*$ra*/ DamageCar(CAR_DATA *cp /*$s2*/, CDATA2D *cd /*$s1*/, CRET2D *collisionResult /*$s3*/, int strikeVel /*$s0*/)
|
||||
// line 587, offset 0x0001d454
|
||||
/* begin block 1 */
|
||||
// Start line: 588
|
||||
// Start offset: 0x0001D454
|
||||
// Variables:
|
||||
// struct VECTOR delta; // stack offset -48
|
||||
// VECTOR delta; // stack offset -48
|
||||
// int l; // $v1
|
||||
// int w; // $v0
|
||||
// int region; // $a1
|
||||
@ -735,7 +735,7 @@ int DamageCar3D(_CAR_DATA *cp, long(*delta)[4], int strikeVel, _CAR_DATA *pOther
|
||||
// End Line: 1442
|
||||
|
||||
// [D] [T]
|
||||
void DamageCar(_CAR_DATA *cp, CDATA2D *cd, CRET2D *collisionResult, int strikeVel)
|
||||
void DamageCar(CAR_DATA *cp, CDATA2D *cd, CRET2D *collisionResult, int strikeVel)
|
||||
{
|
||||
int impact;
|
||||
int player_id;
|
||||
@ -805,24 +805,24 @@ void DamageCar(_CAR_DATA *cp, CDATA2D *cd, CRET2D *collisionResult, int strikeVe
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ CarBuildingCollision(struct _CAR_DATA *cp /*$s3*/, struct BUILDING_BOX *building /*$s2*/, struct CELL_OBJECT *cop /*$s6*/, int mightBeABarrier /*$s1*/)
|
||||
// int /*$ra*/ CarBuildingCollision(CAR_DATA *cp /*$s3*/, BUILDING_BOX *building /*$s2*/, CELL_OBJECT *cop /*$s6*/, int mightBeABarrier /*$s1*/)
|
||||
// line 839, offset 0x0001d68c
|
||||
/* begin block 1 */
|
||||
// Start line: 840
|
||||
// Start offset: 0x0001D68C
|
||||
// Variables:
|
||||
// static struct CDATA2D cd[2]; // offset 0x0
|
||||
// static struct CRET2D collisionResult; // offset 0xd0
|
||||
// static CDATA2D cd[2]; // offset 0x0
|
||||
// static CRET2D collisionResult; // offset 0xd0
|
||||
// int debris_colour; // stack offset -48
|
||||
// struct VECTOR tempwhere; // stack offset -168
|
||||
// struct MODEL *pModel; // $s5
|
||||
// VECTOR tempwhere; // stack offset -168
|
||||
// MODEL *pModel; // $s5
|
||||
// int player_id; // stack offset -44
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 866
|
||||
// Start offset: 0x0001D794
|
||||
// Variables:
|
||||
// struct SVECTOR boxDisp; // stack offset -152
|
||||
// SVECTOR boxDisp; // stack offset -152
|
||||
|
||||
/* begin block 1.1.1 */
|
||||
// Start line: 908
|
||||
@ -844,10 +844,10 @@ void DamageCar(_CAR_DATA *cp, CDATA2D *cd, CRET2D *collisionResult, int strikeVe
|
||||
// Start line: 977
|
||||
// Start offset: 0x0001DA64
|
||||
// Variables:
|
||||
// struct VECTOR velocity; // stack offset -144
|
||||
// long pointVel[4]; // stack offset -128
|
||||
// long reaction[4]; // stack offset -112
|
||||
// long lever[4]; // stack offset -96
|
||||
// VECTOR velocity; // stack offset -144
|
||||
// LONGVECTOR pointVel; // stack offset -128
|
||||
// LONGVECTOR reaction; // stack offset -112
|
||||
// LONGVECTOR lever; // stack offset -96
|
||||
// int strikeVel; // $s1
|
||||
|
||||
/* begin block 1.2.1.1 */
|
||||
@ -867,8 +867,8 @@ void DamageCar(_CAR_DATA *cp, CDATA2D *cd, CRET2D *collisionResult, int strikeVe
|
||||
// Start line: 1058
|
||||
// Start offset: 0x0001DD28
|
||||
// Variables:
|
||||
// struct SMASHABLE_OBJECT *sip; // $a1
|
||||
// struct SMASHABLE_OBJECT *match; // $s0
|
||||
// SMASHABLE_OBJECT *sip; // $a1
|
||||
// SMASHABLE_OBJECT *match; // $s0
|
||||
// int chan; // $s1
|
||||
// int adjust; // $s2
|
||||
/* end block 1.2.1.2.1 */
|
||||
@ -882,7 +882,7 @@ void DamageCar(_CAR_DATA *cp, CDATA2D *cd, CRET2D *collisionResult, int strikeVe
|
||||
// Start line: 1098
|
||||
// Start offset: 0x0001DEF4
|
||||
// Variables:
|
||||
// struct VECTOR LeafPosition; // stack offset -80
|
||||
// VECTOR LeafPosition; // stack offset -80
|
||||
/* end block 1.2.1.3 */
|
||||
// End offset: 0x0001DEF4
|
||||
// End Line: 1098
|
||||
@ -895,7 +895,7 @@ void DamageCar(_CAR_DATA *cp, CDATA2D *cd, CRET2D *collisionResult, int strikeVe
|
||||
// Start line: 1119
|
||||
// Start offset: 0x0001DF90
|
||||
// Variables:
|
||||
// struct VECTOR lamp_velocity; // stack offset -64
|
||||
// VECTOR lamp_velocity; // stack offset -64
|
||||
/* end block 1.2.1.4.1 */
|
||||
// End offset: 0x0001DFC4
|
||||
// End Line: 1123
|
||||
@ -930,7 +930,7 @@ void DamageCar(_CAR_DATA *cp, CDATA2D *cd, CRET2D *collisionResult, int strikeVe
|
||||
// End Line: 1967
|
||||
|
||||
// [D] [T]
|
||||
int CarBuildingCollision(_CAR_DATA *cp, BUILDING_BOX *building, CELL_OBJECT *cop, int flags)
|
||||
int CarBuildingCollision(CAR_DATA *cp, BUILDING_BOX *building, CELL_OBJECT *cop, int flags)
|
||||
{
|
||||
static CDATA2D cd[2] = {0}; // offset 0x0
|
||||
static CRET2D collisionResult = { 0 }; // offset 0xd0
|
||||
@ -949,9 +949,9 @@ int CarBuildingCollision(_CAR_DATA *cp, BUILDING_BOX *building, CELL_OBJECT *cop
|
||||
VECTOR tempwhere;
|
||||
SVECTOR boxDisp;
|
||||
VECTOR velocity;
|
||||
long pointVel[4];
|
||||
long reaction[4];
|
||||
long lever[4];
|
||||
LONGVECTOR pointVel;
|
||||
LONGVECTOR reaction;
|
||||
LONGVECTOR lever;
|
||||
VECTOR LeafPosition;
|
||||
VECTOR lamp_velocity;
|
||||
int debris_colour;
|
||||
|
@ -3,19 +3,19 @@
|
||||
|
||||
extern int boxOverlap;
|
||||
|
||||
extern int bcollided2d(struct CDATA2D *body, int needOverlap); // 0x0001C51C
|
||||
extern int bcollided2d(CDATA2D *body, int needOverlap); // 0x0001C51C
|
||||
|
||||
extern void bFindCollisionPoint(struct CDATA2D *body, struct CRET2D *collisionResult); // 0x0001C8C0
|
||||
extern void bFindCollisionPoint(CDATA2D *body, CRET2D *collisionResult); // 0x0001C8C0
|
||||
|
||||
extern int bFindCollisionTime(struct CDATA2D *cd, struct CRET2D *collisionResult); // 0x0001CC30
|
||||
extern int bFindCollisionTime(CDATA2D *cd, CRET2D *collisionResult); // 0x0001CC30
|
||||
|
||||
extern void ApplyDamage(struct _CAR_DATA *cp, char region, int value, char fakeDamage); // 0x0001CEEC
|
||||
extern void ApplyDamage(CAR_DATA *cp, char region, int value, char fakeDamage); // 0x0001CEEC
|
||||
|
||||
extern int DamageCar3D(struct _CAR_DATA *cp, long (*delta)[4], int strikeVel, struct _CAR_DATA *pOtherCar); // 0x0001D0B0
|
||||
extern int DamageCar3D(CAR_DATA *cp, LONGVECTOR* delta, int strikeVel, CAR_DATA *pOtherCar); // 0x0001D0B0
|
||||
|
||||
extern void DamageCar(struct _CAR_DATA *cp, struct CDATA2D *cd, struct CRET2D *collisionResult, int strikeVel); // 0x0001D454
|
||||
extern void DamageCar(CAR_DATA *cp, CDATA2D *cd, CRET2D *collisionResult, int strikeVel); // 0x0001D454
|
||||
|
||||
extern int CarBuildingCollision(struct _CAR_DATA *cp, struct BUILDING_BOX *building, struct CELL_OBJECT *cop, int flags); // 0x0001D68C
|
||||
extern int CarBuildingCollision(CAR_DATA *cp, BUILDING_BOX *building, CELL_OBJECT *cop, int flags); // 0x0001D68C
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -29,7 +29,7 @@ static BOMB ThrownBombs[MAX_THROWN_BOMBS];
|
||||
static int ThrownBombDelay = 0;
|
||||
static int CurrentBomb = 0;
|
||||
static int gWantFlash = 0;
|
||||
_CAR_DATA *gBombTargetVehicle = NULL;
|
||||
CAR_DATA *gBombTargetVehicle = NULL;
|
||||
static int flashval;
|
||||
|
||||
// decompiled code
|
||||
@ -91,9 +91,9 @@ void InitThrownBombs(void)
|
||||
// Start line: 247
|
||||
// Start offset: 0x0001E3E8
|
||||
// Variables:
|
||||
// struct BOMB *bomb; // $s1
|
||||
// struct VECTOR velocity; // stack offset -48
|
||||
// struct _CAR_DATA *cp; // $s0
|
||||
// BOMB *bomb; // $s1
|
||||
// VECTOR velocity; // stack offset -48
|
||||
// CAR_DATA *cp; // $s0
|
||||
// int i; // $s5
|
||||
// int y; // $a0
|
||||
|
||||
@ -136,7 +136,7 @@ void InitThrownBombs(void)
|
||||
// [D] [T]
|
||||
void HandleThrownBombs(void)
|
||||
{
|
||||
_CAR_DATA *cp;
|
||||
CAR_DATA *cp;
|
||||
BOMB *bomb;
|
||||
int i;
|
||||
int y;
|
||||
@ -250,10 +250,10 @@ void HandleThrownBombs(void)
|
||||
// Start line: 383
|
||||
// Start offset: 0x0001E810
|
||||
// Variables:
|
||||
// struct MATRIX object_matrix; // stack offset -80
|
||||
// struct MATRIX *finalmatrix; // $s2
|
||||
// struct BOMB *bomb; // $s0
|
||||
// struct VECTOR pos; // stack offset -48
|
||||
// MATRIX object_matrix; // stack offset -80
|
||||
// MATRIX *finalmatrix; // $s2
|
||||
// BOMB *bomb; // $s0
|
||||
// VECTOR pos; // stack offset -48
|
||||
// int i; // $s3
|
||||
|
||||
/* begin block 1.1 */
|
||||
@ -370,7 +370,7 @@ void DrawThrownBombs(void)
|
||||
// Start line: 433
|
||||
// Start offset: 0x0001EA00
|
||||
// Variables:
|
||||
// struct BOMB *bomb; // $t3
|
||||
// BOMB *bomb; // $t3
|
||||
/* end block 1 */
|
||||
// End offset: 0x0001EC3C
|
||||
// End Line: 486
|
||||
@ -453,13 +453,13 @@ void BombThePlayerToHellAndBack(int car)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ BombCollisionCheck(struct _CAR_DATA *cp /*$a0*/, struct VECTOR *pPos /*$a1*/)
|
||||
// int /*$ra*/ BombCollisionCheck(CAR_DATA *cp /*$a0*/, VECTOR *pPos /*$a1*/)
|
||||
// line 496, offset 0x0001ec58
|
||||
/* begin block 1 */
|
||||
// Start line: 497
|
||||
// Start offset: 0x0001EC58
|
||||
// Variables:
|
||||
// struct CDATA2D cd[2]; // stack offset -216
|
||||
// CDATA2D cd[2]; // stack offset -216
|
||||
// int carLength[2]; // stack offset -16
|
||||
|
||||
/* begin block 1.1 */
|
||||
@ -483,7 +483,7 @@ void BombThePlayerToHellAndBack(int car)
|
||||
// End Line: 1236
|
||||
|
||||
// [D] [T]
|
||||
int BombCollisionCheck(_CAR_DATA *cp, VECTOR *pPos)
|
||||
int BombCollisionCheck(CAR_DATA *cp, VECTOR *pPos)
|
||||
{
|
||||
CDATA2D cd[2] = {0};
|
||||
|
||||
@ -510,13 +510,13 @@ int BombCollisionCheck(_CAR_DATA *cp, VECTOR *pPos)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ ExplosionCollisionCheck(struct _CAR_DATA *cp /*$s1*/, struct _ExOBJECT *pE /*$s3*/)
|
||||
// void /*$ra*/ ExplosionCollisionCheck(CAR_DATA *cp /*$s1*/, _ExOBJECT *pE /*$s3*/)
|
||||
// line 534, offset 0x0001ed18
|
||||
/* begin block 1 */
|
||||
// Start line: 535
|
||||
// Start offset: 0x0001ED18
|
||||
// Variables:
|
||||
// struct CDATA2D cd[2]; // stack offset -352
|
||||
// CDATA2D cd[2]; // stack offset -352
|
||||
// int carLength[2]; // stack offset -152
|
||||
// static int setUsed; // offset 0x28
|
||||
// int tanner; // $s6
|
||||
@ -545,7 +545,7 @@ int BombCollisionCheck(_CAR_DATA *cp, VECTOR *pPos)
|
||||
// Variables:
|
||||
// int x; // $a1
|
||||
// int z; // $v1
|
||||
// struct VECTOR *pos; // $v0
|
||||
// VECTOR *pos; // $v0
|
||||
/* end block 1.1.3 */
|
||||
// End offset: 0x0001EF54
|
||||
// End Line: 600
|
||||
@ -554,16 +554,16 @@ int BombCollisionCheck(_CAR_DATA *cp, VECTOR *pPos)
|
||||
// Start line: 623
|
||||
// Start offset: 0x0001EF94
|
||||
// Variables:
|
||||
// struct CRET2D collisionResult; // stack offset -144
|
||||
// CRET2D collisionResult; // stack offset -144
|
||||
|
||||
/* begin block 1.1.4.1 */
|
||||
// Start line: 626
|
||||
// Start offset: 0x0001EF94
|
||||
// Variables:
|
||||
// struct VECTOR velocity; // stack offset -104
|
||||
// long pointVel[4]; // stack offset -88
|
||||
// long reaction[4]; // stack offset -72
|
||||
// long lever[4]; // stack offset -56
|
||||
// VECTOR velocity; // stack offset -104
|
||||
// LONGVECTOR pointVel; // stack offset -88
|
||||
// LONGVECTOR reaction; // stack offset -72
|
||||
// LONGVECTOR lever; // stack offset -56
|
||||
// int strikeVel; // $s0
|
||||
|
||||
/* begin block 1.1.4.1.1 */
|
||||
@ -615,7 +615,7 @@ const int halfStrike = 0x32000;
|
||||
const int fullStrike = 0x32000;
|
||||
|
||||
// [D] [T]
|
||||
void ExplosionCollisionCheck(_CAR_DATA *cp, _ExOBJECT *pE)
|
||||
void ExplosionCollisionCheck(CAR_DATA *cp, EXOBJECT *pE)
|
||||
{
|
||||
static int setUsed = 0;
|
||||
|
||||
@ -630,9 +630,9 @@ void ExplosionCollisionCheck(_CAR_DATA *cp, _ExOBJECT *pE)
|
||||
int carLength[2];
|
||||
CRET2D collisionResult;
|
||||
VECTOR velocity;
|
||||
long pointVel[4];
|
||||
long reaction[4];
|
||||
long lever[4];
|
||||
LONGVECTOR pointVel;
|
||||
LONGVECTOR reaction;
|
||||
LONGVECTOR lever;
|
||||
|
||||
isCar = (cp != &car_data[CAMERA_COLLIDER_CARID]);
|
||||
|
||||
@ -795,7 +795,7 @@ void ExplosionCollisionCheck(_CAR_DATA *cp, _ExOBJECT *pE)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ AddFlash(struct VECTOR *pos /*$a0*/)
|
||||
// void /*$ra*/ AddFlash(VECTOR *pos /*$a0*/)
|
||||
// line 747, offset 0x0001f4f4
|
||||
/* begin block 1 */
|
||||
// Start line: 748
|
||||
|
@ -2,7 +2,7 @@
|
||||
#define BOMBERMAN_H
|
||||
|
||||
extern MODEL* gBombModel;
|
||||
extern _CAR_DATA *gBombTargetVehicle;
|
||||
extern CAR_DATA *gBombTargetVehicle;
|
||||
|
||||
extern void InitThrownBombs(); // 0x0001F570
|
||||
|
||||
@ -12,9 +12,9 @@ extern void DrawThrownBombs(); // 0x0001E810
|
||||
|
||||
extern void BombThePlayerToHellAndBack(int car); // 0x0001EA00
|
||||
|
||||
extern int BombCollisionCheck(_CAR_DATA *cp, VECTOR *pPos); // 0x0001EC58
|
||||
extern int BombCollisionCheck(CAR_DATA *cp, VECTOR *pPos); // 0x0001EC58
|
||||
|
||||
extern void ExplosionCollisionCheck(_CAR_DATA *cp, _ExOBJECT *pE); // 0x0001ED18
|
||||
extern void ExplosionCollisionCheck(CAR_DATA *cp, EXOBJECT *pE); // 0x0001ED18
|
||||
|
||||
extern void AddFlash(VECTOR *pos); // 0x0001F4F4
|
||||
|
||||
|
@ -46,7 +46,7 @@ unsigned short paddCamera;
|
||||
char cameraview = 0;
|
||||
int CameraCnt = 0;
|
||||
|
||||
static long basePos[4]; // [A]
|
||||
static LONGVECTOR basePos; // [A]
|
||||
static long baseDir = 0;
|
||||
|
||||
char tracking_car = 0;
|
||||
@ -57,10 +57,10 @@ int TargetCar = 0;
|
||||
int CameraCar = 0;
|
||||
|
||||
// [A] custom function - recalculates base camera position (separated from InitCamera)
|
||||
void CalcCameraBasePos(_PLAYER* lp)
|
||||
void CalcCameraBasePos(PLAYER* lp)
|
||||
{
|
||||
CAR_COSMETICS* car_cos;
|
||||
_EVENT* event;
|
||||
EVENT* event;
|
||||
SVECTOR boxDisp = { 0 };
|
||||
|
||||
if (lp->cameraCarId < 0)
|
||||
@ -116,13 +116,13 @@ void CalcCameraBasePos(_PLAYER* lp)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ InitCamera(struct _PLAYER *lp /*$s0*/)
|
||||
// void /*$ra*/ InitCamera(PLAYER *lp /*$s0*/)
|
||||
// line 422, offset 0x0001f5f4
|
||||
/* begin block 1 */
|
||||
// Start line: 423
|
||||
// Start offset: 0x0001F5F4
|
||||
// Variables:
|
||||
// struct SVECTOR boxDisp; // stack offset -16
|
||||
// SVECTOR boxDisp; // stack offset -16
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 428
|
||||
@ -135,7 +135,7 @@ void CalcCameraBasePos(_PLAYER* lp)
|
||||
// Start line: 441
|
||||
// Start offset: 0x0001F6AC
|
||||
// Variables:
|
||||
// struct _CAR_DATA *lcp; // $a0
|
||||
// CAR_DATA *lcp; // $a0
|
||||
/* end block 1.2 */
|
||||
// End offset: 0x0001F6AC
|
||||
// End Line: 441
|
||||
@ -144,7 +144,7 @@ void CalcCameraBasePos(_PLAYER* lp)
|
||||
// Start line: 454
|
||||
// Start offset: 0x0001F794
|
||||
// Variables:
|
||||
// struct _EVENT *event; // $a1
|
||||
// EVENT *event; // $a1
|
||||
/* end block 1.3 */
|
||||
// End offset: 0x0001F794
|
||||
// End Line: 455
|
||||
@ -158,7 +158,7 @@ void CalcCameraBasePos(_PLAYER* lp)
|
||||
// End Line: 845
|
||||
|
||||
// [D] [T]
|
||||
void InitCamera(_PLAYER *lp)
|
||||
void InitCamera(PLAYER *lp)
|
||||
{
|
||||
if (events.cameraEvent == NULL)
|
||||
{
|
||||
@ -246,8 +246,8 @@ void InitCamera(_PLAYER *lp)
|
||||
// Start line: 555
|
||||
// Start offset: 0x0001FA20
|
||||
// Variables:
|
||||
// struct PAD *locPad; // $a3
|
||||
// struct _PLAYER *lp; // $a2
|
||||
// PAD *locPad; // $a3
|
||||
// PLAYER *lp; // $a2
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 568
|
||||
@ -301,7 +301,7 @@ void ModifyCamera(void)
|
||||
1,0,2,1
|
||||
};
|
||||
|
||||
_PLAYER *lp;
|
||||
PLAYER *lp;
|
||||
char *pNextCameraView;
|
||||
int angle;
|
||||
int length;
|
||||
@ -358,13 +358,13 @@ void ModifyCamera(void)
|
||||
// Start line: 611
|
||||
// Start offset: 0x0001FC18
|
||||
// Variables:
|
||||
// struct MODEL *model; // $v1
|
||||
// struct COLLISION_PACKET *collide; // $t2
|
||||
// struct CELL_OBJECT *cop; // $t3
|
||||
// struct CELL_ITERATOR ci; // stack offset -168
|
||||
// struct VECTOR nearpoint; // stack offset -144
|
||||
// struct VECTOR surfacenormal; // stack offset -128
|
||||
// struct VECTOR surfacepoint; // stack offset -112
|
||||
// MODEL *model; // $v1
|
||||
// COLLISION_PACKET *collide; // $t2
|
||||
// CELL_OBJECT *cop; // $t3
|
||||
// CELL_ITERATOR ci; // stack offset -168
|
||||
// VECTOR nearpoint; // stack offset -144
|
||||
// VECTOR surfacenormal; // stack offset -128
|
||||
// VECTOR surfacepoint; // stack offset -112
|
||||
// int cell_x; // $a0
|
||||
// int cell_z; // $a1
|
||||
// int xd; // $v1
|
||||
@ -374,16 +374,16 @@ void ModifyCamera(void)
|
||||
// int sphere_sq; // $a2
|
||||
// int camera_size; // $s0
|
||||
// int count; // $s1
|
||||
// struct VECTOR temp_cam; // stack offset -96
|
||||
// VECTOR temp_cam; // stack offset -96
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 659
|
||||
// Start offset: 0x0001FDF4
|
||||
// Variables:
|
||||
// struct MATRIX *mat; // $a2
|
||||
// struct VECTOR offset; // stack offset -80
|
||||
// struct VECTOR cam_vec; // stack offset -64
|
||||
// struct VECTOR normal; // stack offset -48
|
||||
// MATRIX *mat; // $a2
|
||||
// VECTOR offset; // stack offset -80
|
||||
// VECTOR cam_vec; // stack offset -64
|
||||
// VECTOR normal; // stack offset -48
|
||||
// int xmin; // $a0
|
||||
// int xmax; // $a3
|
||||
// int ymin; // $t0
|
||||
@ -525,7 +525,7 @@ int CameraCollisionCheck(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ TurnHead(struct _PLAYER *lp /*$a0*/)
|
||||
// void /*$ra*/ TurnHead(PLAYER *lp /*$a0*/)
|
||||
// line 716, offset 0x00020a10
|
||||
/* begin block 1 */
|
||||
// Start line: 717
|
||||
@ -545,7 +545,7 @@ int CameraCollisionCheck(void)
|
||||
// End Line: 2115
|
||||
|
||||
// [D] [T]
|
||||
void TurnHead(_PLAYER *lp)
|
||||
void TurnHead(PLAYER *lp)
|
||||
{
|
||||
if ((paddCamera & 3) == 3)
|
||||
{
|
||||
@ -591,7 +591,7 @@ void TurnHead(_PLAYER *lp)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ PlaceCameraFollowCar(struct _PLAYER *lp /*$s2*/)
|
||||
// void /*$ra*/ PlaceCameraFollowCar(PLAYER *lp /*$s2*/)
|
||||
// line 777, offset 0x0002003c
|
||||
/* begin block 1 */
|
||||
// Start line: 778
|
||||
@ -602,7 +602,7 @@ void TurnHead(_PLAYER *lp)
|
||||
// int cammapht; // $s0
|
||||
// int new_angle; // $a0
|
||||
// int camPosVy; // $s1
|
||||
// struct VECTOR locCameraPos; // stack offset -48
|
||||
// VECTOR locCameraPos; // stack offset -48
|
||||
// int lbody; // $a0
|
||||
// int hbody; // $a3
|
||||
// int camExpandSpeed; // $s6
|
||||
@ -611,7 +611,7 @@ void TurnHead(_PLAYER *lp)
|
||||
// Start line: 800
|
||||
// Start offset: 0x00020088
|
||||
// Variables:
|
||||
// struct _CAR_DATA *camCar; // $v1
|
||||
// CAR_DATA *camCar; // $v1
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x0002011C
|
||||
// End Line: 810
|
||||
@ -632,11 +632,11 @@ void TurnHead(_PLAYER *lp)
|
||||
short gCameraDistance = 1000;
|
||||
short gCameraMaxDistance = 0;
|
||||
|
||||
_CAR_DATA *jcam = NULL;
|
||||
CAR_DATA *jcam = NULL;
|
||||
int switch_detail_distance = 10000;
|
||||
|
||||
// [D] [T]
|
||||
void PlaceCameraFollowCar(_PLAYER *lp)
|
||||
void PlaceCameraFollowCar(PLAYER *lp)
|
||||
{
|
||||
CAR_COSMETICS *car_cos;
|
||||
int camAngle;
|
||||
@ -655,7 +655,7 @@ void PlaceCameraFollowCar(_PLAYER *lp)
|
||||
|
||||
if (lp->cameraCarId >= 0)
|
||||
{
|
||||
_CAR_DATA* camCar;
|
||||
CAR_DATA* camCar;
|
||||
int carSpeed;
|
||||
camCar = &car_data[lp->cameraCarId];
|
||||
|
||||
@ -718,7 +718,7 @@ void PlaceCameraFollowCar(_PLAYER *lp)
|
||||
}
|
||||
|
||||
jcam = &car_data[CAMERA_COLLIDER_CARID];
|
||||
ClearMem((char *)jcam, sizeof(_CAR_DATA));
|
||||
ClearMem((char *)jcam, sizeof(CAR_DATA));
|
||||
|
||||
jcam->controlType = CONTROL_TYPE_CAMERACOLLIDER;
|
||||
|
||||
@ -765,7 +765,7 @@ void PlaceCameraFollowCar(_PLAYER *lp)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ PlaceCameraAtLocation(struct _PLAYER *lp /*$s1*/, int zoom /*$s2*/)
|
||||
// void /*$ra*/ PlaceCameraAtLocation(PLAYER *lp /*$s1*/, int zoom /*$s2*/)
|
||||
// line 904, offset 0x00020904
|
||||
/* begin block 1 */
|
||||
// Start line: 905
|
||||
@ -777,7 +777,7 @@ void PlaceCameraFollowCar(_PLAYER *lp)
|
||||
// Start line: 911
|
||||
// Start offset: 0x00020930
|
||||
// Variables:
|
||||
// struct VECTOR temp; // stack offset -32
|
||||
// VECTOR temp; // stack offset -32
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x00020930
|
||||
// End Line: 913
|
||||
@ -801,7 +801,7 @@ void PlaceCameraFollowCar(_PLAYER *lp)
|
||||
// End Line: 2241
|
||||
|
||||
// [D] [T]
|
||||
void PlaceCameraAtLocation(_PLAYER *lp, int zoom)
|
||||
void PlaceCameraAtLocation(PLAYER *lp, int zoom)
|
||||
{
|
||||
int d;
|
||||
VECTOR temp;
|
||||
@ -849,13 +849,13 @@ void PlaceCameraAtLocation(_PLAYER *lp, int zoom)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ PointAtTarget(struct VECTOR *pPosition /*$a0*/, struct VECTOR *pTarget /*$a1*/, struct SVECTOR *pAngleVec /*$s0*/)
|
||||
// int /*$ra*/ PointAtTarget(VECTOR *pPosition /*$a0*/, VECTOR *pTarget /*$a1*/, SVECTOR *pAngleVec /*$s0*/)
|
||||
// line 960, offset 0x00020b08
|
||||
/* begin block 1 */
|
||||
// Start line: 961
|
||||
// Start offset: 0x00020B08
|
||||
// Variables:
|
||||
// struct VECTOR delta; // stack offset -32
|
||||
// VECTOR delta; // stack offset -32
|
||||
// int d; // $s1
|
||||
/* end block 1 */
|
||||
// End offset: 0x00020BC0
|
||||
@ -898,13 +898,13 @@ int PointAtTarget(VECTOR *pPosition, VECTOR *pTarget, SVECTOR *pAngleVec)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ PlaceCameraInCar(struct _PLAYER *lp /*$s3*/, int BumperCam /*$a1*/)
|
||||
// void /*$ra*/ PlaceCameraInCar(PLAYER *lp /*$s3*/, int BumperCam /*$a1*/)
|
||||
// line 987, offset 0x0002050c
|
||||
/* begin block 1 */
|
||||
// Start line: 988
|
||||
// Start offset: 0x0002050C
|
||||
// Variables:
|
||||
// struct _CAR_DATA *cp; // $s2
|
||||
// CAR_DATA *cp; // $s2
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 1044
|
||||
@ -935,11 +935,11 @@ int PointAtTarget(VECTOR *pPosition, VECTOR *pTarget, SVECTOR *pAngleVec)
|
||||
|
||||
|
||||
// [D] [T]
|
||||
void PlaceCameraInCar(_PLAYER *lp, int BumperCam)
|
||||
void PlaceCameraInCar(PLAYER *lp, int BumperCam)
|
||||
{
|
||||
VECTOR viewer_position;
|
||||
int angle;
|
||||
_CAR_DATA *cp;
|
||||
CAR_DATA *cp;
|
||||
|
||||
cp = NULL;
|
||||
|
||||
@ -1045,7 +1045,7 @@ void PlaceCameraInCar(_PLAYER *lp, int BumperCam)
|
||||
// Start offset: 0x00020BC0
|
||||
// Variables:
|
||||
// int old_z; // $s0
|
||||
// struct VECTOR temp; // stack offset -24
|
||||
// VECTOR temp; // stack offset -24
|
||||
/* end block 1 */
|
||||
// End offset: 0x00020C70
|
||||
// End Line: 1114
|
||||
@ -1100,7 +1100,7 @@ int OK_To_Zoom(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ SetBasePos(struct VECTOR *pVec /*$a0*/)
|
||||
// void /*$ra*/ SetBasePos(VECTOR *pVec /*$a0*/)
|
||||
// line 1119, offset 0x00020c70
|
||||
/* begin block 1 */
|
||||
// Start line: 2945
|
||||
|
@ -25,21 +25,21 @@ extern VECTOR gCameraOffset;
|
||||
|
||||
extern int switch_detail_distance;
|
||||
|
||||
extern void InitCamera(_PLAYER *lp); // 0x0001F5F4
|
||||
extern void InitCamera(PLAYER *lp); // 0x0001F5F4
|
||||
|
||||
extern void ModifyCamera(); // 0x0001FA20
|
||||
|
||||
extern int CameraCollisionCheck(); // 0x0001FC18
|
||||
|
||||
extern void TurnHead(_PLAYER *lp); // 0x00020A10
|
||||
extern void TurnHead(PLAYER *lp); // 0x00020A10
|
||||
|
||||
extern void PlaceCameraFollowCar(_PLAYER *lp); // 0x0002003C
|
||||
extern void PlaceCameraFollowCar(PLAYER *lp); // 0x0002003C
|
||||
|
||||
extern void PlaceCameraAtLocation(_PLAYER *lp, int zoom); // 0x00020904
|
||||
extern void PlaceCameraAtLocation(PLAYER *lp, int zoom); // 0x00020904
|
||||
|
||||
extern int PointAtTarget(VECTOR *pPosition, VECTOR *pTarget, SVECTOR *pAngleVec); // 0x00020B08
|
||||
|
||||
extern void PlaceCameraInCar(_PLAYER *lp, int BumperCam); // 0x0002050C
|
||||
extern void PlaceCameraInCar(PLAYER *lp, int BumperCam); // 0x0002050C
|
||||
|
||||
extern int OK_To_Zoom(); // 0x00020BC0
|
||||
|
||||
|
@ -36,25 +36,25 @@ MATRIX colour_matrix =
|
||||
{ { { 4032, 0, 0 }, { 3936, 0, 0 }, { 3520, 0, 0 } }, { 0, 0, 0 } };
|
||||
|
||||
// PHYSICS
|
||||
_CAR_DATA car_data[MAX_CARS + 2]; // all cars + Tanner cbox + Camera cbox
|
||||
CAR_DATA car_data[MAX_CARS + 2]; // all cars + Tanner cbox + Camera cbox
|
||||
|
||||
HUBCAP gHubcap;
|
||||
|
||||
// active cars
|
||||
_CAR_DATA* active_car_list[MAX_CARS];
|
||||
CAR_DATA* active_car_list[MAX_CARS];
|
||||
BOUND_BOX bbox[MAX_CARS];
|
||||
unsigned char lightsOnDelay[MAX_CARS];
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ plotNewCarModel(struct CAR_MODEL *car /*$s0*/, int palette /*$s2*/)
|
||||
// void /*$ra*/ plotNewCarModel(CAR_MODEL *car /*$s0*/, int palette /*$s2*/)
|
||||
// line 834, offset 0x00020c94
|
||||
/* begin block 1 */
|
||||
// Start line: 835
|
||||
// Start offset: 0x00020C94
|
||||
// Variables:
|
||||
// struct plotCarGlobals _pg; // stack offset -72
|
||||
// struct SVECTOR v0; // stack offset -32
|
||||
// plotCarGlobals _pg; // stack offset -72
|
||||
// SVECTOR v0; // stack offset -32
|
||||
// unsigned long lightlevel; // stack offset -24
|
||||
/* end block 1 */
|
||||
// End offset: 0x00020E88
|
||||
@ -70,7 +70,7 @@ unsigned char lightsOnDelay[MAX_CARS];
|
||||
/* end block 3 */
|
||||
// End Line: 1671
|
||||
|
||||
struct DENTUVS *gTempCarUVPtr;
|
||||
DENTUVS *gTempCarUVPtr;
|
||||
DENTUVS gTempHDCarUVDump[MAX_CARS][255];
|
||||
SVECTOR gTempCarVertDump[MAX_CARS][132];
|
||||
DENTUVS gTempLDCarUVDump[MAX_CARS][134];
|
||||
@ -153,13 +153,13 @@ void plotNewCarModel(CAR_MODEL *car, int palette)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ plotCarPolyB3(int numTris /*$a0*/, struct CAR_POLY *src /*$a1*/, struct SVECTOR *vlist /*$a2*/, struct plotCarGlobals *pg /*$a3*/)
|
||||
// void /*$ra*/ plotCarPolyB3(int numTris /*$a0*/, CAR_POLY *src /*$a1*/, SVECTOR *vlist /*$a2*/, plotCarGlobals *pg /*$a3*/)
|
||||
// line 917, offset 0x000237b8
|
||||
/* begin block 1 */
|
||||
// Start line: 918
|
||||
// Start offset: 0x000237B8
|
||||
// Variables:
|
||||
// struct POLY_F3 *prim; // $t0
|
||||
// POLY_F3 *prim; // $t0
|
||||
// int i; // $t1
|
||||
// long *ot; // $t3
|
||||
// long F3rgb; // $t4
|
||||
@ -242,13 +242,13 @@ void plotCarPolyB3(int numTris, CAR_POLY *src, SVECTOR *vlist, plotCarGlobals *p
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ plotCarPolyFT3(int numTris /*$a0*/, struct CAR_POLY *src /*$t1*/, struct SVECTOR *vlist /*$t4*/, struct plotCarGlobals *pg /*$t5*/)
|
||||
// void /*$ra*/ plotCarPolyFT3(int numTris /*$a0*/, CAR_POLY *src /*$t1*/, SVECTOR *vlist /*$t4*/, plotCarGlobals *pg /*$t5*/)
|
||||
// line 976, offset 0x000238c4
|
||||
/* begin block 1 */
|
||||
// Start line: 977
|
||||
// Start offset: 0x000238C4
|
||||
// Variables:
|
||||
// struct POLY_FT3 *prim; // $t0
|
||||
// POLY_FT3 *prim; // $t0
|
||||
// long *ot; // $t6
|
||||
// long FT3rgb; // stack offset -8
|
||||
// int i; // $t2
|
||||
@ -350,13 +350,13 @@ void plotCarPolyFT3(int numTris, CAR_POLY *src, SVECTOR *vlist, plotCarGlobals *
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ plotCarPolyGT3(int numTris /*$a0*/, struct CAR_POLY *src /*$t1*/, struct SVECTOR *vlist /*$s0*/, struct SVECTOR *nlist /*$a3*/, struct plotCarGlobals *pg /*stack 16*/, int palette /*stack 20*/)
|
||||
// void /*$ra*/ plotCarPolyGT3(int numTris /*$a0*/, CAR_POLY *src /*$t1*/, SVECTOR *vlist /*$s0*/, SVECTOR *nlist /*$a3*/, plotCarGlobals *pg /*stack 16*/, int palette /*stack 20*/)
|
||||
// line 1125, offset 0x00020ea0
|
||||
/* begin block 1 */
|
||||
// Start line: 1126
|
||||
// Start offset: 0x00020EA0
|
||||
// Variables:
|
||||
// struct POLY_GT3 *prim; // $t0
|
||||
// POLY_GT3 *prim; // $t0
|
||||
// long *ot; // $s1
|
||||
// long GT3rgb; // stack offset -24
|
||||
// int i; // $t7
|
||||
@ -475,13 +475,13 @@ void plotCarPolyGT3(int numTris, CAR_POLY *src, SVECTOR *vlist, SVECTOR *nlist,
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ plotCarPolyGT3nolight(int numTris /*$a0*/, struct CAR_POLY *src /*$t3*/, struct SVECTOR *vlist /*$t6*/, struct plotCarGlobals *pg /*$a3*/, int palette /*stack 16*/)
|
||||
// void /*$ra*/ plotCarPolyGT3nolight(int numTris /*$a0*/, CAR_POLY *src /*$t3*/, SVECTOR *vlist /*$t6*/, plotCarGlobals *pg /*$a3*/, int palette /*stack 16*/)
|
||||
// line 1349, offset 0x00023a20
|
||||
/* begin block 1 */
|
||||
// Start line: 1350
|
||||
// Start offset: 0x00023A20
|
||||
// Variables:
|
||||
// struct POLY_FT3 *prim; // $t0
|
||||
// POLY_FT3 *prim; // $t0
|
||||
// long *ot; // $t7
|
||||
// long GT3rgb; // stack offset -8
|
||||
// int i; // $t4
|
||||
@ -588,7 +588,7 @@ void plotCarPolyGT3nolight(int numTris, CAR_POLY *src, SVECTOR *vlist, plotCarGl
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DrawCar(struct _CAR_DATA *cp /*$s3*/, int view /*$a1*/)
|
||||
// void /*$ra*/ DrawCar(CAR_DATA *cp /*$s3*/, int view /*$a1*/)
|
||||
// line 1442, offset 0x000210b8
|
||||
/* begin block 1 */
|
||||
// Start line: 1443
|
||||
@ -596,13 +596,13 @@ void plotCarPolyGT3nolight(int numTris, CAR_POLY *src, SVECTOR *vlist, plotCarGl
|
||||
// Variables:
|
||||
// int WheelSpeed; // $s0
|
||||
// int model; // $fp
|
||||
// struct _PLAYER *lp; // $a2
|
||||
// PLAYER *lp; // $a2
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 1454
|
||||
// Start offset: 0x00021174
|
||||
// Variables:
|
||||
// struct CVECTOR col; // stack offset -312
|
||||
// CVECTOR col; // stack offset -312
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x00021244
|
||||
// End Line: 1492
|
||||
@ -611,19 +611,19 @@ void plotCarPolyGT3nolight(int numTris, CAR_POLY *src, SVECTOR *vlist, plotCarGl
|
||||
// Start line: 1496
|
||||
// Start offset: 0x00021244
|
||||
// Variables:
|
||||
// struct MATRIX temp_mat1; // stack offset -304
|
||||
// struct MATRIX temp_mat2; // stack offset -272
|
||||
// struct MATRIX final_mat; // stack offset -240
|
||||
// struct VECTOR pos; // stack offset -208
|
||||
// struct VECTOR pos1; // stack offset -192
|
||||
// struct SVECTOR temp_vec; // stack offset -176
|
||||
// MATRIX temp_mat1; // stack offset -304
|
||||
// MATRIX temp_mat2; // stack offset -272
|
||||
// MATRIX final_mat; // stack offset -240
|
||||
// VECTOR pos; // stack offset -208
|
||||
// VECTOR pos1; // stack offset -192
|
||||
// SVECTOR temp_vec; // stack offset -176
|
||||
// int result; // $s4
|
||||
|
||||
/* begin block 1.2.1 */
|
||||
// Start line: 1519
|
||||
// Start offset: 0x00021290
|
||||
// Variables:
|
||||
// struct VECTOR corners[4]; // stack offset -168
|
||||
// VECTOR corners[4]; // stack offset -168
|
||||
/* end block 1.2.1 */
|
||||
// End offset: 0x00021384
|
||||
// End Line: 1538
|
||||
@ -632,8 +632,8 @@ void plotCarPolyGT3nolight(int numTris, CAR_POLY *src, SVECTOR *vlist, plotCarGl
|
||||
// Start line: 1542
|
||||
// Start offset: 0x00021384
|
||||
// Variables:
|
||||
// struct VECTOR d; // stack offset -104
|
||||
// struct VECTOR dist; // stack offset -88
|
||||
// VECTOR d; // stack offset -104
|
||||
// VECTOR dist; // stack offset -88
|
||||
/* end block 1.2.2 */
|
||||
// End offset: 0x000214D8
|
||||
// End Line: 1559
|
||||
@ -651,8 +651,8 @@ void plotCarPolyGT3nolight(int numTris, CAR_POLY *src, SVECTOR *vlist, plotCarGl
|
||||
// Start line: 1627
|
||||
// Start offset: 0x000215A4
|
||||
// Variables:
|
||||
// struct MATRIX workmatrix; // stack offset -104
|
||||
// struct CAR_MODEL *CarModelPtr; // $s1
|
||||
// MATRIX workmatrix; // stack offset -104
|
||||
// CAR_MODEL *CarModelPtr; // $s1
|
||||
|
||||
/* begin block 1.2.4.1 */
|
||||
// Start line: 1635
|
||||
@ -674,13 +674,13 @@ void plotCarPolyGT3nolight(int numTris, CAR_POLY *src, SVECTOR *vlist, plotCarGl
|
||||
// Start line: 1706
|
||||
// Start offset: 0x000217BC
|
||||
// Variables:
|
||||
// struct CAR_MODEL *CarModelPtr; // $s0
|
||||
// CAR_MODEL *CarModelPtr; // $s0
|
||||
|
||||
/* begin block 1.2.5.1.1 */
|
||||
// Start line: 1706
|
||||
// Start offset: 0x000217BC
|
||||
// Variables:
|
||||
// struct MATRIX workmatrix; // stack offset -72
|
||||
// MATRIX workmatrix; // stack offset -72
|
||||
/* end block 1.2.5.1.1 */
|
||||
// End offset: 0x000218BC
|
||||
// End Line: 1735
|
||||
@ -719,7 +719,7 @@ char RightLight = 0;
|
||||
char TransparentObject = 0;
|
||||
|
||||
// [D] [T] [A]
|
||||
void DrawCar(_CAR_DATA *cp, int view)
|
||||
void DrawCar(CAR_DATA *cp, int view)
|
||||
{
|
||||
int yVal;
|
||||
int maxDamage;
|
||||
@ -990,7 +990,7 @@ void DrawCar(_CAR_DATA *cp, int view)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DrawCarObject(struct CAR_MODEL *car /*$s0*/, struct MATRIX *matrix /*$a1*/, struct VECTOR *pos /*$a2*/, struct VECTOR *pos1 /*$a3*/, int palette /*stack 16*/, struct _CAR_DATA *cp /*stack 20*/, int detail /*stack 24*/)
|
||||
// void /*$ra*/ DrawCarObject(CAR_MODEL *car /*$s0*/, MATRIX *matrix /*$a1*/, VECTOR *pos /*$a2*/, VECTOR *pos1 /*$a3*/, int palette /*stack 16*/, CAR_DATA *cp /*stack 20*/, int detail /*stack 24*/)
|
||||
// line 1793, offset 0x000233dc
|
||||
/* begin block 1 */
|
||||
// Start line: 1794
|
||||
@ -1000,8 +1000,8 @@ void DrawCar(_CAR_DATA *cp, int view)
|
||||
// Start line: 1794
|
||||
// Start offset: 0x000233DC
|
||||
// Variables:
|
||||
// struct SVECTOR cog; // stack offset -40
|
||||
// struct VECTOR modelLocation; // stack offset -32
|
||||
// SVECTOR cog; // stack offset -40
|
||||
// VECTOR modelLocation; // stack offset -32
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x000233DC
|
||||
// End Line: 1794
|
||||
@ -1024,7 +1024,7 @@ void DrawCar(_CAR_DATA *cp, int view)
|
||||
// End Line: 3587
|
||||
|
||||
// [D] [T]
|
||||
void DrawCarObject(CAR_MODEL *car, MATRIX *matrix, VECTOR *pos, int palette, _CAR_DATA *cp, int detail)
|
||||
void DrawCarObject(CAR_MODEL *car, MATRIX *matrix, VECTOR *pos, int palette, CAR_DATA *cp, int detail)
|
||||
{
|
||||
static unsigned long savedSP;
|
||||
VECTOR modelLocation;
|
||||
@ -1054,17 +1054,17 @@ void DrawCarObject(CAR_MODEL *car, MATRIX *matrix, VECTOR *pos, int palette, _CA
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DrawCarWheels(struct _CAR_DATA *cp /*$fp*/, struct MATRIX *RearMatrix /*stack 4*/, struct VECTOR *pos /*stack 8*/, int zclip /*$a3*/)
|
||||
// void /*$ra*/ DrawCarWheels(CAR_DATA *cp /*$fp*/, MATRIX *RearMatrix /*stack 4*/, VECTOR *pos /*stack 8*/, int zclip /*$a3*/)
|
||||
// line 1850, offset 0x00021af8
|
||||
/* begin block 1 */
|
||||
// Start line: 1851
|
||||
// Start offset: 0x00021AF8
|
||||
// Variables:
|
||||
// struct CAR_COSMETICS *car_cos; // $s0
|
||||
// struct MATRIX FrontMatrix; // stack offset -144
|
||||
// struct MODEL *WheelModel; // $s0
|
||||
// struct MODEL *WheelModelBack; // stack offset -56
|
||||
// struct MODEL *WheelModelFront; // stack offset -52
|
||||
// CAR_COSMETICS *car_cos; // $s0
|
||||
// MATRIX FrontMatrix; // stack offset -144
|
||||
// MODEL *WheelModel; // $s0
|
||||
// MODEL *WheelModelBack; // stack offset -56
|
||||
// MODEL *WheelModelFront; // stack offset -52
|
||||
// int i; // $s4
|
||||
// static short FrontWheelRotation[20]; // offset 0x0
|
||||
// static short BackWheelRotation[20]; // offset 0x30
|
||||
@ -1091,7 +1091,7 @@ void DrawCarObject(CAR_MODEL *car, MATRIX *matrix, VECTOR *pos, int palette, _CA
|
||||
// int FW2z; // $a0
|
||||
// int BW1z; // $v0
|
||||
// int BW2z; // $a3
|
||||
// struct SVECTOR *VertPtr; // $t6
|
||||
// SVECTOR *VertPtr; // $t6
|
||||
/* end block 1.2 */
|
||||
// End offset: 0x00021CD0
|
||||
// End Line: 1926
|
||||
@ -1100,7 +1100,7 @@ void DrawCarObject(CAR_MODEL *car, MATRIX *matrix, VECTOR *pos, int palette, _CA
|
||||
// Start line: 1926
|
||||
// Start offset: 0x00021CD0
|
||||
// Variables:
|
||||
// struct MATRIX SteerMatrix; // stack offset -112
|
||||
// MATRIX SteerMatrix; // stack offset -112
|
||||
/* end block 1.3 */
|
||||
// End offset: 0x00021CD0
|
||||
// End Line: 1926
|
||||
@ -1109,14 +1109,14 @@ void DrawCarObject(CAR_MODEL *car, MATRIX *matrix, VECTOR *pos, int palette, _CA
|
||||
// Start line: 1988
|
||||
// Start offset: 0x00021FA4
|
||||
// Variables:
|
||||
// struct SVECTOR *verts; // $s5
|
||||
// SVECTOR *verts; // $s5
|
||||
|
||||
/* begin block 1.4.1 */
|
||||
// Start line: 2007
|
||||
// Start offset: 0x00021FF8
|
||||
// Variables:
|
||||
// struct VECTOR WheelPos; // stack offset -80
|
||||
// struct SVECTOR sWheelPos; // stack offset -64
|
||||
// VECTOR WheelPos; // stack offset -80
|
||||
// SVECTOR sWheelPos; // stack offset -64
|
||||
/* end block 1.4.1 */
|
||||
// End offset: 0x00022028
|
||||
// End Line: 2012
|
||||
@ -1146,7 +1146,7 @@ short FrontWheelRotation[MAX_CARS]; // offset 0x0
|
||||
short BackWheelRotation[MAX_CARS]; // offset 0x30
|
||||
|
||||
// [D] [T]
|
||||
void DrawCarWheels(_CAR_DATA *cp, MATRIX *RearMatrix, VECTOR *pos, int zclip)
|
||||
void DrawCarWheels(CAR_DATA *cp, MATRIX *RearMatrix, VECTOR *pos, int zclip)
|
||||
{
|
||||
short wheelSize;
|
||||
int FW1z;
|
||||
@ -1361,14 +1361,14 @@ void DrawCarWheels(_CAR_DATA *cp, MATRIX *RearMatrix, VECTOR *pos, int zclip)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DrawWheelObject(struct MODEL *model /*$t2*/, struct SVECTOR *verts /*$t4*/, int transparent /*$a2*/, int wheelnum /*$a3*/)
|
||||
// void /*$ra*/ DrawWheelObject(MODEL *model /*$t2*/, SVECTOR *verts /*$t4*/, int transparent /*$a2*/, int wheelnum /*$a3*/)
|
||||
// line 2058, offset 0x00022180
|
||||
/* begin block 1 */
|
||||
// Start line: 2059
|
||||
// Start offset: 0x00022180
|
||||
// Variables:
|
||||
// struct POLY_FT4 *prims; // $t0
|
||||
// struct POLYFT4LIT *src; // $t1
|
||||
// POLY_FT4 *prims; // $t0
|
||||
// POLYFT4LIT *src; // $t1
|
||||
// int i; // $t2
|
||||
// int Z; // stack offset -4
|
||||
// int clut; // $t8
|
||||
@ -1505,7 +1505,7 @@ void DrawWheelObject(MODEL *model, SVECTOR *verts, int transparent, int wheelnum
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ PlayerCarFX(struct _CAR_DATA *cp /*$s0*/)
|
||||
// void /*$ra*/ PlayerCarFX(CAR_DATA *cp /*$s0*/)
|
||||
// line 2152, offset 0x000234dc
|
||||
/* begin block 1 */
|
||||
// Start line: 2153
|
||||
@ -1532,7 +1532,7 @@ void DrawWheelObject(MODEL *model, SVECTOR *verts, int transparent, int wheelnum
|
||||
// End Line: 6921
|
||||
|
||||
// [D] [T]
|
||||
void PlayerCarFX(_CAR_DATA *cp)
|
||||
void PlayerCarFX(CAR_DATA *cp)
|
||||
{
|
||||
int WheelSpeed;
|
||||
WheelSpeed = cp->hd.wheel_speed;
|
||||
@ -1559,30 +1559,30 @@ void PlayerCarFX(_CAR_DATA *cp)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ ComputeCarLightingLevels(struct _CAR_DATA *cp /*$s1*/, char detail /*$s3*/)
|
||||
// void /*$ra*/ ComputeCarLightingLevels(CAR_DATA *cp /*$s1*/, char detail /*$s3*/)
|
||||
// line 2198, offset 0x00022458
|
||||
/* begin block 1 */
|
||||
// Start line: 2199
|
||||
// Start offset: 0x00022458
|
||||
// Variables:
|
||||
// int light; // $s2
|
||||
// struct SVECTOR lightsourcevector; // stack offset -96
|
||||
// struct SVECTOR colour; // stack offset -88
|
||||
// struct VECTOR lightValues; // stack offset -80
|
||||
// struct VECTOR *orient; // $s0
|
||||
// SVECTOR lightsourcevector; // stack offset -96
|
||||
// SVECTOR colour; // stack offset -88
|
||||
// VECTOR lightValues; // stack offset -80
|
||||
// VECTOR *orient; // $s0
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 2270
|
||||
// Start offset: 0x0002270C
|
||||
// Variables:
|
||||
// struct MODEL *model; // $v1
|
||||
// struct SVECTOR *norms; // $a3
|
||||
// struct SVECTOR *ppads; // $a2
|
||||
// MODEL *model; // $v1
|
||||
// SVECTOR *norms; // $a3
|
||||
// SVECTOR *ppads; // $a2
|
||||
// int num_norms; // $a1
|
||||
// int count; // $a1
|
||||
// struct CVECTOR c0; // stack offset -64
|
||||
// struct CVECTOR c1; // stack offset -56
|
||||
// struct CVECTOR c2; // stack offset -48
|
||||
// CVECTOR c0; // stack offset -64
|
||||
// CVECTOR c1; // stack offset -56
|
||||
// CVECTOR c2; // stack offset -48
|
||||
|
||||
/* begin block 1.1.1 */
|
||||
// Start line: 2276
|
||||
@ -1618,7 +1618,7 @@ void PlayerCarFX(_CAR_DATA *cp)
|
||||
|
||||
|
||||
// [D] [T]
|
||||
void ComputeCarLightingLevels(_CAR_DATA *cp, char detail)
|
||||
void ComputeCarLightingLevels(CAR_DATA *cp, char detail)
|
||||
{
|
||||
MATRIX scratchPadMat; // 0x1f800344
|
||||
|
||||
@ -1777,7 +1777,7 @@ void buildNewCars(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ buildNewCarFromModel(struct CAR_MODEL *car /*$s5*/, struct MODEL *model /*$s7*/, int first /*$a2*/)
|
||||
// void /*$ra*/ buildNewCarFromModel(CAR_MODEL *car /*$s5*/, MODEL *model /*$s7*/, int first /*$a2*/)
|
||||
// line 2357, offset 0x00022960
|
||||
/* begin block 1 */
|
||||
// Start line: 2358
|
||||
@ -1792,7 +1792,7 @@ void buildNewCars(void)
|
||||
// Start line: 2394
|
||||
// Start offset: 0x00022A9C
|
||||
// Variables:
|
||||
// struct CAR_POLY *p; // $s1
|
||||
// CAR_POLY *p; // $s1
|
||||
// char ptype; // $s6
|
||||
|
||||
/* begin block 1.1.1 */
|
||||
@ -2091,8 +2091,8 @@ void buildNewCarFromModel(CAR_MODEL *car, MODEL *model, int first)
|
||||
// Start offset: 0x000230C8
|
||||
// Variables:
|
||||
// int i; // $v1
|
||||
// struct MODEL *m; // $t0
|
||||
// struct POLYFT4LIT *src; // $a0
|
||||
// MODEL *m; // $t0
|
||||
// POLYFT4LIT *src; // $a0
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 2610
|
||||
|
@ -6,10 +6,10 @@
|
||||
#define IS_ROADBLOCK_CAR(cp) (cp->controlType == CONTROL_TYPE_CIV_AI && (cp->controlFlags & CONTROL_FLAG_COP_SLEEPING))
|
||||
|
||||
// PHYSICS
|
||||
extern _CAR_DATA car_data[MAX_CARS + 2]; // all cars + Tanner cbox + Camera cbox
|
||||
extern CAR_DATA car_data[MAX_CARS + 2]; // all cars + Tanner cbox + Camera cbox
|
||||
|
||||
// active cars
|
||||
extern _CAR_DATA* active_car_list[MAX_CARS];
|
||||
extern CAR_DATA* active_car_list[MAX_CARS];
|
||||
extern BOUND_BOX bbox[MAX_CARS];
|
||||
extern unsigned char lightsOnDelay[MAX_CARS];
|
||||
|
||||
@ -44,17 +44,17 @@ extern void plotCarPolyGT3(int numTris, CAR_POLY *src, SVECTOR *vlist, SVECTOR *
|
||||
|
||||
extern void plotCarPolyGT3nolight(int numTris, CAR_POLY *src, SVECTOR *vlist, plotCarGlobals *pg, int palette); // 0x00023A20
|
||||
|
||||
extern void DrawCar(_CAR_DATA *cp, int view); // 0x000210B8
|
||||
extern void DrawCar(CAR_DATA *cp, int view); // 0x000210B8
|
||||
|
||||
extern void DrawCarObject(CAR_MODEL *car, MATRIX *matrix, VECTOR *pos, int palette, _CAR_DATA *cp, int detail); // 0x000233DC
|
||||
extern void DrawCarObject(CAR_MODEL *car, MATRIX *matrix, VECTOR *pos, int palette, CAR_DATA *cp, int detail); // 0x000233DC
|
||||
|
||||
extern void DrawCarWheels(_CAR_DATA *cp, MATRIX *RearMatrix, VECTOR *pos, int zclip); // 0x00021AF8
|
||||
extern void DrawCarWheels(CAR_DATA *cp, MATRIX *RearMatrix, VECTOR *pos, int zclip); // 0x00021AF8
|
||||
|
||||
extern void DrawWheelObject(MODEL *model, SVECTOR *verts, int transparent, int wheelnum); // 0x00022180
|
||||
|
||||
extern void PlayerCarFX(_CAR_DATA *cp); // 0x000234DC
|
||||
extern void PlayerCarFX(CAR_DATA *cp); // 0x000234DC
|
||||
|
||||
extern void ComputeCarLightingLevels(_CAR_DATA *cp, char detail); // 0x00022458
|
||||
extern void ComputeCarLightingLevels(CAR_DATA *cp, char detail); // 0x00022458
|
||||
|
||||
extern void buildNewCars(); // 0x00022860
|
||||
|
||||
|
@ -41,13 +41,13 @@ void ClearCopUsage(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// struct PACKED_CELL_OBJECT * /*$ra*/ GetFirstPackedCop(int cellx /*$t3*/, int cellz /*$a1*/, struct CELL_ITERATOR *pci /*$a2*/, int use_computed /*$a3*/)
|
||||
// PACKED_CELL_OBJECT * /*$ra*/ GetFirstPackedCop(int cellx /*$t3*/, int cellz /*$a1*/, CELL_ITERATOR *pci /*$a2*/, int use_computed /*$a3*/)
|
||||
// line 67, offset 0x00023bac
|
||||
/* begin block 1 */
|
||||
// Start line: 68
|
||||
// Start offset: 0x00023BAC
|
||||
// Variables:
|
||||
// struct PACKED_CELL_OBJECT *ppco; // $a1
|
||||
// PACKED_CELL_OBJECT *ppco; // $a1
|
||||
// unsigned short index; // $a0
|
||||
// unsigned short num; // $t0
|
||||
// int cbrx; // $t0
|
||||
@ -161,13 +161,13 @@ PACKED_CELL_OBJECT * GetFirstPackedCop(int cellx, int cellz, CELL_ITERATOR *pci,
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// struct PACKED_CELL_OBJECT * /*$ra*/ GetNextPackedCop(struct CELL_ITERATOR *pci /*$a0*/)
|
||||
// PACKED_CELL_OBJECT * /*$ra*/ GetNextPackedCop(CELL_ITERATOR *pci /*$a0*/)
|
||||
// line 813, offset 0x0003f5f0
|
||||
/* begin block 1 */
|
||||
// Start line: 814
|
||||
// Start offset: 0x0003F5F0
|
||||
// Variables:
|
||||
// struct PACKED_CELL_OBJECT *ppco; // $a3
|
||||
// PACKED_CELL_OBJECT *ppco; // $a3
|
||||
// unsigned short num; // $a1
|
||||
/* end block 1 */
|
||||
// End offset: 0x0003F6B0
|
||||
@ -231,13 +231,13 @@ PACKED_CELL_OBJECT* GetNextPackedCop(CELL_ITERATOR* pci)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// struct CELL_OBJECT * /*$ra*/ UnpackCellObject(struct PACKED_CELL_OBJECT *ppco /*$a3*/, struct XZPAIR *near /*$t0*/)
|
||||
// CELL_OBJECT * /*$ra*/ UnpackCellObject(PACKED_CELL_OBJECT *ppco /*$a3*/, XZPAIR *near /*$t0*/)
|
||||
// line 854, offset 0x000418e8
|
||||
/* begin block 1 */
|
||||
// Start line: 855
|
||||
// Start offset: 0x000418E8
|
||||
// Variables:
|
||||
// struct CELL_OBJECT *pco; // $a2
|
||||
// CELL_OBJECT *pco; // $a2
|
||||
/* end block 1 */
|
||||
// End offset: 0x000419A8
|
||||
// End Line: 870
|
||||
|
@ -5,10 +5,10 @@ extern unsigned char cell_object_computed_values[2048];
|
||||
|
||||
extern void ClearCopUsage(); // 0x00023DC0
|
||||
|
||||
extern struct PACKED_CELL_OBJECT * GetFirstPackedCop(int cellx, int cellz, struct CELL_ITERATOR *pci, int use_computed); // 0x00023BAC
|
||||
extern PACKED_CELL_OBJECT * GetFirstPackedCop(int cellx, int cellz, CELL_ITERATOR *pci, int use_computed); // 0x00023BAC
|
||||
|
||||
extern struct PACKED_CELL_OBJECT* GetNextPackedCop(struct CELL_ITERATOR* pci); // 0x0003F5F0
|
||||
extern PACKED_CELL_OBJECT* GetNextPackedCop(CELL_ITERATOR* pci); // 0x0003F5F0
|
||||
|
||||
extern struct CELL_OBJECT* UnpackCellObject(struct PACKED_CELL_OBJECT* ppco, struct XZPAIR* near); // 0x000418E8
|
||||
extern CELL_OBJECT* UnpackCellObject(PACKED_CELL_OBJECT* ppco, XZPAIR* near); // 0x000418E8
|
||||
|
||||
#endif
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -12,33 +12,33 @@ extern char makeLimoPullOver;
|
||||
|
||||
extern char junctionLightsPhase[2];
|
||||
|
||||
extern int InitCar(_CAR_DATA *cp, int direction, long (*startPos)[4], unsigned char control, int model, int palette, char *extraData); // 0x00023DE8
|
||||
extern int InitCar(CAR_DATA *cp, int direction, LONGVECTOR* startPos, unsigned char control, int model, int palette, char *extraData); // 0x00023DE8
|
||||
|
||||
extern _CAR_DATA * FindClosestCar(int x, int y, int z, int *distToCarSq); // 0x0002D11C
|
||||
extern CAR_DATA * FindClosestCar(int x, int y, int z, int *distToCarSq); // 0x0002D11C
|
||||
|
||||
extern int NotTravellingAlongCurve(int x, int z, int dir, DRIVER2_CURVE *cv); // 0x0002D24C
|
||||
|
||||
extern void CivCarFX(_CAR_DATA *cp); // 0x0002D084
|
||||
extern void CivCarFX(CAR_DATA *cp); // 0x0002D084
|
||||
|
||||
extern int GetNextRoadInfo(_CAR_DATA *cp, int randomExit, int *turnAngle, int *startDist, CIV_ROUTE_ENTRY *oldNode); // 0x00024028
|
||||
extern int GetNextRoadInfo(CAR_DATA *cp, int randomExit, int *turnAngle, int *startDist, CIV_ROUTE_ENTRY *oldNode); // 0x00024028
|
||||
|
||||
extern void InitNodeList(_CAR_DATA *cp, EXTRA_CIV_DATA *extraData); // 0x00026964
|
||||
extern void InitNodeList(CAR_DATA *cp, EXTRA_CIV_DATA *extraData); // 0x00026964
|
||||
|
||||
extern int GetNodePos(DRIVER2_STRAIGHT *straight, DRIVER2_JUNCTION *junction, DRIVER2_CURVE *curve, int distAlongPath, _CAR_DATA *cp, int *x, int *z, int laneNo); // 0x00026CAC
|
||||
extern int GetNodePos(DRIVER2_STRAIGHT *straight, DRIVER2_JUNCTION *junction, DRIVER2_CURVE *curve, int distAlongPath, CAR_DATA *cp, int *x, int *z, int laneNo); // 0x00026CAC
|
||||
|
||||
extern int CheckChangeLanes(DRIVER2_STRAIGHT *straight, DRIVER2_CURVE *curve, int distAlongSegment, _CAR_DATA *cp, int tryToPark); // 0x00026F20
|
||||
extern int CheckChangeLanes(DRIVER2_STRAIGHT *straight, DRIVER2_CURVE *curve, int distAlongSegment, CAR_DATA *cp, int tryToPark); // 0x00026F20
|
||||
|
||||
extern int CreateNewNode(_CAR_DATA *cp); // 0x00027530
|
||||
extern int CreateNewNode(CAR_DATA *cp); // 0x00027530
|
||||
|
||||
extern int InitCivState(_CAR_DATA *cp, EXTRA_CIV_DATA *extraData); // 0x000280D8
|
||||
extern int InitCivState(CAR_DATA *cp, EXTRA_CIV_DATA *extraData); // 0x000280D8
|
||||
|
||||
extern int PingOutCar(_CAR_DATA *cp); // 0x0002CF80
|
||||
extern int PingOutCar(CAR_DATA *cp); // 0x0002CF80
|
||||
|
||||
extern int PingOutAllSpecialCivCars(); // 0x000282E8
|
||||
|
||||
extern int PingOutAllCivCarsAndCopCars(); // 0x0002840C
|
||||
|
||||
extern int CheckPingOut(_CAR_DATA *cp); // 0x00028554
|
||||
extern int CheckPingOut(CAR_DATA *cp); // 0x00028554
|
||||
|
||||
extern void SetUpTrafficLightPhase(); // 0x0002D220
|
||||
|
||||
@ -46,27 +46,27 @@ extern int TrafficLightCycle(int exit); // 0x0002CF18
|
||||
|
||||
extern void InitCivCars(); // 0x0002CDA4
|
||||
|
||||
extern int CreateCivCarWotDrivesABitThenStops(int direction, long (*startPos)[4], long (*stopPos)[4], unsigned char internalModel, int palette); // 0x000286E0
|
||||
extern int CreateCivCarWotDrivesABitThenStops(int direction, LONGVECTOR* startPos, LONGVECTOR* stopPos, unsigned char internalModel, int palette); // 0x000286E0
|
||||
|
||||
extern int CreateStationaryCivCar(int direction, long orientX, long orientZ, long (*startPos)[4], int externalModel, int palette, int controlFlags); // 0x00028960
|
||||
extern int CreateStationaryCivCar(int direction, long orientX, long orientZ, LONGVECTOR* startPos, int externalModel, int palette, int controlFlags); // 0x00028960
|
||||
|
||||
extern int PingInCivCar(int minPingInDist); // 0x00028DB4
|
||||
|
||||
extern void AttemptUnPark(_CAR_DATA *cp); // 0x0002A4C4
|
||||
extern void AttemptUnPark(CAR_DATA *cp); // 0x0002A4C4
|
||||
|
||||
extern int CivControl(_CAR_DATA *cp); // 0x0002CE10
|
||||
extern int CivControl(CAR_DATA *cp); // 0x0002CE10
|
||||
|
||||
extern int CivAccelTrafficRules(_CAR_DATA *cp, int *distToNode); // 0x0002A5FC
|
||||
extern int CivAccelTrafficRules(CAR_DATA *cp, int *distToNode); // 0x0002A5FC
|
||||
|
||||
extern void SetUpCivCollFlags(); // 0x0002ABA8
|
||||
|
||||
extern int CivAccel(_CAR_DATA *cp); // 0x0002B26C
|
||||
extern int CivAccel(CAR_DATA *cp); // 0x0002B26C
|
||||
|
||||
extern int CivSteerAngle(_CAR_DATA *cp); // 0x0002B53C
|
||||
extern int CivSteerAngle(CAR_DATA *cp); // 0x0002B53C
|
||||
|
||||
extern int CivFindStation(_CAR_DATA *cp); // 0x0002B8E4
|
||||
extern int CivFindStation(CAR_DATA *cp); // 0x0002B8E4
|
||||
|
||||
extern int CivFindPointOnPath(_CAR_DATA *cp, int station, VECTOR *ppoint); // 0x0002BAEC
|
||||
extern int CivFindPointOnPath(CAR_DATA *cp, int station, VECTOR *ppoint); // 0x0002BAEC
|
||||
|
||||
extern void CreateRoadblock(); // 0x0002BCF4
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ Calc_Object_MatrixYZX(struct MATRIX *mat /*$s0*/, struct SVECTOR *angles /*$s1*/)
|
||||
// void /*$ra*/ Calc_Object_MatrixYZX(MATRIX *mat /*$s0*/, SVECTOR *angles /*$s1*/)
|
||||
// line 149, offset 0x0002d3f8
|
||||
/* begin block 1 */
|
||||
// Start line: 298
|
||||
@ -36,7 +36,7 @@ void Calc_Object_MatrixYZX(MATRIX *mat, SVECTOR *angles)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ _RotMatrixX(struct MATRIX *m /*$v0*/, short ang /*$a1*/)
|
||||
// void /*$ra*/ _RotMatrixX(MATRIX *m /*$v0*/, short ang /*$a1*/)
|
||||
// line 182, offset 0x0002d470
|
||||
/* begin block 1 */
|
||||
// Start line: 508
|
||||
@ -53,7 +53,7 @@ void _RotMatrixX(MATRIX *m, short ang)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ _RotMatrixY(struct MATRIX *m /*$v0*/, short ang /*$a1*/)
|
||||
// void /*$ra*/ _RotMatrixY(MATRIX *m /*$v0*/, short ang /*$a1*/)
|
||||
// line 187, offset 0x0002d49c
|
||||
/* begin block 1 */
|
||||
// Start line: 519
|
||||
@ -70,7 +70,7 @@ void _RotMatrixY(MATRIX *m, short ang)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ _RotMatrixZ(struct MATRIX *m /*$v0*/, short ang /*$a1*/)
|
||||
// void /*$ra*/ _RotMatrixZ(MATRIX *m /*$v0*/, short ang /*$a1*/)
|
||||
// line 192, offset 0x0002d4c8
|
||||
/* begin block 1 */
|
||||
// Start line: 530
|
||||
@ -87,7 +87,7 @@ void _RotMatrixZ(MATRIX *m, short ang)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ RotMatrixXYZ(struct MATRIX *m /*$v0*/, struct SVECTOR *r /*$a1*/)
|
||||
// void /*$ra*/ RotMatrixXYZ(MATRIX *m /*$v0*/, SVECTOR *r /*$a1*/)
|
||||
// line 199, offset 0x0002d4f4
|
||||
/* begin block 1 */
|
||||
// Start line: 545
|
||||
@ -104,13 +104,13 @@ void RotMatrixXYZ(MATRIX *m, SVECTOR *r)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ _MatrixRotate(struct VECTOR *pos /*$s0*/)
|
||||
// void /*$ra*/ _MatrixRotate(VECTOR *pos /*$s0*/)
|
||||
// line 205, offset 0x0002d51c
|
||||
/* begin block 1 */
|
||||
// Start line: 206
|
||||
// Start offset: 0x0002D51C
|
||||
// Variables:
|
||||
// struct VECTOR temp; // stack offset -24
|
||||
// VECTOR temp; // stack offset -24
|
||||
/* end block 1 */
|
||||
// End offset: 0x0002D55C
|
||||
// End Line: 214
|
||||
@ -136,7 +136,7 @@ void _MatrixRotate(VECTOR *pos)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ InvertMatrix(struct MATRIX *a /*$a0*/, struct MATRIX *b /*$a1*/)
|
||||
// void /*$ra*/ InvertMatrix(MATRIX *a /*$a0*/, MATRIX *b /*$a1*/)
|
||||
// line 240, offset 0x0002d55c
|
||||
/* begin block 1 */
|
||||
// Start line: 620
|
||||
@ -177,7 +177,7 @@ void InvertMatrix(MATRIX *a, MATRIX *b)
|
||||
// Start line: 274
|
||||
// Start offset: 0x0002D304
|
||||
// Variables:
|
||||
// struct MATRIX newmatrix; // stack offset -48
|
||||
// MATRIX newmatrix; // stack offset -48
|
||||
/* end block 1 */
|
||||
// End offset: 0x0002D3F8
|
||||
// End Line: 289
|
||||
@ -242,12 +242,12 @@ void BuildWorldMatrix(void)
|
||||
// Start line: 336
|
||||
// Start offset: 0x0002D5C8
|
||||
// Variables:
|
||||
// struct MATRIX temp; // stack offset -160
|
||||
// struct MATRIX temp2; // stack offset -128
|
||||
// struct MATRIX scale; // stack offset -96
|
||||
// struct MATRIX scaledcammat; // stack offset -64
|
||||
// struct VECTOR pos; // stack offset -32
|
||||
// struct SVECTOR tempang; // stack offset -16
|
||||
// MATRIX temp; // stack offset -160
|
||||
// MATRIX temp2; // stack offset -128
|
||||
// MATRIX scale; // stack offset -96
|
||||
// MATRIX scaledcammat; // stack offset -64
|
||||
// VECTOR pos; // stack offset -32
|
||||
// SVECTOR tempang; // stack offset -16
|
||||
/* end block 1 */
|
||||
// End offset: 0x0002D678
|
||||
// End Line: 361
|
||||
|
@ -60,7 +60,7 @@ COP_SIGHT_DATA copSightData;
|
||||
int player_position_known = 0;
|
||||
VECTOR lastKnownPosition;
|
||||
VECTOR CarTail;
|
||||
_CAR_DATA *targetVehicle;
|
||||
CAR_DATA *targetVehicle;
|
||||
|
||||
int numActiveCops = 0;
|
||||
int pathStraight = 0;
|
||||
@ -70,7 +70,7 @@ int OutOfSightCount = 0;
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ InitCopState(struct _CAR_DATA *cp /*$s0*/, char *extraData /*$a1*/)
|
||||
// void /*$ra*/ InitCopState(CAR_DATA *cp /*$s0*/, char *extraData /*$a1*/)
|
||||
// line 577, offset 0x0002f680
|
||||
/* begin block 1 */
|
||||
// Start line: 2675
|
||||
@ -83,7 +83,7 @@ int OutOfSightCount = 0;
|
||||
// End Line: 1155
|
||||
|
||||
// [D] [T]
|
||||
void InitCopState(_CAR_DATA *cp, char *extraData)
|
||||
void InitCopState(CAR_DATA *cp, char *extraData)
|
||||
{
|
||||
ClearMem((char *)&cp->ai.p, sizeof(COP));
|
||||
|
||||
@ -121,7 +121,7 @@ int ReplayLog_Fnarr_He_Said_Log(int val)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ WibbleDownTheRoad(struct VECTOR *from /*$a0*/, int distance /*$s1*/, struct VECTOR *to /*$s5*/)
|
||||
// void /*$ra*/ WibbleDownTheRoad(VECTOR *from /*$a0*/, int distance /*$s1*/, VECTOR *to /*$s5*/)
|
||||
// line 593, offset 0x0002d78c
|
||||
/* begin block 1 */
|
||||
// Start line: 594
|
||||
@ -130,15 +130,15 @@ int ReplayLog_Fnarr_He_Said_Log(int val)
|
||||
// int th; // $s0
|
||||
// int j; // $s3
|
||||
// int thl[4]; // stack offset -136
|
||||
// struct VECTOR pos; // stack offset -120
|
||||
// struct VECTOR dir; // stack offset -104
|
||||
// VECTOR pos; // stack offset -120
|
||||
// VECTOR dir; // stack offset -104
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 604
|
||||
// Start offset: 0x0002D810
|
||||
// Variables:
|
||||
// struct VECTOR p2; // stack offset -88
|
||||
// struct VECTOR d2; // stack offset -72
|
||||
// VECTOR p2; // stack offset -88
|
||||
// VECTOR d2; // stack offset -72
|
||||
// int colour[3]; // stack offset -56
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x0002D89C
|
||||
@ -542,7 +542,7 @@ void ControlCops(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ CopControl(struct _CAR_DATA *cp /*$s1*/)
|
||||
// void /*$ra*/ CopControl(CAR_DATA *cp /*$s1*/)
|
||||
// line 824, offset 0x0002f60c
|
||||
/* begin block 1 */
|
||||
// Start line: 825
|
||||
@ -562,7 +562,7 @@ void ControlCops(void)
|
||||
// End Line: 1649
|
||||
|
||||
// [D] [T]
|
||||
void CopControl(_CAR_DATA *cp)
|
||||
void CopControl(CAR_DATA *cp)
|
||||
{
|
||||
CopControl1(cp);
|
||||
|
||||
@ -579,7 +579,7 @@ void CopControl(_CAR_DATA *cp)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ CopControl1(struct _CAR_DATA *cp /*$s1*/)
|
||||
// void /*$ra*/ CopControl1(CAR_DATA *cp /*$s1*/)
|
||||
// line 845, offset 0x0002defc
|
||||
/* begin block 1 */
|
||||
// Start line: 846
|
||||
@ -609,7 +609,7 @@ void CopControl(_CAR_DATA *cp)
|
||||
// Start line: 912
|
||||
// Start offset: 0x0002E070
|
||||
// Variables:
|
||||
// struct VECTOR pos; // stack offset -88
|
||||
// VECTOR pos; // stack offset -88
|
||||
/* end block 1.2 */
|
||||
// End offset: 0x0002E23C
|
||||
// End Line: 922
|
||||
@ -618,8 +618,8 @@ void CopControl(_CAR_DATA *cp)
|
||||
// Start line: 935
|
||||
// Start offset: 0x0002E23C
|
||||
// Variables:
|
||||
// enum AIZone targetZone; // $a0
|
||||
// struct VECTOR doordir; // stack offset -72
|
||||
// AIZone targetZone; // $a0
|
||||
// VECTOR doordir; // stack offset -72
|
||||
// int targetFound; // $a1
|
||||
// int cx; // $s5
|
||||
// int cz; // $s6
|
||||
@ -643,7 +643,7 @@ void CopControl(_CAR_DATA *cp)
|
||||
// Start line: 1049
|
||||
// Start offset: 0x0002E5E4
|
||||
// Variables:
|
||||
// struct iVectNT path[2]; // stack offset -56
|
||||
// iVectNT path[2]; // stack offset -56
|
||||
// int slidevel; // $a3
|
||||
|
||||
/* begin block 1.3.2.1 */
|
||||
@ -708,7 +708,7 @@ void CopControl(_CAR_DATA *cp)
|
||||
VECTOR targetPoint = { 0,0,0 };
|
||||
|
||||
// [D]
|
||||
void CopControl1(_CAR_DATA *cp)
|
||||
void CopControl1(CAR_DATA *cp)
|
||||
{
|
||||
int targetFound;
|
||||
int steeringFac;
|
||||
@ -1099,7 +1099,7 @@ void CopControl1(_CAR_DATA *cp)
|
||||
if (cp->ai.p.justPinged == 1)
|
||||
{
|
||||
cp->hd.direction = getHeadingToPlayer(cp->hd.where.t[0], cp->hd.where.t[1], cp->hd.where.t[2]);
|
||||
TempBuildHandlingMatrix((_CAR_DATA*)cp, 0);
|
||||
TempBuildHandlingMatrix((CAR_DATA*)cp, 0);
|
||||
|
||||
cp->ai.p.justPinged = 0;
|
||||
}
|
||||
@ -1181,7 +1181,7 @@ int FindCost(int x, int z, int dvx, int dvz)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ InitCopData(struct COP_DATA *pCopData /*$a0*/)
|
||||
// void /*$ra*/ InitCopData(COP_DATA *pCopData /*$a0*/)
|
||||
// line 1267, offset 0x0002f7f8
|
||||
/* begin block 1 */
|
||||
// Start line: 1268
|
||||
@ -1296,11 +1296,11 @@ void UpdateCopSightData(void)
|
||||
// Variables:
|
||||
// int dx; // $v1
|
||||
// int dz; // $a0
|
||||
// struct VECTOR vec; // stack offset -64
|
||||
// VECTOR vec; // stack offset -64
|
||||
// int ccx; // stack offset -32
|
||||
// int ccz; // stack offset -28
|
||||
// char *scratch; // $s4
|
||||
// struct _CAR_DATA *lcp; // $s1
|
||||
// CAR_DATA *lcp; // $s1
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 1385
|
||||
@ -1339,7 +1339,7 @@ void UpdateCopSightData(void)
|
||||
// Start line: 1369
|
||||
// Start offset: 0x0002EF70
|
||||
// Variables:
|
||||
// struct _CAR_DATA *cp; // $s1
|
||||
// CAR_DATA *cp; // $s1
|
||||
// int distanceToPlayer; // $s0
|
||||
|
||||
/* begin block 1.3.1.1 */
|
||||
@ -1355,7 +1355,7 @@ void UpdateCopSightData(void)
|
||||
// Start offset: 0x0002EF90
|
||||
// Variables:
|
||||
// int theta; // $v1
|
||||
// struct VECTOR delta; // stack offset -48
|
||||
// VECTOR delta; // stack offset -48
|
||||
|
||||
/* begin block 1.3.1.1.1.1 */
|
||||
// Start line: 1369
|
||||
@ -1451,7 +1451,7 @@ void ControlCopDetection(void)
|
||||
uint distanceToPlayer;
|
||||
int heading;
|
||||
int dx;
|
||||
_CAR_DATA *cp;
|
||||
CAR_DATA *cp;
|
||||
VECTOR vec;
|
||||
int ccx;
|
||||
int ccz;
|
||||
@ -1662,7 +1662,7 @@ void ControlCopDetection(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ PassiveCopTasks(struct _CAR_DATA *cp /*$s0*/)
|
||||
// void /*$ra*/ PassiveCopTasks(CAR_DATA *cp /*$s0*/)
|
||||
// line 1562, offset 0x0002f6fc
|
||||
/* begin block 1 */
|
||||
// Start line: 1563
|
||||
@ -1672,7 +1672,7 @@ void ControlCopDetection(void)
|
||||
// Start line: 1563
|
||||
// Start offset: 0x0002F76C
|
||||
// Variables:
|
||||
// struct _CAR_DATA *cp; // $s0
|
||||
// CAR_DATA *cp; // $s0
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x0002F7C4
|
||||
// End Line: 1563
|
||||
@ -1691,7 +1691,7 @@ void ControlCopDetection(void)
|
||||
// End Line: 4655
|
||||
|
||||
// [D] [T]
|
||||
void PassiveCopTasks(_CAR_DATA *cp)
|
||||
void PassiveCopTasks(CAR_DATA *cp)
|
||||
{
|
||||
short *playerFelony;
|
||||
|
||||
@ -1768,7 +1768,7 @@ void PassiveCopTasks(_CAR_DATA *cp)
|
||||
// Start line: 1638
|
||||
// Start offset: 0x0002F580
|
||||
// Variables:
|
||||
// struct _CAR_DATA *lcp; // $a0
|
||||
// CAR_DATA *lcp; // $a0
|
||||
// int tempDist; // $a3
|
||||
|
||||
/* begin block 1.3.1.1 */
|
||||
@ -1817,7 +1817,7 @@ void ControlNumberOfCops(void)
|
||||
short *pTrigger;
|
||||
short *playerFelony;
|
||||
int tempDist;
|
||||
_CAR_DATA *lcp;
|
||||
CAR_DATA *lcp;
|
||||
int respawnTime;
|
||||
int num_closer;
|
||||
int cutOffDistance;
|
||||
|
@ -27,7 +27,7 @@ extern char first_offence;
|
||||
extern int player_position_known;
|
||||
extern int numActiveCops;
|
||||
|
||||
extern void InitCopState(_CAR_DATA *cp, char *extraData); // 0x0002F680
|
||||
extern void InitCopState(CAR_DATA *cp, char *extraData); // 0x0002F680
|
||||
|
||||
extern void WibbleDownTheRoad(VECTOR *from, int distance, VECTOR *to); // 0x0002D78C
|
||||
|
||||
@ -35,9 +35,9 @@ extern void InitCops(); // 0x0002D99C
|
||||
|
||||
extern void ControlCops(); // 0x0002DAD8
|
||||
|
||||
extern void CopControl(_CAR_DATA *cp); // 0x0002F60C
|
||||
extern void CopControl(CAR_DATA *cp); // 0x0002F60C
|
||||
|
||||
extern void CopControl1(_CAR_DATA *cp); // 0x0002DEFC
|
||||
extern void CopControl1(CAR_DATA *cp); // 0x0002DEFC
|
||||
|
||||
extern int FindCost(int x, int z, int dvx, int dvz); // 0x0002F8DC
|
||||
|
||||
@ -47,7 +47,7 @@ extern void UpdateCopSightData(); // 0x0002F844
|
||||
|
||||
extern void ControlCopDetection(); // 0x0002ECD8
|
||||
|
||||
extern void PassiveCopTasks(_CAR_DATA *cp); // 0x0002F6FC
|
||||
extern void PassiveCopTasks(CAR_DATA *cp); // 0x0002F6FC
|
||||
|
||||
extern void ControlNumberOfCops(); // 0x0002F3CC
|
||||
|
||||
|
@ -150,15 +150,15 @@ void ProcessCosmeticsLump(char *lump_ptr, int lump_size)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ AddReverseLight(struct _CAR_DATA *cp /*$s1*/)
|
||||
// void /*$ra*/ AddReverseLight(CAR_DATA *cp /*$s1*/)
|
||||
// line 252, offset 0x0002f994
|
||||
/* begin block 1 */
|
||||
// Start line: 253
|
||||
// Start offset: 0x0002F994
|
||||
// Variables:
|
||||
// struct CAR_COSMETICS *car_cos; // $a1
|
||||
// struct SVECTOR v1; // stack offset -32
|
||||
// struct CVECTOR col; // stack offset -24
|
||||
// CAR_COSMETICS *car_cos; // $a1
|
||||
// SVECTOR v1; // stack offset -32
|
||||
// CVECTOR col; // stack offset -24
|
||||
// short cogOffset; // $s2
|
||||
/* end block 1 */
|
||||
// End offset: 0x0002FAEC
|
||||
@ -177,7 +177,7 @@ void ProcessCosmeticsLump(char *lump_ptr, int lump_size)
|
||||
/* WARNING: Could not reconcile some variable overlaps */
|
||||
|
||||
// [D] [T]
|
||||
void AddReverseLight(_CAR_DATA *cp)
|
||||
void AddReverseLight(CAR_DATA *cp)
|
||||
{
|
||||
CAR_COSMETICS *car_cos;
|
||||
SVECTOR v1;
|
||||
@ -256,16 +256,16 @@ void SetupSpecCosmetics(char *loadbuffer)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ AddIndicatorLight(struct _CAR_DATA *cp /*$s0*/, int Type /*$s6*/)
|
||||
// void /*$ra*/ AddIndicatorLight(CAR_DATA *cp /*$s0*/, int Type /*$s6*/)
|
||||
// line 325, offset 0x0002faec
|
||||
/* begin block 1 */
|
||||
// Start line: 326
|
||||
// Start offset: 0x0002FAEC
|
||||
// Variables:
|
||||
// struct CAR_COSMETICS *car_cos; // $a1
|
||||
// struct CVECTOR col; // stack offset -56
|
||||
// struct SVECTOR vfrnt; // stack offset -48
|
||||
// struct SVECTOR vback; // stack offset -40
|
||||
// CAR_COSMETICS *car_cos; // $a1
|
||||
// CVECTOR col; // stack offset -56
|
||||
// SVECTOR vfrnt; // stack offset -48
|
||||
// SVECTOR vback; // stack offset -40
|
||||
// char tempcol; // $s1
|
||||
// char *life; // $a0
|
||||
// char *life2; // $s3
|
||||
@ -287,7 +287,7 @@ void SetupSpecCosmetics(char *loadbuffer)
|
||||
/* WARNING: Could not reconcile some variable overlaps */
|
||||
|
||||
// [D] [T]
|
||||
void AddIndicatorLight(_CAR_DATA *cp, int Type)
|
||||
void AddIndicatorLight(CAR_DATA *cp, int Type)
|
||||
{
|
||||
uint brightness;
|
||||
char *life;
|
||||
@ -366,17 +366,17 @@ void AddIndicatorLight(_CAR_DATA *cp, int Type)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ AddBrakeLight(struct _CAR_DATA *cp /*$s5*/)
|
||||
// void /*$ra*/ AddBrakeLight(CAR_DATA *cp /*$s5*/)
|
||||
// line 407, offset 0x0002fde4
|
||||
/* begin block 1 */
|
||||
// Start line: 408
|
||||
// Start offset: 0x0002FDE4
|
||||
// Variables:
|
||||
// struct CAR_COSMETICS *car_cos; // $a1
|
||||
// struct SVECTOR v1; // stack offset -88
|
||||
// struct SVECTOR v2; // stack offset -80
|
||||
// struct SVECTOR vec; // stack offset -72
|
||||
// struct CVECTOR col; // stack offset -64
|
||||
// CAR_COSMETICS *car_cos; // $a1
|
||||
// SVECTOR v1; // stack offset -88
|
||||
// SVECTOR v2; // stack offset -80
|
||||
// SVECTOR vec; // stack offset -72
|
||||
// CVECTOR col; // stack offset -64
|
||||
// char *life2; // $s2
|
||||
// short doubleFlag; // stack offset -56
|
||||
// short verticalFlag; // stack offset -52
|
||||
@ -396,7 +396,7 @@ void AddIndicatorLight(_CAR_DATA *cp, int Type)
|
||||
/* WARNING: Could not reconcile some variable overlaps */
|
||||
|
||||
// [D] [T]
|
||||
void AddBrakeLight(_CAR_DATA *cp)
|
||||
void AddBrakeLight(CAR_DATA *cp)
|
||||
{
|
||||
short damageFac;
|
||||
int damIndex;
|
||||
@ -505,7 +505,7 @@ void AddBrakeLight(_CAR_DATA *cp)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ AddCopCarLight(struct _CAR_DATA *cp /*$t0*/)
|
||||
// void /*$ra*/ AddCopCarLight(CAR_DATA *cp /*$t0*/)
|
||||
// line 514, offset 0x00030148
|
||||
/* begin block 1 */
|
||||
// Start line: 515
|
||||
@ -522,9 +522,9 @@ void AddBrakeLight(_CAR_DATA *cp)
|
||||
// static char xpos1[8]; // offset 0x10
|
||||
// int sign; // $t1
|
||||
// char *coplife; // $s2
|
||||
// struct SVECTOR v1; // stack offset -88
|
||||
// struct CVECTOR col; // stack offset -80
|
||||
// struct CAR_COSMETICS *car_cos; // $s0
|
||||
// SVECTOR v1; // stack offset -88
|
||||
// CVECTOR col; // stack offset -80
|
||||
// CAR_COSMETICS *car_cos; // $s0
|
||||
// short cogOffset; // $fp
|
||||
/* end block 1 */
|
||||
// End offset: 0x00030514
|
||||
@ -541,7 +541,7 @@ void AddBrakeLight(_CAR_DATA *cp)
|
||||
// End Line: 1348
|
||||
|
||||
// [D] [T]
|
||||
void AddCopCarLight(_CAR_DATA *cp)
|
||||
void AddCopCarLight(CAR_DATA *cp)
|
||||
{
|
||||
static char xpos1[8] = {
|
||||
48, 32, 16, 0,
|
||||
@ -659,18 +659,18 @@ void AddCopCarLight(_CAR_DATA *cp)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ AddNightLights(struct _CAR_DATA *cp /*$s6*/)
|
||||
// void /*$ra*/ AddNightLights(CAR_DATA *cp /*$s6*/)
|
||||
// line 653, offset 0x00030544
|
||||
/* begin block 1 */
|
||||
// Start line: 654
|
||||
// Start offset: 0x00030544
|
||||
// Variables:
|
||||
// static struct MATRIX work_matrix; // offset 0x0
|
||||
// struct CAR_COSMETICS *car_cos; // $fp
|
||||
// struct SVECTOR Position1; // stack offset -104
|
||||
// struct SVECTOR Position2; // stack offset -96
|
||||
// struct SVECTOR vec; // stack offset -88
|
||||
// struct CVECTOR col; // stack offset -80
|
||||
// static MATRIX work_matrix; // offset 0x0
|
||||
// CAR_COSMETICS *car_cos; // $fp
|
||||
// SVECTOR Position1; // stack offset -104
|
||||
// SVECTOR Position2; // stack offset -96
|
||||
// SVECTOR vec; // stack offset -88
|
||||
// CVECTOR col; // stack offset -80
|
||||
// int lit; // stack offset -72
|
||||
// int lightFlag; // $t0
|
||||
// char *life2; // stack offset -68
|
||||
@ -700,7 +700,7 @@ int gPlayerCarLights = 0;
|
||||
int gcar_num = 0;
|
||||
|
||||
// [D] [T]
|
||||
void AddNightLights(_CAR_DATA *cp)
|
||||
void AddNightLights(CAR_DATA *cp)
|
||||
{
|
||||
short offset;
|
||||
int lightFlag;
|
||||
@ -911,16 +911,16 @@ void AddNightLights(_CAR_DATA *cp)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ AddSmokingEngine(struct _CAR_DATA *cp /*$s0*/, int black_smoke /*$s2*/, int WheelSpeed /*$s3*/)
|
||||
// void /*$ra*/ AddSmokingEngine(CAR_DATA *cp /*$s0*/, int black_smoke /*$s2*/, int WheelSpeed /*$s3*/)
|
||||
// line 989, offset 0x00030d9c
|
||||
/* begin block 1 */
|
||||
// Start line: 990
|
||||
// Start offset: 0x00030D9C
|
||||
// Variables:
|
||||
// struct VECTOR SmokePos; // stack offset -64
|
||||
// struct CAR_COSMETICS *car_cos; // $a0
|
||||
// struct VECTOR Drift; // stack offset -48
|
||||
// struct SVECTOR svec; // stack offset -32
|
||||
// VECTOR SmokePos; // stack offset -64
|
||||
// CAR_COSMETICS *car_cos; // $a0
|
||||
// VECTOR Drift; // stack offset -48
|
||||
// SVECTOR svec; // stack offset -32
|
||||
/* end block 1 */
|
||||
// End offset: 0x00030F90
|
||||
// End Line: 1038
|
||||
@ -935,7 +935,7 @@ void AddNightLights(_CAR_DATA *cp)
|
||||
int gDoSmoke = 1;
|
||||
|
||||
// [D] [T]
|
||||
void AddSmokingEngine(_CAR_DATA *cp, int black_smoke, int WheelSpeed)
|
||||
void AddSmokingEngine(CAR_DATA *cp, int black_smoke, int WheelSpeed)
|
||||
{
|
||||
CAR_COSMETICS *car_cos;
|
||||
VECTOR SmokePos;
|
||||
@ -970,7 +970,7 @@ void AddSmokingEngine(_CAR_DATA *cp, int black_smoke, int WheelSpeed)
|
||||
}
|
||||
|
||||
// [A] custom function for bringing back exhaust
|
||||
void AddExhaustSmoke(_CAR_DATA *cp, int black_smoke, int WheelSpeed)
|
||||
void AddExhaustSmoke(CAR_DATA *cp, int black_smoke, int WheelSpeed)
|
||||
{
|
||||
CAR_COSMETICS *car_cos;
|
||||
VECTOR SmokePos;
|
||||
@ -1026,16 +1026,16 @@ void AddExhaustSmoke(_CAR_DATA *cp, int black_smoke, int WheelSpeed)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ AddFlamingEngine(struct _CAR_DATA *cp /*$s1*/)
|
||||
// void /*$ra*/ AddFlamingEngine(CAR_DATA *cp /*$s1*/)
|
||||
// line 1048, offset 0x00030fac
|
||||
/* begin block 1 */
|
||||
// Start line: 1049
|
||||
// Start offset: 0x00030FAC
|
||||
// Variables:
|
||||
// struct VECTOR SmokePos; // stack offset -56
|
||||
// struct SVECTOR svec; // stack offset -40
|
||||
// struct CAR_COSMETICS *car_cos; // $a0
|
||||
// struct VECTOR Drift; // stack offset -32
|
||||
// VECTOR SmokePos; // stack offset -56
|
||||
// SVECTOR svec; // stack offset -40
|
||||
// CAR_COSMETICS *car_cos; // $a0
|
||||
// VECTOR Drift; // stack offset -32
|
||||
/* end block 1 */
|
||||
// End offset: 0x0003114C
|
||||
// End Line: 1084
|
||||
@ -1048,7 +1048,7 @@ void AddExhaustSmoke(_CAR_DATA *cp, int black_smoke, int WheelSpeed)
|
||||
/* WARNING: Could not reconcile some variable overlaps */
|
||||
|
||||
// [D] [T]
|
||||
void AddFlamingEngine(_CAR_DATA *cp)
|
||||
void AddFlamingEngine(CAR_DATA *cp)
|
||||
{
|
||||
CAR_COSMETICS *car_cos;
|
||||
VECTOR SmokePos;
|
||||
|
@ -10,23 +10,23 @@ extern void LoadCosmetics(int level); // 0x00031160
|
||||
|
||||
extern void ProcessCosmeticsLump(char *lump_ptr, int lump_size); // 0x000311B0
|
||||
|
||||
extern void AddReverseLight(_CAR_DATA *cp); // 0x0002F994
|
||||
extern void AddReverseLight(CAR_DATA *cp); // 0x0002F994
|
||||
|
||||
extern void SetupSpecCosmetics(char *loadbuffer); // 0x00031360
|
||||
|
||||
extern void AddIndicatorLight(_CAR_DATA *cp, int Type); // 0x0002FAEC
|
||||
extern void AddIndicatorLight(CAR_DATA *cp, int Type); // 0x0002FAEC
|
||||
|
||||
extern void AddBrakeLight(_CAR_DATA *cp); // 0x0002FDE4
|
||||
extern void AddBrakeLight(CAR_DATA *cp); // 0x0002FDE4
|
||||
|
||||
extern void AddCopCarLight(_CAR_DATA *cp); // 0x00030148
|
||||
extern void AddCopCarLight(CAR_DATA *cp); // 0x00030148
|
||||
|
||||
extern void AddNightLights(_CAR_DATA *cp); // 0x00030544
|
||||
extern void AddNightLights(CAR_DATA *cp); // 0x00030544
|
||||
|
||||
extern void AddSmokingEngine(_CAR_DATA *cp, int black_smoke, int WheelSpeed); // 0x00030D9C
|
||||
extern void AddSmokingEngine(CAR_DATA *cp, int black_smoke, int WheelSpeed); // 0x00030D9C
|
||||
|
||||
extern void AddExhaustSmoke(_CAR_DATA *cp, int black_smoke, int WheelSpeed);
|
||||
extern void AddExhaustSmoke(CAR_DATA *cp, int black_smoke, int WheelSpeed);
|
||||
|
||||
extern void AddFlamingEngine(_CAR_DATA *cp); // 0x00030FAC
|
||||
extern void AddFlamingEngine(CAR_DATA *cp); // 0x00030FAC
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -223,7 +223,7 @@ void HandleInGameCutscene(void)
|
||||
// Start line: 648
|
||||
// Start offset: 0x00031398
|
||||
// Variables:
|
||||
// struct TILE *tile; // $s0
|
||||
// TILE *tile; // $s0
|
||||
/* end block 1 */
|
||||
// End offset: 0x000314E8
|
||||
// End Line: 676
|
||||
@ -464,7 +464,7 @@ void TriggerInGameCutscene(int cutscene)
|
||||
// Start line: 817
|
||||
// Start offset: 0x0003283C
|
||||
// Variables:
|
||||
// struct CUTSCENE_HEADER header; // stack offset -136
|
||||
// CUTSCENE_HEADER header; // stack offset -136
|
||||
// char filename[64]; // stack offset -72
|
||||
/* end block 1 */
|
||||
// End offset: 0x000328C8
|
||||
@ -520,7 +520,7 @@ int CalcInGameCutsceneSize(void)
|
||||
// Start line: 845
|
||||
// Start offset: 0x00031748
|
||||
// Variables:
|
||||
// struct STREAM_SOURCE *pinfo; // $a0
|
||||
// STREAM_SOURCE *pinfo; // $a0
|
||||
// int i; // $s0
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x00031978
|
||||
@ -565,7 +565,7 @@ void ReleaseInGameCutscene(void)
|
||||
{
|
||||
if (PlayerStartInfo[i]->flags & 4)
|
||||
{
|
||||
memcpy(&player[0], &player[i], sizeof(_PLAYER));
|
||||
memcpy(&player[0], &player[i], sizeof(PLAYER));
|
||||
|
||||
if (player[0].playerType == 2)
|
||||
{
|
||||
@ -843,7 +843,7 @@ int TriggerInGameCutsceneSystem(int cutscene)
|
||||
static char padid[8];
|
||||
|
||||
int slot;
|
||||
_CAR_DATA *cp;
|
||||
CAR_DATA *cp;
|
||||
REPLAY_STREAM *stream;
|
||||
int player_id;
|
||||
int bDamageOverride;
|
||||
@ -914,7 +914,7 @@ int TriggerInGameCutsceneSystem(int cutscene)
|
||||
InitPlayer(&player[player_id], cp,
|
||||
stream->SourceType.controlType,
|
||||
stream->SourceType.rotation,
|
||||
(long(*)[4])&stream->SourceType.position,
|
||||
(LONGVECTOR* )&stream->SourceType.position,
|
||||
stream->SourceType.model,
|
||||
stream->SourceType.palette,
|
||||
&padid[player_id]);
|
||||
@ -940,7 +940,7 @@ int TriggerInGameCutsceneSystem(int cutscene)
|
||||
else
|
||||
{
|
||||
slot = CreateStationaryCivCar(stream->SourceType.rotation, 0, 1024,
|
||||
(long(*)[4])&stream->SourceType.position,
|
||||
(LONGVECTOR* )&stream->SourceType.position,
|
||||
stream->SourceType.model,
|
||||
stream->SourceType.palette, 0);
|
||||
|
||||
@ -1188,8 +1188,8 @@ void FindNextCutChange(int cameracnt)
|
||||
// Start line: 1301
|
||||
// Start offset: 0x00032118
|
||||
// Variables:
|
||||
// struct REPLAY_SAVE_HEADER *rheader; // $a1
|
||||
// struct REPLAY_STREAM_HEADER *sheader; // $t1
|
||||
// REPLAY_SAVE_HEADER *rheader; // $a1
|
||||
// REPLAY_STREAM_HEADER *sheader; // $t1
|
||||
// char filename[64]; // stack offset -88
|
||||
// char *pt; // $s1
|
||||
// int i; // $a0
|
||||
@ -1274,7 +1274,7 @@ int LoadCutsceneToReplayBuffer(int residentCutscene)
|
||||
|
||||
pt += sizeof(PLAYBACKCAMERA) * MAX_REPLAY_CAMERAS;
|
||||
|
||||
memcpy(PingBuffer, pt, sizeof(_PING_PACKET) * MAX_REPLAY_PINGS);
|
||||
memcpy(PingBuffer, pt, sizeof(PING_PACKET) * MAX_REPLAY_PINGS);
|
||||
|
||||
PingBufferPos = 0;
|
||||
|
||||
@ -1291,8 +1291,8 @@ int LoadCutsceneToReplayBuffer(int residentCutscene)
|
||||
// Start line: 1363
|
||||
// Start offset: 0x0003243C
|
||||
// Variables:
|
||||
// struct CUTSCENE_HEADER header; // stack offset -440
|
||||
// struct REPLAY_SAVE_HEADER rheader; // stack offset -376
|
||||
// CUTSCENE_HEADER header; // stack offset -440
|
||||
// REPLAY_SAVE_HEADER rheader; // stack offset -376
|
||||
// char filename[64]; // stack offset -88
|
||||
// int offset; // $a2
|
||||
// int size; // $s0
|
||||
|
@ -316,26 +316,26 @@ MATRIX leaf_mat;
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ PlacePoolForCar(struct _CAR_DATA *cp /*$s4*/, struct CVECTOR *col /*stack 4*/, int front /*$a2*/)
|
||||
// void /*$ra*/ PlacePoolForCar(CAR_DATA *cp /*$s4*/, CVECTOR *col /*stack 4*/, int front /*$a2*/)
|
||||
// line 790, offset 0x00032c10
|
||||
/* begin block 1 */
|
||||
// Start line: 791
|
||||
// Start offset: 0x00032C10
|
||||
// Variables:
|
||||
// int car_road_height; // $s2
|
||||
// struct SVECTOR s[27]; // stack offset -832
|
||||
// struct SVECTOR *ptr; // $s1
|
||||
// struct SVECTOR sout[27]; // stack offset -616
|
||||
// struct VECTOR s1[12]; // stack offset -400
|
||||
// struct VECTOR *ptr1; // $s0
|
||||
// struct POLY_FT4 *poly; // $t0
|
||||
// struct MATRIX final_matrix; // stack offset -208
|
||||
// struct VECTOR averagepos; // stack offset -176
|
||||
// SVECTOR s[27]; // stack offset -832
|
||||
// SVECTOR *ptr; // $s1
|
||||
// SVECTOR sout[27]; // stack offset -616
|
||||
// VECTOR s1[12]; // stack offset -400
|
||||
// VECTOR *ptr1; // $s0
|
||||
// POLY_FT4 *poly; // $t0
|
||||
// MATRIX final_matrix; // stack offset -208
|
||||
// VECTOR averagepos; // stack offset -176
|
||||
// int in_car; // $t0
|
||||
// int z; // stack offset -48
|
||||
// int sub_level; // $fp
|
||||
// int count; // $s3
|
||||
// struct VECTOR mid_position; // stack offset -160
|
||||
// VECTOR mid_position; // stack offset -160
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 813
|
||||
@ -358,7 +358,7 @@ MATRIX leaf_mat;
|
||||
// Start line: 937
|
||||
// Start offset: 0x00032FB4
|
||||
// Variables:
|
||||
// struct VECTOR toss; // stack offset -144
|
||||
// VECTOR toss; // stack offset -144
|
||||
// int temp_y; // $a1
|
||||
/* end block 1.3 */
|
||||
// End offset: 0x0003306C
|
||||
@ -368,7 +368,7 @@ MATRIX leaf_mat;
|
||||
// Start line: 954
|
||||
// Start offset: 0x000330A4
|
||||
// Variables:
|
||||
// long n[4]; // stack offset -128
|
||||
// LONGVECTOR n; // stack offset -128
|
||||
/* end block 1.4 */
|
||||
// End offset: 0x0003316C
|
||||
// End Line: 960
|
||||
@ -426,7 +426,7 @@ MATRIX leaf_mat;
|
||||
//short light_col = 0;
|
||||
|
||||
// [D]
|
||||
void PlacePoolForCar(_CAR_DATA *cp, CVECTOR *col, int front, int in_car)
|
||||
void PlacePoolForCar(CAR_DATA *cp, CVECTOR *col, int front, int in_car)
|
||||
{
|
||||
unsigned char bVar1;
|
||||
DB *pDVar3;
|
||||
@ -452,7 +452,7 @@ void PlacePoolForCar(_CAR_DATA *cp, CVECTOR *col, int front, int in_car)
|
||||
VECTOR averagepos;
|
||||
VECTOR mid_position;
|
||||
VECTOR toss;
|
||||
long n[4];
|
||||
LONGVECTOR n;
|
||||
long z[15];
|
||||
int local_30;
|
||||
|
||||
@ -804,13 +804,13 @@ void ReleaseLeaf(short num)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ AddLeaf(struct VECTOR *Position /*$s1*/, int num_leaves /*$s5*/, int Type /*$s3*/)
|
||||
// void /*$ra*/ AddLeaf(VECTOR *Position /*$s1*/, int num_leaves /*$s5*/, int Type /*$s3*/)
|
||||
// line 1327, offset 0x00033574
|
||||
/* begin block 1 */
|
||||
// Start line: 1328
|
||||
// Start offset: 0x00033574
|
||||
// Variables:
|
||||
// struct LEAF *myleaf; // $a1
|
||||
// LEAF *myleaf; // $a1
|
||||
// int num; // $v1
|
||||
// int loop; // $s2
|
||||
// int temprand; // $s0
|
||||
@ -968,17 +968,17 @@ void AddLeaf(VECTOR *Position, int num_leaves, int Type)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ SwirlLeaves(struct _CAR_DATA *cp /*$a0*/)
|
||||
// void /*$ra*/ SwirlLeaves(CAR_DATA *cp /*$a0*/)
|
||||
// line 1437, offset 0x00039e54
|
||||
/* begin block 1 */
|
||||
// Start line: 1438
|
||||
// Start offset: 0x00039E54
|
||||
// Variables:
|
||||
// int count; // $s2
|
||||
// struct LEAF *lpLeaf; // $s0
|
||||
// LEAF *lpLeaf; // $s0
|
||||
// int XDiff; // $v0
|
||||
// int ZDiff; // $a1
|
||||
// struct VECTOR *CarPos; // $s1
|
||||
// VECTOR *CarPos; // $s1
|
||||
// int WheelSpeed; // $a1
|
||||
|
||||
/* begin block 1.1 */
|
||||
@ -1007,7 +1007,7 @@ void AddLeaf(VECTOR *Position, int num_leaves, int Type)
|
||||
// End Line: 17534
|
||||
|
||||
// [D]
|
||||
void SwirlLeaves(_CAR_DATA *cp)
|
||||
void SwirlLeaves(CAR_DATA *cp)
|
||||
{
|
||||
int XDiff;
|
||||
int ZDiff;
|
||||
@ -1141,9 +1141,9 @@ void InitDebrisNames(void)
|
||||
// Variables:
|
||||
// int loop; // $v1
|
||||
// int count; // $s0
|
||||
// struct TPAN texnum; // stack offset -88
|
||||
// struct TRI_POINT_LONG temptri; // stack offset -80
|
||||
// struct BVECTOR *debrisPTR; // $a0
|
||||
// TPAN texnum; // stack offset -88
|
||||
// TRI_POINT_LONG temptri; // stack offset -80
|
||||
// BVECTOR *debrisPTR; // $a0
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 1601
|
||||
@ -1422,15 +1422,15 @@ void ReleaseSmoke(short num)
|
||||
// Start line: 1755
|
||||
// Start offset: 0x00033FA8
|
||||
// Variables:
|
||||
// struct VECTOR Position; // stack offset -48
|
||||
// VECTOR Position; // stack offset -48
|
||||
// int seed; // $s0
|
||||
// int number; // $v0
|
||||
// int count; // $s3
|
||||
// int xbound; // $a1
|
||||
// int zbound; // $a0
|
||||
// int type; // $a2
|
||||
// struct CELL_OBJECT *cop; // $s1
|
||||
// struct MODEL *model; // $s2
|
||||
// CELL_OBJECT *cop; // $s1
|
||||
// MODEL *model; // $s2
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 1783
|
||||
@ -1534,17 +1534,17 @@ void AddGroundDebris(void)
|
||||
// Start offset: 0x00034138
|
||||
// Variables:
|
||||
// int count; // $s6
|
||||
// struct VECTOR pos; // stack offset -128
|
||||
// struct DAMAGED_OBJECT *dam; // $s2
|
||||
// VECTOR pos; // stack offset -128
|
||||
// DAMAGED_OBJECT *dam; // $s2
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 1826
|
||||
// Start offset: 0x000341A4
|
||||
// Variables:
|
||||
// struct MATRIX object_matrix; // stack offset -112
|
||||
// struct MATRIX spritematrix; // stack offset -80
|
||||
// struct MATRIX *finalmatrix; // $s0
|
||||
// struct MODEL *model; // $s3
|
||||
// MATRIX object_matrix; // stack offset -112
|
||||
// MATRIX spritematrix; // stack offset -80
|
||||
// MATRIX *finalmatrix; // $s0
|
||||
// MODEL *model; // $s3
|
||||
|
||||
/* begin block 1.1.1 */
|
||||
// Start line: 1861
|
||||
@ -1672,7 +1672,7 @@ void DrawSmashable_sprites(void)
|
||||
// Start offset: 0x0003A234
|
||||
// Variables:
|
||||
// int count; // $a3
|
||||
// struct DAMAGED_OBJECT *dam; // $a1
|
||||
// DAMAGED_OBJECT *dam; // $a1
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 1896
|
||||
@ -1741,24 +1741,24 @@ int MoveSmashable_object(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ AddSmallStreetLight(struct CELL_OBJECT *cop /*$s1*/, int x /*$s3*/, int y /*$s6*/, int z /*$s4*/, int type /*stack 16*/)
|
||||
// void /*$ra*/ AddSmallStreetLight(CELL_OBJECT *cop /*$s1*/, int x /*$s3*/, int y /*$s6*/, int z /*$s4*/, int type /*stack 16*/)
|
||||
// line 1925, offset 0x00034424
|
||||
/* begin block 1 */
|
||||
// Start line: 1926
|
||||
// Start offset: 0x00034424
|
||||
// Variables:
|
||||
// struct VECTOR v1; // stack offset -112
|
||||
// struct VECTOR v2; // stack offset -96
|
||||
// struct VECTOR v3; // stack offset -80
|
||||
// struct SVECTOR pos; // stack offset -64
|
||||
// struct CVECTOR col; // stack offset -56
|
||||
// struct CVECTOR col1; // stack offset -48
|
||||
// VECTOR v1; // stack offset -112
|
||||
// VECTOR v2; // stack offset -96
|
||||
// VECTOR v3; // stack offset -80
|
||||
// SVECTOR pos; // stack offset -64
|
||||
// CVECTOR col; // stack offset -56
|
||||
// CVECTOR col1; // stack offset -48
|
||||
// int count; // $v1
|
||||
// short angle; // $s2
|
||||
// int halo_size; // $fp
|
||||
// int size; // $s5
|
||||
// int LampId; // $s7
|
||||
// struct DAMAGED_LAMP *dam; // $s0
|
||||
// DAMAGED_LAMP *dam; // $s0
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 1961
|
||||
@ -1912,18 +1912,18 @@ void AddSmallStreetLight(CELL_OBJECT *cop, int x, int y, int z, int type)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ AddLightEffect(struct CELL_OBJECT *cop /*$t0*/, int x /*$t2*/, int y /*$a2*/, int z /*$a3*/, int type /*stack 16*/, int colour /*stack 20*/)
|
||||
// void /*$ra*/ AddLightEffect(CELL_OBJECT *cop /*$t0*/, int x /*$t2*/, int y /*$a2*/, int z /*$a3*/, int type /*stack 16*/, int colour /*stack 20*/)
|
||||
// line 2049, offset 0x00034858
|
||||
/* begin block 1 */
|
||||
// Start line: 2050
|
||||
// Start offset: 0x00034858
|
||||
// Variables:
|
||||
// struct VECTOR v1; // stack offset -88
|
||||
// struct VECTOR v2; // stack offset -72
|
||||
// struct VECTOR v3; // stack offset -56
|
||||
// struct SVECTOR pos; // stack offset -40
|
||||
// struct CVECTOR col; // stack offset -32
|
||||
// struct CVECTOR col1; // stack offset -24
|
||||
// VECTOR v1; // stack offset -88
|
||||
// VECTOR v2; // stack offset -72
|
||||
// VECTOR v3; // stack offset -56
|
||||
// SVECTOR pos; // stack offset -40
|
||||
// CVECTOR col; // stack offset -32
|
||||
// CVECTOR col1; // stack offset -24
|
||||
// short angle; // $v1
|
||||
// int size; // $s1
|
||||
/* end block 1 */
|
||||
@ -2173,7 +2173,7 @@ int find_lamp_streak(int LampId)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ damage_lamp(struct CELL_OBJECT *cop /*$a2*/)
|
||||
// int /*$ra*/ damage_lamp(CELL_OBJECT *cop /*$a2*/)
|
||||
// line 2230, offset 0x00034d1c
|
||||
/* begin block 1 */
|
||||
// Start line: 2231
|
||||
@ -2234,19 +2234,19 @@ int damage_lamp(CELL_OBJECT *cop)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ damage_object(struct CELL_OBJECT *cop /*$s1*/, struct VECTOR *velocity /*$a1*/)
|
||||
// int /*$ra*/ damage_object(CELL_OBJECT *cop /*$s1*/, VECTOR *velocity /*$a1*/)
|
||||
// line 2255, offset 0x00034dac
|
||||
/* begin block 1 */
|
||||
// Start line: 2256
|
||||
// Start offset: 0x00034DAC
|
||||
// Variables:
|
||||
// struct DAMAGED_OBJECT *dam; // $s0
|
||||
// DAMAGED_OBJECT *dam; // $s0
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 2256
|
||||
// Start offset: 0x00034DAC
|
||||
// Variables:
|
||||
// struct PACKED_CELL_OBJECT *pcop; // $a0
|
||||
// PACKED_CELL_OBJECT *pcop; // $a0
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x00034DAC
|
||||
// End Line: 2256
|
||||
@ -2326,17 +2326,17 @@ int damage_object(CELL_OBJECT *cop, VECTOR *velocity)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ AddTrafficLight(struct CELL_OBJECT *cop /*$t4*/, int x /*$t6*/, int y /*$t7*/, int z /*$a3*/, int flag /*stack 16*/, int yang /*stack 20*/)
|
||||
// void /*$ra*/ AddTrafficLight(CELL_OBJECT *cop /*$t4*/, int x /*$t6*/, int y /*$t7*/, int z /*$a3*/, int flag /*stack 16*/, int yang /*stack 20*/)
|
||||
// line 2326, offset 0x00034f64
|
||||
/* begin block 1 */
|
||||
// Start line: 2327
|
||||
// Start offset: 0x00034F64
|
||||
// Variables:
|
||||
// struct CVECTOR a; // stack offset -80
|
||||
// struct CVECTOR b; // stack offset -72
|
||||
// struct CVECTOR c; // stack offset -64
|
||||
// struct VECTOR v1; // stack offset -56
|
||||
// struct VECTOR v2; // stack offset -40
|
||||
// CVECTOR a; // stack offset -80
|
||||
// CVECTOR b; // stack offset -72
|
||||
// CVECTOR c; // stack offset -64
|
||||
// VECTOR v1; // stack offset -56
|
||||
// VECTOR v2; // stack offset -40
|
||||
// int lDiffAnglesX; // $s2
|
||||
// int lDiffAnglesY; // $s1
|
||||
// int AbsX; // $a2
|
||||
@ -2477,13 +2477,13 @@ LAB_00035098:
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ InitFXPos(struct VECTOR *vec /*$a0*/, struct SVECTOR *svec /*$a1*/, struct _CAR_DATA *cp /*$a2*/)
|
||||
// void /*$ra*/ InitFXPos(VECTOR *vec /*$a0*/, SVECTOR *svec /*$a1*/, CAR_DATA *cp /*$a2*/)
|
||||
// line 2428, offset 0x00039c90
|
||||
/* begin block 1 */
|
||||
// Start line: 2429
|
||||
// Start offset: 0x00039C90
|
||||
// Variables:
|
||||
// struct SVECTOR svectmp; // stack offset -8
|
||||
// SVECTOR svectmp; // stack offset -8
|
||||
/* end block 1 */
|
||||
// End offset: 0x00039D68
|
||||
// End Line: 2437
|
||||
@ -2504,7 +2504,7 @@ LAB_00035098:
|
||||
// End Line: 13203
|
||||
|
||||
// [D] [T]
|
||||
void InitFXPos(VECTOR *vec, SVECTOR *svec, _CAR_DATA *cp)
|
||||
void InitFXPos(VECTOR *vec, SVECTOR *svec, CAR_DATA *cp)
|
||||
{
|
||||
SVECTOR svectmp;
|
||||
|
||||
@ -2528,7 +2528,7 @@ void InitFXPos(VECTOR *vec, SVECTOR *svec, _CAR_DATA *cp)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ FindCarLightFade(struct MATRIX *carToCamera /*$a0*/)
|
||||
// void /*$ra*/ FindCarLightFade(MATRIX *carToCamera /*$a0*/)
|
||||
// line 2447, offset 0x00039c68
|
||||
/* begin block 1 */
|
||||
// Start line: 2449
|
||||
@ -2567,16 +2567,16 @@ void FindCarLightFade(MATRIX *carToCamera)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ ShowCarlight(struct SVECTOR *v1 /*$s6*/, struct _CAR_DATA *cp /*$s3*/, struct CVECTOR *col /*$s1*/, short size /*$s5*/, struct TEXTURE_DETAILS *texture /*stack 16*/, int flag /*stack 20*/)
|
||||
// void /*$ra*/ ShowCarlight(SVECTOR *v1 /*$s6*/, CAR_DATA *cp /*$s3*/, CVECTOR *col /*$s1*/, short size /*$s5*/, TEXTURE_DETAILS *texture /*stack 16*/, int flag /*stack 20*/)
|
||||
// line 2462, offset 0x000352cc
|
||||
/* begin block 1 */
|
||||
// Start line: 2463
|
||||
// Start offset: 0x000352CC
|
||||
// Variables:
|
||||
// int CarLightFade; // $a1
|
||||
// struct VECTOR v1t; // stack offset -72
|
||||
// struct VECTOR v1l; // stack offset -56
|
||||
// struct CVECTOR flareCol; // stack offset -40
|
||||
// VECTOR v1t; // stack offset -72
|
||||
// VECTOR v1l; // stack offset -56
|
||||
// CVECTOR flareCol; // stack offset -40
|
||||
// int front; // $a0
|
||||
/* end block 1 */
|
||||
// End offset: 0x00035534
|
||||
@ -2588,7 +2588,7 @@ void FindCarLightFade(MATRIX *carToCamera)
|
||||
// End Line: 6202
|
||||
|
||||
// [D] [T
|
||||
void ShowCarlight(SVECTOR *v1, _CAR_DATA *cp, CVECTOR *col, short size, TEXTURE_DETAILS *texture,int flag)
|
||||
void ShowCarlight(SVECTOR *v1, CAR_DATA *cp, CVECTOR *col, short size, TEXTURE_DETAILS *texture,int flag)
|
||||
{
|
||||
int CarLightFade;
|
||||
VECTOR v1t;
|
||||
@ -2657,14 +2657,14 @@ void ShowCarlight(SVECTOR *v1, _CAR_DATA *cp, CVECTOR *col, short size, TEXTURE_
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ ShowLight1(struct VECTOR *v1 /*$a0*/, struct CVECTOR *col /*$a1*/, short size /*$a2*/, struct TEXTURE_DETAILS *texture /*$a3*/)
|
||||
// void /*$ra*/ ShowLight1(VECTOR *v1 /*$a0*/, CVECTOR *col /*$a1*/, short size /*$a2*/, TEXTURE_DETAILS *texture /*$a3*/)
|
||||
// line 2523, offset 0x0003555c
|
||||
/* begin block 1 */
|
||||
// Start line: 2524
|
||||
// Start offset: 0x0003555C
|
||||
// Variables:
|
||||
// struct SVECTOR vert[4]; // stack offset -40
|
||||
// struct POLY_FT4 *poly; // $t0
|
||||
// SVECTOR vert[4]; // stack offset -40
|
||||
// POLY_FT4 *poly; // $t0
|
||||
// int z; // stack offset -8
|
||||
/* end block 1 */
|
||||
// End offset: 0x00035748
|
||||
@ -2751,14 +2751,14 @@ void ShowLight1(VECTOR *v1, CVECTOR *col, short size, TEXTURE_DETAILS *texture)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ ShowLight(struct VECTOR *v1 /*$s0*/, struct CVECTOR *col /*$s3*/, short size /*$s4*/, struct TEXTURE_DETAILS *texture /*$s2*/)
|
||||
// void /*$ra*/ ShowLight(VECTOR *v1 /*$s0*/, CVECTOR *col /*$s3*/, short size /*$s4*/, TEXTURE_DETAILS *texture /*$s2*/)
|
||||
// line 2579, offset 0x00035750
|
||||
/* begin block 1 */
|
||||
// Start line: 2580
|
||||
// Start offset: 0x00035750
|
||||
// Variables:
|
||||
// struct SVECTOR vert[4]; // stack offset -88
|
||||
// struct POLY_FT4 *poly; // $s1
|
||||
// SVECTOR vert[4]; // stack offset -88
|
||||
// POLY_FT4 *poly; // $s1
|
||||
// int z; // stack offset -40
|
||||
// int index; // $a1
|
||||
// int tail_width; // $s5
|
||||
@ -2776,7 +2776,7 @@ void ShowLight1(VECTOR *v1, CVECTOR *col, short size, TEXTURE_DETAILS *texture)
|
||||
// Start line: 2654
|
||||
// Start offset: 0x00035AD4
|
||||
// Variables:
|
||||
// struct POLY_G4 *poly1; // $s0
|
||||
// POLY_G4 *poly1; // $s0
|
||||
// int dx; // $a0
|
||||
// int dy; // $v0
|
||||
// int angle; // $v0
|
||||
@ -2784,8 +2784,8 @@ void ShowLight1(VECTOR *v1, CVECTOR *col, short size, TEXTURE_DETAILS *texture)
|
||||
// int c; // $a0
|
||||
// int s; // $a2
|
||||
// int length; // $v0
|
||||
// struct SVECTOR tail; // stack offset -56
|
||||
// struct SVECTOR head; // stack offset -48
|
||||
// SVECTOR tail; // stack offset -56
|
||||
// SVECTOR head; // stack offset -48
|
||||
/* end block 1.2 */
|
||||
// End offset: 0x00035EB8
|
||||
// End Line: 2709
|
||||
@ -2803,7 +2803,7 @@ void ShowLight1(VECTOR *v1, CVECTOR *col, short size, TEXTURE_DETAILS *texture)
|
||||
// Start line: 2737
|
||||
// Start offset: 0x00036024
|
||||
// Variables:
|
||||
// struct POLY_G4 *poly1; // $s0
|
||||
// POLY_G4 *poly1; // $s0
|
||||
// int dx; // $a2
|
||||
// int dy; // $a1
|
||||
// int angle; // $v0
|
||||
@ -2811,8 +2811,8 @@ void ShowLight1(VECTOR *v1, CVECTOR *col, short size, TEXTURE_DETAILS *texture)
|
||||
// int c; // $a2
|
||||
// int s; // $a1
|
||||
// int length; // $v0
|
||||
// struct SVECTOR tail; // stack offset -56
|
||||
// struct SVECTOR head; // stack offset -48
|
||||
// SVECTOR tail; // stack offset -56
|
||||
// SVECTOR head; // stack offset -48
|
||||
/* end block 1.4 */
|
||||
// End offset: 0x00036408
|
||||
// End Line: 2792
|
||||
@ -3226,14 +3226,14 @@ void ShowLight(VECTOR *v1, CVECTOR *col, short size, TEXTURE_DETAILS *texture)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ ShowGroundLight(struct VECTOR *v1 /*$a0*/, struct CVECTOR *col /*$a1*/, short size /*$a2*/)
|
||||
// void /*$ra*/ ShowGroundLight(VECTOR *v1 /*$a0*/, CVECTOR *col /*$a1*/, short size /*$a2*/)
|
||||
// line 2804, offset 0x0003642c
|
||||
/* begin block 1 */
|
||||
// Start line: 2805
|
||||
// Start offset: 0x0003642C
|
||||
// Variables:
|
||||
// struct SVECTOR vert[4]; // stack offset -40
|
||||
// struct POLY_FT4 *poly; // $t0
|
||||
// SVECTOR vert[4]; // stack offset -40
|
||||
// POLY_FT4 *poly; // $t0
|
||||
// int z; // stack offset -8
|
||||
/* end block 1 */
|
||||
// End offset: 0x00036680
|
||||
@ -3316,14 +3316,14 @@ void ShowGroundLight(VECTOR *v1, CVECTOR *col, short size)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ RoundShadow(struct VECTOR *v1 /*$a0*/, struct CVECTOR *col /*$a1*/, short size /*$a2*/)
|
||||
// void /*$ra*/ RoundShadow(VECTOR *v1 /*$a0*/, CVECTOR *col /*$a1*/, short size /*$a2*/)
|
||||
// line 2869, offset 0x00036688
|
||||
/* begin block 1 */
|
||||
// Start line: 2870
|
||||
// Start offset: 0x00036688
|
||||
// Variables:
|
||||
// struct SVECTOR vert[4]; // stack offset -40
|
||||
// struct POLY_FT4 *poly; // $t0
|
||||
// SVECTOR vert[4]; // stack offset -40
|
||||
// POLY_FT4 *poly; // $t0
|
||||
// int z; // stack offset -8
|
||||
/* end block 1 */
|
||||
// End offset: 0x000368D0
|
||||
@ -3411,16 +3411,16 @@ void RoundShadow(VECTOR *v1, CVECTOR *col, short size)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ ShowFlare(struct VECTOR *v1 /*$a0*/, struct CVECTOR *col /*$s2*/, short size /*$a2*/, int rotation /*$a3*/)
|
||||
// void /*$ra*/ ShowFlare(VECTOR *v1 /*$a0*/, CVECTOR *col /*$s2*/, short size /*$a2*/, int rotation /*$a3*/)
|
||||
// line 2945, offset 0x000368d8
|
||||
/* begin block 1 */
|
||||
// Start line: 2946
|
||||
// Start offset: 0x000368D8
|
||||
// Variables:
|
||||
// struct SVECTOR vert[4]; // stack offset -96
|
||||
// struct POLY_FT4 *poly; // $t0
|
||||
// struct SVECTOR direction; // stack offset -64
|
||||
// struct MATRIX temp_matrix; // stack offset -56
|
||||
// SVECTOR vert[4]; // stack offset -96
|
||||
// POLY_FT4 *poly; // $t0
|
||||
// SVECTOR direction; // stack offset -64
|
||||
// MATRIX temp_matrix; // stack offset -56
|
||||
// int z; // stack offset -24
|
||||
/* end block 1 */
|
||||
// End offset: 0x00036B54
|
||||
@ -3518,15 +3518,15 @@ void ShowFlare(VECTOR *v1, CVECTOR *col, short size, int rotation)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DisplayWater(struct SMOKE *smoke /*$a0*/)
|
||||
// void /*$ra*/ DisplayWater(SMOKE *smoke /*$a0*/)
|
||||
// line 3029, offset 0x00036b6c
|
||||
/* begin block 1 */
|
||||
// Start line: 3030
|
||||
// Start offset: 0x00036B6C
|
||||
// Variables:
|
||||
// struct POLY_FT4 *poly; // $t1
|
||||
// struct VECTOR v; // stack offset -64
|
||||
// struct SVECTOR vert[4]; // stack offset -48
|
||||
// POLY_FT4 *poly; // $t1
|
||||
// VECTOR v; // stack offset -64
|
||||
// SVECTOR vert[4]; // stack offset -48
|
||||
// int size; // $t1
|
||||
// int z; // $v0
|
||||
// int z1; // stack offset -16
|
||||
@ -3631,16 +3631,16 @@ void DisplayWater(SMOKE *smoke)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DisplaySpark(struct SMOKE *spark /*$t1*/)
|
||||
// void /*$ra*/ DisplaySpark(SMOKE *spark /*$t1*/)
|
||||
// line 3102, offset 0x00036e18
|
||||
/* begin block 1 */
|
||||
// Start line: 3103
|
||||
// Start offset: 0x00036E18
|
||||
// Variables:
|
||||
// int z; // stack offset -8
|
||||
// struct SVECTOR v[3]; // stack offset -40
|
||||
// struct SVECTOR TrailPos; // stack offset -16
|
||||
// struct POLY_G3 *poly; // $t0
|
||||
// SVECTOR v[3]; // stack offset -40
|
||||
// SVECTOR TrailPos; // stack offset -16
|
||||
// POLY_G3 *poly; // $t0
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 3135
|
||||
@ -3762,7 +3762,7 @@ void DisplaySpark(SMOKE *spark)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ GetSmokeDrift(struct VECTOR *Wind /*$t2*/)
|
||||
// void /*$ra*/ GetSmokeDrift(VECTOR *Wind /*$t2*/)
|
||||
// line 3182, offset 0x00037158
|
||||
/* begin block 1 */
|
||||
// Start line: 3183
|
||||
@ -3822,13 +3822,13 @@ void GetSmokeDrift(VECTOR *Wind)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ Setup_Debris(struct VECTOR *ipos /*$fp*/, struct VECTOR *ispeed /*$s6*/, int num_debris /*$s7*/, int type /*$s5*/)
|
||||
// void /*$ra*/ Setup_Debris(VECTOR *ipos /*$fp*/, VECTOR *ispeed /*$s6*/, int num_debris /*$s7*/, int type /*$s5*/)
|
||||
// line 3227, offset 0x00037250
|
||||
/* begin block 1 */
|
||||
// Start line: 3228
|
||||
// Start offset: 0x00037250
|
||||
// Variables:
|
||||
// struct DEBRIS *mydebris; // $s1
|
||||
// DEBRIS *mydebris; // $s1
|
||||
// int num; // $v1
|
||||
// int loop; // $s4
|
||||
// int vx; // $s2
|
||||
@ -3941,13 +3941,13 @@ void Setup_Debris(VECTOR *ipos, VECTOR *ispeed, int num_debris, int type)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ Setup_Smoke(struct VECTOR *ipos /*$s1*/, int start_w /*$s3*/, int end_w /*$s4*/, int SmokeType /*$s7*/, int WheelSpeed /*stack 16*/, struct VECTOR *Drift /*stack 20*/, int Exhaust /*stack 24*/)
|
||||
// void /*$ra*/ Setup_Smoke(VECTOR *ipos /*$s1*/, int start_w /*$s3*/, int end_w /*$s4*/, int SmokeType /*$s7*/, int WheelSpeed /*stack 16*/, VECTOR *Drift /*stack 20*/, int Exhaust /*stack 24*/)
|
||||
// line 3296, offset 0x00037474
|
||||
/* begin block 1 */
|
||||
// Start line: 3297
|
||||
// Start offset: 0x00037474
|
||||
// Variables:
|
||||
// struct SMOKE *mysmoke; // $s0
|
||||
// SMOKE *mysmoke; // $s0
|
||||
// int num; // $v1
|
||||
|
||||
/* begin block 1.1 */
|
||||
@ -4166,13 +4166,13 @@ LAB_00037884:
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ Setup_Sparks(struct VECTOR *ipos /*$fp*/, struct VECTOR *ispeed /*$s7*/, int num_sparks /*stack 8*/, char SparkType /*$s5*/)
|
||||
// void /*$ra*/ Setup_Sparks(VECTOR *ipos /*$fp*/, VECTOR *ispeed /*$s7*/, int num_sparks /*stack 8*/, char SparkType /*$s5*/)
|
||||
// line 3475, offset 0x00037950
|
||||
/* begin block 1 */
|
||||
// Start line: 3476
|
||||
// Start offset: 0x00037950
|
||||
// Variables:
|
||||
// struct SMOKE *mysmoke; // $s2
|
||||
// SMOKE *mysmoke; // $s2
|
||||
// int num; // $s0
|
||||
// int loop; // $s4
|
||||
// int vx; // $s1
|
||||
@ -4280,7 +4280,7 @@ void Setup_Sparks(VECTOR *ipos, VECTOR *ispeed, int num_sparks, char SparkType)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DisplayDebris(struct DEBRIS *debris /*$t2*/, char type /*$t3*/)
|
||||
// void /*$ra*/ DisplayDebris(DEBRIS *debris /*$t2*/, char type /*$t3*/)
|
||||
// line 3564, offset 0x00037b14
|
||||
/* begin block 1 */
|
||||
// Start line: 3565
|
||||
@ -4288,11 +4288,11 @@ void Setup_Sparks(VECTOR *ipos, VECTOR *ispeed, int num_sparks, char SparkType)
|
||||
// Variables:
|
||||
// int pos; // $a1
|
||||
// int z; // stack offset -8
|
||||
// struct SVECTOR v[4]; // stack offset -56
|
||||
// struct TRI_POINT *tv; // $t1
|
||||
// struct VECTOR debrisvec; // stack offset -24
|
||||
// struct POLY_FT3 *poly; // $t0
|
||||
// struct POLY_GT4 *poly1; // $t0
|
||||
// SVECTOR v[4]; // stack offset -56
|
||||
// TRI_POINT *tv; // $t1
|
||||
// VECTOR debrisvec; // stack offset -24
|
||||
// POLY_FT3 *poly; // $t0
|
||||
// POLY_GT4 *poly1; // $t0
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 3607
|
||||
@ -4430,21 +4430,21 @@ void DisplayDebris(DEBRIS *debris, char type)
|
||||
// Variables:
|
||||
// int count; // $s0
|
||||
// int i; // $s3
|
||||
// struct DEBRIS *lpDebris; // $s1
|
||||
// struct SMOKE *smokeptr; // $s0
|
||||
// struct VECTOR dummy; // stack offset -80
|
||||
// struct LEAF *lpLeaf; // $s1
|
||||
// DEBRIS *lpDebris; // $s1
|
||||
// SMOKE *smokeptr; // $s0
|
||||
// VECTOR dummy; // stack offset -80
|
||||
// LEAF *lpLeaf; // $s1
|
||||
// int Height; // $v0
|
||||
// int SinX; // $s2
|
||||
// int CosX; // $v1
|
||||
// struct VECTOR Drift; // stack offset -64
|
||||
// VECTOR Drift; // stack offset -64
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 3852
|
||||
// Start offset: 0x0003841C
|
||||
// Variables:
|
||||
// int offshore; // $s1
|
||||
// struct ROUTE_DATA routeData; // stack offset -48
|
||||
// ROUTE_DATA routeData; // stack offset -48
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x000384B4
|
||||
// End Line: 3864
|
||||
@ -4785,15 +4785,15 @@ void HandleDebris(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DisplaySmoke(struct SMOKE *smoke /*$s0*/)
|
||||
// void /*$ra*/ DisplaySmoke(SMOKE *smoke /*$s0*/)
|
||||
// line 3983, offset 0x0003877c
|
||||
/* begin block 1 */
|
||||
// Start line: 3984
|
||||
// Start offset: 0x0003877C
|
||||
// Variables:
|
||||
// struct POLY_FT4 *poly; // $t0
|
||||
// struct VECTOR v; // stack offset -80
|
||||
// struct SVECTOR smokemesh[4]; // stack offset -64
|
||||
// POLY_FT4 *poly; // $t0
|
||||
// VECTOR v; // stack offset -80
|
||||
// SVECTOR smokemesh[4]; // stack offset -64
|
||||
// int x; // $s2
|
||||
// int negx; // $s1
|
||||
// int z; // stack offset -32
|
||||
@ -5050,7 +5050,7 @@ void DisplaySmoke(SMOKE *smoke)
|
||||
// Start line: 4119
|
||||
// Start offset: 0x00038CB4
|
||||
// Variables:
|
||||
// struct TILE *polys; // $a1
|
||||
// TILE *polys; // $a1
|
||||
/* end block 1 */
|
||||
// End offset: 0x00038E00
|
||||
// End Line: 4141
|
||||
@ -5216,12 +5216,12 @@ void ReleaseRainDrop(int RainIndex)
|
||||
// Start line: 4210
|
||||
// Start offset: 0x00038E08
|
||||
// Variables:
|
||||
// struct RAIN_TYPE *RainPtr; // $s0
|
||||
// struct POLY_GT3 *poly; // $a3
|
||||
// RAIN_TYPE *RainPtr; // $s0
|
||||
// POLY_GT3 *poly; // $a3
|
||||
// int Count; // $s2
|
||||
// int z; // stack offset -48
|
||||
// struct SVECTOR v[3]; // stack offset -88
|
||||
// struct VECTOR drift; // stack offset -64
|
||||
// SVECTOR v[3]; // stack offset -88
|
||||
// VECTOR drift; // stack offset -64
|
||||
// int tpage; // $fp
|
||||
// int clut; // $s7
|
||||
// int col; // $s1
|
||||
@ -5364,8 +5364,8 @@ void DrawRainDrops(void)
|
||||
// Start line: 4415
|
||||
// Start offset: 0x0003919C
|
||||
// Variables:
|
||||
// struct SVECTOR v; // stack offset -48
|
||||
// struct RAIN_TYPE *RainPtr; // $a2
|
||||
// SVECTOR v; // stack offset -48
|
||||
// RAIN_TYPE *RainPtr; // $a2
|
||||
// int RainIndex; // $s0
|
||||
// int RainNo; // $s1
|
||||
// int first; // $s3
|
||||
@ -5384,7 +5384,7 @@ void DrawRainDrops(void)
|
||||
// Start line: 4466
|
||||
// Start offset: 0x000393E4
|
||||
// Variables:
|
||||
// struct ROUTE_DATA routeData; // stack offset -40
|
||||
// ROUTE_DATA routeData; // stack offset -40
|
||||
/* end block 1.2 */
|
||||
// End offset: 0x00039434
|
||||
// End Line: 4474
|
||||
@ -5504,11 +5504,11 @@ void AddRainDrops(void)
|
||||
// Variables:
|
||||
// int SplashNo; // $s4
|
||||
// int SplashFrac; // $v0
|
||||
// struct VECTOR CamGnd; // stack offset -96
|
||||
// struct VECTOR Gnd1; // stack offset -80
|
||||
// struct VECTOR Gnd2; // stack offset -64
|
||||
// struct VECTOR Position; // stack offset -48
|
||||
// struct CVECTOR col; // stack offset -32
|
||||
// VECTOR CamGnd; // stack offset -96
|
||||
// VECTOR Gnd1; // stack offset -80
|
||||
// VECTOR Gnd2; // stack offset -64
|
||||
// VECTOR Position; // stack offset -48
|
||||
// CVECTOR col; // stack offset -32
|
||||
// static unsigned long rand; // offset 0x170
|
||||
// int d1; // $a0
|
||||
// int d2; // $a2
|
||||
@ -5596,15 +5596,15 @@ void DisplaySplashes(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DisplayLightReflections(struct VECTOR *v1 /*$s1*/, struct CVECTOR *col /*$s3*/, short size /*$a2*/, struct TEXTURE_DETAILS *texture /*$s2*/)
|
||||
// void /*$ra*/ DisplayLightReflections(VECTOR *v1 /*$s1*/, CVECTOR *col /*$s3*/, short size /*$a2*/, TEXTURE_DETAILS *texture /*$s2*/)
|
||||
// line 4550, offset 0x000397c0
|
||||
/* begin block 1 */
|
||||
// Start line: 4551
|
||||
// Start offset: 0x000397C0
|
||||
// Variables:
|
||||
// struct SVECTOR vert[4]; // stack offset -80
|
||||
// struct POLY_FT4 *poly; // $a1
|
||||
// struct CVECTOR thiscol; // stack offset -48
|
||||
// SVECTOR vert[4]; // stack offset -80
|
||||
// POLY_FT4 *poly; // $a1
|
||||
// CVECTOR thiscol; // stack offset -48
|
||||
// int z; // stack offset -40
|
||||
// int tpage; // $s5
|
||||
// int clut; // $s4
|
||||
@ -5911,7 +5911,7 @@ void DoWeather(int weather)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ GetDebrisColour(struct _CAR_DATA *cp /*$a0*/)
|
||||
// int /*$ra*/ GetDebrisColour(CAR_DATA *cp /*$a0*/)
|
||||
// line 4725, offset 0x00039fa8
|
||||
/* begin block 1 */
|
||||
// Start line: 4726
|
||||
@ -5934,7 +5934,7 @@ void DoWeather(int weather)
|
||||
// End Line: 24131
|
||||
|
||||
// [D] [T]
|
||||
int GetDebrisColour(_CAR_DATA *cp)
|
||||
int GetDebrisColour(CAR_DATA *cp)
|
||||
{
|
||||
int car_model;
|
||||
|
||||
|
@ -35,7 +35,7 @@ extern int main_cop_light_pos;
|
||||
extern int groundDebrisIndex;
|
||||
extern CELL_OBJECT ground_debris[16];
|
||||
|
||||
extern void PlacePoolForCar(_CAR_DATA *cp, CVECTOR *col, int front, int in_car); // 0x00032C10
|
||||
extern void PlacePoolForCar(CAR_DATA *cp, CVECTOR *col, int front, int in_car); // 0x00032C10
|
||||
|
||||
extern int AllocateLeaf(); // 0x00039A90
|
||||
|
||||
@ -43,7 +43,7 @@ extern void ReleaseLeaf(short num); // 0x00039D8C
|
||||
|
||||
extern void AddLeaf(VECTOR *Position, int num_leaves, int Type); // 0x00033574
|
||||
|
||||
extern void SwirlLeaves(_CAR_DATA *cp); // 0x00039E54
|
||||
extern void SwirlLeaves(CAR_DATA *cp); // 0x00039E54
|
||||
|
||||
extern void InitDebrisNames(); // 0x000337AC
|
||||
|
||||
@ -77,11 +77,11 @@ extern int damage_object(CELL_OBJECT *cop, VECTOR *velocity); // 0x00034DAC
|
||||
|
||||
extern void AddTrafficLight(CELL_OBJECT *cop, int x, int y, int z, int flag, int yang); // 0x00034F64
|
||||
|
||||
extern void InitFXPos(VECTOR *vec, SVECTOR *svec, _CAR_DATA *cp); // 0x00039C90
|
||||
extern void InitFXPos(VECTOR *vec, SVECTOR *svec, CAR_DATA *cp); // 0x00039C90
|
||||
|
||||
extern void FindCarLightFade(MATRIX *carToCamera); // 0x00039C68
|
||||
|
||||
extern void ShowCarlight(SVECTOR *v1, _CAR_DATA *cp, CVECTOR *col, short size, TEXTURE_DETAILS *texture, int flag); // 0x000352CC
|
||||
extern void ShowCarlight(SVECTOR *v1, CAR_DATA *cp, CVECTOR *col, short size, TEXTURE_DETAILS *texture, int flag); // 0x000352CC
|
||||
|
||||
extern void ShowLight1(VECTOR *v1, CVECTOR *col, short size, TEXTURE_DETAILS *texture); // 0x0003555C
|
||||
|
||||
@ -137,7 +137,7 @@ extern void DoThunder(); // 0x0003A144
|
||||
|
||||
extern void DoWeather(int weather); // 0x0003A000
|
||||
|
||||
extern int GetDebrisColour(_CAR_DATA *cp); // 0x00039FA8
|
||||
extern int GetDebrisColour(CAR_DATA *cp); // 0x00039FA8
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -52,17 +52,17 @@ void InitialiseDenting(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DentCar(struct _CAR_DATA *cp /*$t7*/)
|
||||
// void /*$ra*/ DentCar(CAR_DATA *cp /*$t7*/)
|
||||
// line 288, offset 0x0003a310
|
||||
/* begin block 1 */
|
||||
// Start line: 289
|
||||
// Start offset: 0x0003A310
|
||||
// Variables:
|
||||
// struct SVECTOR *VertPtr; // $t0
|
||||
// SVECTOR *VertPtr; // $t0
|
||||
// int MaxDamage; // $s0
|
||||
// unsigned char VertIndex; // $v0
|
||||
// unsigned char PolyIndex; // $v0
|
||||
// struct DENTUVS *dentptr; // $t1
|
||||
// DENTUVS *dentptr; // $t1
|
||||
// unsigned char *DamPtr; // $a2
|
||||
// int model; // $t5
|
||||
// int Poly; // $a1
|
||||
@ -70,9 +70,9 @@ void InitialiseDenting(void)
|
||||
// int Zone; // $a3
|
||||
// int VertNo; // $a2
|
||||
// short *tempDamage; // $t1
|
||||
// struct SVECTOR *DamVertPtr; // $a3
|
||||
// struct SVECTOR *CleanVertPtr; // $a1
|
||||
// struct MODEL *pCleanModel; // $t3
|
||||
// SVECTOR *DamVertPtr; // $a3
|
||||
// SVECTOR *CleanVertPtr; // $a1
|
||||
// MODEL *pCleanModel; // $t3
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 421
|
||||
@ -95,7 +95,7 @@ void InitialiseDenting(void)
|
||||
// End Line: 580
|
||||
|
||||
// [D] [T]
|
||||
void DentCar(_CAR_DATA *cp)
|
||||
void DentCar(CAR_DATA *cp)
|
||||
{
|
||||
int Zone;
|
||||
int Damage;
|
||||
@ -225,13 +225,13 @@ void DentCar(_CAR_DATA *cp)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ CreateDentableCar(struct _CAR_DATA *cp /*$t2*/)
|
||||
// void /*$ra*/ CreateDentableCar(CAR_DATA *cp /*$t2*/)
|
||||
// line 458, offset 0x0003a6e4
|
||||
/* begin block 1 */
|
||||
// Start line: 459
|
||||
// Start offset: 0x0003A6E4
|
||||
// Variables:
|
||||
// struct DENTUVS *dentptr; // $a3
|
||||
// DENTUVS *dentptr; // $a3
|
||||
// int Zone; // $v1
|
||||
// int count; // $a2
|
||||
// int model; // $t3
|
||||
@ -240,8 +240,8 @@ void DentCar(_CAR_DATA *cp)
|
||||
// Start line: 478
|
||||
// Start offset: 0x0003A710
|
||||
// Variables:
|
||||
// struct SVECTOR *dst; // $a2
|
||||
// struct SVECTOR *src; // $a3
|
||||
// SVECTOR *dst; // $a2
|
||||
// SVECTOR *src; // $a3
|
||||
// int count; // $t0
|
||||
|
||||
/* begin block 1.1.1 */
|
||||
@ -277,7 +277,7 @@ void DentCar(_CAR_DATA *cp)
|
||||
// End Line: 1139
|
||||
|
||||
// [D] [T]
|
||||
void CreateDentableCar(_CAR_DATA *cp)
|
||||
void CreateDentableCar(CAR_DATA *cp)
|
||||
{
|
||||
MODEL *srcModel;
|
||||
SVECTOR *dst;
|
||||
@ -404,15 +404,15 @@ void InitHubcap(void)
|
||||
// Start line: 601
|
||||
// Start offset: 0x0003A8F8
|
||||
// Variables:
|
||||
// struct _CAR_DATA *car_data_pt; // $s1
|
||||
// struct SVECTOR InitialLocalAngle; // stack offset -64
|
||||
// CAR_DATA *car_data_pt; // $s1
|
||||
// SVECTOR InitialLocalAngle; // stack offset -64
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 671
|
||||
// Start offset: 0x0003AA84
|
||||
// Variables:
|
||||
// struct VECTOR R; // stack offset -56
|
||||
// struct VECTOR VW; // stack offset -40
|
||||
// VECTOR R; // stack offset -56
|
||||
// VECTOR VW; // stack offset -40
|
||||
// long AY; // $t0
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x0003AAE0
|
||||
@ -444,7 +444,7 @@ void LoseHubcap(int car, int Hubcap, int Velocity)
|
||||
SVECTOR InitialLocalAngle = { 0, 0, 10 };
|
||||
VECTOR R;
|
||||
VECTOR VW;
|
||||
_CAR_DATA* cp;
|
||||
CAR_DATA* cp;
|
||||
|
||||
cp = &car_data[car];
|
||||
|
||||
@ -500,10 +500,10 @@ void LoseHubcap(int car, int Hubcap, int Velocity)
|
||||
// Start line: 708
|
||||
// Start offset: 0x0003AB4C
|
||||
// Variables:
|
||||
// struct _CAR_DATA *car_data_pt; // $a1
|
||||
// struct VECTOR Position; // stack offset -80
|
||||
// struct MATRIX Orientation; // stack offset -64
|
||||
// struct CVECTOR col; // stack offset -32
|
||||
// CAR_DATA *car_data_pt; // $a1
|
||||
// VECTOR Position; // stack offset -80
|
||||
// MATRIX Orientation; // stack offset -64
|
||||
// CVECTOR col; // stack offset -32
|
||||
// int VelocityMagnitude; // $s0
|
||||
// int CurrentMapHeight; // $a0
|
||||
// int savecombo; // $s0
|
||||
@ -553,7 +553,7 @@ void LoseHubcap(int car, int Hubcap, int Velocity)
|
||||
void HandlePlayerHubcaps(int playerId)
|
||||
{
|
||||
int VelocityMagnitude;
|
||||
_CAR_DATA* cp;
|
||||
CAR_DATA* cp;
|
||||
int playerCarId;
|
||||
|
||||
playerCarId = player[playerId].playerCarId;
|
||||
|
@ -4,9 +4,9 @@
|
||||
|
||||
extern void InitialiseDenting(); // 0x0003B1C0
|
||||
|
||||
extern void DentCar(struct _CAR_DATA *cp); // 0x0003A310
|
||||
extern void DentCar(CAR_DATA *cp); // 0x0003A310
|
||||
|
||||
extern void CreateDentableCar(struct _CAR_DATA *cp); // 0x0003A6E4
|
||||
extern void CreateDentableCar(CAR_DATA *cp); // 0x0003A6E4
|
||||
|
||||
extern void InitHubcap(); // 0x0003A874
|
||||
|
||||
|
@ -237,7 +237,7 @@ void DeleteCurrentCamera(int CameraCnt)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ setCamera(struct PLAYBACKCAMERA *Change /*$a0*/)
|
||||
// void /*$ra*/ setCamera(PLAYBACKCAMERA *Change /*$a0*/)
|
||||
// line 493, offset 0x0003e89c
|
||||
/* begin block 1 */
|
||||
// Start line: 3304
|
||||
@ -393,7 +393,7 @@ void EditCamera(int CameraCnt)
|
||||
// Start line: 575
|
||||
// Start offset: 0x0003B548
|
||||
// Variables:
|
||||
// struct PLAYBACKCAMERA *TempChange; // $a1
|
||||
// PLAYBACKCAMERA *TempChange; // $a1
|
||||
/* end block 1 */
|
||||
// End offset: 0x0003B794
|
||||
// End Line: 632
|
||||
@ -483,7 +483,7 @@ void RecordCamera(int CameraCnt)
|
||||
// int count; // $a3
|
||||
// int nextframe; // $a2
|
||||
// int found; // $t0
|
||||
// struct PLAYBACKCAMERA *RestoreChange; // $t1
|
||||
// PLAYBACKCAMERA *RestoreChange; // $t1
|
||||
/* end block 1 */
|
||||
// End offset: 0x0003E9B8
|
||||
// End Line: 655
|
||||
@ -609,7 +609,7 @@ int CheckCameraChange(int CameraCnt)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ SetPlaybackCamera(struct PLAYBACKCAMERA *camera /*$a0*/)
|
||||
// void /*$ra*/ SetPlaybackCamera(PLAYBACKCAMERA *camera /*$a0*/)
|
||||
// line 710, offset 0x0003ec0c
|
||||
/* begin block 1 */
|
||||
// Start line: 5354
|
||||
@ -659,13 +659,13 @@ void SetPlaybackCamera(PLAYBACKCAMERA* camera)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ IsMovingCamera(struct PLAYBACKCAMERA *lastcam /*$t3*/, struct PLAYBACKCAMERA *nextcam /*$t0*/, int cameracnt /*$a2*/)
|
||||
// int /*$ra*/ IsMovingCamera(PLAYBACKCAMERA *lastcam /*$t3*/, PLAYBACKCAMERA *nextcam /*$t0*/, int cameracnt /*$a2*/)
|
||||
// line 731, offset 0x0003b8c8
|
||||
/* begin block 1 */
|
||||
// Start line: 732
|
||||
// Start offset: 0x0003B8C8
|
||||
// Variables:
|
||||
// struct PLAYBACKCAMERA cam; // stack offset -56
|
||||
// PLAYBACKCAMERA cam; // stack offset -56
|
||||
// long xdist; // $t5
|
||||
// long ydist; // $t6
|
||||
// long zdist; // $t4
|
||||
@ -768,8 +768,8 @@ int IsMovingCamera(PLAYBACKCAMERA* lastcam, PLAYBACKCAMERA* nextcam, int camerac
|
||||
// Start line: 795
|
||||
// Start offset: 0x0003BBA8
|
||||
// Variables:
|
||||
// struct POLY_G4 *camera; // $a2
|
||||
// struct LINE_F2 *bar; // $t2
|
||||
// POLY_G4 *camera; // $a2
|
||||
// LINE_F2 *bar; // $t2
|
||||
// int x; // $a2
|
||||
// int min_x; // $t1
|
||||
// int max_x; // $t0
|
||||
@ -1028,7 +1028,7 @@ void CameraBar(int CameraCnt)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// struct PLAYBACKCAMERA * /*$ra*/ FindFreeCamera()
|
||||
// PLAYBACKCAMERA * /*$ra*/ FindFreeCamera()
|
||||
// line 929, offset 0x0003e9b8
|
||||
/* begin block 1 */
|
||||
// Start line: 931
|
||||
@ -1118,7 +1118,7 @@ void deleteCamera(int count)
|
||||
// Start line: 953
|
||||
// Start offset: 0x0003EA40
|
||||
// Variables:
|
||||
// struct PLAYBACKCAMERA nextcamera; // stack offset -48
|
||||
// PLAYBACKCAMERA nextcamera; // stack offset -48
|
||||
// int count; // $s0
|
||||
/* end block 1 */
|
||||
// End offset: 0x0003EAA4
|
||||
@ -1172,15 +1172,15 @@ void DeleteAllCameras(void)
|
||||
// Start offset: 0x0003C1B0
|
||||
// Variables:
|
||||
// static int FlashCnt; // offset 0x0
|
||||
// struct REPLAY_ICON *IconPtr; // $s0
|
||||
// struct SPRT *icon; // $a2
|
||||
// REPLAY_ICON *IconPtr; // $s0
|
||||
// SPRT *icon; // $a2
|
||||
// int count; // $s6
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 1027
|
||||
// Start offset: 0x0003C340
|
||||
// Variables:
|
||||
// struct TEXTURE_DETAILS *Icon_texture; // $s1
|
||||
// TEXTURE_DETAILS *Icon_texture; // $s1
|
||||
// int min_x; // $v1
|
||||
// int min_y; // $a0
|
||||
|
||||
@ -1571,7 +1571,7 @@ void ShowReplayMenu(void)
|
||||
// Start line: 1327
|
||||
// Start offset: 0x0003CC34
|
||||
// Variables:
|
||||
// struct ROUTE_DATA routeData; // stack offset -96
|
||||
// ROUTE_DATA routeData; // stack offset -96
|
||||
// int road_height; // $s1
|
||||
/* end block 1.1.3 */
|
||||
// End offset: 0x0003CCB0
|
||||
@ -1581,7 +1581,7 @@ void ShowReplayMenu(void)
|
||||
// Start line: 1347
|
||||
// Start offset: 0x0003CCBC
|
||||
// Variables:
|
||||
// struct VECTOR old_camera; // stack offset -88
|
||||
// VECTOR old_camera; // stack offset -88
|
||||
// int x; // $s5
|
||||
// int z; // $s4
|
||||
// int d; // $s3
|
||||
@ -1589,14 +1589,14 @@ void ShowReplayMenu(void)
|
||||
// char cameraCar; // $a0
|
||||
// int dx; // $s1
|
||||
// int dz; // $s0
|
||||
// struct VECTOR basePos; // stack offset -72
|
||||
// struct VECTOR tmpPos; // stack offset -56
|
||||
// VECTOR basePos; // stack offset -72
|
||||
// VECTOR tmpPos; // stack offset -56
|
||||
|
||||
/* begin block 1.1.4.1 */
|
||||
// Start line: 1372
|
||||
// Start offset: 0x0003CD38
|
||||
// Variables:
|
||||
// struct _EVENT *event; // $a1
|
||||
// EVENT *event; // $a1
|
||||
/* end block 1.1.4.1 */
|
||||
// End offset: 0x0003CD68
|
||||
// End Line: 1376
|
||||
@ -1621,7 +1621,7 @@ void ShowReplayMenu(void)
|
||||
// Start line: 1454
|
||||
// Start offset: 0x0003CF74
|
||||
// Variables:
|
||||
// struct ROUTE_DATA routeData; // stack offset -40
|
||||
// ROUTE_DATA routeData; // stack offset -40
|
||||
// int road_height; // $s1
|
||||
/* end block 1.1.4.4 */
|
||||
// End offset: 0x0003D064
|
||||
@ -1855,7 +1855,7 @@ void ControlReplay(void)
|
||||
}
|
||||
else
|
||||
{
|
||||
_EVENT* ev;
|
||||
EVENT* ev;
|
||||
ev = events.track[-2 - cameraCar];
|
||||
|
||||
basePos.vx = ev->position.vx;
|
||||
@ -2615,7 +2615,7 @@ void ControlReplay(void)
|
||||
// Start line: 1992
|
||||
// Start offset: 0x0003DE60
|
||||
// Variables:
|
||||
// struct VECTOR pos; // stack offset -40
|
||||
// VECTOR pos; // stack offset -40
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 1998
|
||||
@ -2821,9 +2821,9 @@ void DoAutoDirect(void)
|
||||
// Start line: 2123
|
||||
// Start offset: 0x0003E3A0
|
||||
// Variables:
|
||||
// struct _EVENT *event; // $a0
|
||||
// struct _CAR_DATA *car; // $a3
|
||||
// struct XZPAIR pos; // stack offset -16
|
||||
// EVENT *event; // $a0
|
||||
// CAR_DATA *car; // $a3
|
||||
// XZPAIR pos; // stack offset -16
|
||||
|
||||
/* begin block 1.1.1 */
|
||||
// Start line: 2168
|
||||
@ -2857,10 +2857,10 @@ int SelectCameraCar(int current)
|
||||
{
|
||||
int count;
|
||||
|
||||
_EVENT* event;
|
||||
EVENT* event;
|
||||
int dz;
|
||||
int dx;
|
||||
_CAR_DATA* car;
|
||||
CAR_DATA* car;
|
||||
XZPAIR pos;
|
||||
|
||||
if (current >= MAX_CARS)
|
||||
@ -2963,8 +2963,8 @@ int SelectCameraCar(int current)
|
||||
// Start offset: 0x0003E5D0
|
||||
// Variables:
|
||||
// char numEventModels; // $a0
|
||||
// struct _EVENT *event; // $v1
|
||||
// struct XZPAIR pos; // stack offset -24
|
||||
// EVENT *event; // $v1
|
||||
// XZPAIR pos; // stack offset -24
|
||||
|
||||
/* begin block 1.1.1.1 */
|
||||
// Start line: 2208
|
||||
@ -3051,7 +3051,7 @@ int InvalidCamera(int car_num)
|
||||
// check events
|
||||
if (car_num < -1)
|
||||
{
|
||||
_EVENT* event;
|
||||
EVENT* event;
|
||||
XZPAIR pos;
|
||||
|
||||
numEventModels = 0;
|
||||
@ -3193,7 +3193,7 @@ int FirstCamera(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ dist(struct VECTOR *pos1 /*$a0*/, struct VECTOR *pos2 /*$a1*/)
|
||||
// int /*$ra*/ dist(VECTOR *pos1 /*$a0*/, VECTOR *pos2 /*$a1*/)
|
||||
// line 2289, offset 0x0003eb9c
|
||||
/* begin block 1 */
|
||||
// Start line: 2290
|
||||
@ -3242,7 +3242,7 @@ int dist(VECTOR* pos1, VECTOR* pos2)
|
||||
// Start line: 2304
|
||||
// Start offset: 0x0003ECC4
|
||||
// Variables:
|
||||
// struct PLAYBACKCAMERA *next; // $a1
|
||||
// PLAYBACKCAMERA *next; // $a1
|
||||
// int count; // $a2
|
||||
/* end block 1 */
|
||||
// End offset: 0x0003ED7C
|
||||
|
@ -30,7 +30,7 @@ extern void InitDirectorVariables(); // 0x0003E79C
|
||||
|
||||
extern void DeleteCurrentCamera(int CameraCnt); // 0x0003E808
|
||||
|
||||
extern void setCamera(struct PLAYBACKCAMERA *Change); // 0x0003E89C
|
||||
extern void setCamera(PLAYBACKCAMERA *Change); // 0x0003E89C
|
||||
|
||||
extern void EditCamera(int CameraCnt); // 0x0003B2E4
|
||||
|
||||
@ -40,13 +40,13 @@ extern void FindNextChange(int CameraCnt); // 0x0003E94C
|
||||
|
||||
extern int CheckCameraChange(int CameraCnt); // 0x0003B794
|
||||
|
||||
extern void SetPlaybackCamera(struct PLAYBACKCAMERA *camera); // 0x0003EC0C
|
||||
extern void SetPlaybackCamera(PLAYBACKCAMERA *camera); // 0x0003EC0C
|
||||
|
||||
extern int IsMovingCamera(struct PLAYBACKCAMERA *lastcam, struct PLAYBACKCAMERA *nextcam, int cameracnt); // 0x0003B8C8
|
||||
extern int IsMovingCamera(PLAYBACKCAMERA *lastcam, PLAYBACKCAMERA *nextcam, int cameracnt); // 0x0003B8C8
|
||||
|
||||
extern void CameraBar(int CameraCnt); // 0x0003BBA8
|
||||
|
||||
extern struct PLAYBACKCAMERA * FindFreeCamera(); // 0x0003E9B8
|
||||
extern PLAYBACKCAMERA * FindFreeCamera(); // 0x0003E9B8
|
||||
|
||||
extern void deleteCamera(int count); // 0x0003E9F8
|
||||
|
||||
|
@ -47,7 +47,7 @@ int GetSurfaceRoadInfo(DRIVER2_ROAD_INFO* outRoadInfo, int surfId)
|
||||
if(IS_CURVED_SURFACE(surfId))
|
||||
{
|
||||
outRoadInfo->curve = curve = GET_CURVE(surfId);
|
||||
outRoadInfo->ConnectIdx = (short(*)[4])curve->ConnectIdx;
|
||||
outRoadInfo->ConnectIdx = &curve->ConnectIdx;
|
||||
outRoadInfo->NumLanes = curve->NumLanes;
|
||||
outRoadInfo->LaneDirs = curve->LaneDirs;
|
||||
outRoadInfo->AILanes = curve->AILanes;
|
||||
@ -56,7 +56,7 @@ int GetSurfaceRoadInfo(DRIVER2_ROAD_INFO* outRoadInfo, int surfId)
|
||||
else if (IS_STRAIGHT_SURFACE(surfId))
|
||||
{
|
||||
outRoadInfo->straight = straight = GET_STRAIGHT(surfId);
|
||||
outRoadInfo->ConnectIdx = (short(*)[4])straight->ConnectIdx;
|
||||
outRoadInfo->ConnectIdx = &straight->ConnectIdx;
|
||||
outRoadInfo->NumLanes = straight->NumLanes;
|
||||
outRoadInfo->LaneDirs = straight->LaneDirs;
|
||||
outRoadInfo->AILanes = straight->AILanes;
|
||||
@ -139,8 +139,8 @@ void ProcessCurvesDriver2Lump(char *lump_file, int lump_size)
|
||||
// Start offset: 0x0001375C
|
||||
// Variables:
|
||||
// int loop; // $v1
|
||||
// struct OLD_DRIVER2_JUNCTION *old; // $a1
|
||||
// struct DRIVER2_JUNCTION *p; // $a0
|
||||
// OLD_DRIVER2_JUNCTION *old; // $a1
|
||||
// DRIVER2_JUNCTION *p; // $a0
|
||||
|
||||
/* begin block 1.1.1 */
|
||||
// Start line: 107
|
||||
@ -203,14 +203,14 @@ void ProcessJunctionsDriver2Lump(char *lump_file, int lump_size, int fix)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ MapHeight(struct VECTOR *pos /*$s0*/)
|
||||
// int /*$ra*/ MapHeight(VECTOR *pos /*$s0*/)
|
||||
// line 146, offset 0x000137cc
|
||||
/* begin block 1 */
|
||||
// Start line: 147
|
||||
// Start offset: 0x000137CC
|
||||
// Variables:
|
||||
// int height; // $v0
|
||||
// struct _sdPlane *plane; // $v0
|
||||
// sdPlane *plane; // $v0
|
||||
/* end block 1 */
|
||||
// End offset: 0x0001380C
|
||||
// End Line: 162
|
||||
@ -228,7 +228,7 @@ void ProcessJunctionsDriver2Lump(char *lump_file, int lump_size, int fix)
|
||||
// [D] [T]
|
||||
int MapHeight(VECTOR *pos)
|
||||
{
|
||||
_sdPlane *plane;
|
||||
sdPlane *plane;
|
||||
|
||||
plane = sdGetCell(pos);
|
||||
|
||||
@ -242,7 +242,7 @@ int MapHeight(VECTOR *pos)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ FindSurfaceD2(struct VECTOR *pos /*$s0*/, struct VECTOR *normal /*$s1*/, struct VECTOR *out /*$s3*/, struct _sdPlane **plane /*$s2*/)
|
||||
// int /*$ra*/ FindSurfaceD2(VECTOR *pos /*$s0*/, VECTOR *normal /*$s1*/, VECTOR *out /*$s3*/, sdPlane **plane /*$s2*/)
|
||||
// line 164, offset 0x00012ef4
|
||||
/* begin block 1 */
|
||||
// Start line: 328
|
||||
@ -250,7 +250,7 @@ int MapHeight(VECTOR *pos)
|
||||
// End Line: 329
|
||||
|
||||
// [D] [T]
|
||||
int FindSurfaceD2(VECTOR *pos, VECTOR *normal, VECTOR *out, _sdPlane **plane)
|
||||
int FindSurfaceD2(VECTOR *pos, VECTOR *normal, VECTOR *out, sdPlane **plane)
|
||||
{
|
||||
*plane = sdGetCell(pos);
|
||||
out->vx = pos->vx;
|
||||
@ -292,7 +292,7 @@ int FindSurfaceD2(VECTOR *pos, VECTOR *normal, VECTOR *out, _sdPlane **plane)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ sdHeightOnPlane(struct VECTOR *pos /*$t0*/, struct _sdPlane *plane /*$a1*/)
|
||||
// int /*$ra*/ sdHeightOnPlane(VECTOR *pos /*$t0*/, sdPlane *plane /*$a1*/)
|
||||
// line 205, offset 0x000130d4
|
||||
/* begin block 1 */
|
||||
// Start line: 206
|
||||
@ -304,7 +304,7 @@ int FindSurfaceD2(VECTOR *pos, VECTOR *normal, VECTOR *out, _sdPlane **plane)
|
||||
// Variables:
|
||||
// int angle; // $v0
|
||||
// int i; // $v0
|
||||
// struct DRIVER2_CURVE *curve; // $s0
|
||||
// DRIVER2_CURVE *curve; // $s0
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x0001319C
|
||||
// End Line: 228
|
||||
@ -337,7 +337,7 @@ int FindSurfaceD2(VECTOR *pos, VECTOR *normal, VECTOR *out, _sdPlane **plane)
|
||||
// End Line: 411
|
||||
|
||||
// [D] [T]
|
||||
int sdHeightOnPlane(VECTOR *pos, _sdPlane *plane)
|
||||
int sdHeightOnPlane(VECTOR *pos, sdPlane *plane)
|
||||
{
|
||||
long angle;
|
||||
int i, d;
|
||||
@ -382,13 +382,13 @@ int sdHeightOnPlane(VECTOR *pos, _sdPlane *plane)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ GetSurfaceIndex(struct VECTOR *pos /*$a0*/)
|
||||
// int /*$ra*/ GetSurfaceIndex(VECTOR *pos /*$a0*/)
|
||||
// line 250, offset 0x0001380c
|
||||
/* begin block 1 */
|
||||
// Start line: 252
|
||||
// Start offset: 0x0001380C
|
||||
// Variables:
|
||||
// struct _sdPlane *plane; // $v0
|
||||
// sdPlane *plane; // $v0
|
||||
/* end block 1 */
|
||||
// End offset: 0x00013848
|
||||
// End Line: 260
|
||||
@ -416,7 +416,7 @@ int sdHeightOnPlane(VECTOR *pos, _sdPlane *plane)
|
||||
// [D] [T]
|
||||
int GetSurfaceIndex(VECTOR *pos)
|
||||
{
|
||||
_sdPlane *plane = sdGetCell(pos);
|
||||
sdPlane *plane = sdGetCell(pos);
|
||||
|
||||
if (plane == NULL)
|
||||
return -32;
|
||||
@ -428,13 +428,13 @@ int GetSurfaceIndex(VECTOR *pos)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// struct _sdPlane * /*$ra*/ FindRoadInBSP(struct _sdNode *node /*$s0*/, struct _sdPlane *base /*$s1*/)
|
||||
// sdPlane * /*$ra*/ FindRoadInBSP(_sdNode *node /*$s0*/, sdPlane *base /*$s1*/)
|
||||
// line 266, offset 0x000138f0
|
||||
/* begin block 1 */
|
||||
// Start line: 268
|
||||
// Start offset: 0x00013908
|
||||
// Variables:
|
||||
// struct _sdPlane *plane; // $v0
|
||||
// sdPlane *plane; // $v0
|
||||
/* end block 1 */
|
||||
// End offset: 0x00013980
|
||||
// End Line: 293
|
||||
@ -450,9 +450,9 @@ int GetSurfaceIndex(VECTOR *pos)
|
||||
// End Line: 1464
|
||||
|
||||
// [D] [T]
|
||||
_sdPlane * FindRoadInBSP(_sdNode *node, _sdPlane *base)
|
||||
sdPlane * FindRoadInBSP(_sdNode *node, sdPlane *base)
|
||||
{
|
||||
_sdPlane *plane;
|
||||
sdPlane *plane;
|
||||
|
||||
while (true)
|
||||
{
|
||||
@ -477,17 +477,17 @@ _sdPlane * FindRoadInBSP(_sdNode *node, _sdPlane *base)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ RoadInCell(struct VECTOR *pos /*$s5*/)
|
||||
// int /*$ra*/ RoadInCell(VECTOR *pos /*$s5*/)
|
||||
// line 295, offset 0x0001322c
|
||||
/* begin block 1 */
|
||||
// Start line: 296
|
||||
// Start offset: 0x0001322C
|
||||
// Variables:
|
||||
// char *buffer; // $s2
|
||||
// struct XYPAIR cellPos; // stack offset -48
|
||||
// struct XYPAIR cell; // stack offset -40
|
||||
// XYPAIR cellPos; // stack offset -48
|
||||
// XYPAIR cell; // stack offset -40
|
||||
// short *surface; // $a0
|
||||
// struct _sdPlane *plane; // $s0
|
||||
// sdPlane *plane; // $s0
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 331
|
||||
@ -495,7 +495,7 @@ _sdPlane * FindRoadInBSP(_sdNode *node, _sdPlane *base)
|
||||
// Variables:
|
||||
// int moreLevels; // $s3
|
||||
// short *check; // $s1
|
||||
// struct _sdPlane *base; // $s4
|
||||
// sdPlane *base; // $s4
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x000133E4
|
||||
// End Line: 372
|
||||
@ -523,10 +523,10 @@ int RoadInCell(VECTOR *pos)
|
||||
{
|
||||
int moreLevels;
|
||||
short sVar2;
|
||||
_sdPlane *plane;
|
||||
sdPlane *plane;
|
||||
short *check;
|
||||
short *buffer;
|
||||
struct XYPAIR cellPos;
|
||||
XYPAIR cellPos;
|
||||
|
||||
cellPos.x = pos->vx - 512;
|
||||
cellPos.y = pos->vz - 512;
|
||||
@ -553,14 +553,14 @@ int RoadInCell(VECTOR *pos)
|
||||
|
||||
if (*check & 0x4000)
|
||||
{
|
||||
plane = FindRoadInBSP((_sdNode *)((int)buffer + (*check & 0x3fff) * sizeof(_sdNode) + buffer[3]), (_sdPlane *)((int)buffer + buffer[1]));
|
||||
plane = FindRoadInBSP((_sdNode *)((int)buffer + (*check & 0x3fff) * sizeof(_sdNode) + buffer[3]), (sdPlane *)((int)buffer + buffer[1]));
|
||||
|
||||
if (plane != NULL)
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
plane = (_sdPlane *)((int)buffer + buffer[1]) + *check;
|
||||
plane = (sdPlane *)((int)buffer + buffer[1]) + *check;
|
||||
|
||||
if (plane->surface > 31)
|
||||
break;
|
||||
@ -571,7 +571,7 @@ int RoadInCell(VECTOR *pos)
|
||||
}
|
||||
else if ((*check & 0xE000) == 0)
|
||||
{
|
||||
plane = (_sdPlane *)((int)buffer + *check * sizeof(_sdPlane) + buffer[1]);
|
||||
plane = (sdPlane *)((int)buffer + *check * sizeof(sdPlane) + buffer[1]);
|
||||
}
|
||||
else
|
||||
plane = NULL;
|
||||
@ -593,7 +593,7 @@ int RoadInCell(VECTOR *pos)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// struct _sdPlane * /*$ra*/ sdGetCell(struct VECTOR *pos /*$s3*/)
|
||||
// sdPlane * /*$ra*/ sdGetCell(VECTOR *pos /*$s3*/)
|
||||
// line 400, offset 0x0001346c
|
||||
/* begin block 1 */
|
||||
// Start line: 401
|
||||
@ -602,9 +602,9 @@ int RoadInCell(VECTOR *pos)
|
||||
// char *buffer; // $s1
|
||||
// short *surface; // $s0
|
||||
// int nextLevel; // $s2
|
||||
// struct _sdPlane *plane; // $a1
|
||||
// struct XYPAIR cell; // stack offset -40
|
||||
// struct XYPAIR cellPos; // stack offset -32
|
||||
// sdPlane *plane; // $a1
|
||||
// XYPAIR cell; // stack offset -40
|
||||
// XYPAIR cellPos; // stack offset -32
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 441
|
||||
@ -645,10 +645,10 @@ int RoadInCell(VECTOR *pos)
|
||||
int sdLevel = 0; // pathfinding value
|
||||
|
||||
// [D] [T]
|
||||
_sdPlane * sdGetCell(VECTOR *pos)
|
||||
sdPlane * sdGetCell(VECTOR *pos)
|
||||
{
|
||||
int nextLevel;
|
||||
_sdPlane *plane;
|
||||
sdPlane *plane;
|
||||
short *surface;
|
||||
short *BSPSurface;
|
||||
short *buffer;
|
||||
@ -711,7 +711,7 @@ _sdPlane * sdGetCell(VECTOR *pos)
|
||||
surface = BSPSurface;
|
||||
} while (nextLevel);
|
||||
|
||||
plane = (_sdPlane *)((int)buffer + *BSPSurface * sizeof(_sdPlane) + buffer[1]);
|
||||
plane = (sdPlane *)((int)buffer + *BSPSurface * sizeof(sdPlane) + buffer[1]);
|
||||
|
||||
if ((((uint)plane & 3) == 0) && (*(int *)plane != -1))
|
||||
{
|
||||
@ -735,7 +735,7 @@ _sdPlane * sdGetCell(VECTOR *pos)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// short * /*$ra*/ sdGetBSP(struct _sdNode *node /*$a3*/, struct XYPAIR *pos /*$a1*/)
|
||||
// short * /*$ra*/ sdGetBSP(_sdNode *node /*$a3*/, XYPAIR *pos /*$a1*/)
|
||||
// line 505, offset 0x00013848
|
||||
/* begin block 1 */
|
||||
// Start line: 506
|
||||
|
@ -74,17 +74,17 @@ extern void ProcessJunctionsDriver2Lump(char *lump_file, int lump_size, int fix)
|
||||
|
||||
extern int MapHeight(VECTOR *pos); // 0x000137CC
|
||||
|
||||
extern int FindSurfaceD2(VECTOR *pos, VECTOR *normal, VECTOR *out, _sdPlane **plane); // 0x00012EF4
|
||||
extern int FindSurfaceD2(VECTOR *pos, VECTOR *normal, VECTOR *out, sdPlane **plane); // 0x00012EF4
|
||||
|
||||
extern int sdHeightOnPlane(VECTOR *pos, _sdPlane *plane); // 0x000130D4
|
||||
extern int sdHeightOnPlane(VECTOR *pos, sdPlane *plane); // 0x000130D4
|
||||
|
||||
extern int GetSurfaceIndex(VECTOR *pos); // 0x0001380C
|
||||
|
||||
extern _sdPlane * FindRoadInBSP(_sdNode *node, _sdPlane *base); // 0x000138F0
|
||||
extern sdPlane * FindRoadInBSP(_sdNode *node, sdPlane *base); // 0x000138F0
|
||||
|
||||
extern int RoadInCell(VECTOR *pos); // 0x0001322C
|
||||
|
||||
extern _sdPlane * sdGetCell(VECTOR *pos); // 0x0001346C
|
||||
extern sdPlane * sdGetCell(VECTOR *pos); // 0x0001346C
|
||||
|
||||
extern short * sdGetBSP(_sdNode *node, XYPAIR *pos); // 0x00013848
|
||||
|
||||
|
@ -125,7 +125,7 @@ _pct plotContext;
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ addSubdivSpriteShadow(struct POLYFT4LIT *src /*$t3*/, struct SVECTOR *verts /*$t2*/, int z /*$a2*/)
|
||||
// void /*$ra*/ addSubdivSpriteShadow(POLYFT4LIT *src /*$t3*/, SVECTOR *verts /*$t2*/, int z /*$a2*/)
|
||||
// line 651, offset 0x0003ed7c
|
||||
/* begin block 1 */
|
||||
// Start line: 652
|
||||
@ -133,7 +133,7 @@ _pct plotContext;
|
||||
// Variables:
|
||||
// unsigned long word0; // $a0
|
||||
// unsigned long vidx; // $t1
|
||||
// struct _pct *pc; // $t0
|
||||
// _pct *pc; // $t0
|
||||
// int w; // $s0
|
||||
/* end block 1 */
|
||||
// End offset: 0x0003EF64
|
||||
@ -196,8 +196,8 @@ void addSubdivSpriteShadow(POLYFT4* src, SVECTOR* verts, int z)
|
||||
// Start line: 676
|
||||
// Start offset: 0x0003EF64
|
||||
// Variables:
|
||||
// struct XZPAIR near; // stack offset -80
|
||||
// struct PACKED_CELL_OBJECT **list; // stack offset -64
|
||||
// XZPAIR near; // stack offset -80
|
||||
// PACKED_CELL_OBJECT **list; // stack offset -64
|
||||
// unsigned long spriteColour; // stack offset -60
|
||||
// int numShadows; // stack offset -56
|
||||
|
||||
@ -205,7 +205,7 @@ void addSubdivSpriteShadow(POLYFT4* src, SVECTOR* verts, int z)
|
||||
// Start line: 676
|
||||
// Start offset: 0x0003EF64
|
||||
// Variables:
|
||||
// struct SVECTOR result; // stack offset -72
|
||||
// SVECTOR result; // stack offset -72
|
||||
// unsigned char lightLevel; // $a1
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x0003F0FC
|
||||
@ -224,8 +224,8 @@ void addSubdivSpriteShadow(POLYFT4* src, SVECTOR* verts, int z)
|
||||
// Start line: 743
|
||||
// Start offset: 0x0003F1F0
|
||||
// Variables:
|
||||
// struct PACKED_CELL_OBJECT *ppco; // $fp
|
||||
// struct MODEL *model; // $s4
|
||||
// PACKED_CELL_OBJECT *ppco; // $fp
|
||||
// MODEL *model; // $s4
|
||||
// int z; // stack offset -52
|
||||
// int yang; // $a0
|
||||
|
||||
@ -240,8 +240,8 @@ void addSubdivSpriteShadow(POLYFT4* src, SVECTOR* verts, int z)
|
||||
// Start line: 776
|
||||
// Start offset: 0x0003F2F0
|
||||
// Variables:
|
||||
// struct POLYFT4LIT *src; // $s0
|
||||
// struct SVECTOR *verts; // $s3
|
||||
// POLYFT4LIT *src; // $s0
|
||||
// SVECTOR *verts; // $s3
|
||||
// int i; // $s1
|
||||
|
||||
/* begin block 1.3.2.1 */
|
||||
@ -435,7 +435,7 @@ void DrawSprites(PACKED_CELL_OBJECT** sprites, int numFound)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ DrawAllBuildings(unsigned long *objects /*$t3*/, int num_buildings /*$s5*/, struct DB *disp /*$a2*/)
|
||||
// int /*$ra*/ DrawAllBuildings(unsigned long *objects /*$t3*/, int num_buildings /*$s5*/, DB *disp /*$a2*/)
|
||||
// line 2053, offset 0x000411f4
|
||||
/* begin block 1 */
|
||||
// Start line: 2054
|
||||
@ -444,8 +444,8 @@ void DrawSprites(PACKED_CELL_OBJECT** sprites, int numFound)
|
||||
// int i; // $s3
|
||||
// int model_number; // $v0
|
||||
// int prev_mat; // $s4
|
||||
// struct MODEL *model; // $a0
|
||||
// struct CELL_OBJECT *building; // $s0
|
||||
// MODEL *model; // $a0
|
||||
// CELL_OBJECT *building; // $s0
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 2091
|
||||
@ -567,8 +567,8 @@ int DrawAllBuildings(CELL_OBJECT** objects, int num_buildings)
|
||||
// Start line: 884
|
||||
// Start offset: 0x0003F6B0
|
||||
// Variables:
|
||||
// struct CELL_ITERATOR ci; // stack offset -184
|
||||
// struct PACKED_CELL_OBJECT *ppco; // $s0
|
||||
// CELL_ITERATOR ci; // stack offset -184
|
||||
// PACKED_CELL_OBJECT *ppco; // $s0
|
||||
// int i; // $s1
|
||||
// int dir; // $s7
|
||||
// int cellxpos; // $a0
|
||||
@ -581,7 +581,7 @@ int DrawAllBuildings(CELL_OBJECT** objects, int num_buildings)
|
||||
// int tiles_found; // stack offset -100
|
||||
// int other_models_found; // stack offset -96
|
||||
// int anim_objs_found; // $s6
|
||||
// struct MATRIX mRotStore; // stack offset -160
|
||||
// MATRIX mRotStore; // stack offset -160
|
||||
// int rightcos; // stack offset -92
|
||||
// int rightsin; // stack offset -88
|
||||
// int leftcos; // stack offset -84
|
||||
@ -597,7 +597,7 @@ int DrawAllBuildings(CELL_OBJECT** objects, int num_buildings)
|
||||
// Start line: 967
|
||||
// Start offset: 0x0003F964
|
||||
// Variables:
|
||||
// struct MODEL *model; // $s2
|
||||
// MODEL *model; // $s2
|
||||
|
||||
/* begin block 1.1.1 */
|
||||
// Start line: 975
|
||||
@ -609,19 +609,19 @@ int DrawAllBuildings(CELL_OBJECT** objects, int num_buildings)
|
||||
// Start line: 986
|
||||
// Start offset: 0x0003FA10
|
||||
// Variables:
|
||||
// struct CELL_OBJECT *cop; // $a2
|
||||
// CELL_OBJECT *cop; // $a2
|
||||
|
||||
/* begin block 1.1.1.1.1 */
|
||||
// Start line: 884
|
||||
// Start offset: 0x0003FA10
|
||||
// Variables:
|
||||
// struct PACKED_CELL_OBJECT *ppco; // $s0
|
||||
// PACKED_CELL_OBJECT *ppco; // $s0
|
||||
|
||||
/* begin block 1.1.1.1.1.1 */
|
||||
// Start line: 884
|
||||
// Start offset: 0x0003FA10
|
||||
// Variables:
|
||||
// struct CELL_OBJECT *pco; // $a1
|
||||
// CELL_OBJECT *pco; // $a1
|
||||
/* end block 1.1.1.1.1.1 */
|
||||
// End offset: 0x0003FAB8
|
||||
// End Line: 884
|
||||
@ -636,19 +636,19 @@ int DrawAllBuildings(CELL_OBJECT** objects, int num_buildings)
|
||||
// Start line: 993
|
||||
// Start offset: 0x0003FAF4
|
||||
// Variables:
|
||||
// struct CELL_OBJECT *cop; // $a2
|
||||
// CELL_OBJECT *cop; // $a2
|
||||
|
||||
/* begin block 1.1.1.2.1 */
|
||||
// Start line: 884
|
||||
// Start offset: 0x0003FAF4
|
||||
// Variables:
|
||||
// struct PACKED_CELL_OBJECT *ppco; // $s0
|
||||
// PACKED_CELL_OBJECT *ppco; // $s0
|
||||
|
||||
/* begin block 1.1.1.2.1.1 */
|
||||
// Start line: 884
|
||||
// Start offset: 0x0003FAF4
|
||||
// Variables:
|
||||
// struct CELL_OBJECT *pco; // $a1
|
||||
// CELL_OBJECT *pco; // $a1
|
||||
/* end block 1.1.1.2.1.1 */
|
||||
// End offset: 0x0003FB9C
|
||||
// End Line: 884
|
||||
@ -672,19 +672,19 @@ int DrawAllBuildings(CELL_OBJECT** objects, int num_buildings)
|
||||
// Start line: 1018
|
||||
// Start offset: 0x0003FD0C
|
||||
// Variables:
|
||||
// struct CELL_OBJECT *cop; // $a2
|
||||
// CELL_OBJECT *cop; // $a2
|
||||
|
||||
/* begin block 1.1.1.4.1 */
|
||||
// Start line: 884
|
||||
// Start offset: 0x0003FD0C
|
||||
// Variables:
|
||||
// struct PACKED_CELL_OBJECT *ppco; // $s0
|
||||
// PACKED_CELL_OBJECT *ppco; // $s0
|
||||
|
||||
/* begin block 1.1.1.4.1.1 */
|
||||
// Start line: 884
|
||||
// Start offset: 0x0003FD0C
|
||||
// Variables:
|
||||
// struct CELL_OBJECT *pco; // $a1
|
||||
// CELL_OBJECT *pco; // $a1
|
||||
/* end block 1.1.1.4.1.1 */
|
||||
// End offset: 0x0003FDB4
|
||||
// End Line: 884
|
||||
@ -699,19 +699,19 @@ int DrawAllBuildings(CELL_OBJECT** objects, int num_buildings)
|
||||
// Start line: 1032
|
||||
// Start offset: 0x0003FE34
|
||||
// Variables:
|
||||
// struct CELL_OBJECT *cop; // $a2
|
||||
// CELL_OBJECT *cop; // $a2
|
||||
|
||||
/* begin block 1.1.1.5.1 */
|
||||
// Start line: 884
|
||||
// Start offset: 0x0003FE34
|
||||
// Variables:
|
||||
// struct PACKED_CELL_OBJECT *ppco; // $s0
|
||||
// PACKED_CELL_OBJECT *ppco; // $s0
|
||||
|
||||
/* begin block 1.1.1.5.1.1 */
|
||||
// Start line: 884
|
||||
// Start offset: 0x0003FE34
|
||||
// Variables:
|
||||
// struct CELL_OBJECT *pco; // $a1
|
||||
// CELL_OBJECT *pco; // $a1
|
||||
/* end block 1.1.1.5.1.1 */
|
||||
// End offset: 0x0003FEDC
|
||||
// End Line: 884
|
||||
@ -746,8 +746,8 @@ int DrawAllBuildings(CELL_OBJECT** objects, int num_buildings)
|
||||
// Start line: 1089
|
||||
// Start offset: 0x00040138
|
||||
// Variables:
|
||||
// struct VECTOR newpos; // stack offset -128
|
||||
// struct CELL_OBJECT *cop; // $s0
|
||||
// VECTOR newpos; // stack offset -128
|
||||
// CELL_OBJECT *cop; // $s0
|
||||
/* end block 1.4 */
|
||||
// End offset: 0x00040138
|
||||
// End Line: 1090
|
||||
@ -1362,8 +1362,8 @@ void Set_Inv_CameraMatrix(void)
|
||||
// Variables:
|
||||
// int i; // $s1
|
||||
// int j; // $a0
|
||||
// struct SVECTOR ang; // stack offset -56
|
||||
// struct MATRIX mat; // stack offset -48
|
||||
// SVECTOR ang; // stack offset -56
|
||||
// MATRIX mat; // stack offset -48
|
||||
/* end block 1 */
|
||||
// End offset: 0x000418BC
|
||||
// End Line: 1341
|
||||
@ -1413,7 +1413,7 @@ void CalcObjectRotationMatrices(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ PlotMDL_less_than_128(struct MODEL *model /*$a0*/)
|
||||
// void /*$ra*/ PlotMDL_less_than_128(MODEL *model /*$a0*/)
|
||||
// line 1344, offset 0x000418bc
|
||||
/* begin block 1 */
|
||||
// Start line: 5018
|
||||
@ -1551,7 +1551,7 @@ void ProcessMapLump(char* lump_ptr, int lump_size)
|
||||
// int z; // $s1
|
||||
// int xd; // $a0
|
||||
// int zd; // $v1
|
||||
// struct _CAR_DATA (*cars_to_draw[20]); // stack offset -112
|
||||
// CAR_DATA (*cars_to_draw[20]); // stack offset -112
|
||||
// int num_cars_to_draw; // $s4
|
||||
// static int car_distance[20]; // offset 0x0
|
||||
// static int temp; // offset 0x0
|
||||
@ -1560,7 +1560,7 @@ void ProcessMapLump(char* lump_ptr, int lump_size)
|
||||
// Start line: 1712
|
||||
// Start offset: 0x000407D8
|
||||
// Variables:
|
||||
// struct _CAR_DATA *lcp; // $s0
|
||||
// CAR_DATA *lcp; // $s0
|
||||
|
||||
/* begin block 1.1.1 */
|
||||
// Start line: 1738
|
||||
@ -1584,7 +1584,7 @@ void ProcessMapLump(char* lump_ptr, int lump_size)
|
||||
// Start line: 1762
|
||||
// Start offset: 0x00040920
|
||||
// Variables:
|
||||
// struct _CAR_DATA *car; // $t4
|
||||
// CAR_DATA *car; // $t4
|
||||
// int dist; // $t0
|
||||
// int j; // $a3
|
||||
/* end block 1.2.1 */
|
||||
@ -1628,12 +1628,12 @@ int num_cars_drawn = 0;
|
||||
void DrawAllTheCars(int view)
|
||||
{
|
||||
static int car_distance[MAX_CARS]; // offset 0x0
|
||||
_CAR_DATA* cars_to_draw[MAX_CARS];
|
||||
CAR_DATA* cars_to_draw[MAX_CARS];
|
||||
|
||||
int dx, dz;
|
||||
int dist;
|
||||
int i, j;
|
||||
_CAR_DATA* cp;
|
||||
CAR_DATA* cp;
|
||||
int num_cars_to_draw;
|
||||
int spacefree;
|
||||
|
||||
@ -1724,14 +1724,14 @@ void DrawAllTheCars(int view)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ PlotBuildingModelSubdivNxN(struct MODEL *model /*$t0*/, int rot /*stack 4*/, struct _pct *pc /*$s2*/, int n /*stack 12*/)
|
||||
// void /*$ra*/ PlotBuildingModelSubdivNxN(MODEL *model /*$t0*/, int rot /*stack 4*/, _pct *pc /*$s2*/, int n /*stack 12*/)
|
||||
// line 1857, offset 0x00040a90
|
||||
/* begin block 1 */
|
||||
// Start line: 1858
|
||||
// Start offset: 0x00040A90
|
||||
// Variables:
|
||||
// struct SVECTOR *verts; // $s4
|
||||
// struct PL_POLYFT4 *polys; // $s1
|
||||
// SVECTOR *verts; // $s4
|
||||
// PL_POLYFT4 *polys; // $s1
|
||||
// int i; // $s7
|
||||
// int asdf; // $fp
|
||||
|
||||
@ -1786,7 +1786,7 @@ void DrawAllTheCars(int view)
|
||||
// Start line: 1983
|
||||
// Start offset: 0x00041060
|
||||
// Variables:
|
||||
// struct POLY_FT4 *prims; // $t2
|
||||
// POLY_FT4 *prims; // $t2
|
||||
// int uv0; // $v1
|
||||
// int uv1; // $a2
|
||||
// int uv2; // $t3
|
||||
@ -2009,7 +2009,7 @@ void PlotBuildingModelSubdivNxN(MODEL* model, int rot, _pct* pc, int n)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ RenderModel(struct MODEL *model /*$s2*/, struct MATRIX *matrix /*$a1*/, struct VECTOR *pos /*$a2*/, int zBias /*$s0*/, int flags /*stack 16*/)
|
||||
// void /*$ra*/ RenderModel(MODEL *model /*$s2*/, MATRIX *matrix /*$a1*/, VECTOR *pos /*$a2*/, int zBias /*$s0*/, int flags /*stack 16*/)
|
||||
// line 2181, offset 0x0004143c
|
||||
/* begin block 1 */
|
||||
// Start line: 2182
|
||||
@ -2022,7 +2022,7 @@ void PlotBuildingModelSubdivNxN(MODEL* model, int rot, _pct* pc, int n)
|
||||
// Start line: 2191
|
||||
// Start offset: 0x00041468
|
||||
// Variables:
|
||||
// struct MATRIX comb; // stack offset -48
|
||||
// MATRIX comb; // stack offset -48
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x00041498
|
||||
// End Line: 2196
|
||||
@ -2101,7 +2101,7 @@ void RenderModel(MODEL* model, MATRIX* matrix, VECTOR* pos, int zBias, int flags
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// unsigned long /*$ra*/ normalIndex(struct SVECTOR *verts /*$a0*/, unsigned int vidx /*$a1*/)
|
||||
// unsigned long /*$ra*/ normalIndex(SVECTOR *verts /*$a0*/, unsigned int vidx /*$a1*/)
|
||||
// line 2267, offset 0x000415e4
|
||||
/* begin block 1 */
|
||||
// Start line: 2268
|
||||
@ -2111,8 +2111,8 @@ void RenderModel(MODEL* model, MATRIX* matrix, VECTOR* pos, int zBias, int flags
|
||||
// int nx; // $t4
|
||||
// int ny; // $v1
|
||||
// int nz; // $a2
|
||||
// struct SVECTOR p; // stack offset -16
|
||||
// struct SVECTOR q; // stack offset -8
|
||||
// SVECTOR p; // stack offset -16
|
||||
// SVECTOR q; // stack offset -8
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 2268
|
||||
|
@ -45,7 +45,7 @@ extern int num_cars_drawn;
|
||||
|
||||
extern char CurrentPVS[444];
|
||||
|
||||
extern void addSubdivSpriteShadow(struct POLYFT4*src, struct SVECTOR *verts, int z); // 0x0003ED7C
|
||||
extern void addSubdivSpriteShadow(POLYFT4*src, SVECTOR *verts, int z); // 0x0003ED7C
|
||||
|
||||
extern void DrawMapPSX(int *comp_val); // 0x0003F6B0
|
||||
|
||||
@ -61,13 +61,13 @@ extern void Set_Inv_CameraMatrix(); // 0x000417DC
|
||||
|
||||
extern void CalcObjectRotationMatrices(); // 0x00041814
|
||||
|
||||
extern void PlotMDL_less_than_128(struct MODEL *model); // 0x000418BC
|
||||
extern void PlotMDL_less_than_128(MODEL *model); // 0x000418BC
|
||||
|
||||
extern void ProcessMapLump(char *lump_ptr, int lump_size); // 0x00040608
|
||||
|
||||
extern void DrawAllTheCars(int view); // 0x000407D8
|
||||
|
||||
extern void PlotBuildingModelSubdivNxN(MODEL *model, int rot, struct _pct *pc, int n); // 0x00040A90
|
||||
extern void PlotBuildingModelSubdivNxN(MODEL *model, int rot, _pct *pc, int n); // 0x00040A90
|
||||
|
||||
extern void RenderModel(MODEL *model, MATRIX *matrix, VECTOR *pos, int zBias, int flags, int subdiv, int nrot); // 0x0004143C
|
||||
|
||||
|
@ -132,8 +132,8 @@ void InitDrivingGames(void)
|
||||
// Start line: 292
|
||||
// Start offset: 0x0004326C
|
||||
// Variables:
|
||||
// struct _CAR_DATA *cp; // $a2
|
||||
// struct VECTOR vel; // stack offset -96
|
||||
// CAR_DATA *cp; // $a2
|
||||
// VECTOR vel; // stack offset -96
|
||||
// int i; // $s3
|
||||
// int j; // $v1
|
||||
// int k; // $a0
|
||||
@ -144,8 +144,8 @@ void InitDrivingGames(void)
|
||||
// Start line: 351
|
||||
// Start offset: 0x00043354
|
||||
// Variables:
|
||||
// struct VECTOR pos1; // stack offset -80
|
||||
// struct VECTOR pos2; // stack offset -64
|
||||
// VECTOR pos1; // stack offset -80
|
||||
// VECTOR pos2; // stack offset -64
|
||||
// int x; // $t0
|
||||
// int z; // $a1
|
||||
// int r; // $v0
|
||||
@ -159,7 +159,7 @@ void InitDrivingGames(void)
|
||||
// Start line: 435
|
||||
// Start offset: 0x00043700
|
||||
// Variables:
|
||||
// struct VECTOR pos; // stack offset -80
|
||||
// VECTOR pos; // stack offset -80
|
||||
/* end block 1.2 */
|
||||
// End offset: 0x00043800
|
||||
// End Line: 456
|
||||
@ -409,7 +409,7 @@ LAB_00043668:
|
||||
// Start line: 479
|
||||
// Start offset: 0x000438DC
|
||||
// Variables:
|
||||
// struct VECTOR wpos; // stack offset -24
|
||||
// VECTOR wpos; // stack offset -24
|
||||
// int i; // $s0
|
||||
/* end block 1 */
|
||||
// End offset: 0x000439FC
|
||||
@ -495,14 +495,14 @@ void DrawDrivingGames(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ CarConeCollision(struct VECTOR *pPos /*$a0*/, int car /*$a1*/)
|
||||
// int /*$ra*/ CarConeCollision(VECTOR *pPos /*$a0*/, int car /*$a1*/)
|
||||
// line 545, offset 0x000439fc
|
||||
/* begin block 1 */
|
||||
// Start line: 546
|
||||
// Start offset: 0x000439FC
|
||||
// Variables:
|
||||
// struct CDATA2D cd[2]; // stack offset -216
|
||||
// struct _CAR_DATA *cp1; // $t0
|
||||
// CDATA2D cd[2]; // stack offset -216
|
||||
// CAR_DATA *cp1; // $t0
|
||||
// int carLength[2]; // stack offset -16
|
||||
|
||||
/* begin block 1.1 */
|
||||
@ -561,13 +561,13 @@ int CarConeCollision(VECTOR *pPos, int car)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ SetSmashedCone(int cone /*$s1*/, struct VECTOR *velocity /*$a1*/, int player /*$s2*/, int side /*$a3*/)
|
||||
// void /*$ra*/ SetSmashedCone(int cone /*$s1*/, VECTOR *velocity /*$a1*/, int player /*$s2*/, int side /*$a3*/)
|
||||
// line 578, offset 0x00043ae8
|
||||
/* begin block 1 */
|
||||
// Start line: 579
|
||||
// Start offset: 0x00043AE8
|
||||
// Variables:
|
||||
// struct SMASHED_CONE *sc; // $s0
|
||||
// SMASHED_CONE *sc; // $s0
|
||||
// int chan; // $s0
|
||||
/* end block 1 */
|
||||
// End offset: 0x00043CE0
|
||||
@ -730,8 +730,8 @@ void MoveSmashedCones(void)
|
||||
// Start line: 664
|
||||
// Start offset: 0x00044168
|
||||
// Variables:
|
||||
// struct SMASHED_CONE *sc; // $s0
|
||||
// struct VECTOR wpos; // stack offset -40
|
||||
// SMASHED_CONE *sc; // $s0
|
||||
// VECTOR wpos; // stack offset -40
|
||||
// int i; // $s1
|
||||
/* end block 1 */
|
||||
// End offset: 0x00044228
|
||||
@ -794,14 +794,14 @@ void DrawSmashedCones(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DrawCone(struct VECTOR *position /*$s0*/, int cone /*$s1*/)
|
||||
// void /*$ra*/ DrawCone(VECTOR *position /*$s0*/, int cone /*$s1*/)
|
||||
// line 703, offset 0x00044034
|
||||
/* begin block 1 */
|
||||
// Start line: 704
|
||||
// Start offset: 0x00044034
|
||||
// Variables:
|
||||
// struct MATRIX matrix; // stack offset -64
|
||||
// struct VECTOR pos; // stack offset -32
|
||||
// MATRIX matrix; // stack offset -64
|
||||
// VECTOR pos; // stack offset -32
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 713
|
||||
@ -874,15 +874,15 @@ void DrawCone(VECTOR *position, int cone)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DrawSmashedCone(struct SMASHED_CONE *sc /*$s0*/, struct VECTOR *wpos /*$s1*/)
|
||||
// void /*$ra*/ DrawSmashedCone(SMASHED_CONE *sc /*$s0*/, VECTOR *wpos /*$s1*/)
|
||||
// line 730, offset 0x00043dec
|
||||
/* begin block 1 */
|
||||
// Start line: 731
|
||||
// Start offset: 0x00043DEC
|
||||
// Variables:
|
||||
// struct MATRIX object_matrix; // stack offset -64
|
||||
// struct MATRIX *finalmatrix; // $s2
|
||||
// struct VECTOR pos; // stack offset -32
|
||||
// MATRIX object_matrix; // stack offset -64
|
||||
// MATRIX *finalmatrix; // $s2
|
||||
// VECTOR pos; // stack offset -32
|
||||
/* end block 1 */
|
||||
// End offset: 0x00043F34
|
||||
// End Line: 750
|
||||
@ -932,13 +932,13 @@ void DrawSmashedCone(SMASHED_CONE *sc, VECTOR *wpos)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ GetConePos(int cone /*$a0*/, struct VECTOR *pos /*$t2*/, int side /*$a2*/)
|
||||
// void /*$ra*/ GetConePos(int cone /*$a0*/, VECTOR *pos /*$t2*/, int side /*$a2*/)
|
||||
// line 757, offset 0x00043f34
|
||||
/* begin block 1 */
|
||||
// Start line: 758
|
||||
// Start offset: 0x00043F34
|
||||
// Variables:
|
||||
// struct VECTOR offset; // stack offset -16
|
||||
// VECTOR offset; // stack offset -16
|
||||
// int x; // $t3
|
||||
// int z; // $t4
|
||||
// int r; // $v1
|
||||
|
@ -80,11 +80,11 @@ void ShowHiresScreens(char **names, int delay, int wait)
|
||||
// Start line: 172
|
||||
// Start offset: 0x00044244
|
||||
// Variables:
|
||||
// struct DISPENV disp; // stack offset -488
|
||||
// struct DRAWENV draw; // stack offset -464
|
||||
// struct SPRT prims[6]; // stack offset -368
|
||||
// struct POLY_FT3 nulls[6]; // stack offset -248
|
||||
// struct RECT rect; // stack offset -56
|
||||
// DISPENV disp; // stack offset -488
|
||||
// DRAWENV draw; // stack offset -464
|
||||
// SPRT prims[6]; // stack offset -368
|
||||
// POLY_FT3 nulls[6]; // stack offset -248
|
||||
// RECT rect; // stack offset -56
|
||||
// unsigned long ot; // stack offset -48
|
||||
// int i; // $t5
|
||||
// int col; // $s1
|
||||
@ -228,11 +228,11 @@ void FadeInHiresScreen(char *filename)
|
||||
// Start line: 260
|
||||
// Start offset: 0x000445F4
|
||||
// Variables:
|
||||
// struct DISPENV disp; // stack offset -496
|
||||
// struct DRAWENV draw; // stack offset -472
|
||||
// struct SPRT prims[6]; // stack offset -376
|
||||
// struct POLY_FT3 nulls[6]; // stack offset -256
|
||||
// struct RECT rect; // stack offset -64
|
||||
// DISPENV disp; // stack offset -496
|
||||
// DRAWENV draw; // stack offset -472
|
||||
// SPRT prims[6]; // stack offset -376
|
||||
// POLY_FT3 nulls[6]; // stack offset -256
|
||||
// RECT rect; // stack offset -64
|
||||
// unsigned long ot; // stack offset -56
|
||||
// int i; // $t5
|
||||
// int col; // $s1
|
||||
@ -360,7 +360,7 @@ void FadeOutHiresScreen(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ SetupDefDrawEnv(struct DRAWENV *env /*$a0*/, int x /*$a1*/, int y /*$a2*/, int w /*$a3*/, int h /*stack 16*/)
|
||||
// void /*$ra*/ SetupDefDrawEnv(DRAWENV *env /*$a0*/, int x /*$a1*/, int y /*$a2*/, int w /*$a3*/, int h /*stack 16*/)
|
||||
// line 325, offset 0x00044e40
|
||||
/* begin block 1 */
|
||||
// Start line: 650
|
||||
@ -380,7 +380,7 @@ void SetupDefDrawEnv(DRAWENV *env, int x, int y, int w, int h)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ SetupDefDispEnv(struct DISPENV *env /*$s0*/, int x /*$a1*/, int y /*$a2*/, int w /*$a3*/, int h /*stack 16*/)
|
||||
// void /*$ra*/ SetupDefDispEnv(DISPENV *env /*$s0*/, int x /*$a1*/, int y /*$a2*/, int w /*$a3*/, int h /*stack 16*/)
|
||||
// line 350, offset 0x00044da0
|
||||
/* begin block 1 */
|
||||
// Start line: 1213
|
||||
@ -429,9 +429,9 @@ void SetupDefDispEnv(DISPENV *env, int x, int y, int w, int h)
|
||||
// Start line: 392
|
||||
// Start offset: 0x000448CC
|
||||
// Variables:
|
||||
// struct DISPENV disp; // stack offset -144
|
||||
// struct DRAWENV draw; // stack offset -120
|
||||
// struct RECT rect; // stack offset -24
|
||||
// DISPENV disp; // stack offset -144
|
||||
// DRAWENV draw; // stack offset -120
|
||||
// RECT rect; // stack offset -24
|
||||
// char *exe; // $a0
|
||||
/* end block 1 */
|
||||
// End offset: 0x00044A40
|
||||
@ -523,9 +523,9 @@ void SetPleaseWait(char *buffer)
|
||||
// Start line: 444
|
||||
// Start offset: 0x00044A40
|
||||
// Variables:
|
||||
// struct DISPENV disp; // stack offset -160
|
||||
// struct DRAWENV draw; // stack offset -136
|
||||
// struct RECT rect; // stack offset -40
|
||||
// DISPENV disp; // stack offset -160
|
||||
// DRAWENV draw; // stack offset -136
|
||||
// RECT rect; // stack offset -40
|
||||
// char *mess1; // $s6
|
||||
// char *mess2; // $s3
|
||||
// char *exe; // $s4
|
||||
|
@ -61,7 +61,7 @@ void Env_MakeColourAddTable(short *shinysrc, char *polytable, int length)
|
||||
// Start line: 74
|
||||
// Start offset: 0x00044F08
|
||||
// Variables:
|
||||
// struct TPAN pos; // stack offset -16
|
||||
// TPAN pos; // stack offset -16
|
||||
// int count; // $v1
|
||||
/* end block 1 */
|
||||
// End offset: 0x00044F60
|
||||
|
@ -386,8 +386,8 @@ EventGlobal events;
|
||||
CELL_OBJECT* EventCop;
|
||||
int event_models_active = 0;
|
||||
|
||||
static struct _EVENT(*trackingEvent[2]);
|
||||
static struct _TARGET(*carEvent[8]);
|
||||
static EVENT(*trackingEvent[2]);
|
||||
static MS_TARGET(*carEvent[8]);
|
||||
static int cameraEventsActive = 0;
|
||||
static CameraDelay cameraDelay;
|
||||
static Detonator detonator;
|
||||
@ -395,14 +395,15 @@ static int eventHaze = 0;
|
||||
static int carsOnBoat = 0;
|
||||
static int doneFirstHavanaCameraHack = 0;
|
||||
static SVECTOR boatOffset;
|
||||
static struct FixedEvent* fixedEvent = NULL;
|
||||
static FixedEvent* fixedEvent = NULL;
|
||||
|
||||
static MultiCar multiCar;
|
||||
struct _EVENT* firstEvent;
|
||||
static _EVENT* firstMissionEvent;
|
||||
struct _EVENT* event;
|
||||
MultiCar multiCar;
|
||||
|
||||
static struct EventCamera eventCamera;
|
||||
EVENT* firstEvent;
|
||||
EVENT* firstMissionEvent;
|
||||
EVENT* event;
|
||||
|
||||
static EventCamera eventCamera;
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
@ -428,14 +429,14 @@ static struct EventCamera eventCamera;
|
||||
// Start line: 263
|
||||
// Start offset: 0x00045B30
|
||||
// Variables:
|
||||
// struct _EVENT *ev; // $a0
|
||||
// EVENT *ev; // $a0
|
||||
// int multiple; // $a2
|
||||
|
||||
/* begin block 1.2.1 */
|
||||
// Start line: 274
|
||||
// Start offset: 0x00045BBC
|
||||
// Variables:
|
||||
// struct VECTOR pos; // stack offset -16
|
||||
// VECTOR pos; // stack offset -16
|
||||
/* end block 1.2.1 */
|
||||
// End offset: 0x00045C3C
|
||||
// End Line: 281
|
||||
@ -456,7 +457,7 @@ int GetVisValue(int index, int zDir)
|
||||
{
|
||||
int camera;
|
||||
int radius;
|
||||
_EVENT* ev;
|
||||
EVENT* ev;
|
||||
VECTOR pos;
|
||||
|
||||
if (index & 0xC000)
|
||||
@ -479,7 +480,7 @@ int GetVisValue(int index, int zDir)
|
||||
int multiple;
|
||||
|
||||
if (index & 0x80)
|
||||
ev = (_EVENT*)&fixedEvent[index & 0x7f];
|
||||
ev = (EVENT*)&fixedEvent[index & 0x7f];
|
||||
else
|
||||
ev = &event[index & 0x7f];
|
||||
|
||||
@ -530,7 +531,7 @@ int GetVisValue(int index, int zDir)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ VisibilityLists(enum VisType type /*$a0*/, int i /*$s2*/)
|
||||
// void /*$ra*/ VisibilityLists(VisType type /*$a0*/, int i /*$s2*/)
|
||||
// line 297, offset 0x00045c68
|
||||
/* begin block 1 */
|
||||
// Start line: 298
|
||||
@ -576,7 +577,7 @@ int GetVisValue(int index, int zDir)
|
||||
// Start line: 365
|
||||
// Start offset: 0x00045F90
|
||||
// Variables:
|
||||
// struct _EVENT *ev; // $a0
|
||||
// EVENT *ev; // $a0
|
||||
/* end block 1.3 */
|
||||
// End offset: 0x00046068
|
||||
// End Line: 384
|
||||
@ -585,7 +586,7 @@ int GetVisValue(int index, int zDir)
|
||||
// Start line: 387
|
||||
// Start offset: 0x00046068
|
||||
// Variables:
|
||||
// struct _EVENT *ev; // $v1
|
||||
// EVENT *ev; // $v1
|
||||
/* end block 1.4 */
|
||||
// End offset: 0x000460BC
|
||||
// End Line: 398
|
||||
@ -622,7 +623,7 @@ void VisibilityLists(VisType type, int i)
|
||||
};
|
||||
|
||||
int k;
|
||||
_EVENT* ev;
|
||||
EVENT* ev;
|
||||
int tempList;
|
||||
int num;
|
||||
int n, j, vis;
|
||||
@ -720,7 +721,7 @@ void VisibilityLists(VisType type, int i)
|
||||
else if (type == VIS_ADD)
|
||||
{
|
||||
if (i & 0x80)
|
||||
ev = (_EVENT*)&fixedEvent[i & 0x7f];
|
||||
ev = (EVENT*)&fixedEvent[i & 0x7f];
|
||||
else
|
||||
ev = &event[i & 0x7f];
|
||||
|
||||
@ -761,7 +762,7 @@ void VisibilityLists(VisType type, int i)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ SetElTrainRotation(struct _EVENT *ev /*$a1*/)
|
||||
// void /*$ra*/ SetElTrainRotation(EVENT *ev /*$a1*/)
|
||||
// line 402, offset 0x0004be5c
|
||||
/* begin block 1 */
|
||||
// Start line: 804
|
||||
@ -769,7 +770,7 @@ void VisibilityLists(VisType type, int i)
|
||||
// End Line: 805
|
||||
|
||||
// [D] [T]
|
||||
void SetElTrainRotation(_EVENT* ev)
|
||||
void SetElTrainRotation(EVENT* ev)
|
||||
{
|
||||
if (ev->flags & 0x8000)
|
||||
ev->rotation = 1024;
|
||||
@ -784,7 +785,7 @@ void SetElTrainRotation(_EVENT* ev)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ InitTrain(struct _EVENT *ev /*$s0*/, int count /*$s3*/, int type /*$a2*/)
|
||||
// void /*$ra*/ InitTrain(EVENT *ev /*$s0*/, int count /*$s3*/, int type /*$a2*/)
|
||||
// line 422, offset 0x000460ec
|
||||
/* begin block 1 */
|
||||
// Start line: 423
|
||||
@ -808,7 +809,7 @@ void SetElTrainRotation(_EVENT* ev)
|
||||
// End Line: 942
|
||||
|
||||
// [D] [T]
|
||||
void InitTrain(_EVENT* ev, int count, int type)
|
||||
void InitTrain(EVENT* ev, int count, int type)
|
||||
{
|
||||
int mv;
|
||||
int* to;
|
||||
@ -866,7 +867,7 @@ void InitTrain(_EVENT* ev, int count, int type)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ InitDoor(struct FixedEvent *ev /*$a0*/, struct _EVENT ***e /*$a1*/, int *cEvents /*$a2*/)
|
||||
// void /*$ra*/ InitDoor(FixedEvent *ev /*$a0*/, EVENT ***e /*$a1*/, int *cEvents /*$a2*/)
|
||||
// line 471, offset 0x0004beb8
|
||||
/* begin block 1 */
|
||||
// Start line: 8350
|
||||
@ -879,7 +880,7 @@ void InitTrain(_EVENT* ev, int count, int type)
|
||||
// End Line: 8353
|
||||
|
||||
// [D] [T]
|
||||
void InitDoor(FixedEvent* ev, _EVENT*** e, int* cEvents)
|
||||
void InitDoor(FixedEvent* ev, EVENT*** e, int* cEvents)
|
||||
{
|
||||
ev->active = 0;
|
||||
ev->rotation = ev->finalRotation;
|
||||
@ -956,7 +957,7 @@ void InitEvents(void)
|
||||
// int count; // $s5
|
||||
// int *p; // $s2
|
||||
// int cEvents; // stack offset -52
|
||||
// struct _EVENT **e; // stack offset -56
|
||||
// EVENT **e; // stack offset -56
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 540
|
||||
@ -1044,7 +1045,7 @@ void InitEvents(void)
|
||||
// Start line: 888
|
||||
// Start offset: 0x00047094
|
||||
// Variables:
|
||||
// struct XYPAIR offset; // stack offset -64
|
||||
// XYPAIR offset; // stack offset -64
|
||||
/* end block 1.3.1.1 */
|
||||
// End offset: 0x000471A0
|
||||
// End Line: 896
|
||||
@ -1089,13 +1090,17 @@ void InitEvents(void)
|
||||
// [D] [T] [A] long function, please debug more
|
||||
void SetUpEvents(int full)
|
||||
{
|
||||
|
||||
int direction;
|
||||
int i, n;
|
||||
int* p;
|
||||
_EVENT* evt;
|
||||
EVENT* evt;
|
||||
|
||||
int detonatorModel;
|
||||
int trainModel;
|
||||
_EVENT** e;
|
||||
|
||||
EVENT** e;
|
||||
|
||||
int cEvents;
|
||||
int ElTrackModel;
|
||||
int carModel;
|
||||
@ -1115,7 +1120,7 @@ void SetUpEvents(int full)
|
||||
if (full)
|
||||
{
|
||||
EventCop = (CELL_OBJECT*)D_MALLOC(sizeof(CELL_OBJECT) * 16);
|
||||
event = (_EVENT*)mallocptr;
|
||||
event = (EVENT*)mallocptr;
|
||||
}
|
||||
|
||||
evt = event;
|
||||
@ -1270,7 +1275,7 @@ void SetUpEvents(int full)
|
||||
InitDoor(&chicagoDoor[0], &e, &cEvents);
|
||||
InitDoor(&chicagoDoor[1], &e, &cEvents);
|
||||
|
||||
*e = (_EVENT*)&chicagoDoor[2];
|
||||
*e = (EVENT*)&chicagoDoor[2];
|
||||
e = &(*e)->next;
|
||||
|
||||
VisibilityLists(VIS_ADD, 130);
|
||||
@ -1332,7 +1337,7 @@ void SetUpEvents(int full)
|
||||
InitDoor(havanaFixed, &e, &cEvents);
|
||||
InitDoor(havanaFixed + 2, &e, &cEvents);
|
||||
|
||||
*e = (_EVENT*)(&havanaFixed[1]);
|
||||
*e = (EVENT*)(&havanaFixed[1]);
|
||||
e = &(*e)->next;
|
||||
|
||||
VisibilityLists(VIS_ADD, 129);
|
||||
@ -1595,7 +1600,7 @@ void SetUpEvents(int full)
|
||||
*e = NULL;
|
||||
|
||||
if (full)
|
||||
mallocptr += cEvents * sizeof(_EVENT);
|
||||
mallocptr += cEvents * sizeof(EVENT);
|
||||
|
||||
MALLOC_END();
|
||||
}
|
||||
@ -1664,7 +1669,7 @@ void ResetEventCamera(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ SetCamera(struct _EVENT *ev /*$s5*/)
|
||||
// void /*$ra*/ SetCamera(EVENT *ev /*$s5*/)
|
||||
// line 991, offset 0x00047538
|
||||
/* begin block 1 */
|
||||
// Start line: 992
|
||||
@ -1672,17 +1677,17 @@ void ResetEventCamera(void)
|
||||
// Variables:
|
||||
// int rotation; // $s4
|
||||
// int axis; // $a3
|
||||
// struct VECTOR pivot; // stack offset -96
|
||||
// VECTOR pivot; // stack offset -96
|
||||
// int iPivot; // $a2
|
||||
// int height; // $a1
|
||||
// struct SVECTOR offset; // stack offset -80
|
||||
// SVECTOR offset; // stack offset -80
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 1037
|
||||
// Start offset: 0x00047688
|
||||
// Variables:
|
||||
// struct MATRIX matrix; // stack offset -72
|
||||
// struct SVECTOR temp; // stack offset -40
|
||||
// MATRIX matrix; // stack offset -72
|
||||
// SVECTOR temp; // stack offset -40
|
||||
|
||||
/* begin block 1.1.1 */
|
||||
// Start line: 1045
|
||||
@ -1710,7 +1715,7 @@ void ResetEventCamera(void)
|
||||
/* WARNING: Could not reconcile some variable overlaps */
|
||||
|
||||
// [D] [T]
|
||||
void SetCamera(_EVENT* ev)
|
||||
void SetCamera(EVENT* ev)
|
||||
{
|
||||
int iPivot;
|
||||
int axis;
|
||||
@ -1879,13 +1884,13 @@ void SetCamera(_EVENT* ev)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ EventCollisions(struct _CAR_DATA *cp /*$a2*/, int type /*$a1*/)
|
||||
// void /*$ra*/ EventCollisions(CAR_DATA *cp /*$a2*/, int type /*$a1*/)
|
||||
// line 1107, offset 0x0004bc50
|
||||
/* begin block 1 */
|
||||
// Start line: 1108
|
||||
// Start offset: 0x0004BC50
|
||||
// Variables:
|
||||
// static struct SVECTOR offset; // offset 0x18
|
||||
// static SVECTOR offset; // offset 0x18
|
||||
/* end block 1 */
|
||||
// End offset: 0x0004BD2C
|
||||
// End Line: 1125
|
||||
@ -1901,7 +1906,7 @@ void SetCamera(_EVENT* ev)
|
||||
// End Line: 6985
|
||||
|
||||
// [D] [T]
|
||||
void EventCollisions(_CAR_DATA* cp, int type)
|
||||
void EventCollisions(CAR_DATA* cp, int type)
|
||||
{
|
||||
if (carsOnBoat >> CAR_INDEX(cp) == 0)
|
||||
return;
|
||||
@ -1929,7 +1934,7 @@ void EventCollisions(_CAR_DATA* cp, int type)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ NextNode(struct _EVENT *ev /*$a0*/)
|
||||
// void /*$ra*/ NextNode(EVENT *ev /*$a0*/)
|
||||
// line 1127, offset 0x0004c0a4
|
||||
/* begin block 1 */
|
||||
// Start line: 9546
|
||||
@ -1947,7 +1952,7 @@ void EventCollisions(_CAR_DATA* cp, int type)
|
||||
// End Line: 9688
|
||||
|
||||
// [D] [T]
|
||||
void NextNode(_EVENT* ev)
|
||||
void NextNode(EVENT* ev)
|
||||
{
|
||||
if (ev->node[2] == STATION_NODE_2)
|
||||
{
|
||||
@ -1979,7 +1984,7 @@ void NextNode(_EVENT* ev)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ StepFromToEvent(struct _EVENT *ev /*$a3*/)
|
||||
// void /*$ra*/ StepFromToEvent(EVENT *ev /*$a3*/)
|
||||
// line 1152, offset 0x000479dc
|
||||
/* begin block 1 */
|
||||
// Start line: 1153
|
||||
@ -2012,7 +2017,7 @@ void NextNode(_EVENT* ev)
|
||||
// End Line: 3012
|
||||
|
||||
// [D] [T]
|
||||
void StepFromToEvent(_EVENT* ev)
|
||||
void StepFromToEvent(EVENT* ev)
|
||||
{
|
||||
int df;
|
||||
int md;
|
||||
@ -2094,7 +2099,7 @@ void StepFromToEvent(_EVENT* ev)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ StepPathEvent(struct _EVENT *ev /*$s0*/)
|
||||
// void /*$ra*/ StepPathEvent(EVENT *ev /*$s0*/)
|
||||
// line 1214, offset 0x00047bd4
|
||||
/* begin block 1 */
|
||||
// Start line: 1215
|
||||
@ -2118,7 +2123,7 @@ void StepFromToEvent(_EVENT* ev)
|
||||
// Start line: 1242
|
||||
// Start offset: 0x00047C7C
|
||||
// Variables:
|
||||
// enum Station station; // $t2
|
||||
// Station station; // $t2
|
||||
|
||||
/* begin block 1.2.1 */
|
||||
// Start line: 1276
|
||||
@ -2128,8 +2133,8 @@ void StepFromToEvent(_EVENT* ev)
|
||||
// int loop; // $a2
|
||||
// int *i; // $a0
|
||||
// int turn[4]; // stack offset -48
|
||||
// struct XZPAIR centre; // stack offset -32
|
||||
// struct XZPAIR offset; // stack offset -24
|
||||
// XZPAIR centre; // stack offset -32
|
||||
// XZPAIR offset; // stack offset -24
|
||||
/* end block 1.2.1 */
|
||||
// End offset: 0x00047F98
|
||||
// End Line: 1348
|
||||
@ -2162,7 +2167,7 @@ void StepFromToEvent(_EVENT* ev)
|
||||
// End Line: 3138
|
||||
|
||||
// [D] [T]
|
||||
void StepPathEvent(_EVENT* ev)
|
||||
void StepPathEvent(EVENT* ev)
|
||||
{
|
||||
static int speed;
|
||||
|
||||
@ -2487,7 +2492,7 @@ int GetBridgeRotation(int timer)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ StepHelicopter(struct _EVENT *ev /*$s0*/)
|
||||
// void /*$ra*/ StepHelicopter(EVENT *ev /*$s0*/)
|
||||
// line 1478, offset 0x0004830c
|
||||
/* begin block 1 */
|
||||
// Start line: 1479
|
||||
@ -2516,7 +2521,7 @@ int GetBridgeRotation(int timer)
|
||||
// Start line: 1522
|
||||
// Start offset: 0x000484A0
|
||||
// Variables:
|
||||
// struct XZPAIR vel; // stack offset -56
|
||||
// XZPAIR vel; // stack offset -56
|
||||
// int direction; // $t1
|
||||
// int temp; // $t1
|
||||
// int dt; // $a0
|
||||
@ -2533,7 +2538,7 @@ int GetBridgeRotation(int timer)
|
||||
// Start line: 1590
|
||||
// Start offset: 0x00048854
|
||||
// Variables:
|
||||
// struct VECTOR pos; // stack offset -48
|
||||
// VECTOR pos; // stack offset -48
|
||||
/* end block 1.1.2 */
|
||||
// End offset: 0x00048854
|
||||
// End Line: 1591
|
||||
@ -2545,8 +2550,8 @@ int GetBridgeRotation(int timer)
|
||||
// Start line: 1613
|
||||
// Start offset: 0x00048948
|
||||
// Variables:
|
||||
// struct VECTOR pos; // stack offset -56
|
||||
// struct VECTOR drift; // stack offset -32
|
||||
// VECTOR pos; // stack offset -56
|
||||
// VECTOR drift; // stack offset -32
|
||||
/* end block 1.2 */
|
||||
// End offset: 0x00048948
|
||||
// End Line: 1613
|
||||
@ -2567,7 +2572,7 @@ int GetBridgeRotation(int timer)
|
||||
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
|
||||
|
||||
// [D] [T]
|
||||
void StepHelicopter(_EVENT* ev)
|
||||
void StepHelicopter(EVENT* ev)
|
||||
{
|
||||
static int rotating = 1;
|
||||
|
||||
@ -2758,13 +2763,13 @@ void StepHelicopter(_EVENT* ev)
|
||||
// Start line: 1645
|
||||
// Start offset: 0x00048A60
|
||||
// Variables:
|
||||
// struct _EVENT *ev; // $s0
|
||||
// EVENT *ev; // $s0
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 1671
|
||||
// Start offset: 0x00048AC4
|
||||
// Variables:
|
||||
// struct VECTOR old; // stack offset -72
|
||||
// VECTOR old; // stack offset -72
|
||||
// int onBoatLastFrame; // $s7
|
||||
|
||||
/* begin block 1.1.1 */
|
||||
@ -2773,7 +2778,7 @@ void StepHelicopter(_EVENT* ev)
|
||||
// Variables:
|
||||
// int dist; // stack offset -48
|
||||
// int loop; // $s2
|
||||
// struct _CAR_DATA *cp; // $s1
|
||||
// CAR_DATA *cp; // $s1
|
||||
/* end block 1.1.1 */
|
||||
// End offset: 0x00048B98
|
||||
// End Line: 1699
|
||||
@ -2798,7 +2803,7 @@ void StepHelicopter(_EVENT* ev)
|
||||
// Start line: 1729
|
||||
// Start offset: 0x00048D10
|
||||
// Variables:
|
||||
// struct XZPAIR speed; // stack offset -56
|
||||
// XZPAIR speed; // stack offset -56
|
||||
|
||||
/* begin block 1.1.4.1 */
|
||||
// Start line: 1733
|
||||
@ -2811,8 +2816,8 @@ void StepHelicopter(_EVENT* ev)
|
||||
// Start line: 1740
|
||||
// Start offset: 0x00048D60
|
||||
// Variables:
|
||||
// struct VECTOR *pos; // $a0
|
||||
// struct VECTOR *vel; // $a1
|
||||
// VECTOR *pos; // $a0
|
||||
// VECTOR *vel; // $a1
|
||||
/* end block 1.1.4.1.1 */
|
||||
// End offset: 0x00048E4C
|
||||
// End Line: 1775
|
||||
@ -2857,7 +2862,7 @@ void StepHelicopter(_EVENT* ev)
|
||||
// Start line: 1889
|
||||
// Start offset: 0x00049240
|
||||
// Variables:
|
||||
// struct CELL_OBJECT *cop; // $a2
|
||||
// CELL_OBJECT *cop; // $a2
|
||||
/* end block 1.3.1 */
|
||||
// End offset: 0x000492C4
|
||||
// End Line: 1936
|
||||
@ -2893,15 +2898,15 @@ void StepHelicopter(_EVENT* ev)
|
||||
// [D] [T]
|
||||
void StepEvents(void)
|
||||
{
|
||||
_EVENT* ev;
|
||||
EVENT* ev;
|
||||
int i;
|
||||
VECTOR old;
|
||||
XZPAIR speed;
|
||||
VECTOR* pos;
|
||||
_EVENT* evt;
|
||||
EVENT* evt;
|
||||
VECTOR* vel;
|
||||
CELL_OBJECT* cop;
|
||||
_CAR_DATA* cp;
|
||||
CAR_DATA* cp;
|
||||
int onBoatLastFrame;
|
||||
int dist;
|
||||
int thisCamera, otherCamera;
|
||||
@ -3150,7 +3155,7 @@ void StepEvents(void)
|
||||
if ((*x & 0x80) == 0)
|
||||
evt = &event[*x & 0x7f];
|
||||
else
|
||||
evt = (_EVENT*)&fixedEvent[*x & 0x7f];
|
||||
evt = (EVENT*)&fixedEvent[*x & 0x7f];
|
||||
|
||||
// events that enable drawing
|
||||
if ((evt->flags & 0x204) == 0x200)
|
||||
@ -3197,7 +3202,7 @@ void StepEvents(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DrawFerrisWheel(struct MATRIX *matrix /*$s0*/, struct VECTOR *pos /*$s1*/)
|
||||
// void /*$ra*/ DrawFerrisWheel(MATRIX *matrix /*$s0*/, VECTOR *pos /*$s1*/)
|
||||
// line 2110, offset 0x00049364
|
||||
/* begin block 1 */
|
||||
// Start line: 2111
|
||||
@ -3208,15 +3213,15 @@ void StepEvents(void)
|
||||
// Start offset: 0x00049460
|
||||
// Variables:
|
||||
// int loop; // $s3
|
||||
// struct MODEL *model; // $s2
|
||||
// struct VECTOR spoke[2]; // stack offset -104
|
||||
// MODEL *model; // $s2
|
||||
// VECTOR spoke[2]; // stack offset -104
|
||||
|
||||
/* begin block 1.1.1 */
|
||||
// Start line: 2138
|
||||
// Start offset: 0x000494E4
|
||||
// Variables:
|
||||
// struct VECTOR offset; // stack offset -72
|
||||
// struct VECTOR carPos; // stack offset -56
|
||||
// VECTOR offset; // stack offset -72
|
||||
// VECTOR carPos; // stack offset -56
|
||||
// int rotation; // $v0
|
||||
/* end block 1.1.1 */
|
||||
// End offset: 0x000494E4
|
||||
@ -3310,16 +3315,16 @@ void DrawFerrisWheel(MATRIX* matrix, VECTOR* pos)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DrawRotor(struct VECTOR pos /*stack 0*/, struct MATRIX *matrix /*stack 16*/)
|
||||
// void /*$ra*/ DrawRotor(VECTOR pos /*stack 0*/, MATRIX *matrix /*stack 16*/)
|
||||
// line 2159, offset 0x00049684
|
||||
/* begin block 1 */
|
||||
// Start line: 2160
|
||||
// Start offset: 0x00049684
|
||||
// Variables:
|
||||
// struct SVECTOR v[5]; // stack offset -120
|
||||
// struct MATRIX local; // stack offset -80
|
||||
// struct POLY_FT4 *poly; // $t0
|
||||
// struct TEXTURE_DETAILS *tex; // $t3
|
||||
// SVECTOR v[5]; // stack offset -120
|
||||
// MATRIX local; // stack offset -80
|
||||
// POLY_FT4 *poly; // $t0
|
||||
// TEXTURE_DETAILS *tex; // $t3
|
||||
// int z; // stack offset -48
|
||||
// char *firstPoly; // $a1
|
||||
/* end block 1 */
|
||||
@ -3476,14 +3481,14 @@ void DrawRotor(VECTOR pos, MATRIX* matrix)
|
||||
// unsigned short *z; // $a0
|
||||
// int thisCamera; // stack offset -56
|
||||
// int otherCamera; // stack offset -52
|
||||
// static struct _EVENT *nearestTrain; // offset 0x28
|
||||
// static EVENT *nearestTrain; // offset 0x28
|
||||
// static int distanceFromNearestTrain; // offset 0x2c
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 2276
|
||||
// Start offset: 0x00049D14
|
||||
// Variables:
|
||||
// struct _EVENT *ev; // $s1
|
||||
// EVENT *ev; // $s1
|
||||
|
||||
/* begin block 1.1.1 */
|
||||
// Start line: 2289
|
||||
@ -3502,9 +3507,9 @@ void DrawRotor(VECTOR pos, MATRIX* matrix)
|
||||
// Start line: 2316
|
||||
// Start offset: 0x00049ED4
|
||||
// Variables:
|
||||
// struct MATRIX matrix; // stack offset -208
|
||||
// struct MATRIX ext; // stack offset -176
|
||||
// struct VECTOR pos; // stack offset -144
|
||||
// MATRIX matrix; // stack offset -208
|
||||
// MATRIX ext; // stack offset -176
|
||||
// VECTOR pos; // stack offset -144
|
||||
// int reflection; // $s5
|
||||
// int temp; // stack offset -48
|
||||
|
||||
@ -3523,14 +3528,14 @@ void DrawRotor(VECTOR pos, MATRIX* matrix)
|
||||
// Start line: 2346
|
||||
// Start offset: 0x0004A038
|
||||
// Variables:
|
||||
// struct VECTOR shadow[4]; // stack offset -128
|
||||
// VECTOR shadow[4]; // stack offset -128
|
||||
// int loop; // $t0
|
||||
|
||||
/* begin block 1.1.2.1.2.1.1 */
|
||||
// Start line: 2351
|
||||
// Start offset: 0x0004A05C
|
||||
// Variables:
|
||||
// struct XZPAIR offset; // stack offset -64
|
||||
// XZPAIR offset; // stack offset -64
|
||||
// int rotate; // $a1
|
||||
/* end block 1.1.2.1.2.1.1 */
|
||||
// End offset: 0x0004A0E8
|
||||
@ -3609,14 +3614,14 @@ void DrawRotor(VECTOR pos, MATRIX* matrix)
|
||||
// [D] [T]
|
||||
void DrawEvents(int camera)
|
||||
{
|
||||
static struct _EVENT* nearestTrain; // offset 0x28
|
||||
static EVENT* nearestTrain; // offset 0x28
|
||||
static int distanceFromNearestTrain; // offset 0x2c
|
||||
|
||||
int reflection;
|
||||
int i;
|
||||
unsigned short* x;
|
||||
unsigned short* z;
|
||||
_EVENT* ev;
|
||||
EVENT* ev;
|
||||
MATRIX matrix;
|
||||
VECTOR pos;
|
||||
VECTOR shadow[4];
|
||||
@ -3660,7 +3665,7 @@ void DrawEvents(int camera)
|
||||
if ((*x & 0x80) == 0)
|
||||
ev = &event[*x & 0x7f];
|
||||
else
|
||||
ev = (_EVENT*)&fixedEvent[*x & 0x7f];
|
||||
ev = (EVENT*)&fixedEvent[*x & 0x7f];
|
||||
|
||||
z = zVis;
|
||||
|
||||
@ -3914,7 +3919,7 @@ void DrawEvents(int camera)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ BoatOffset(SVECTOR *offset /*$a0*/, _EVENT *ev /*$a1*/)
|
||||
// void /*$ra*/ BoatOffset(SVECTOR *offset /*$a0*/, EVENT *ev /*$a1*/)
|
||||
// line 2520, offset 0x0004be24
|
||||
/* begin block 1 */
|
||||
// Start line: 10327
|
||||
@ -3932,7 +3937,7 @@ void DrawEvents(int camera)
|
||||
// End Line: 10329
|
||||
|
||||
// [D] [T]
|
||||
void BoatOffset(SVECTOR* offset, _EVENT* ev)
|
||||
void BoatOffset(SVECTOR* offset, EVENT* ev)
|
||||
{
|
||||
offset->vx = 0;
|
||||
offset->vy = -ev->data[2];
|
||||
@ -3955,7 +3960,7 @@ void EventCameraOffset(SVECTOR* offset)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ OnBoat(struct VECTOR *pos /*$t1*/, struct _EVENT *ev /*$a1*/, int *dist /*$a2*/)
|
||||
// int /*$ra*/ OnBoat(VECTOR *pos /*$t1*/, EVENT *ev /*$a1*/, int *dist /*$a2*/)
|
||||
// line 2527, offset 0x0004bda0
|
||||
/* begin block 1 */
|
||||
// Start line: 2528
|
||||
@ -3983,7 +3988,7 @@ void EventCameraOffset(SVECTOR* offset)
|
||||
// End Line: 10309
|
||||
|
||||
// [D] [T]
|
||||
int OnBoat(VECTOR* pos, _EVENT* ev, int* dist)
|
||||
int OnBoat(VECTOR* pos, EVENT* ev, int* dist)
|
||||
{
|
||||
int halfBoatLength;
|
||||
int halfBoatWidth;
|
||||
@ -4018,13 +4023,13 @@ int OnBoat(VECTOR* pos, _EVENT* ev, int* dist)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// struct _sdPlane * /*$ra*/ EventSurface(struct VECTOR *pos /*$a0*/, struct _sdPlane *plane /*$s1*/)
|
||||
// sdPlane * /*$ra*/ EventSurface(VECTOR *pos /*$a0*/, sdPlane *plane /*$s1*/)
|
||||
// line 2560, offset 0x0004a688
|
||||
/* begin block 1 */
|
||||
// Start line: 2561
|
||||
// Start offset: 0x0004A688
|
||||
// Variables:
|
||||
// struct _EVENT *ev; // $s0
|
||||
// EVENT *ev; // $s0
|
||||
// int i; // $a2
|
||||
|
||||
/* begin block 1.1 */
|
||||
@ -4070,10 +4075,10 @@ int OnBoat(VECTOR* pos, _EVENT* ev, int* dist)
|
||||
int debugOffset = 0;
|
||||
|
||||
// [D] [T]
|
||||
_sdPlane* EventSurface(VECTOR* pos, _sdPlane* plane)
|
||||
sdPlane* EventSurface(VECTOR* pos, sdPlane* plane)
|
||||
{
|
||||
int d;
|
||||
_EVENT* ev;
|
||||
EVENT* ev;
|
||||
int d1, d2;
|
||||
int dist;
|
||||
int sin;
|
||||
@ -4218,13 +4223,13 @@ _sdPlane* EventSurface(VECTOR* pos, _sdPlane* plane)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ MakeEventTrackable(struct _EVENT *ev /*$a0*/)
|
||||
// void /*$ra*/ MakeEventTrackable(EVENT *ev /*$a0*/)
|
||||
// line 2684, offset 0x0004bd6c
|
||||
/* begin block 1 */
|
||||
// Start line: 2685
|
||||
// Start offset: 0x0004BD6C
|
||||
// Variables:
|
||||
// struct _EVENT **p; // $v1
|
||||
// EVENT **p; // $v1
|
||||
/* end block 1 */
|
||||
// End offset: 0x0004BDA0
|
||||
// End Line: 2694
|
||||
@ -4240,9 +4245,9 @@ _sdPlane* EventSurface(VECTOR* pos, _sdPlane* plane)
|
||||
// End Line: 10455
|
||||
|
||||
// [D] [T]
|
||||
void MakeEventTrackable(_EVENT* ev)
|
||||
void MakeEventTrackable(EVENT* ev)
|
||||
{
|
||||
_EVENT** p;
|
||||
EVENT** p;
|
||||
|
||||
p = trackingEvent;
|
||||
while (*p)
|
||||
@ -4256,7 +4261,7 @@ void MakeEventTrackable(_EVENT* ev)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ TriggerDoor(struct FixedEvent *door /*$a3*/, int *stage /*$a1*/, int sound /*$a2*/)
|
||||
// void /*$ra*/ TriggerDoor(FixedEvent *door /*$a3*/, int *stage /*$a1*/, int sound /*$a2*/)
|
||||
// line 2696, offset 0x0004c208
|
||||
/* begin block 1 */
|
||||
// Start line: 11604
|
||||
@ -4294,14 +4299,14 @@ void TriggerDoor(FixedEvent* door, int* stage, int sound)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// struct VECTOR * /*$ra*/ TriggerEvent(int i /*$s4*/)
|
||||
// VECTOR * /*$ra*/ TriggerEvent(int i /*$s4*/)
|
||||
// line 2718, offset 0x0004aa78
|
||||
/* begin block 1 */
|
||||
// Start line: 2719
|
||||
// Start offset: 0x0004AA78
|
||||
// Variables:
|
||||
// static int stage[10]; // offset 0x200
|
||||
// struct VECTOR *pos; // $s7
|
||||
// VECTOR *pos; // $s7
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 2726
|
||||
@ -4316,7 +4321,7 @@ void TriggerDoor(FixedEvent* door, int* stage, int sound)
|
||||
// Start line: 2739
|
||||
// Start offset: 0x0004AB20
|
||||
// Variables:
|
||||
// struct _EVENT *ev; // $a2
|
||||
// EVENT *ev; // $a2
|
||||
/* end block 1.2 */
|
||||
// End offset: 0x0004AB20
|
||||
// End Line: 2740
|
||||
@ -4329,7 +4334,7 @@ void TriggerDoor(FixedEvent* door, int* stage, int sound)
|
||||
// Start line: 2757
|
||||
// Start offset: 0x0004AC08
|
||||
// Variables:
|
||||
// struct MissionTrain *train; // $s1
|
||||
// MissionTrain *train; // $s1
|
||||
|
||||
/* begin block 1.3.1.1 */
|
||||
// Start line: 2763
|
||||
@ -4342,7 +4347,7 @@ void TriggerDoor(FixedEvent* door, int* stage, int sound)
|
||||
// Start line: 2774
|
||||
// Start offset: 0x0004AC5C
|
||||
// Variables:
|
||||
// struct _EVENT *ev; // $s0
|
||||
// EVENT *ev; // $s0
|
||||
// int count; // $s2
|
||||
// int offset; // $s6
|
||||
|
||||
@ -4365,7 +4370,7 @@ void TriggerDoor(FixedEvent* door, int* stage, int sound)
|
||||
// Start line: 2831
|
||||
// Start offset: 0x0004ADB8
|
||||
// Variables:
|
||||
// struct _EVENT *ev; // $v1
|
||||
// EVENT *ev; // $v1
|
||||
// int count; // $a0
|
||||
/* end block 1.3.2 */
|
||||
// End offset: 0x0004AE04
|
||||
@ -4420,7 +4425,7 @@ VECTOR* TriggerEvent(int i)
|
||||
{
|
||||
static int stage[10];
|
||||
|
||||
_EVENT* ev;
|
||||
EVENT* ev;
|
||||
int loop;
|
||||
VECTOR* pos;
|
||||
|
||||
@ -4547,11 +4552,10 @@ VECTOR* TriggerEvent(int i)
|
||||
firstMissionEvent[8].timer = 0;
|
||||
firstMissionEvent[9].timer = 0;
|
||||
}
|
||||
|
||||
break;
|
||||
case 5:
|
||||
PrepareSecretCar();
|
||||
events.cameraEvent = (_EVENT*)&chicagoDoor[0];
|
||||
events.cameraEvent = (EVENT*)&chicagoDoor[0];
|
||||
case 6:
|
||||
TriggerDoor(&chicagoDoor[i - 5], &stage[i], 1);
|
||||
}
|
||||
@ -4577,7 +4581,7 @@ VECTOR* TriggerEvent(int i)
|
||||
break;
|
||||
case 3:
|
||||
PrepareSecretCar();
|
||||
events.cameraEvent = (_EVENT*)&havanaFixed[2];
|
||||
events.cameraEvent = (EVENT*)&havanaFixed[2];
|
||||
TriggerDoor(&havanaFixed[2], &stage[i], 0);
|
||||
break;
|
||||
case 4:
|
||||
@ -4624,7 +4628,7 @@ VECTOR* TriggerEvent(int i)
|
||||
TriggerDoor(&vegasDoor[i - 4], &stage[i], 0);
|
||||
break;
|
||||
case 8:
|
||||
events.cameraEvent = (_EVENT*)&vegasDoor[4];
|
||||
events.cameraEvent = (EVENT*)&vegasDoor[4];
|
||||
PrepareSecretCar();
|
||||
case 5:
|
||||
case 6:
|
||||
@ -4647,7 +4651,7 @@ VECTOR* TriggerEvent(int i)
|
||||
TriggerDoor(&rioDoor[2], &stage[i], 0);
|
||||
TriggerDoor(&rioDoor[3], &stage[i], 0);
|
||||
|
||||
events.cameraEvent = (_EVENT*)&rioDoor[2];
|
||||
events.cameraEvent = (EVENT*)&rioDoor[2];
|
||||
break;
|
||||
case 5:
|
||||
case 6:
|
||||
@ -4675,7 +4679,7 @@ VECTOR* TriggerEvent(int i)
|
||||
TriggerDoor(&rioDoor[4], &stage[i], 0);
|
||||
TriggerDoor(&rioDoor[5], &stage[i], 0);
|
||||
|
||||
events.cameraEvent = (_EVENT*)&rioDoor[4];
|
||||
events.cameraEvent = (EVENT*)&rioDoor[4];
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -4690,7 +4694,7 @@ VECTOR* TriggerEvent(int i)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ OffsetTarget(struct VECTOR *target /*$a0*/)
|
||||
// void /*$ra*/ OffsetTarget(VECTOR *target /*$a0*/)
|
||||
// line 2994, offset 0x0004bd2c
|
||||
/* begin block 1 */
|
||||
// Start line: 8890
|
||||
@ -4803,14 +4807,14 @@ void SetSpecialCamera(SpecialCamera type, int change)
|
||||
|
||||
if (GameLevel == 0)
|
||||
{
|
||||
hackCamera = ChicagoCameraHack;
|
||||
hackCamera = &ChicagoCameraHack[0];
|
||||
}
|
||||
else if (GameLevel == 1)
|
||||
{
|
||||
if (gCurrentMissionNumber == 15)
|
||||
{
|
||||
boat = boatCamera;
|
||||
events.cameraEvent = (_EVENT*)0x1;
|
||||
events.cameraEvent = (EVENT*)0x1;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -4839,7 +4843,7 @@ void SetSpecialCamera(SpecialCamera type, int change)
|
||||
if (type != SPECIAL_CAMERA_SET2)
|
||||
{
|
||||
hackCamera = &VegasCameraHack[6];
|
||||
events.cameraEvent = (_EVENT*)0x1;
|
||||
events.cameraEvent = (EVENT*)0x1;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -4850,7 +4854,7 @@ void SetSpecialCamera(SpecialCamera type, int change)
|
||||
{
|
||||
hackCamera = &VegasCameraHack[13];
|
||||
|
||||
events.cameraEvent = (_EVENT*)0x1;
|
||||
events.cameraEvent = (EVENT*)0x1;
|
||||
camera_position.vy = -1800;
|
||||
}
|
||||
else if (gCurrentMissionNumber == 30)
|
||||
@ -4906,7 +4910,7 @@ void SetSpecialCamera(SpecialCamera type, int change)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ ScreenShake(int count /*$a0*/, struct SVECTOR *ang /*$s0*/)
|
||||
// void /*$ra*/ ScreenShake(int count /*$a0*/, SVECTOR *ang /*$s0*/)
|
||||
// line 3144, offset 0x0004c280
|
||||
/* begin block 1 */
|
||||
// Start line: 3145
|
||||
@ -4946,7 +4950,7 @@ void ScreenShake(int count, SVECTOR* ang)
|
||||
// Start line: 3154
|
||||
// Start offset: 0x0004B5FC
|
||||
// Variables:
|
||||
// static struct SVECTOR rememberCameraAngle; // offset 0x30
|
||||
// static SVECTOR rememberCameraAngle; // offset 0x30
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 3168
|
||||
@ -4962,7 +4966,7 @@ void ScreenShake(int count, SVECTOR* ang)
|
||||
// Start line: 3179
|
||||
// Start offset: 0x0004B6CC
|
||||
// Variables:
|
||||
// struct VECTOR pos; // stack offset -32
|
||||
// VECTOR pos; // stack offset -32
|
||||
/* end block 1.1.1.1 */
|
||||
// End offset: 0x0004B700
|
||||
// End Line: 3184
|
||||
@ -4971,7 +4975,7 @@ void ScreenShake(int count, SVECTOR* ang)
|
||||
// Start line: 3188
|
||||
// Start offset: 0x0004B720
|
||||
// Variables:
|
||||
// struct VECTOR pos; // stack offset -32
|
||||
// VECTOR pos; // stack offset -32
|
||||
/* end block 1.1.1.2 */
|
||||
// End offset: 0x0004B720
|
||||
// End Line: 3189
|
||||
@ -4986,14 +4990,14 @@ void ScreenShake(int count, SVECTOR* ang)
|
||||
// Start line: 3218
|
||||
// Start offset: 0x0004B864
|
||||
// Variables:
|
||||
// struct _EVENT *ev; // $s0
|
||||
// struct VECTOR pos; // stack offset -32
|
||||
// EVENT *ev; // $s0
|
||||
// VECTOR pos; // stack offset -32
|
||||
|
||||
/* begin block 1.2.1 */
|
||||
// Start line: 3247
|
||||
// Start offset: 0x0004B9B0
|
||||
// Variables:
|
||||
// struct VECTOR *epicentre; // $v1
|
||||
// VECTOR *epicentre; // $v1
|
||||
/* end block 1.2.1 */
|
||||
// End offset: 0x0004BA08
|
||||
// End Line: 3260
|
||||
@ -5029,11 +5033,11 @@ void ScreenShake(int count, SVECTOR* ang)
|
||||
// [D] [T]
|
||||
int DetonatorTimer(void)
|
||||
{
|
||||
static struct SVECTOR rememberCameraAngle; // offset 0x30
|
||||
static SVECTOR rememberCameraAngle; // offset 0x30
|
||||
static int count = 0; // offset 0x38
|
||||
|
||||
int cnt;
|
||||
_EVENT* ev;
|
||||
EVENT* ev;
|
||||
VECTOR pos;
|
||||
|
||||
if (gCurrentMissionNumber == 23)
|
||||
@ -5132,7 +5136,7 @@ int DetonatorTimer(void)
|
||||
|
||||
detonator.timer = 200;
|
||||
SetSpecialCamera(SPECIAL_CAMERA_SET, 0);
|
||||
events.cameraEvent = (_EVENT*)0x1;
|
||||
events.cameraEvent = (EVENT*)0x1;
|
||||
|
||||
rememberCameraAngle = camera_angle;
|
||||
}
|
||||
@ -5194,15 +5198,15 @@ int DetonatorTimer(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ MultiCarEvent(struct _TARGET *target /*$a0*/)
|
||||
// void /*$ra*/ MultiCarEvent(MS_TARGET *target /*$a0*/)
|
||||
// line 3288, offset 0x0004bab0
|
||||
/* begin block 1 */
|
||||
// Start line: 3289
|
||||
// Start offset: 0x0004BAB0
|
||||
// Variables:
|
||||
// struct MULTICAR_DATA *data; // $s0
|
||||
// MULTICAR_DATA *data; // $s0
|
||||
// int i; // $s1
|
||||
// struct _EVENT *ev; // $s2
|
||||
// EVENT *ev; // $s2
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 3301
|
||||
@ -5232,11 +5236,11 @@ int DetonatorTimer(void)
|
||||
// End Line: 8399
|
||||
|
||||
// [D] [T]
|
||||
void MultiCarEvent(_TARGET* target)
|
||||
void MultiCarEvent(MS_TARGET* target)
|
||||
{
|
||||
_EVENT* first;
|
||||
EVENT* first;
|
||||
int n;
|
||||
_EVENT* ev;
|
||||
EVENT* ev;
|
||||
MULTICAR_DATA* data;
|
||||
int i;
|
||||
|
||||
|
@ -10,11 +10,11 @@ extern int GetVisValue(int index, int zDir); // 0x00045AB8
|
||||
|
||||
extern void VisibilityLists(VisType type, int i); // 0x00045C68
|
||||
|
||||
extern void SetElTrainRotation(_EVENT *ev); // 0x0004BE5C
|
||||
extern void SetElTrainRotation(EVENT *ev); // 0x0004BE5C
|
||||
|
||||
extern void InitTrain(_EVENT *ev, int count, int type); // 0x000460EC
|
||||
extern void InitTrain(EVENT *ev, int count, int type); // 0x000460EC
|
||||
|
||||
extern void InitDoor(FixedEvent *ev, _EVENT ***e, int *cEvents); // 0x0004BEB8
|
||||
extern void InitDoor(FixedEvent *ev, EVENT ***e, int *cEvents); // 0x0004BEB8
|
||||
|
||||
extern void InitEvents(); // 0x0004BBD4
|
||||
|
||||
@ -24,19 +24,19 @@ extern void InitEventCamera(); // 0x0004BF54
|
||||
|
||||
extern void ResetEventCamera(); // 0x0004C014
|
||||
|
||||
extern void SetCamera(_EVENT *ev); // 0x00047538
|
||||
extern void SetCamera(EVENT *ev); // 0x00047538
|
||||
|
||||
extern void EventCollisions(_CAR_DATA *cp, int type); // 0x0004BC50
|
||||
extern void EventCollisions(CAR_DATA *cp, int type); // 0x0004BC50
|
||||
|
||||
extern void NextNode(_EVENT *ev); // 0x0004C0A4
|
||||
extern void NextNode(EVENT *ev); // 0x0004C0A4
|
||||
|
||||
extern void StepFromToEvent(_EVENT *ev); // 0x000479DC
|
||||
extern void StepFromToEvent(EVENT *ev); // 0x000479DC
|
||||
|
||||
extern void StepPathEvent(_EVENT *ev); // 0x00047BD4
|
||||
extern void StepPathEvent(EVENT *ev); // 0x00047BD4
|
||||
|
||||
extern int GetBridgeRotation(int timer); // 0x0004C158
|
||||
|
||||
extern void StepHelicopter(_EVENT *ev); // 0x0004830C
|
||||
extern void StepHelicopter(EVENT *ev); // 0x0004830C
|
||||
|
||||
extern void StepEvents(); // 0x00048A60
|
||||
|
||||
@ -46,15 +46,15 @@ extern void DrawRotor(VECTOR pos, MATRIX *matrix); // 0x00049684
|
||||
|
||||
extern void DrawEvents(int camera); // 0x00049C38
|
||||
|
||||
extern void BoatOffset(SVECTOR *offset, _EVENT *ev); // 0x0004BE24
|
||||
extern void BoatOffset(SVECTOR *offset, EVENT *ev); // 0x0004BE24
|
||||
|
||||
extern void EventCameraOffset(SVECTOR* offset);
|
||||
|
||||
extern int OnBoat(VECTOR *pos, _EVENT *ev, int *dist); // 0x0004BDA0
|
||||
extern int OnBoat(VECTOR *pos, EVENT *ev, int *dist); // 0x0004BDA0
|
||||
|
||||
extern _sdPlane * EventSurface(VECTOR *pos, _sdPlane *plane); // 0x0004A688
|
||||
extern sdPlane * EventSurface(VECTOR *pos, sdPlane *plane); // 0x0004A688
|
||||
|
||||
extern void MakeEventTrackable(_EVENT *ev); // 0x0004BD6C
|
||||
extern void MakeEventTrackable(EVENT *ev); // 0x0004BD6C
|
||||
|
||||
extern void TriggerDoor(FixedEvent *door, int *stage, int sound); // 0x0004C208
|
||||
|
||||
@ -68,7 +68,7 @@ extern void ScreenShake(int count, SVECTOR *ang); // 0x0004C280
|
||||
|
||||
extern int DetonatorTimer(); // 0x0004B5FC
|
||||
|
||||
extern void MultiCarEvent(_TARGET *target); // 0x0004BAB0
|
||||
extern void MultiCarEvent(MS_TARGET *target); // 0x0004BAB0
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -45,13 +45,13 @@ int FelonyDecreaseTimer = 0;
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ InitFelonyDelayArray(struct FELONY_DELAY *pFelonyDelay /*$a0*/, short *pMaximum /*$a1*/, int count /*$a2*/)
|
||||
// void /*$ra*/ InitFelonyDelayArray(FELONY_DELAY *pFelonyDelay /*$a0*/, short *pMaximum /*$a1*/, int count /*$a2*/)
|
||||
// line 413, offset 0x0004d364
|
||||
/* begin block 1 */
|
||||
// Start line: 414
|
||||
// Start offset: 0x0004D364
|
||||
// Variables:
|
||||
// struct FELONY_DELAY *pCurrent; // $a0
|
||||
// FELONY_DELAY *pCurrent; // $a0
|
||||
/* end block 1 */
|
||||
// End offset: 0x0004D3A0
|
||||
// End Line: 422
|
||||
@ -86,7 +86,7 @@ void InitFelonyDelayArray(FELONY_DELAY *pFelonyDelay, short *pMaximum, int count
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ InitFelonyData(struct FELONY_DATA *pFelonyData /*$s0*/)
|
||||
// void /*$ra*/ InitFelonyData(FELONY_DATA *pFelonyData /*$s0*/)
|
||||
// line 431, offset 0x0004d3a0
|
||||
/* begin block 1 */
|
||||
// Start line: 432
|
||||
@ -96,9 +96,9 @@ void InitFelonyDelayArray(FELONY_DELAY *pFelonyDelay, short *pMaximum, int count
|
||||
// Start line: 432
|
||||
// Start offset: 0x0004D3A0
|
||||
// Variables:
|
||||
// struct FELONY_VALUE *pSrc; // $v1
|
||||
// struct FELONY_VALUE *pDest; // $s0
|
||||
// struct FELONY_VALUE *pEnd; // $a0
|
||||
// FELONY_VALUE *pSrc; // $v1
|
||||
// FELONY_VALUE *pDest; // $s0
|
||||
// FELONY_VALUE *pEnd; // $a0
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x0004D420
|
||||
// End Line: 445
|
||||
@ -161,7 +161,7 @@ int GetCarHeading(int direction)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// char /*$ra*/ GetCarDirectionOfTravel(struct _CAR_DATA *cp /*$s0*/)
|
||||
// char /*$ra*/ GetCarDirectionOfTravel(CAR_DATA *cp /*$s0*/)
|
||||
// line 454, offset 0x0004d430
|
||||
/* begin block 1 */
|
||||
// Start line: 455
|
||||
@ -178,7 +178,7 @@ int GetCarHeading(int direction)
|
||||
// End Line: 1423
|
||||
|
||||
// [D] [T]
|
||||
char GetCarDirectionOfTravel(_CAR_DATA *cp)
|
||||
char GetCarDirectionOfTravel(CAR_DATA *cp)
|
||||
{
|
||||
int direction;
|
||||
|
||||
@ -194,7 +194,7 @@ char GetCarDirectionOfTravel(_CAR_DATA *cp)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ NoteFelony(struct FELONY_DATA *pFelonyData /*$a3*/, char type /*$s3*/, short scale /*$t0*/)
|
||||
// void /*$ra*/ NoteFelony(FELONY_DATA *pFelonyData /*$a3*/, char type /*$s3*/, short scale /*$t0*/)
|
||||
// line 476, offset 0x0004c330
|
||||
/* begin block 1 */
|
||||
// Start line: 477
|
||||
@ -206,7 +206,7 @@ char GetCarDirectionOfTravel(_CAR_DATA *cp)
|
||||
// Start line: 478
|
||||
// Start offset: 0x0004C3A8
|
||||
// Variables:
|
||||
// struct FELONY_DELAY *pFelonyDelay; // $v1
|
||||
// FELONY_DELAY *pFelonyDelay; // $v1
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x0004C3CC
|
||||
// End Line: 495
|
||||
@ -381,7 +381,7 @@ void NoteFelony(FELONY_DATA *pFelonyData, char type, short scale)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ AdjustFelony(struct FELONY_DATA *pFelonyData /*$a0*/)
|
||||
// void /*$ra*/ AdjustFelony(FELONY_DATA *pFelonyData /*$a0*/)
|
||||
// line 597, offset 0x0004c8b4
|
||||
/* begin block 1 */
|
||||
// Start line: 598
|
||||
@ -391,7 +391,7 @@ void NoteFelony(FELONY_DATA *pFelonyData, char type, short scale)
|
||||
// Start line: 649
|
||||
// Start offset: 0x0004CBE8
|
||||
// Variables:
|
||||
// struct FELONY_DELAY *pFelonyDelay; // $v1
|
||||
// FELONY_DELAY *pFelonyDelay; // $v1
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x0004CC28
|
||||
// End Line: 658
|
||||
@ -463,11 +463,11 @@ void AdjustFelony(FELONY_DATA *pFelonyData)
|
||||
// Start line: 670
|
||||
// Start offset: 0x0004CC28
|
||||
// Variables:
|
||||
// struct FELONY_DATA *pFelonyData; // $s4
|
||||
// struct DRIVER2_CURVE *cv; // $s5
|
||||
// struct DRIVER2_STRAIGHT *st; // $s6
|
||||
// struct _CAR_DATA *cp; // $s3
|
||||
// struct VECTOR *carPos; // $s2
|
||||
// FELONY_DATA *pFelonyData; // $s4
|
||||
// DRIVER2_CURVE *cv; // $s5
|
||||
// DRIVER2_STRAIGHT *st; // $s6
|
||||
// CAR_DATA *cp; // $s3
|
||||
// VECTOR *carPos; // $s2
|
||||
// int surfInd; // $s0
|
||||
|
||||
/* begin block 1.1 */
|
||||
@ -480,7 +480,7 @@ void AdjustFelony(FELONY_DATA *pFelonyData)
|
||||
// Start line: 699
|
||||
// Start offset: 0x0004CD64
|
||||
// Variables:
|
||||
// struct DRIVER2_JUNCTION *jn; // $a2
|
||||
// DRIVER2_JUNCTION *jn; // $a2
|
||||
// short exitId; // $s1
|
||||
/* end block 1.1.1 */
|
||||
// End offset: 0x0004CE0C
|
||||
@ -564,7 +564,7 @@ void CheckPlayerMiscFelonies(void)
|
||||
VECTOR *carPos;
|
||||
DRIVER2_ROAD_INFO roadInfo;
|
||||
DRIVER2_JUNCTION *jn;
|
||||
_CAR_DATA* cp;
|
||||
CAR_DATA* cp;
|
||||
|
||||
// Do not register felony if player does not have a car
|
||||
if (player[0].playerType == 2 ||
|
||||
@ -753,7 +753,7 @@ void InitFelonySystem(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ CarHitByPlayer(struct _CAR_DATA *victim /*$a0*/, int howHard /*$a2*/)
|
||||
// void /*$ra*/ CarHitByPlayer(CAR_DATA *victim /*$a0*/, int howHard /*$a2*/)
|
||||
// line 824, offset 0x0004d2b8
|
||||
/* begin block 1 */
|
||||
// Start line: 1714
|
||||
@ -761,7 +761,7 @@ void InitFelonySystem(void)
|
||||
// End Line: 1715
|
||||
|
||||
// [D] [T]
|
||||
void CarHitByPlayer(_CAR_DATA *victim, int howHard)
|
||||
void CarHitByPlayer(CAR_DATA *victim, int howHard)
|
||||
{
|
||||
char type;
|
||||
|
||||
|
@ -6,23 +6,23 @@
|
||||
|
||||
extern FELONY_DATA felonyData;
|
||||
|
||||
extern void InitFelonyDelayArray(struct FELONY_DELAY *pFelonyDelay, short *pMaximum, int count); // 0x0004D364
|
||||
extern void InitFelonyDelayArray(FELONY_DELAY *pFelonyDelay, short *pMaximum, int count); // 0x0004D364
|
||||
|
||||
extern void InitFelonyData(struct FELONY_DATA *pFelonyData); // 0x0004D3A0
|
||||
extern void InitFelonyData(FELONY_DATA *pFelonyData); // 0x0004D3A0
|
||||
|
||||
extern int GetCarHeading(int direction); // 0x0004D420
|
||||
|
||||
extern char GetCarDirectionOfTravel(struct _CAR_DATA *cp); // 0x0004D430
|
||||
extern char GetCarDirectionOfTravel(CAR_DATA *cp); // 0x0004D430
|
||||
|
||||
extern void NoteFelony(struct FELONY_DATA *pFelonyData, char type, short scale); // 0x0004C330
|
||||
extern void NoteFelony(FELONY_DATA *pFelonyData, char type, short scale); // 0x0004C330
|
||||
|
||||
extern void AdjustFelony(struct FELONY_DATA *pFelonyData); // 0x0004C8B4
|
||||
extern void AdjustFelony(FELONY_DATA *pFelonyData); // 0x0004C8B4
|
||||
|
||||
extern void CheckPlayerMiscFelonies(); // 0x0004CC28
|
||||
|
||||
extern void InitFelonySystem(); // 0x0004D280
|
||||
|
||||
extern void CarHitByPlayer(struct _CAR_DATA *victim, int howHard); // 0x0004D2B8
|
||||
extern void CarHitByPlayer(CAR_DATA *victim, int howHard); // 0x0004D2B8
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -71,7 +71,7 @@ void ReInitSystem(void)
|
||||
// Start line: 69
|
||||
// Start offset: 0x0004D518
|
||||
// Variables:
|
||||
// struct RENDER_ARGS args; // stack offset -40
|
||||
// RENDER_ARGS args; // stack offset -40
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 75
|
||||
@ -129,7 +129,7 @@ void PlayFMV(unsigned char render)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ PlayRender(struct RENDER_ARGS *args /*$s0*/)
|
||||
// void /*$ra*/ PlayRender(RENDER_ARGS *args /*$s0*/)
|
||||
// line 107, offset 0x0004d5d0
|
||||
/* begin block 1 */
|
||||
// Start line: 108
|
||||
|
@ -8,7 +8,7 @@ extern void ReInitSystem(); // 0x0004D478
|
||||
|
||||
extern void PlayFMV(unsigned char render); // 0x0004D518
|
||||
|
||||
extern void PlayRender(struct RENDER_ARGS *args); // 0x0004D5D0
|
||||
extern void PlayRender(RENDER_ARGS *args); // 0x0004D5D0
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -29,12 +29,12 @@
|
||||
|
||||
#include "FELONY.H"
|
||||
|
||||
typedef void(*envsoundfunc)(struct __envsound* ep /*$s1*/, struct __envsoundinfo* E /*$a1*/, int pl /*$a2*/);
|
||||
typedef void(*envsoundfunc)(__envsound* ep /*$s1*/, __envsoundinfo* E /*$a1*/, int pl /*$a2*/);
|
||||
|
||||
void IdentifyZone(struct __envsound* ep, struct __envsoundinfo* E, int pl);
|
||||
void CalcEffPos(struct __envsound* ep, struct __envsoundinfo* E, int pl);
|
||||
void CalcEffPos2(struct __envsound* ep, struct __envsoundinfo* E, int pl);
|
||||
void UpdateEnvSnd(struct __envsound* ep, struct __envsoundinfo* E, int pl);
|
||||
void IdentifyZone(envsound* ep, envsoundinfo* E, int pl);
|
||||
void CalcEffPos(envsound* ep, envsoundinfo* E, int pl);
|
||||
void CalcEffPos2(envsound* ep, envsoundinfo* E, int pl);
|
||||
void UpdateEnvSnd(envsound* ep, envsoundinfo* E, int pl);
|
||||
|
||||
static envsoundfunc UpdateEnvSounds[] = {
|
||||
IdentifyZone,
|
||||
@ -75,8 +75,8 @@ SPEECH_QUEUE gSpeechQueue;
|
||||
static char cop_bank = 0;
|
||||
char phrase_top = 0;
|
||||
|
||||
static struct __othercarsound siren_noise[MAX_SIREN_NOISES];
|
||||
static struct __othercarsound car_noise[MAX_CAR_NOISES];
|
||||
static othercarsound siren_noise[MAX_SIREN_NOISES];
|
||||
static othercarsound car_noise[MAX_CAR_NOISES];
|
||||
static int loudhail_time = 0;
|
||||
|
||||
static int copmusic = 0;
|
||||
@ -85,9 +85,9 @@ int current_music_id;
|
||||
static char header_pt[sizeof(XMHEADER)];
|
||||
static char song_pt[sizeof(XMSONG)];
|
||||
|
||||
static __envsound envsnd[MAX_LEVEL_ENVSOUNDS];
|
||||
static __envsoundinfo ESdata[2];
|
||||
__tunnelinfo tunnels;
|
||||
static envsound envsnd[MAX_LEVEL_ENVSOUNDS];
|
||||
static envsoundinfo ESdata[2];
|
||||
tunnelinfo tunnels;
|
||||
|
||||
char _sbank_buffer[0x80000]; // 0x180000
|
||||
|
||||
@ -632,7 +632,7 @@ void LoadLevelSFX(int missionNum)
|
||||
// Start line: 307
|
||||
// Start offset: 0x0004DE30
|
||||
// Variables:
|
||||
// struct VECTOR *cp; // $s2
|
||||
// VECTOR *cp; // $s2
|
||||
// int i; // $s1
|
||||
|
||||
/* begin block 1.1 */
|
||||
@ -677,8 +677,8 @@ void StartGameSounds(void)
|
||||
{
|
||||
int channel;
|
||||
int i;
|
||||
_PLAYER* lcp;
|
||||
_CAR_DATA* cp;
|
||||
PLAYER* lcp;
|
||||
CAR_DATA* cp;
|
||||
int sample;
|
||||
int pitch;
|
||||
int car_model;
|
||||
@ -806,7 +806,7 @@ void StartGameSounds(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// unsigned short /*$ra*/ GetEngineRevs(struct _CAR_DATA *cp /*$t2*/)
|
||||
// unsigned short /*$ra*/ GetEngineRevs(CAR_DATA *cp /*$t2*/)
|
||||
// line 404, offset 0x0004e188
|
||||
/* begin block 1 */
|
||||
// Start line: 405
|
||||
@ -834,7 +834,7 @@ void StartGameSounds(void)
|
||||
/* WARNING: Removing unreachable block (ram,0x0004e1b0) */
|
||||
|
||||
// [D] [T]
|
||||
ushort GetEngineRevs(_CAR_DATA* cp)
|
||||
ushort GetEngineRevs(CAR_DATA* cp)
|
||||
{
|
||||
int acc;
|
||||
GEAR_DESC* gd;
|
||||
@ -904,7 +904,7 @@ ushort GetEngineRevs(_CAR_DATA* cp)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ ControlCarRevs(struct _CAR_DATA *cp /*$s0*/)
|
||||
// void /*$ra*/ ControlCarRevs(CAR_DATA *cp /*$s0*/)
|
||||
// line 458, offset 0x0004e2e8
|
||||
/* begin block 1 */
|
||||
// Start line: 459
|
||||
@ -943,7 +943,7 @@ const int maxrevdrop = 1440;
|
||||
const int maxrevrise = 1600;
|
||||
|
||||
// [D] [T]
|
||||
void ControlCarRevs(_CAR_DATA* cp)
|
||||
void ControlCarRevs(CAR_DATA* cp)
|
||||
{
|
||||
char spin;
|
||||
int player_id, acc, oldvol;
|
||||
@ -1068,7 +1068,7 @@ void DoSpeech(int chan, int sound)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// char /*$ra*/ PlaySpeech(struct SPEECH_QUEUE *pSpeechQueue /*$a0*/, int sound /*$a1*/)
|
||||
// char /*$ra*/ PlaySpeech(SPEECH_QUEUE *pSpeechQueue /*$a0*/, int sound /*$a1*/)
|
||||
// line 562, offset 0x0005228c
|
||||
/* begin block 1 */
|
||||
// Start line: 563
|
||||
@ -1116,7 +1116,7 @@ char PlaySpeech(SPEECH_QUEUE* pSpeechQueue, int sound)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ InitSpeechQueue(struct SPEECH_QUEUE *pSpeechQueue /*$s0*/)
|
||||
// void /*$ra*/ InitSpeechQueue(SPEECH_QUEUE *pSpeechQueue /*$s0*/)
|
||||
// line 587, offset 0x00052654
|
||||
/* begin block 1 */
|
||||
// Start line: 5265
|
||||
@ -1136,7 +1136,7 @@ void InitSpeechQueue(SPEECH_QUEUE* pSpeechQueue)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ ControlSpeech(struct SPEECH_QUEUE *pSpeechQueue /*$s0*/)
|
||||
// void /*$ra*/ ControlSpeech(SPEECH_QUEUE *pSpeechQueue /*$s0*/)
|
||||
// line 595, offset 0x0004e560
|
||||
/* begin block 1 */
|
||||
// Start line: 596
|
||||
@ -1434,8 +1434,8 @@ void InitDopplerSFX(void)
|
||||
// int num_noisy_cars; // $s5
|
||||
// unsigned long car_dist[20]; // stack offset -176
|
||||
// unsigned short indexlist[20]; // stack offset -96
|
||||
// struct _CAR_DATA *car_ptr; // $s2
|
||||
// struct VECTOR *pp; // $a1
|
||||
// CAR_DATA *car_ptr; // $s2
|
||||
// VECTOR *pp; // $a1
|
||||
// unsigned long car_flags; // $s4
|
||||
// char sirens; // stack offset -56
|
||||
|
||||
@ -1507,7 +1507,7 @@ void DoDopplerSFX(void)
|
||||
ulong car_dist[MAX_CARS];
|
||||
ushort indexlist[MAX_CARS];
|
||||
|
||||
_CAR_DATA* car_ptr;
|
||||
CAR_DATA* car_ptr;
|
||||
int dx, dz;
|
||||
ulong dist;
|
||||
|
||||
@ -1885,7 +1885,7 @@ void DoDopplerSFX(void)
|
||||
// Start line: 951
|
||||
// Start offset: 0x0004F560
|
||||
// Variables:
|
||||
// struct _CAR_DATA *car_ptr; // $a3
|
||||
// CAR_DATA *car_ptr; // $a3
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x0004F624
|
||||
// End Line: 959
|
||||
@ -1925,7 +1925,7 @@ void DoPoliceLoudhailer(int cars, ushort* indexlist, ulong* dist)
|
||||
|
||||
while (i < cars)
|
||||
{
|
||||
_CAR_DATA* car_ptr;
|
||||
CAR_DATA* car_ptr;
|
||||
|
||||
carId = indexlist[i];
|
||||
|
||||
@ -1953,7 +1953,7 @@ void DoPoliceLoudhailer(int cars, ushort* indexlist, ulong* dist)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ CollisionSound(char player_id /*$s0*/, struct _CAR_DATA *cp /*$s5*/, int impact /*$s2*/, int car_car /*$s7*/)
|
||||
// void /*$ra*/ CollisionSound(char player_id /*$s0*/, CAR_DATA *cp /*$s5*/, int impact /*$s2*/, int car_car /*$s7*/)
|
||||
// line 975, offset 0x0004f668
|
||||
/* begin block 1 */
|
||||
// Start line: 976
|
||||
@ -1997,7 +1997,7 @@ void DoPoliceLoudhailer(int cars, ushort* indexlist, ulong* dist)
|
||||
// End Line: 2286
|
||||
|
||||
// [D] [T]
|
||||
void CollisionSound(char player_id, _CAR_DATA* cp, int impact, int car_car)
|
||||
void CollisionSound(char player_id, CAR_DATA* cp, int impact, int car_car)
|
||||
{
|
||||
int chan;
|
||||
long rnd;
|
||||
@ -2112,7 +2112,7 @@ void CollisionSound(char player_id, _CAR_DATA* cp, int impact, int car_car)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ ExplosionSound(struct VECTOR *pos /*$s4*/, int type /*$s0*/)
|
||||
// void /*$ra*/ ExplosionSound(VECTOR *pos /*$s4*/, int type /*$s0*/)
|
||||
// line 1019, offset 0x0004f984
|
||||
/* begin block 1 */
|
||||
// Start line: 1020
|
||||
@ -2121,7 +2121,7 @@ void CollisionSound(char player_id, _CAR_DATA* cp, int impact, int car_car)
|
||||
// int bang; // $s5
|
||||
// int pitch; // $t0
|
||||
// int rnd; // $s3
|
||||
// struct VECTOR P; // stack offset -48
|
||||
// VECTOR P; // stack offset -48
|
||||
// int sc1; // $s2
|
||||
// int sc2; // $s1
|
||||
/* end block 1 */
|
||||
@ -2292,7 +2292,7 @@ void FunkUpDaBGMTunez(int funk)
|
||||
// Start offset: 0x0004FC90
|
||||
// Variables:
|
||||
// int i; // $s2
|
||||
// struct _CAR_DATA *cp; // $s1
|
||||
// CAR_DATA *cp; // $s1
|
||||
/* end block 1 */
|
||||
// End offset: 0x000500E4
|
||||
// End Line: 1183
|
||||
@ -2317,15 +2317,15 @@ void FunkUpDaBGMTunez(int funk)
|
||||
// [D] [T]
|
||||
void SoundTasks(void)
|
||||
{
|
||||
static struct __envsoundtags EStags;
|
||||
static __envsoundtags EStags;
|
||||
|
||||
int chan;
|
||||
int vol;
|
||||
VECTOR* position;
|
||||
long* velocity;
|
||||
|
||||
_PLAYER* lcp;
|
||||
_CAR_DATA* cp;
|
||||
PLAYER* lcp;
|
||||
CAR_DATA* cp;
|
||||
int i;
|
||||
|
||||
UpdateEnvSounds[EStags.func_cnt++](envsnd, ESdata, 0);
|
||||
@ -2579,7 +2579,7 @@ void InitMusic(int musicnum)
|
||||
// Start line: 1318
|
||||
// Start offset: 0x0005243C
|
||||
// Variables:
|
||||
// struct __tunnelinfo *T; // $a1
|
||||
// tunnelinfo *T; // $a1
|
||||
/* end block 1 */
|
||||
// End offset: 0x00052460
|
||||
// End Line: 1325
|
||||
@ -2614,7 +2614,7 @@ void InitTunnels(char n)
|
||||
// Start line: 1332
|
||||
// Start offset: 0x00052848
|
||||
// Variables:
|
||||
// struct __tunnelinfo *T; // $t0
|
||||
// tunnelinfo *T; // $t0
|
||||
/* end block 1 */
|
||||
// End offset: 0x000528FC
|
||||
// End Line: 1344
|
||||
@ -2645,7 +2645,7 @@ int AddTunnel(long x1, long y1, long z1, long x2, long y2, long z2)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ Tunnels(struct __tunnelinfo *T /*$a0*/)
|
||||
// void /*$ra*/ Tunnels(tunnelinfo *T /*$a0*/)
|
||||
// line 1350, offset 0x0005027c
|
||||
/* begin block 1 */
|
||||
// Start line: 1351
|
||||
@ -2673,7 +2673,7 @@ int AddTunnel(long x1, long y1, long z1, long x2, long y2, long z2)
|
||||
// End Line: 3120
|
||||
|
||||
// [D] [T]
|
||||
void Tunnels(__tunnelinfo* T)
|
||||
void Tunnels(tunnelinfo* T)
|
||||
{
|
||||
int i;
|
||||
int verb;
|
||||
@ -2802,7 +2802,7 @@ void AddTunnels(int level)
|
||||
// Variables:
|
||||
// int i; // $v1
|
||||
// int p; // $a1
|
||||
// struct __envsoundtags *T; // $t1
|
||||
// __envsoundtags *T; // $t1
|
||||
/* end block 1 */
|
||||
// End offset: 0x0005243C
|
||||
// End Line: 1538
|
||||
@ -2817,7 +2817,7 @@ void AddTunnels(int level)
|
||||
/* end block 3 */
|
||||
// End Line: 5623
|
||||
|
||||
static struct __envsoundtags EStags;
|
||||
static __envsoundtags EStags;
|
||||
|
||||
// [D] [T]
|
||||
void InitEnvSnd(int num_envsnds)
|
||||
@ -2933,8 +2933,8 @@ void SetEnvSndPos(int snd, long px, long pz)
|
||||
// Start offset: 0x00050C08
|
||||
// Variables:
|
||||
// void *data; // $a1
|
||||
// struct __envsound *ep; // $t1
|
||||
// struct __envsoundtags *T; // $t0
|
||||
// envsound *ep; // $t1
|
||||
// __envsoundtags *T; // $t0
|
||||
// long s; // $a1
|
||||
/* end block 1 */
|
||||
// End offset: 0x00050E08
|
||||
@ -2948,7 +2948,7 @@ void SetEnvSndPos(int snd, long px, long pz)
|
||||
// [D] [T]
|
||||
int AddEnvSnd(int type, char flags, int bank, int sample, int vol, long px, long pz, long px2, long pz2)
|
||||
{
|
||||
__envsound* ep;
|
||||
envsound* ep;
|
||||
|
||||
if (EStags.envsnd_cnt >= EStags.num_envsnds)
|
||||
return -1;
|
||||
@ -3001,7 +3001,7 @@ int AddEnvSnd(int type, char flags, int bank, int sample, int vol, long px, long
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ IdentifyZone(struct __envsound *ep /*$a3*/, struct __envsoundinfo *E /*stack 4*/, int pl /*$a2*/)
|
||||
// void /*$ra*/ IdentifyZone(envsound *ep /*$a3*/, envsoundinfo *E /*stack 4*/, int pl /*$a2*/)
|
||||
// line 1646, offset 0x00050e08
|
||||
/* begin block 1 */
|
||||
// Start line: 1647
|
||||
@ -3012,7 +3012,7 @@ int AddEnvSnd(int type, char flags, int bank, int sample, int vol, long px, long
|
||||
// int tmp[4]; // stack offset -96
|
||||
// float d; // $s0
|
||||
// float _g[4]; // stack offset -80
|
||||
// struct __bitfield64 zones; // stack offset -64
|
||||
// __bitfield64 zones; // stack offset -64
|
||||
/* end block 1 */
|
||||
// End offset: 0x000514BC
|
||||
// End Line: 1704
|
||||
@ -3028,7 +3028,7 @@ int AddEnvSnd(int type, char flags, int bank, int sample, int vol, long px, long
|
||||
// End Line: 3740
|
||||
|
||||
// [D] [T]
|
||||
void IdentifyZone(__envsound* ep, __envsoundinfo* E, int pl)
|
||||
void IdentifyZone(envsound* ep, envsoundinfo* E, int pl)
|
||||
{
|
||||
int i, j;
|
||||
int vol;
|
||||
@ -3189,7 +3189,7 @@ void IdentifyZone(__envsound* ep, __envsoundinfo* E, int pl)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ CalcEffPos(struct __envsound *ep /*$s1*/, struct __envsoundinfo *E /*$a1*/, int pl /*$a2*/)
|
||||
// void /*$ra*/ CalcEffPos(envsound *ep /*$s1*/, envsoundinfo *E /*$a1*/, int pl /*$a2*/)
|
||||
// line 1706, offset 0x000514bc
|
||||
/* begin block 1 */
|
||||
// Start line: 1707
|
||||
@ -3212,7 +3212,7 @@ void IdentifyZone(__envsound* ep, __envsoundinfo* E, int pl)
|
||||
// End Line: 3907
|
||||
|
||||
// [D] [A] unprocessed arrays
|
||||
void CalcEffPos(__envsound* ep, __envsoundinfo* E, int pl)
|
||||
void CalcEffPos(envsound* ep, envsoundinfo* E, int pl)
|
||||
{
|
||||
int minX, maxX;
|
||||
int minZ, maxZ;
|
||||
@ -3303,7 +3303,7 @@ void CalcEffPos(__envsound* ep, __envsoundinfo* E, int pl)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ CalcEffPos2(struct __envsound *ep /*stack 0*/, struct __envsoundinfo *E /*$s7*/, int pl /*$a2*/)
|
||||
// void /*$ra*/ CalcEffPos2(envsound *ep /*stack 0*/, envsoundinfo *E /*$s7*/, int pl /*$a2*/)
|
||||
// line 1744, offset 0x000517d0
|
||||
/* begin block 1 */
|
||||
// Start line: 1745
|
||||
@ -3333,7 +3333,7 @@ void CalcEffPos(__envsound* ep, __envsoundinfo* E, int pl)
|
||||
// End Line: 4014
|
||||
|
||||
// [D] [A] unprocessed arrays
|
||||
void CalcEffPos2(__envsound* ep, __envsoundinfo* E, int pl)
|
||||
void CalcEffPos2(envsound* ep, envsoundinfo* E, int pl)
|
||||
{
|
||||
int snd;
|
||||
int i;
|
||||
@ -3513,7 +3513,7 @@ void CalcEffPos2(__envsound* ep, __envsoundinfo* E, int pl)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ UpdateEnvSnd(struct __envsound *ep /*stack 0*/, struct __envsoundinfo *E /*$s4*/, int pl /*stack 8*/)
|
||||
// void /*$ra*/ UpdateEnvSnd(envsound *ep /*stack 0*/, envsoundinfo *E /*$s4*/, int pl /*stack 8*/)
|
||||
// line 1812, offset 0x00051f0c
|
||||
/* begin block 1 */
|
||||
// Start line: 1813
|
||||
@ -3535,7 +3535,7 @@ void CalcEffPos2(__envsound* ep, __envsoundinfo* E, int pl)
|
||||
// End Line: 4446
|
||||
|
||||
// [D] [T]
|
||||
void UpdateEnvSnd(__envsound* ep, __envsoundinfo* E, int pl)
|
||||
void UpdateEnvSnd(envsound* ep, envsoundinfo* E, int pl)
|
||||
{
|
||||
int channel;
|
||||
long* velocity;
|
||||
@ -3608,7 +3608,7 @@ void InitLeadHorn(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ LeadHorn(struct _CAR_DATA *cp /*$s0*/)
|
||||
// void /*$ra*/ LeadHorn(CAR_DATA *cp /*$s0*/)
|
||||
// line 1855, offset 0x00052954
|
||||
/* begin block 1 */
|
||||
// Start line: 1856
|
||||
@ -3630,7 +3630,7 @@ void InitLeadHorn(void)
|
||||
// End Line: 7806
|
||||
|
||||
// [D] [T]
|
||||
void LeadHorn(_CAR_DATA* cp)
|
||||
void LeadHorn(CAR_DATA* cp)
|
||||
{
|
||||
static unsigned int rnd = 0;
|
||||
|
||||
|
@ -26,17 +26,17 @@ extern void LoadLevelSFX(int missionNum); // 0x0004D784
|
||||
|
||||
extern void StartGameSounds(); // 0x0004DE30
|
||||
|
||||
extern ushort GetEngineRevs(struct _CAR_DATA *cp); // 0x0004E188
|
||||
extern ushort GetEngineRevs(CAR_DATA *cp); // 0x0004E188
|
||||
|
||||
extern void ControlCarRevs(struct _CAR_DATA *cp); // 0x0004E2E8
|
||||
extern void ControlCarRevs(CAR_DATA *cp); // 0x0004E2E8
|
||||
|
||||
extern void DoSpeech(int chan, int sound); // 0x000525F8
|
||||
|
||||
extern char PlaySpeech(struct SPEECH_QUEUE *pSpeechQueue, int sound); // 0x0005228C
|
||||
extern char PlaySpeech(SPEECH_QUEUE *pSpeechQueue, int sound); // 0x0005228C
|
||||
|
||||
extern void InitSpeechQueue(struct SPEECH_QUEUE *pSpeechQueue); // 0x00052654
|
||||
extern void InitSpeechQueue(SPEECH_QUEUE *pSpeechQueue); // 0x00052654
|
||||
|
||||
extern void ControlSpeech(struct SPEECH_QUEUE *pSpeechQueue); // 0x0004E560
|
||||
extern void ControlSpeech(SPEECH_QUEUE *pSpeechQueue); // 0x0004E560
|
||||
|
||||
extern void CopSay(int phrase, int direction); // 0x00052190
|
||||
|
||||
@ -52,7 +52,7 @@ extern void DoDopplerSFX(); // 0x0004E790
|
||||
|
||||
extern void DoPoliceLoudhailer(int cars, unsigned short *indexlist, unsigned long *dist); // 0x0004F4A0
|
||||
|
||||
extern void CollisionSound(char player_id, struct _CAR_DATA *cp, int impact, int car_car); // 0x0004F668
|
||||
extern void CollisionSound(char player_id, CAR_DATA *cp, int impact, int car_car); // 0x0004F668
|
||||
|
||||
extern void ExplosionSound(VECTOR *pos, int type); // 0x0004F984
|
||||
|
||||
@ -68,7 +68,7 @@ extern void InitTunnels(char n); // 0x0005243C
|
||||
|
||||
extern int AddTunnel(long x1, long y1, long z1, long x2, long y2, long z2); // 0x00052848
|
||||
|
||||
extern void Tunnels(struct __tunnelinfo *T); // 0x0005027C
|
||||
extern void Tunnels(tunnelinfo *T); // 0x0005027C
|
||||
|
||||
extern void AddTunnels(int level); // 0x00050400
|
||||
|
||||
@ -80,17 +80,17 @@ extern void SetEnvSndPos(int snd, long px, long pz); // 0x00052904
|
||||
|
||||
extern int AddEnvSnd(int type, char flags, int bank, int sample, int vol, long px, long pz, long px2, long pz2); // 0x00050C08
|
||||
|
||||
extern void IdentifyZone(struct __envsound *ep, struct __envsoundinfo *E, int pl); // 0x00050E08
|
||||
extern void IdentifyZone(envsound *ep, envsoundinfo *E, int pl); // 0x00050E08
|
||||
|
||||
extern void CalcEffPos(struct __envsound *ep, struct __envsoundinfo *E, int pl); // 0x000514BC
|
||||
extern void CalcEffPos(envsound *ep, envsoundinfo *E, int pl); // 0x000514BC
|
||||
|
||||
extern void CalcEffPos2(struct __envsound *ep, struct __envsoundinfo *E, int pl); // 0x000517D0
|
||||
extern void CalcEffPos2(envsound *ep, envsoundinfo *E, int pl); // 0x000517D0
|
||||
|
||||
extern void UpdateEnvSnd(struct __envsound *ep, struct __envsoundinfo *E, int pl); // 0x00051F0C
|
||||
extern void UpdateEnvSnd(envsound *ep, envsoundinfo *E, int pl); // 0x00051F0C
|
||||
|
||||
extern void InitLeadHorn(); // 0x00052948
|
||||
|
||||
extern void LeadHorn(struct _CAR_DATA *cp); // 0x00052954
|
||||
extern void LeadHorn(CAR_DATA *cp); // 0x00052954
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -109,7 +109,7 @@ int AttractMode = 0;
|
||||
// Start line: 836
|
||||
// Start offset: 0x00052A28
|
||||
// Variables:
|
||||
// struct RECT rect; // stack offset -16
|
||||
// RECT rect; // stack offset -16
|
||||
// int oldVMode; // $s0
|
||||
// int SurvivalCopSettingsBackup; // $s0
|
||||
/* end block 1 */
|
||||
@ -322,7 +322,7 @@ void StartRender(int renderNum)
|
||||
// Start line: 1032
|
||||
// Start offset: 0x00052E98
|
||||
// Variables:
|
||||
// struct RECT rect; // stack offset -24
|
||||
// RECT rect; // stack offset -24
|
||||
/* end block 1 */
|
||||
// End offset: 0x00052FE8
|
||||
// End Line: 1103
|
||||
@ -404,8 +404,8 @@ void ReInitFrontend(void)
|
||||
// Start line: 1106
|
||||
// Start offset: 0x00052FE8
|
||||
// Variables:
|
||||
// struct MISSION_STEP *CurrentStep; // $s0
|
||||
// struct RENDER_ARGS RenderArgs; // stack offset -48
|
||||
// MISSION_STEP *CurrentStep; // $s0
|
||||
// RENDER_ARGS RenderArgs; // stack offset -48
|
||||
// int quit; // $s3
|
||||
|
||||
/* begin block 1.1 */
|
||||
@ -679,7 +679,7 @@ int FindPrevMissionFromLadderPos(int pos)
|
||||
// Start line: 1281
|
||||
// Start offset: 0x000532B8
|
||||
// Variables:
|
||||
// struct RECT rect; // stack offset -16
|
||||
// RECT rect; // stack offset -16
|
||||
// int quit; // $s0
|
||||
/* end block 1 */
|
||||
// End offset: 0x000535D8
|
||||
@ -839,7 +839,7 @@ void LaunchGame(void)
|
||||
// Start line: 1418
|
||||
// Start offset: 0x00053740
|
||||
// Variables:
|
||||
// struct MISSION_STEP *step; // $a1
|
||||
// MISSION_STEP *step; // $a1
|
||||
// int pos; // $a2
|
||||
/* end block 1 */
|
||||
// End offset: 0x00053814
|
||||
|
@ -29,7 +29,7 @@
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ InitCarPhysics(struct _CAR_DATA *cp /*$s0*/, long (*startpos)[4] /*$t0*/, int direction /*$a2*/)
|
||||
// void /*$ra*/ InitCarPhysics(CAR_DATA *cp /*$s0*/, LONGVECTOR* startpos /*$t0*/, int direction /*$a2*/)
|
||||
// line 998, offset 0x0005381c
|
||||
/* begin block 1 */
|
||||
// Start line: 999
|
||||
@ -63,7 +63,7 @@
|
||||
|
||||
|
||||
// [D] [T]
|
||||
void InitCarPhysics(_CAR_DATA* cp, long(*startpos)[4], int direction)
|
||||
void InitCarPhysics(CAR_DATA* cp, long(*startpos)[4], int direction)
|
||||
{
|
||||
int ty;
|
||||
int odz;
|
||||
@ -126,7 +126,7 @@ void InitCarPhysics(_CAR_DATA* cp, long(*startpos)[4], int direction)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ TempBuildHandlingMatrix(struct _CAR_DATA *cp /*$s0*/, int init /*$a1*/)
|
||||
// void /*$ra*/ TempBuildHandlingMatrix(CAR_DATA *cp /*$s0*/, int init /*$a1*/)
|
||||
// line 1055, offset 0x000539e8
|
||||
/* begin block 1 */
|
||||
// Start line: 1056
|
||||
@ -154,7 +154,7 @@ void InitCarPhysics(_CAR_DATA* cp, long(*startpos)[4], int direction)
|
||||
// End Line: 2179
|
||||
|
||||
// [D] [T]
|
||||
void TempBuildHandlingMatrix(_CAR_DATA* cp, int init)
|
||||
void TempBuildHandlingMatrix(CAR_DATA* cp, int init)
|
||||
{
|
||||
int dz;
|
||||
int ang;
|
||||
@ -182,14 +182,14 @@ void TempBuildHandlingMatrix(_CAR_DATA* cp, int init)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ UpdateCarPoints(struct CAR_COSMETICS *carCos /*$a0*/)
|
||||
// void /*$ra*/ UpdateCarPoints(CAR_COSMETICS *carCos /*$a0*/)
|
||||
// line 1079, offset 0x00053b08
|
||||
/* begin block 1 */
|
||||
// Start line: 1080
|
||||
// Start offset: 0x00053B08
|
||||
// Variables:
|
||||
// struct SVECTOR *groundCollPoints; // $a1
|
||||
// struct SVECTOR *wheelPoints; // $a3
|
||||
// SVECTOR *groundCollPoints; // $a1
|
||||
// SVECTOR *wheelPoints; // $a3
|
||||
// int i; // $a2
|
||||
/* end block 1 */
|
||||
// End offset: 0x00053C00
|
||||
@ -259,7 +259,7 @@ void UpdateCarPoints(CAR_COSMETICS* carCos)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ FixCarCos(struct CAR_COSMETICS *carCos /*$s0*/, int externalModelNumber /*$a1*/)
|
||||
// void /*$ra*/ FixCarCos(CAR_COSMETICS *carCos /*$s0*/, int externalModelNumber /*$a1*/)
|
||||
// line 1106, offset 0x00056c24
|
||||
/* begin block 1 */
|
||||
// Start line: 1107
|
||||
@ -398,17 +398,17 @@ void FixCarCos(CAR_COSMETICS* carCos, int externalModelNumber)
|
||||
// int i; // $fp
|
||||
// int RKstep; // stack offset -84
|
||||
// int subframe; // stack offset -80
|
||||
// struct _CAR_DATA *c0; // $s0
|
||||
// static union RigidBodyState _tp[20]; // offset 0x0
|
||||
// static union RigidBodyState _d0[20]; // offset 0x410
|
||||
// static union RigidBodyState _d1[20]; // offset 0x820
|
||||
// CAR_DATA *c0; // $s0
|
||||
// static RigidBodyState _tp[20]; // offset 0x0
|
||||
// static RigidBodyState _d0[20]; // offset 0x410
|
||||
// static RigidBodyState _d1[20]; // offset 0x820
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 1268
|
||||
// Start offset: 0x00053C6C
|
||||
// Variables:
|
||||
// struct _CAR_DATA *c0; // $t2
|
||||
// union RigidBodyState *st; // $t1
|
||||
// CAR_DATA *c0; // $t2
|
||||
// RigidBodyState *st; // $t1
|
||||
|
||||
/* begin block 1.1.1 */
|
||||
// Start line: 1283
|
||||
@ -423,8 +423,8 @@ void FixCarCos(CAR_COSMETICS* carCos, int externalModelNumber)
|
||||
// Start line: 1301
|
||||
// Start offset: 0x00053E18
|
||||
// Variables:
|
||||
// long AV[4]; // stack offset -248
|
||||
// long delta_orientation[4]; // stack offset -232
|
||||
// LONGVECTOR AV; // stack offset -248
|
||||
// LONGQUATERNION delta_orientation; // stack offset -232
|
||||
/* end block 1.1.2 */
|
||||
// End offset: 0x00053FF8
|
||||
// End Line: 1321
|
||||
@ -436,34 +436,34 @@ void FixCarCos(CAR_COSMETICS* carCos, int externalModelNumber)
|
||||
// Start line: 1334
|
||||
// Start offset: 0x00054024
|
||||
// Variables:
|
||||
// union RigidBodyState *thisDelta; // stack offset -76
|
||||
// RigidBodyState *thisDelta; // stack offset -76
|
||||
|
||||
/* begin block 1.2.1 */
|
||||
// Start line: 1340
|
||||
// Start offset: 0x00054038
|
||||
// Variables:
|
||||
// struct _CAR_DATA *c0; // $s4
|
||||
// CAR_DATA *c0; // $s4
|
||||
|
||||
/* begin block 1.2.1.1 */
|
||||
// Start line: 1348
|
||||
// Start offset: 0x00054094
|
||||
// Variables:
|
||||
// union RigidBodyState *thisState_i; // $s6
|
||||
// RigidBodyState *thisState_i; // $s6
|
||||
// int j; // stack offset -72
|
||||
|
||||
/* begin block 1.2.1.1.1 */
|
||||
// Start line: 1193
|
||||
// Start offset: 0x000540EC
|
||||
// Variables:
|
||||
// union RigidBodyState *state; // $s6
|
||||
// union RigidBodyState *delta; // $a3
|
||||
// struct _CAR_DATA *cp; // $s4
|
||||
// RigidBodyState *state; // $s6
|
||||
// RigidBodyState *delta; // $a3
|
||||
// CAR_DATA *cp; // $s4
|
||||
|
||||
/* begin block 1.2.1.1.1.1 */
|
||||
// Start line: 1193
|
||||
// Start offset: 0x000540EC
|
||||
// Variables:
|
||||
// long AV[4]; // stack offset -248
|
||||
// LONGVECTOR AV; // stack offset -248
|
||||
/* end block 1.2.1.1.1.1 */
|
||||
// End offset: 0x000540EC
|
||||
// End Line: 1193
|
||||
@ -475,25 +475,25 @@ void FixCarCos(CAR_COSMETICS* carCos, int externalModelNumber)
|
||||
// Start line: 1367
|
||||
// Start offset: 0x000542D8
|
||||
// Variables:
|
||||
// struct _CAR_DATA *c1; // $s3
|
||||
// union RigidBodyState *thisState_j; // $s0
|
||||
// CAR_DATA *c1; // $s3
|
||||
// RigidBodyState *thisState_j; // $s0
|
||||
|
||||
/* begin block 1.2.1.1.2.1 */
|
||||
// Start line: 1375
|
||||
// Start offset: 0x00054340
|
||||
// Variables:
|
||||
// int strength; // $s5
|
||||
// long centre0[4]; // stack offset -248
|
||||
// long centre1[4]; // stack offset -232
|
||||
// long normal[4]; // stack offset -216
|
||||
// long collisionpoint[4]; // stack offset -200
|
||||
// LONGVECTOR centre0; // stack offset -248
|
||||
// LONGVECTOR centre1; // stack offset -232
|
||||
// LONGVECTOR normal; // stack offset -216
|
||||
// LONGVECTOR collisionpoint; // stack offset -200
|
||||
|
||||
/* begin block 1.2.1.1.2.1.1 */
|
||||
// Start line: 1378
|
||||
// Start offset: 0x00054340
|
||||
// Variables:
|
||||
// struct BOUND_BOX *bb1; // $a2
|
||||
// struct BOUND_BOX *bb2; // $a0
|
||||
// BOUND_BOX *bb1; // $a2
|
||||
// BOUND_BOX *bb2; // $a0
|
||||
/* end block 1.2.1.1.2.1.1 */
|
||||
// End offset: 0x00054440
|
||||
// End Line: 1409
|
||||
@ -511,11 +511,11 @@ void FixCarCos(CAR_COSMETICS* carCos, int externalModelNumber)
|
||||
// Start line: 1419
|
||||
// Start offset: 0x00054460
|
||||
// Variables:
|
||||
// long lever0[4]; // stack offset -184
|
||||
// long lever1[4]; // stack offset -168
|
||||
// long torque[4]; // stack offset -152
|
||||
// long pointVel0[4]; // stack offset -136
|
||||
// long pointVel1[4]; // stack offset -120
|
||||
// LONGVECTOR lever0; // stack offset -184
|
||||
// LONGVECTOR lever1; // stack offset -168
|
||||
// LONGVECTOR torque; // stack offset -152
|
||||
// LONGVECTOR pointVel0; // stack offset -136
|
||||
// LONGVECTOR pointVel1; // stack offset -120
|
||||
// int strikeVel; // stack offset -68
|
||||
|
||||
/* begin block 1.2.1.1.2.1.3.1 */
|
||||
@ -532,7 +532,7 @@ void FixCarCos(CAR_COSMETICS* carCos, int externalModelNumber)
|
||||
// Start line: 1487
|
||||
// Start offset: 0x00054870
|
||||
// Variables:
|
||||
// struct VECTOR velocity; // stack offset -104
|
||||
// VECTOR velocity; // stack offset -104
|
||||
|
||||
/* begin block 1.2.1.1.2.1.3.2.1 */
|
||||
// Start line: 1506
|
||||
@ -560,7 +560,7 @@ void FixCarCos(CAR_COSMETICS* carCos, int externalModelNumber)
|
||||
// Start line: 1548
|
||||
// Start offset: 0x00054A50
|
||||
// Variables:
|
||||
// long force[4]; // stack offset -104
|
||||
// LONGVECTOR force; // stack offset -104
|
||||
// int strength1; // $a0
|
||||
// int twistY; // $t4
|
||||
/* end block 1.2.1.1.2.1.3.3.1 */
|
||||
@ -571,7 +571,7 @@ void FixCarCos(CAR_COSMETICS* carCos, int externalModelNumber)
|
||||
// Start line: 1581
|
||||
// Start offset: 0x00054CA8
|
||||
// Variables:
|
||||
// long force[4]; // stack offset -104
|
||||
// LONGVECTOR force; // stack offset -104
|
||||
// int strength2; // $a1
|
||||
// int twistY; // $t2
|
||||
/* end block 1.2.1.1.2.1.3.3.2 */
|
||||
@ -600,16 +600,16 @@ void FixCarCos(CAR_COSMETICS* carCos, int externalModelNumber)
|
||||
// Start line: 1626
|
||||
// Start offset: 0x00054FA4
|
||||
// Variables:
|
||||
// struct _CAR_DATA *c0; // $a1
|
||||
// CAR_DATA *c0; // $a1
|
||||
|
||||
/* begin block 1.2.2.1 */
|
||||
// Start line: 1630
|
||||
// Start offset: 0x00054FC4
|
||||
// Variables:
|
||||
// union RigidBodyState *st; // $t2
|
||||
// union RigidBodyState *tp; // $a0
|
||||
// union RigidBodyState *d0; // $a2
|
||||
// union RigidBodyState *d1; // $v1
|
||||
// RigidBodyState *st; // $t2
|
||||
// RigidBodyState *tp; // $a0
|
||||
// RigidBodyState *d0; // $a2
|
||||
// RigidBodyState *d1; // $v1
|
||||
// int j; // $t1
|
||||
/* end block 1.2.2.1 */
|
||||
// End offset: 0x000550B0
|
||||
@ -685,9 +685,9 @@ int playerhitcopsanyway = 0;
|
||||
// [D] [T]
|
||||
void GlobalTimeStep(void)
|
||||
{
|
||||
static union RigidBodyState _tp[MAX_CARS]; // offset 0x0
|
||||
static union RigidBodyState _d0[MAX_CARS]; // offset 0x410
|
||||
static union RigidBodyState _d1[MAX_CARS]; // offset 0x820
|
||||
static RigidBodyState _tp[MAX_CARS]; // offset 0x0
|
||||
static RigidBodyState _d0[MAX_CARS]; // offset 0x410
|
||||
static RigidBodyState _d1[MAX_CARS]; // offset 0x820
|
||||
|
||||
int howHard;
|
||||
long tmp;
|
||||
@ -696,20 +696,20 @@ void GlobalTimeStep(void)
|
||||
RigidBodyState* thisDelta;
|
||||
BOUND_BOX* bb1;
|
||||
BOUND_BOX* bb2;
|
||||
_CAR_DATA* cp;
|
||||
_CAR_DATA* c1;
|
||||
CAR_DATA* cp;
|
||||
CAR_DATA* c1;
|
||||
RigidBodyState* st;
|
||||
RigidBodyState* tp;
|
||||
RigidBodyState* d0;
|
||||
RigidBodyState* d1;
|
||||
long AV[4];
|
||||
long delta_orientation[4];
|
||||
long normal[4];
|
||||
long collisionpoint[4];
|
||||
long lever0[4];
|
||||
long lever1[4];
|
||||
long torque[4];
|
||||
long pointVel0[4];
|
||||
LONGVECTOR AV;
|
||||
LONGQUATERNION delta_orientation;
|
||||
LONGVECTOR normal;
|
||||
LONGVECTOR collisionpoint;
|
||||
LONGVECTOR lever0;
|
||||
LONGVECTOR lever1;
|
||||
LONGVECTOR torque;
|
||||
LONGVECTOR pointVel0;
|
||||
VECTOR velocity;
|
||||
int depth;
|
||||
int RKstep;
|
||||
@ -928,10 +928,10 @@ void GlobalTimeStep(void)
|
||||
|
||||
if (howHard > 0 && RKstep > -1)
|
||||
{
|
||||
if (DamageCar3D(c1, (long(*)[4])lever1, howHard >> 1, cp))
|
||||
if (DamageCar3D(c1, &lever1, howHard >> 1, cp))
|
||||
c1->ap.needsDenting = 1;
|
||||
|
||||
if (DamageCar3D(cp, (long(*)[4])lever0, howHard >> 1, c1))
|
||||
if (DamageCar3D(cp, &lever0, howHard >> 1, c1))
|
||||
cp->ap.needsDenting = 1;
|
||||
|
||||
if (howHard > 0x32000)
|
||||
@ -1200,24 +1200,24 @@ void GlobalTimeStep(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ SetShadowPoints(struct _CAR_DATA *c0 /*$s4*/)
|
||||
// void /*$ra*/ SetShadowPoints(CAR_DATA *c0 /*$s4*/)
|
||||
// line 1704, offset 0x000551ec
|
||||
/* begin block 1 */
|
||||
// Start line: 1705
|
||||
// Start offset: 0x000551EC
|
||||
// Variables:
|
||||
// int j; // $s2
|
||||
// struct CAR_COSMETICS *car_cos; // $v1
|
||||
// struct _sdPlane *surfacePtr; // stack offset -48
|
||||
// CAR_COSMETICS *car_cos; // $v1
|
||||
// sdPlane *surfacePtr; // stack offset -48
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 1718
|
||||
// Start offset: 0x000552A8
|
||||
// Variables:
|
||||
// struct SVECTOR disp; // stack offset -104
|
||||
// struct VECTOR pointPos; // stack offset -96
|
||||
// struct VECTOR surfaceNormal; // stack offset -80
|
||||
// struct VECTOR surfacePoint; // stack offset -64
|
||||
// SVECTOR disp; // stack offset -104
|
||||
// VECTOR pointPos; // stack offset -96
|
||||
// VECTOR surfaceNormal; // stack offset -80
|
||||
// VECTOR surfacePoint; // stack offset -64
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x00055388
|
||||
// End Line: 1739
|
||||
@ -1243,7 +1243,7 @@ void GlobalTimeStep(void)
|
||||
/* WARNING: Could not reconcile some variable overlaps */
|
||||
|
||||
// [D] [T]
|
||||
void SetShadowPoints(_CAR_DATA* c0, VECTOR* outpoints)
|
||||
void SetShadowPoints(CAR_DATA* c0, VECTOR* outpoints)
|
||||
{
|
||||
int i;
|
||||
SVECTOR disp;
|
||||
@ -1251,7 +1251,7 @@ void SetShadowPoints(_CAR_DATA* c0, VECTOR* outpoints)
|
||||
VECTOR surfaceNormal;
|
||||
CAR_COSMETICS* car_cos;
|
||||
|
||||
_sdPlane* surfacePtr;
|
||||
sdPlane* surfacePtr;
|
||||
surfacePtr = NULL;
|
||||
|
||||
gte_SetRotMatrix(&c0->hd.where);
|
||||
@ -1279,7 +1279,7 @@ void SetShadowPoints(_CAR_DATA* c0, VECTOR* outpoints)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ LongQuaternion2Matrix(long (*qua)[4] /*$a0*/, struct MATRIX *m /*$a1*/)
|
||||
// void /*$ra*/ LongQuaternion2Matrix(LONGQUATERNION* qua /*$a0*/, MATRIX *m /*$a1*/)
|
||||
// line 1753, offset 0x000553cc
|
||||
/* begin block 1 */
|
||||
// Start line: 1754
|
||||
@ -1314,41 +1314,26 @@ void SetShadowPoints(_CAR_DATA* c0, VECTOR* outpoints)
|
||||
// End Line: 4834
|
||||
|
||||
// [D] [T]
|
||||
void LongQuaternion2Matrix(long(*qua)[4], MATRIX* m)
|
||||
void LongQuaternion2Matrix(LONGQUATERNION *qua, MATRIX* m)
|
||||
{
|
||||
int xx;
|
||||
int xy;
|
||||
int xz;
|
||||
int xw;
|
||||
int yy;
|
||||
int yz;
|
||||
int yw;
|
||||
int zz;
|
||||
int zw;
|
||||
int qx = (*qua)[0];
|
||||
int qy = (*qua)[1];
|
||||
int qz = (*qua)[2];
|
||||
int qw = (*qua)[3];
|
||||
|
||||
int qy;
|
||||
int qx;
|
||||
int qw;
|
||||
int qz;
|
||||
int yy = FixHalfRound(qy * qy, 11);
|
||||
int zz = FixHalfRound(qz * qz, 11);
|
||||
int xx = FixHalfRound(qx * qx, 11);
|
||||
int zw = FixHalfRound(qz * qw, 11);
|
||||
int xy = FixHalfRound(qx * qy, 11);
|
||||
int xz = FixHalfRound(qx * qz, 11);
|
||||
int yw = FixHalfRound(qy * qw, 11);
|
||||
int xw = FixHalfRound(qx * qw, 11);
|
||||
int yz = FixHalfRound(qy * qz, 11);
|
||||
|
||||
qx = (*qua)[0];
|
||||
qy = (*qua)[1];
|
||||
qz = (*qua)[2];
|
||||
qw = (*qua)[3];
|
||||
|
||||
yy = FixHalfRound(qy * qy, 11);
|
||||
zz = FixHalfRound(qz * qz, 11);
|
||||
xx = FixHalfRound(qx * qx, 11);
|
||||
zw = FixHalfRound(qz * qw, 11);
|
||||
xy = FixHalfRound(qx * qy, 11);
|
||||
xz = FixHalfRound(qx * qz, 11);
|
||||
yw = FixHalfRound(qy * qw, 11);
|
||||
xw = FixHalfRound(qx * qw, 11);
|
||||
yz = FixHalfRound(qy * qz, 11);
|
||||
|
||||
m->m[0][0] = 4096 - (yy + zz);
|
||||
m->m[1][1] = 4096 - (xx + zz);
|
||||
m->m[2][2] = 4096 - (xx + yy);
|
||||
m->m[0][0] = ONE - (yy + zz);
|
||||
m->m[1][1] = ONE - (xx + zz);
|
||||
m->m[2][2] = ONE - (xx + yy);
|
||||
m->m[0][1] = xy - zw;
|
||||
m->m[0][2] = xz + yw;
|
||||
m->m[1][0] = xy + zw;
|
||||
@ -1361,13 +1346,13 @@ void LongQuaternion2Matrix(long(*qua)[4], MATRIX* m)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ initOBox(struct _CAR_DATA *cp /*$a2*/)
|
||||
// void /*$ra*/ initOBox(CAR_DATA *cp /*$a2*/)
|
||||
// line 1802, offset 0x000554f0
|
||||
/* begin block 1 */
|
||||
// Start line: 1803
|
||||
// Start offset: 0x000554F0
|
||||
// Variables:
|
||||
// struct SVECTOR *boxDisp; // $a0
|
||||
// SVECTOR *boxDisp; // $a0
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 1803
|
||||
@ -1392,7 +1377,7 @@ void LongQuaternion2Matrix(long(*qua)[4], MATRIX* m)
|
||||
// End Line: 5020
|
||||
|
||||
// [D] [T]
|
||||
void initOBox(_CAR_DATA* cp)
|
||||
void initOBox(CAR_DATA* cp)
|
||||
{
|
||||
SVECTOR boxDisp;
|
||||
CAR_COSMETICS* car_cos;
|
||||
@ -1448,7 +1433,7 @@ void initOBox(_CAR_DATA* cp)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ RebuildCarMatrix(union RigidBodyState *st /*$a2*/, struct _CAR_DATA *cp /*$s0*/)
|
||||
// void /*$ra*/ RebuildCarMatrix(RigidBodyState *st /*$a2*/, CAR_DATA *cp /*$s0*/)
|
||||
// line 1854, offset 0x00056ae4
|
||||
/* begin block 1 */
|
||||
// Start line: 1855
|
||||
@ -1481,7 +1466,7 @@ void initOBox(_CAR_DATA* cp)
|
||||
// End Line: 3709
|
||||
|
||||
// [D] [T]
|
||||
void RebuildCarMatrix(RigidBodyState* st, _CAR_DATA* cp)
|
||||
void RebuildCarMatrix(RigidBodyState* st, CAR_DATA* cp)
|
||||
{
|
||||
int sm;
|
||||
int osm;
|
||||
@ -1520,7 +1505,7 @@ void RebuildCarMatrix(RigidBodyState* st, _CAR_DATA* cp)
|
||||
}
|
||||
st->n.orientation[3] = sm;
|
||||
|
||||
LongQuaternion2Matrix((long(*)[4])st->n.orientation, &cp->hd.where);
|
||||
LongQuaternion2Matrix(&st->n.orientation, &cp->hd.where);
|
||||
|
||||
initOBox(cp);
|
||||
}
|
||||
@ -1529,13 +1514,13 @@ void RebuildCarMatrix(RigidBodyState* st, _CAR_DATA* cp)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ StepCarPhysics(struct _CAR_DATA *cp /*$a2*/)
|
||||
// void /*$ra*/ StepCarPhysics(CAR_DATA *cp /*$a2*/)
|
||||
// line 1875, offset 0x00056a0c
|
||||
/* begin block 1 */
|
||||
// Start line: 1876
|
||||
// Start offset: 0x00056A0C
|
||||
// Variables:
|
||||
// struct _HANDLING_TYPE *hp; // $v0
|
||||
// _HANDLING_TYPE *hp; // $v0
|
||||
/* end block 1 */
|
||||
// End offset: 0x00056A64
|
||||
// End Line: 1899
|
||||
@ -1546,7 +1531,7 @@ void RebuildCarMatrix(RigidBodyState* st, _CAR_DATA* cp)
|
||||
// End Line: 3751
|
||||
|
||||
// [D] [T]
|
||||
void StepCarPhysics(_CAR_DATA* cp)
|
||||
void StepCarPhysics(CAR_DATA* cp)
|
||||
{
|
||||
_HANDLING_TYPE* hp;
|
||||
int car_id;
|
||||
@ -1633,14 +1618,14 @@ void InitialiseCarHandling(void)
|
||||
// Start line: 1932
|
||||
// Start offset: 0x000556E0
|
||||
// Variables:
|
||||
// struct _CAR_DATA *cp; // $t2
|
||||
// struct BOUND_BOX *bp; // $t1
|
||||
// struct BOUND_BOX *bb1; // $t0
|
||||
// struct BOUND_BOX *bb2; // $a1
|
||||
// CAR_DATA *cp; // $t2
|
||||
// BOUND_BOX *bp; // $t1
|
||||
// BOUND_BOX *bb1; // $t0
|
||||
// BOUND_BOX *bb2; // $a1
|
||||
// int lbod; // $v1
|
||||
// int wbod; // $a0
|
||||
// int hbod; // $t0
|
||||
// struct SVECTOR *colBox; // $a1
|
||||
// SVECTOR *colBox; // $a1
|
||||
// int loop1; // $t4
|
||||
// int loop2; // $a3
|
||||
|
||||
@ -1697,7 +1682,7 @@ void CheckCarToCarCollisions(void)
|
||||
BOUND_BOX* bb;
|
||||
BOUND_BOX* bb2;
|
||||
BOUND_BOX* bb1;
|
||||
_CAR_DATA* cp;
|
||||
CAR_DATA* cp;
|
||||
SVECTOR* colBox;
|
||||
|
||||
cp = car_data;
|
||||
@ -1835,7 +1820,7 @@ void CheckCarToCarCollisions(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ ProcessCarPad(struct _CAR_DATA *cp /*$s0*/, unsigned long pad /*$s3*/, char PadSteer /*$s4*/, char use_analogue /*$s5*/)
|
||||
// void /*$ra*/ ProcessCarPad(CAR_DATA *cp /*$s0*/, unsigned long pad /*$s3*/, char PadSteer /*$s4*/, char use_analogue /*$s5*/)
|
||||
// line 2027, offset 0x00055a9c
|
||||
/* begin block 1 */
|
||||
// Start line: 2028
|
||||
@ -1884,7 +1869,7 @@ void CheckCarToCarCollisions(void)
|
||||
// Start line: 2320
|
||||
// Start offset: 0x000560D4
|
||||
// Variables:
|
||||
// struct _CAR_DATA *tp; // $a1
|
||||
// CAR_DATA *tp; // $a1
|
||||
// int cx; // $v1
|
||||
// int cz; // $v0
|
||||
// int chase_square_dist; // $v0
|
||||
@ -1913,7 +1898,7 @@ void CheckCarToCarCollisions(void)
|
||||
// End Line: 5532
|
||||
|
||||
// [D] [T]
|
||||
void ProcessCarPad(_CAR_DATA* cp, ulong pad, char PadSteer, char use_analogue)
|
||||
void ProcessCarPad(CAR_DATA* cp, ulong pad, char PadSteer, char use_analogue)
|
||||
{
|
||||
int player_id;
|
||||
int int_steer;
|
||||
@ -2124,7 +2109,7 @@ void ProcessCarPad(_CAR_DATA* cp, ulong pad, char PadSteer, char use_analogue)
|
||||
|
||||
if (cp->controlType == CONTROL_TYPE_PLAYER)
|
||||
{
|
||||
_CAR_DATA* tp;
|
||||
CAR_DATA* tp;
|
||||
int targetCarId, cx, cz, chase_square_dist;
|
||||
|
||||
if (player[0].playerCarId == cp->id)
|
||||
@ -2263,7 +2248,7 @@ void TerminateSkidding(int player_id)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ CheckCarEffects(struct _CAR_DATA *cp /*$s2*/, int player_id /*$s3*/)
|
||||
// void /*$ra*/ CheckCarEffects(CAR_DATA *cp /*$s2*/, int player_id /*$s3*/)
|
||||
// line 2414, offset 0x00056350
|
||||
/* begin block 1 */
|
||||
// Start line: 2415
|
||||
@ -2328,7 +2313,7 @@ char continuous_track = 0;
|
||||
int last_track_state = -1;
|
||||
|
||||
// [D] [T]
|
||||
void CheckCarEffects(_CAR_DATA* cp, int player_id)
|
||||
void CheckCarEffects(CAR_DATA* cp, int player_id)
|
||||
{
|
||||
int channel;
|
||||
int sample;
|
||||
@ -2530,7 +2515,7 @@ void CheckCarEffects(_CAR_DATA* cp, int player_id)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ jump_debris(struct _CAR_DATA *cp /*$s1*/)
|
||||
// void /*$ra*/ jump_debris(CAR_DATA *cp /*$s1*/)
|
||||
// line 2575, offset 0x000568d8
|
||||
/* begin block 1 */
|
||||
// Start line: 2576
|
||||
@ -2542,8 +2527,8 @@ void CheckCarEffects(_CAR_DATA* cp, int player_id)
|
||||
// Start line: 2599
|
||||
// Start offset: 0x00056964
|
||||
// Variables:
|
||||
// struct VECTOR position; // stack offset -48
|
||||
// struct VECTOR velocity; // stack offset -32
|
||||
// VECTOR position; // stack offset -48
|
||||
// VECTOR velocity; // stack offset -32
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x000569F8
|
||||
// End Line: 2603
|
||||
@ -2564,7 +2549,7 @@ void CheckCarEffects(_CAR_DATA* cp, int player_id)
|
||||
char DebrisTimer = 0;
|
||||
|
||||
// [D] [T]
|
||||
void jump_debris(_CAR_DATA* cp)
|
||||
void jump_debris(CAR_DATA* cp)
|
||||
{
|
||||
WHEEL* wheel;
|
||||
int count;
|
||||
@ -2619,7 +2604,7 @@ void jump_debris(_CAR_DATA* cp)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ nose_down(struct _CAR_DATA *cp /*$a0*/)
|
||||
// void /*$ra*/ nose_down(CAR_DATA *cp /*$a0*/)
|
||||
// line 2607, offset 0x00056a74
|
||||
/* begin block 1 */
|
||||
// Start line: 7459
|
||||
@ -2632,7 +2617,7 @@ void jump_debris(_CAR_DATA* cp)
|
||||
// End Line: 7462
|
||||
|
||||
// [D] [T]
|
||||
void nose_down(_CAR_DATA* cp)
|
||||
void nose_down(CAR_DATA* cp)
|
||||
{
|
||||
cp->st.n.angularVelocity[0] += cp->hd.where.m[0][0] * 50;
|
||||
cp->st.n.angularVelocity[1] += cp->hd.where.m[1][0] * 50;
|
||||
@ -2643,7 +2628,7 @@ void nose_down(_CAR_DATA* cp)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ GetPlayerId(struct _CAR_DATA *cp /*$a0*/)
|
||||
// int /*$ra*/ GetPlayerId(CAR_DATA *cp /*$a0*/)
|
||||
// line 2664, offset 0x00056cec
|
||||
/* begin block 1 */
|
||||
// Start line: 2665
|
||||
@ -2666,7 +2651,7 @@ void nose_down(_CAR_DATA* cp)
|
||||
// End Line: 9346
|
||||
|
||||
// [D] [T]
|
||||
int GetPlayerId(_CAR_DATA* cp)
|
||||
int GetPlayerId(CAR_DATA* cp)
|
||||
{
|
||||
int i;
|
||||
int p_id;
|
||||
|
@ -6,9 +6,9 @@ extern int playerghost;
|
||||
extern int playerhitcopsanyway;
|
||||
extern char continuous_track;
|
||||
|
||||
extern void InitCarPhysics(_CAR_DATA *cp, long (*startpos)[4], int direction); // 0x0005381C
|
||||
extern void InitCarPhysics(CAR_DATA *cp, LONGVECTOR* startpos, int direction); // 0x0005381C
|
||||
|
||||
extern void TempBuildHandlingMatrix(_CAR_DATA *cp, int init); // 0x000539E8
|
||||
extern void TempBuildHandlingMatrix(CAR_DATA *cp, int init); // 0x000539E8
|
||||
|
||||
extern void UpdateCarPoints(CAR_COSMETICS *carCos); // 0x00053B08
|
||||
|
||||
@ -16,33 +16,33 @@ extern void FixCarCos(CAR_COSMETICS *carCos, int externalModelNumber); // 0x0005
|
||||
|
||||
extern void GlobalTimeStep(); // 0x00053C00
|
||||
|
||||
extern void SetShadowPoints(_CAR_DATA *c0, VECTOR* outpoints); // 0x000551EC
|
||||
extern void SetShadowPoints(CAR_DATA *c0, VECTOR* outpoints); // 0x000551EC
|
||||
|
||||
extern void LongQuaternion2Matrix(long (*qua)[4], MATRIX *m); // 0x000553CC
|
||||
extern void LongQuaternion2Matrix(LONGQUATERNION* qua, MATRIX *m); // 0x000553CC
|
||||
|
||||
extern void initOBox(_CAR_DATA *cp); // 0x000554F0
|
||||
extern void initOBox(CAR_DATA *cp); // 0x000554F0
|
||||
|
||||
extern void RebuildCarMatrix(union RigidBodyState *st, _CAR_DATA *cp); // 0x00056AE4
|
||||
extern void RebuildCarMatrix(RigidBodyState *st, CAR_DATA *cp); // 0x00056AE4
|
||||
|
||||
extern void StepCarPhysics(_CAR_DATA *cp); // 0x00056A0C
|
||||
extern void StepCarPhysics(CAR_DATA *cp); // 0x00056A0C
|
||||
|
||||
extern void InitialiseCarHandling(); // 0x00056A6C
|
||||
|
||||
extern void CheckCarToCarCollisions(); // 0x000556E0
|
||||
|
||||
extern void ProcessCarPad(_CAR_DATA *cp, unsigned long pad, char PadSteer, char use_analogue); // 0x00055A9C
|
||||
extern void ProcessCarPad(CAR_DATA *cp, unsigned long pad, char PadSteer, char use_analogue); // 0x00055A9C
|
||||
|
||||
extern void InitSkidding(); // 0x00056CB8
|
||||
|
||||
extern void TerminateSkidding(int player_id); // 0x000562AC
|
||||
|
||||
extern void CheckCarEffects(_CAR_DATA *cp, int player_id); // 0x00056350
|
||||
extern void CheckCarEffects(CAR_DATA *cp, int player_id); // 0x00056350
|
||||
|
||||
extern void jump_debris(_CAR_DATA *cp); // 0x000568D8
|
||||
extern void jump_debris(CAR_DATA *cp); // 0x000568D8
|
||||
|
||||
extern void nose_down(_CAR_DATA *cp); // 0x00056A74
|
||||
extern void nose_down(CAR_DATA *cp); // 0x00056A74
|
||||
|
||||
extern int GetPlayerId(_CAR_DATA *cp); // 0x00056CEC
|
||||
extern int GetPlayerId(CAR_DATA *cp); // 0x00056CEC
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
#include "INLINE_C.H"
|
||||
|
||||
_ExOBJECT explosion[MAX_EXPLOSION_OBJECTS];
|
||||
EXOBJECT explosion[MAX_EXPLOSION_OBJECTS];
|
||||
|
||||
MATRIX SS = { 0 };
|
||||
|
||||
@ -66,7 +66,7 @@ void InitExObjects(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ AddExplosion(struct VECTOR pos /*stack 0*/, int type /*stack 16*/)
|
||||
// void /*$ra*/ AddExplosion(VECTOR pos /*stack 0*/, int type /*stack 16*/)
|
||||
// line 129, offset 0x00056d54
|
||||
/* begin block 1 */
|
||||
// Start line: 130
|
||||
@ -90,7 +90,7 @@ void InitExObjects(void)
|
||||
// [D]
|
||||
void AddExplosion(VECTOR pos, int type)
|
||||
{
|
||||
_ExOBJECT *newExplosion;
|
||||
EXOBJECT *newExplosion;
|
||||
int i;
|
||||
|
||||
i = 0;
|
||||
@ -141,7 +141,7 @@ void AddExplosion(VECTOR pos, int type)
|
||||
// Start offset: 0x00056E44
|
||||
// Variables:
|
||||
// int i; // $s5
|
||||
// struct _CAR_DATA *cp; // $s0
|
||||
// CAR_DATA *cp; // $s0
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 212
|
||||
@ -178,8 +178,8 @@ void AddExplosion(VECTOR pos, int type)
|
||||
// [D]
|
||||
void HandleExplosion(void)
|
||||
{
|
||||
_CAR_DATA *cp;
|
||||
_ExOBJECT *exp;
|
||||
CAR_DATA *cp;
|
||||
EXOBJECT *exp;
|
||||
int i;
|
||||
|
||||
if (pauseflag != 0)
|
||||
@ -412,7 +412,7 @@ void initExplosion(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DrawExplosion(int time /*stack 0*/, struct VECTOR position /*stack 4*/, int hscale /*stack 20*/, int rscale /*stack 24*/)
|
||||
// void /*$ra*/ DrawExplosion(int time /*stack 0*/, VECTOR position /*stack 4*/, int hscale /*stack 20*/, int rscale /*stack 24*/)
|
||||
// line 588, offset 0x000572a8
|
||||
/* begin block 1 */
|
||||
// Start line: 589
|
||||
@ -420,9 +420,9 @@ void initExplosion(void)
|
||||
// Variables:
|
||||
// int i; // $t1
|
||||
// int j; // $s3
|
||||
// struct POLY_FT4 *poly; // $a2
|
||||
// struct SVECTOR *src; // $t0
|
||||
// struct VECTOR v; // stack offset -136
|
||||
// POLY_FT4 *poly; // $a2
|
||||
// SVECTOR *src; // $t0
|
||||
// VECTOR v; // stack offset -136
|
||||
// int rgb; // $s0
|
||||
// int z; // stack offset -56
|
||||
// int sf1; // $t0
|
||||
@ -447,7 +447,7 @@ void initExplosion(void)
|
||||
// Start line: 631
|
||||
// Start offset: 0x000573F0
|
||||
// Variables:
|
||||
// struct MATRIX workmatrix; // stack offset -120
|
||||
// MATRIX workmatrix; // stack offset -120
|
||||
// int sf; // $v0
|
||||
// int s; // $v1
|
||||
// int c; // $a3
|
||||
@ -471,7 +471,7 @@ void initExplosion(void)
|
||||
// Start line: 698
|
||||
// Start offset: 0x000577A4
|
||||
// Variables:
|
||||
// struct MATRIX workmatrix; // stack offset -88
|
||||
// MATRIX workmatrix; // stack offset -88
|
||||
// int sf; // $v0
|
||||
// int s; // $v1
|
||||
// int c; // $a3
|
||||
|
@ -1,7 +1,7 @@
|
||||
#ifndef JOB_FX_H
|
||||
#define JOB_FX_H
|
||||
|
||||
extern _ExOBJECT explosion[MAX_EXPLOSION_OBJECTS];
|
||||
extern EXOBJECT explosion[MAX_EXPLOSION_OBJECTS];
|
||||
|
||||
extern void InitExObjects(); // 0x00057B0C
|
||||
|
||||
|
@ -53,7 +53,7 @@ int leadRand(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ InitLead(struct _CAR_DATA *cp /*$s0*/)
|
||||
// void /*$ra*/ InitLead(CAR_DATA *cp /*$s0*/)
|
||||
// line 278, offset 0x000e7128
|
||||
/* begin block 1 */
|
||||
// Start line: 279
|
||||
@ -63,8 +63,8 @@ int leadRand(void)
|
||||
// Start line: 319
|
||||
// Start offset: 0x000E71A0
|
||||
// Variables:
|
||||
// struct DRIVER2_STRAIGHT *straight; // $a3
|
||||
// struct DRIVER2_CURVE *curve; // $t0
|
||||
// DRIVER2_STRAIGHT *straight; // $a3
|
||||
// DRIVER2_CURVE *curve; // $t0
|
||||
// int i; // $a2
|
||||
// int dx; // $a0
|
||||
// int dz; // $a1
|
||||
@ -83,7 +83,7 @@ int leadRand(void)
|
||||
// End Line: 560
|
||||
|
||||
// [D]
|
||||
void InitLead(_CAR_DATA *cp)
|
||||
void InitLead(CAR_DATA *cp)
|
||||
{
|
||||
int iVar1;
|
||||
int iVar2;
|
||||
@ -198,7 +198,7 @@ void InitLead(_CAR_DATA *cp)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ LeadUpdateState(struct _CAR_DATA *cp /*$s0*/)
|
||||
// void /*$ra*/ LeadUpdateState(CAR_DATA *cp /*$s0*/)
|
||||
// line 382, offset 0x000e73e8
|
||||
/* begin block 1 */
|
||||
// Start line: 383
|
||||
@ -211,7 +211,7 @@ void InitLead(_CAR_DATA *cp)
|
||||
// Start line: 399
|
||||
// Start offset: 0x000E7498
|
||||
// Variables:
|
||||
// struct VECTOR tmpStart; // stack offset -48
|
||||
// VECTOR tmpStart; // stack offset -48
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x000E74EC
|
||||
// End Line: 412
|
||||
@ -229,7 +229,7 @@ void InitLead(_CAR_DATA *cp)
|
||||
// Start line: 542
|
||||
// Start offset: 0x000E7938
|
||||
// Variables:
|
||||
// struct VECTOR pos; // stack offset -32
|
||||
// VECTOR pos; // stack offset -32
|
||||
/* end block 1.3 */
|
||||
// End offset: 0x000E7980
|
||||
// End Line: 557
|
||||
@ -248,7 +248,7 @@ void InitLead(_CAR_DATA *cp)
|
||||
// End Line: 871
|
||||
|
||||
// [D]
|
||||
void LeadUpdateState(_CAR_DATA *cp)
|
||||
void LeadUpdateState(CAR_DATA *cp)
|
||||
{
|
||||
bool bVar1;
|
||||
int iVar2;
|
||||
@ -298,7 +298,7 @@ void LeadUpdateState(_CAR_DATA *cp)
|
||||
tmpStart.vy = MapHeight(&tmpStart);
|
||||
tmpStart.vy = tmpStart.vy - ((cp->ap).carCos)->wheelDisp[0].vy;
|
||||
|
||||
InitCarPhysics(cp, (long(*)[4]) & tmpStart, (int)cp->ai.l.targetDir);
|
||||
InitCarPhysics(cp, (LONGVECTOR *)&tmpStart, (int)cp->ai.l.targetDir);
|
||||
|
||||
cp->ai.l.dstate = 3;
|
||||
}
|
||||
@ -502,7 +502,7 @@ void LeadUpdateState(_CAR_DATA *cp)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// unsigned long /*$ra*/ LeadPadResponse(struct _CAR_DATA *cp /*$t0*/)
|
||||
// unsigned long /*$ra*/ LeadPadResponse(CAR_DATA *cp /*$t0*/)
|
||||
// line 566, offset 0x000e7994
|
||||
/* begin block 1 */
|
||||
// Start line: 567
|
||||
@ -550,7 +550,7 @@ void LeadUpdateState(_CAR_DATA *cp)
|
||||
// End Line: 1283
|
||||
|
||||
// [D]
|
||||
ulong LeadPadResponse(_CAR_DATA *cp)
|
||||
ulong LeadPadResponse(CAR_DATA *cp)
|
||||
{
|
||||
int iVar1;
|
||||
int iVar2;
|
||||
@ -767,7 +767,7 @@ ulong LeadPadResponse(_CAR_DATA *cp)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ FakeMotion(struct _CAR_DATA *cp /*$s1*/)
|
||||
// void /*$ra*/ FakeMotion(CAR_DATA *cp /*$s1*/)
|
||||
// line 718, offset 0x000e7de8
|
||||
/* begin block 1 */
|
||||
// Start line: 719
|
||||
@ -777,7 +777,7 @@ ulong LeadPadResponse(_CAR_DATA *cp)
|
||||
// Start line: 724
|
||||
// Start offset: 0x000E7E40
|
||||
// Variables:
|
||||
// struct DRIVER2_STRAIGHT *straight; // $t1
|
||||
// DRIVER2_STRAIGHT *straight; // $t1
|
||||
// static int d; // offset 0x0
|
||||
// static int toGo; // offset 0x4
|
||||
// static int angle; // offset 0x8
|
||||
@ -791,7 +791,7 @@ ulong LeadPadResponse(_CAR_DATA *cp)
|
||||
// Start line: 757
|
||||
// Start offset: 0x000E7FA4
|
||||
// Variables:
|
||||
// struct DRIVER2_JUNCTION *junction; // $s0
|
||||
// DRIVER2_JUNCTION *junction; // $s0
|
||||
/* end block 1.1.1 */
|
||||
// End offset: 0x000E7FA4
|
||||
// End Line: 757
|
||||
@ -803,7 +803,7 @@ ulong LeadPadResponse(_CAR_DATA *cp)
|
||||
// Start line: 781
|
||||
// Start offset: 0x000E8010
|
||||
// Variables:
|
||||
// struct DRIVER2_CURVE *curve; // $s0
|
||||
// DRIVER2_CURVE *curve; // $s0
|
||||
// int angle; // $a3
|
||||
// int toGo; // $v0
|
||||
// int radius; // $a2
|
||||
@ -815,7 +815,7 @@ ulong LeadPadResponse(_CAR_DATA *cp)
|
||||
// Start line: 813
|
||||
// Start offset: 0x000E8104
|
||||
// Variables:
|
||||
// struct DRIVER2_JUNCTION *junction; // $s0
|
||||
// DRIVER2_JUNCTION *junction; // $s0
|
||||
/* end block 1.2.1 */
|
||||
// End offset: 0x000E8104
|
||||
// End Line: 813
|
||||
@ -824,7 +824,7 @@ ulong LeadPadResponse(_CAR_DATA *cp)
|
||||
// Start line: 848
|
||||
// Start offset: 0x000E81F0
|
||||
// Variables:
|
||||
// struct DRIVER2_JUNCTION *junction; // $s0
|
||||
// DRIVER2_JUNCTION *junction; // $s0
|
||||
/* end block 1.2.2 */
|
||||
// End offset: 0x000E81F0
|
||||
// End Line: 848
|
||||
@ -836,7 +836,7 @@ ulong LeadPadResponse(_CAR_DATA *cp)
|
||||
// Start line: 877
|
||||
// Start offset: 0x000E82E0
|
||||
// Variables:
|
||||
// struct DRIVER2_JUNCTION *junction; // $s0
|
||||
// DRIVER2_JUNCTION *junction; // $s0
|
||||
/* end block 1.3 */
|
||||
// End offset: 0x000E8338
|
||||
// End Line: 885
|
||||
@ -855,7 +855,7 @@ ulong LeadPadResponse(_CAR_DATA *cp)
|
||||
// End Line: 1645
|
||||
|
||||
// [D]
|
||||
void FakeMotion(_CAR_DATA *cp)
|
||||
void FakeMotion(CAR_DATA *cp)
|
||||
{
|
||||
static int d; // offset 0x0
|
||||
static int toGo; // offset 0x4
|
||||
@ -1047,7 +1047,7 @@ LAB_LEAD__000e824c:
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ PosToIndex(int *normal /*$t1*/, int *tangent /*$t4*/, int intention /*$a2*/, struct _CAR_DATA *cp /*$a3*/)
|
||||
// void /*$ra*/ PosToIndex(int *normal /*$t1*/, int *tangent /*$t4*/, int intention /*$a2*/, CAR_DATA *cp /*$a3*/)
|
||||
// line 932, offset 0x000e834c
|
||||
/* begin block 1 */
|
||||
// Start line: 933
|
||||
@ -1108,7 +1108,7 @@ LAB_LEAD__000e824c:
|
||||
// End Line: 2159
|
||||
|
||||
// [D]
|
||||
void PosToIndex(int *normal, int *tangent, int intention, _CAR_DATA *cp)
|
||||
void PosToIndex(int *normal, int *tangent, int intention, CAR_DATA *cp)
|
||||
{
|
||||
int uVar1;
|
||||
int iVar2;
|
||||
@ -1241,7 +1241,7 @@ void PosToIndex(int *normal, int *tangent, int intention, _CAR_DATA *cp)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ BlockToMap(struct MAP_DATA *data /*$s3*/)
|
||||
// void /*$ra*/ BlockToMap(MAP_DATA *data /*$s3*/)
|
||||
// line 1053, offset 0x000e86bc
|
||||
/* begin block 1 */
|
||||
// Start line: 1054
|
||||
@ -1255,7 +1255,7 @@ void PosToIndex(int *normal, int *tangent, int intention, _CAR_DATA *cp)
|
||||
// static int right; // offset 0x20
|
||||
// static int ldist; // offset 0x24
|
||||
// static int rdist; // offset 0x28
|
||||
// static struct MAP_DATA newdata; // offset 0x30
|
||||
// static MAP_DATA newdata; // offset 0x30
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 1074
|
||||
@ -1274,7 +1274,7 @@ void PosToIndex(int *normal, int *tangent, int intention, _CAR_DATA *cp)
|
||||
// Start line: 1166
|
||||
// Start offset: 0x000E8AB0
|
||||
// Variables:
|
||||
// struct DRIVER2_CURVE *curve; // $s1
|
||||
// DRIVER2_CURVE *curve; // $s1
|
||||
// int dx; // $s6
|
||||
// int dz; // $s5
|
||||
// int v; // $a0
|
||||
@ -1439,7 +1439,7 @@ void BlockToMap(MAP_DATA *data)
|
||||
static int right; // offset 0x20
|
||||
static int ldist; // offset 0x24
|
||||
static int rdist; // offset 0x28
|
||||
static struct MAP_DATA newdata; // offset 0x30
|
||||
static MAP_DATA newdata; // offset 0x30
|
||||
|
||||
static int offx;
|
||||
|
||||
@ -1452,7 +1452,7 @@ void BlockToMap(MAP_DATA *data)
|
||||
VECTOR* pVVar5;
|
||||
CAR_COSMETICS* pCVar6;
|
||||
VECTOR* pVVar7;
|
||||
_CAR_DATA* cp;
|
||||
CAR_DATA* cp;
|
||||
int x;
|
||||
int iVar8;
|
||||
int iVar9;
|
||||
@ -1982,7 +1982,7 @@ LAB_LEAD__000e97b4:
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ IsOnMap(int x /*$t0*/, int z /*$a1*/, struct VECTOR *basePos /*$a2*/, int intention /*$s4*/, struct _CAR_DATA *cp /*stack 16*/)
|
||||
// int /*$ra*/ IsOnMap(int x /*$t0*/, int z /*$a1*/, VECTOR *basePos /*$a2*/, int intention /*$s4*/, CAR_DATA *cp /*stack 16*/)
|
||||
// line 1563, offset 0x000e98a4
|
||||
/* begin block 1 */
|
||||
// Start line: 1564
|
||||
@ -2005,7 +2005,7 @@ LAB_LEAD__000e97b4:
|
||||
// Start line: 1596
|
||||
// Start offset: 0x000E99F4
|
||||
// Variables:
|
||||
// struct DRIVER2_CURVE *curve; // $s0
|
||||
// DRIVER2_CURVE *curve; // $s0
|
||||
// int tangent; // stack offset -36
|
||||
// int normal; // stack offset -40
|
||||
/* end block 1.2 */
|
||||
@ -2038,7 +2038,7 @@ LAB_LEAD__000e97b4:
|
||||
/* WARNING: Type propagation algorithm not settling */
|
||||
|
||||
// [D]
|
||||
int IsOnMap(int x, int z, VECTOR *basePos, int intention, _CAR_DATA *cp)
|
||||
int IsOnMap(int x, int z, VECTOR *basePos, int intention, CAR_DATA *cp)
|
||||
{
|
||||
DRIVER2_CURVE* curve;
|
||||
int dx;
|
||||
@ -2115,7 +2115,7 @@ int IsOnMap(int x, int z, VECTOR *basePos, int intention, _CAR_DATA *cp)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ UpdateRoadPosition(struct _CAR_DATA *cp /*$s3*/, struct VECTOR *basePos /*stack 4*/, int intention /*stack 8*/)
|
||||
// void /*$ra*/ UpdateRoadPosition(CAR_DATA *cp /*$s3*/, VECTOR *basePos /*stack 4*/, int intention /*stack 8*/)
|
||||
// line 1657, offset 0x000e9bb8
|
||||
/* begin block 1 */
|
||||
// Start line: 1658
|
||||
@ -2124,7 +2124,7 @@ int IsOnMap(int x, int z, VECTOR *basePos, int intention, _CAR_DATA *cp)
|
||||
// int sindex; // $t0
|
||||
// int i; // $s0
|
||||
// int di; // $a2
|
||||
// struct _CAR_DATA *lcp; // $s0
|
||||
// CAR_DATA *lcp; // $s0
|
||||
// int laneAvoid; // stack offset -56
|
||||
|
||||
/* begin block 1.1 */
|
||||
@ -2153,15 +2153,15 @@ int IsOnMap(int x, int z, VECTOR *basePos, int intention, _CAR_DATA *cp)
|
||||
// Start line: 1714
|
||||
// Start offset: 0x000E9D94
|
||||
// Variables:
|
||||
// struct CELL_OBJECT *cop; // $s1
|
||||
// struct CELL_ITERATOR ci; // stack offset -344
|
||||
// CELL_OBJECT *cop; // $s1
|
||||
// CELL_ITERATOR ci; // stack offset -344
|
||||
|
||||
/* begin block 1.1.1.1.1.1 */
|
||||
// Start line: 1721
|
||||
// Start offset: 0x000E9DB0
|
||||
// Variables:
|
||||
// struct COLLISION_PACKET *collide; // $s0
|
||||
// struct MODEL *model; // $a0
|
||||
// COLLISION_PACKET *collide; // $s0
|
||||
// MODEL *model; // $a0
|
||||
// int num_cb; // $a0
|
||||
// int box_loop; // $s2
|
||||
|
||||
@ -2169,11 +2169,11 @@ int IsOnMap(int x, int z, VECTOR *basePos, int intention, _CAR_DATA *cp)
|
||||
// Start line: 1739
|
||||
// Start offset: 0x000E9E4C
|
||||
// Variables:
|
||||
// struct MATRIX *mat; // $a1
|
||||
// struct VECTOR offset; // stack offset -320
|
||||
// struct VECTOR vel; // stack offset -304
|
||||
// struct VECTOR size; // stack offset -288
|
||||
// struct MAP_DATA data; // stack offset -272
|
||||
// MATRIX *mat; // $a1
|
||||
// VECTOR offset; // stack offset -320
|
||||
// VECTOR vel; // stack offset -304
|
||||
// VECTOR size; // stack offset -288
|
||||
// MAP_DATA data; // stack offset -272
|
||||
|
||||
/* begin block 1.1.1.1.1.1.1.1 */
|
||||
// Start line: 1753
|
||||
@ -2210,11 +2210,11 @@ int IsOnMap(int x, int z, VECTOR *basePos, int intention, _CAR_DATA *cp)
|
||||
// Start line: 1814
|
||||
// Start offset: 0x000EA0CC
|
||||
// Variables:
|
||||
// struct SVECTOR *colBox; // $a3
|
||||
// struct VECTOR pos; // stack offset -344
|
||||
// struct VECTOR vel; // stack offset -328
|
||||
// struct VECTOR size; // stack offset -312
|
||||
// struct MAP_DATA data; // stack offset -296
|
||||
// SVECTOR *colBox; // $a3
|
||||
// VECTOR pos; // stack offset -344
|
||||
// VECTOR vel; // stack offset -328
|
||||
// VECTOR size; // stack offset -312
|
||||
// MAP_DATA data; // stack offset -296
|
||||
/* end block 1.2 */
|
||||
// End offset: 0x000EA260
|
||||
// End Line: 1845
|
||||
@ -2309,7 +2309,7 @@ int IsOnMap(int x, int z, VECTOR *basePos, int intention, _CAR_DATA *cp)
|
||||
// Start line: 2226
|
||||
// Start offset: 0x000EB0C4
|
||||
// Variables:
|
||||
// struct _CAR_DATA *cp; // $s3
|
||||
// CAR_DATA *cp; // $s3
|
||||
// int sindex; // $a0
|
||||
// int intention; // stack offset 8
|
||||
/* end block 1.10 */
|
||||
@ -2333,7 +2333,7 @@ int roadAhead[41]; // offset 0x000ecde8
|
||||
int localMap[41]; // offset 0x000ecd40
|
||||
|
||||
// [D] [A] overlapping stack variables - might be incorrect (i've tried to resolve them so far)
|
||||
void UpdateRoadPosition(_CAR_DATA *cp, VECTOR *basePos, int intention)
|
||||
void UpdateRoadPosition(CAR_DATA *cp, VECTOR *basePos, int intention)
|
||||
{
|
||||
short* psVar1;
|
||||
short* psVar2;
|
||||
@ -2359,7 +2359,7 @@ void UpdateRoadPosition(_CAR_DATA *cp, VECTOR *basePos, int intention)
|
||||
int iVar15;
|
||||
int iVar16;
|
||||
COLLISION_PACKET* collide;
|
||||
_CAR_DATA* lcp;
|
||||
CAR_DATA* lcp;
|
||||
int uVar17;
|
||||
VECTOR offset;
|
||||
VECTOR pos;
|
||||
@ -3167,7 +3167,7 @@ LAB_LEAD__000eb0c8:
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ CheckCurrentRoad(struct _CAR_DATA *cp /*$s3*/)
|
||||
// void /*$ra*/ CheckCurrentRoad(CAR_DATA *cp /*$s3*/)
|
||||
// line 2242, offset 0x000eb1fc
|
||||
/* begin block 1 */
|
||||
// Start line: 2243
|
||||
@ -3177,14 +3177,14 @@ LAB_LEAD__000eb0c8:
|
||||
// int cr; // $s5
|
||||
// static int jdist; // offset 0x20
|
||||
// static int nextJunction; // offset 0x50
|
||||
// static struct VECTOR basePosition; // offset 0x60
|
||||
// static VECTOR basePosition; // offset 0x60
|
||||
// int checkNext; // $s6
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 2278
|
||||
// Start offset: 0x000EB300
|
||||
// Variables:
|
||||
// struct DRIVER2_STRAIGHT *straight; // $t3
|
||||
// DRIVER2_STRAIGHT *straight; // $t3
|
||||
// static int d; // offset 0x70
|
||||
// static int toGo; // offset 0x74
|
||||
// static int angle; // offset 0x78
|
||||
@ -3200,7 +3200,7 @@ LAB_LEAD__000eb0c8:
|
||||
// Start line: 2328
|
||||
// Start offset: 0x000EB5C4
|
||||
// Variables:
|
||||
// struct DRIVER2_CURVE *curve; // $s2
|
||||
// DRIVER2_CURVE *curve; // $s2
|
||||
// static int angle; // offset 0x84
|
||||
// static int radius; // offset 0x88
|
||||
// static int dx; // offset 0x8c
|
||||
@ -3220,7 +3220,7 @@ LAB_LEAD__000eb0c8:
|
||||
// Start line: 2420
|
||||
// Start offset: 0x000EB98C
|
||||
// Variables:
|
||||
// struct DRIVER2_JUNCTION *junction; // $s0
|
||||
// DRIVER2_JUNCTION *junction; // $s0
|
||||
/* end block 1.3.1 */
|
||||
// End offset: 0x000EB9D4
|
||||
// End Line: 2428
|
||||
@ -3229,7 +3229,7 @@ LAB_LEAD__000eb0c8:
|
||||
// Start line: 2440
|
||||
// Start offset: 0x000EBA14
|
||||
// Variables:
|
||||
// struct DRIVER2_STRAIGHT *straight; // $v1
|
||||
// DRIVER2_STRAIGHT *straight; // $v1
|
||||
/* end block 1.3.2 */
|
||||
// End offset: 0x000EBA5C
|
||||
// End Line: 2446
|
||||
@ -3238,7 +3238,7 @@ LAB_LEAD__000eb0c8:
|
||||
// Start line: 2449
|
||||
// Start offset: 0x000EBA5C
|
||||
// Variables:
|
||||
// struct DRIVER2_CURVE *curve; // $v1
|
||||
// DRIVER2_CURVE *curve; // $v1
|
||||
// static int dx; // offset 0x9c
|
||||
// static int dz; // offset 0xa0
|
||||
/* end block 1.3.3 */
|
||||
@ -3249,7 +3249,7 @@ LAB_LEAD__000eb0c8:
|
||||
// Start line: 2475
|
||||
// Start offset: 0x000EBB2C
|
||||
// Variables:
|
||||
// struct DRIVER2_STRAIGHT *straight; // $t1
|
||||
// DRIVER2_STRAIGHT *straight; // $t1
|
||||
// static int dx; // offset 0xa4
|
||||
// static int dz; // offset 0xa8
|
||||
// static int dist; // offset 0xac
|
||||
@ -3263,7 +3263,7 @@ LAB_LEAD__000eb0c8:
|
||||
// Start line: 2504
|
||||
// Start offset: 0x000EBC5C
|
||||
// Variables:
|
||||
// struct DRIVER2_CURVE *curve; // $s4
|
||||
// DRIVER2_CURVE *curve; // $s4
|
||||
// static int angle; // offset 0xb8
|
||||
// int radius; // $s2
|
||||
// static int dx; // offset 0xbc
|
||||
@ -3296,7 +3296,7 @@ LAB_LEAD__000eb0c8:
|
||||
// End Line: 5779
|
||||
|
||||
// [D]
|
||||
void CheckCurrentRoad(_CAR_DATA *cp)
|
||||
void CheckCurrentRoad(CAR_DATA *cp)
|
||||
{
|
||||
static int heading; // offset 0x1c
|
||||
static int nextJunction; // offset 0x50
|
||||
@ -3739,7 +3739,7 @@ LAB_LEAD__000eb96c:
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ SetTarget(struct _CAR_DATA *cp /*$s1*/, int cr /*$a0*/, int heading /*$s4*/, int *nextJunction /*$s3*/)
|
||||
// void /*$ra*/ SetTarget(CAR_DATA *cp /*$s1*/, int cr /*$a0*/, int heading /*$s4*/, int *nextJunction /*$s3*/)
|
||||
// line 2644, offset 0x000ec1c4
|
||||
/* begin block 1 */
|
||||
// Start line: 2645
|
||||
@ -3759,7 +3759,7 @@ LAB_LEAD__000eb96c:
|
||||
// Start line: 2675
|
||||
// Start offset: 0x000EC298
|
||||
// Variables:
|
||||
// struct DRIVER2_STRAIGHT *straight; // $t5
|
||||
// DRIVER2_STRAIGHT *straight; // $t5
|
||||
// int dx; // $a1
|
||||
// int dz; // $a0
|
||||
// int rx; // $v1
|
||||
@ -3777,7 +3777,7 @@ LAB_LEAD__000eb96c:
|
||||
// Start line: 2720
|
||||
// Start offset: 0x000EC444
|
||||
// Variables:
|
||||
// struct DRIVER2_CURVE *curve; // $s0
|
||||
// DRIVER2_CURVE *curve; // $s0
|
||||
// int angle; // $a1
|
||||
// int radius; // $a2
|
||||
/* end block 1.3 */
|
||||
@ -3793,7 +3793,7 @@ LAB_LEAD__000eb96c:
|
||||
// End Line: 6938
|
||||
|
||||
// [D]
|
||||
void SetTarget(_CAR_DATA *cp, int cr, int heading, int *nextJunction)
|
||||
void SetTarget(CAR_DATA *cp, int cr, int heading, int *nextJunction)
|
||||
{
|
||||
static int dx = 0; // offset 0xd8
|
||||
static int dz = 0; // offset 0xdc
|
||||
@ -3916,7 +3916,7 @@ void SetTarget(_CAR_DATA *cp, int cr, int heading, int *nextJunction)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ SelectExit(struct _CAR_DATA *cp /*$s3*/, struct DRIVER2_JUNCTION *junction /*$a3*/)
|
||||
// void /*$ra*/ SelectExit(CAR_DATA *cp /*$s3*/, DRIVER2_JUNCTION *junction /*$a3*/)
|
||||
// line 2763, offset 0x000ec5e4
|
||||
/* begin block 1 */
|
||||
// Start line: 2764
|
||||
@ -3964,7 +3964,7 @@ void SetTarget(_CAR_DATA *cp, int cr, int heading, int *nextJunction)
|
||||
// End Line: 7242
|
||||
|
||||
// [D]
|
||||
void SelectExit(_CAR_DATA *cp, DRIVER2_JUNCTION *junction)
|
||||
void SelectExit(CAR_DATA *cp, DRIVER2_JUNCTION *junction)
|
||||
{
|
||||
int uVar1;
|
||||
int uVar2;
|
||||
@ -4106,7 +4106,7 @@ LAB_LEAD__000ec924:
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// unsigned long /*$ra*/ FreeRoamer(struct _CAR_DATA *cp /*$s1*/)
|
||||
// unsigned long /*$ra*/ FreeRoamer(CAR_DATA *cp /*$s1*/)
|
||||
// line 2848, offset 0x000ec99c
|
||||
/* begin block 1 */
|
||||
// Start line: 2849
|
||||
@ -4116,7 +4116,7 @@ LAB_LEAD__000ec924:
|
||||
// Start line: 2965
|
||||
// Start offset: 0x000ECA4C
|
||||
// Variables:
|
||||
// struct _CAR_DATA *pCar; // $v0
|
||||
// CAR_DATA *pCar; // $v0
|
||||
|
||||
/* begin block 1.1.1 */
|
||||
// Start line: 2965
|
||||
@ -4153,7 +4153,7 @@ LAB_LEAD__000ec924:
|
||||
// End Line: 7436
|
||||
|
||||
// [D]
|
||||
ulong FreeRoamer(_CAR_DATA *cp)
|
||||
ulong FreeRoamer(CAR_DATA *cp)
|
||||
{
|
||||
int i;
|
||||
int playerCarId;
|
||||
|
@ -4,21 +4,21 @@
|
||||
|
||||
extern int leadRand(); // 0x000E70A0
|
||||
|
||||
extern void InitLead(_CAR_DATA *cp); // 0x000E7128
|
||||
extern void InitLead(CAR_DATA *cp); // 0x000E7128
|
||||
|
||||
extern void LeadUpdateState(_CAR_DATA *cp); // 0x000E73E8
|
||||
extern void LeadUpdateState(CAR_DATA *cp); // 0x000E73E8
|
||||
|
||||
extern unsigned long LeadPadResponse(_CAR_DATA *cp); // 0x000E7994
|
||||
extern unsigned long LeadPadResponse(CAR_DATA *cp); // 0x000E7994
|
||||
|
||||
extern void FakeMotion(_CAR_DATA *cp); // 0x000E7DE8
|
||||
extern void FakeMotion(CAR_DATA *cp); // 0x000E7DE8
|
||||
|
||||
extern void PosToIndex(int *normal, int *tangent, int intention, _CAR_DATA *cp); // 0x000E834C
|
||||
extern void PosToIndex(int *normal, int *tangent, int intention, CAR_DATA *cp); // 0x000E834C
|
||||
|
||||
extern void BlockToMap(MAP_DATA *data); // 0x000E86BC
|
||||
|
||||
extern int IsOnMap(int x, int z, VECTOR *basePos, int intention, _CAR_DATA *cp); // 0x000E98A4
|
||||
extern int IsOnMap(int x, int z, VECTOR *basePos, int intention, CAR_DATA *cp); // 0x000E98A4
|
||||
|
||||
extern void UpdateRoadPosition(_CAR_DATA *cp, VECTOR *basePos, int intention); // 0x000E9BB8
|
||||
extern void UpdateRoadPosition(CAR_DATA *cp, VECTOR *basePos, int intention); // 0x000E9BB8
|
||||
|
||||
extern void slowWallTests() ; // 0x000E913C
|
||||
|
||||
@ -28,13 +28,13 @@ extern void DoExtraWorkForNFrames() ; // 0x000E99AC
|
||||
|
||||
extern void searchTarget() ; // 0x000E9AB8
|
||||
|
||||
extern void CheckCurrentRoad(_CAR_DATA *cp); // 0x000EB1FC
|
||||
extern void CheckCurrentRoad(CAR_DATA *cp); // 0x000EB1FC
|
||||
|
||||
extern void SetTarget(_CAR_DATA *cp, int cr, int heading, int *nextJunction); // 0x000EC1C4
|
||||
extern void SetTarget(CAR_DATA *cp, int cr, int heading, int *nextJunction); // 0x000EC1C4
|
||||
|
||||
extern void SelectExit(_CAR_DATA *cp, DRIVER2_JUNCTION *junction); // 0x000EC5E4
|
||||
extern void SelectExit(CAR_DATA *cp, DRIVER2_JUNCTION *junction); // 0x000EC5E4
|
||||
|
||||
extern unsigned long FreeRoamer(_CAR_DATA *cp); // 0x000EC99C
|
||||
extern unsigned long FreeRoamer(CAR_DATA *cp); // 0x000EC99C
|
||||
|
||||
extern unsigned long hypot(long x, long y); // 0x000ECB28
|
||||
|
||||
|
@ -464,7 +464,7 @@ int SaveGameData(char* buffer)
|
||||
// Start line: 86
|
||||
// Start offset: 0x000580CC
|
||||
// Variables:
|
||||
// struct GAME_SAVE_HEADER *header; // $a0
|
||||
// GAME_SAVE_HEADER *header; // $a0
|
||||
/* end block 1 */
|
||||
// End offset: 0x00058164
|
||||
// End Line: 99
|
||||
@ -543,7 +543,7 @@ int CalcConfigDataSize(void)
|
||||
// Start line: 110
|
||||
// Start offset: 0x00057BF0
|
||||
// Variables:
|
||||
// struct CONFIG_SAVE_HEADER *header; // $s0
|
||||
// CONFIG_SAVE_HEADER *header; // $s0
|
||||
// int i; // $t0
|
||||
/* end block 1 */
|
||||
// End offset: 0x00057DF0
|
||||
@ -597,7 +597,7 @@ int SaveConfigData(char* buffer)
|
||||
// Start line: 141
|
||||
// Start offset: 0x00057DF0
|
||||
// Variables:
|
||||
// struct CONFIG_SAVE_HEADER *header; // $t3
|
||||
// CONFIG_SAVE_HEADER *header; // $t3
|
||||
// int i; // $t4
|
||||
/* end block 1 */
|
||||
// End offset: 0x00057FD4
|
||||
|
@ -28,7 +28,7 @@ int loading_bar_pos = 0;
|
||||
// Start line: 202
|
||||
// Start offset: 0x0005816C
|
||||
// Variables:
|
||||
// struct POLY_G4 poly; // stack offset -56
|
||||
// POLY_G4 poly; // stack offset -56
|
||||
// int col; // $s0
|
||||
/* end block 1 */
|
||||
// End offset: 0x00058298
|
||||
@ -140,8 +140,8 @@ void SetupScreenFade(int start, int end, int speed)
|
||||
// Start line: 269
|
||||
// Start offset: 0x000582AC
|
||||
// Variables:
|
||||
// static struct POLY_F4 poly; // offset 0x0
|
||||
// static struct POLY_FT4 p; // offset 0x20
|
||||
// static POLY_F4 poly; // offset 0x0
|
||||
// static POLY_FT4 p; // offset 0x20
|
||||
// int do_fade; // $v0
|
||||
|
||||
/* begin block 1.1 */
|
||||
@ -233,9 +233,9 @@ void FadeGameScreen(int flag, int speed)
|
||||
// int fcount; // $s0
|
||||
// int j; // $s2
|
||||
// int done; // $fp
|
||||
// struct RECT dest; // stack offset -264
|
||||
// struct SPRT prims[4]; // stack offset -256
|
||||
// struct POLY_FT3 nulls[4]; // stack offset -176
|
||||
// RECT dest; // stack offset -264
|
||||
// SPRT prims[4]; // stack offset -256
|
||||
// POLY_FT3 nulls[4]; // stack offset -176
|
||||
// int fade; // $s5
|
||||
// int fade_step; // stack offset -48
|
||||
/* end block 1 */
|
||||
@ -436,7 +436,7 @@ void ShowLoadingScreen(char *screen_name, int effect, int loading_steps)
|
||||
// Start line: 483
|
||||
// Start offset: 0x000589D0
|
||||
// Variables:
|
||||
// struct POLY_F4 poly[2]; // stack offset -80
|
||||
// POLY_F4 poly[2]; // stack offset -80
|
||||
// int h; // $s0
|
||||
// int done; // $s2
|
||||
/* end block 1 */
|
||||
@ -561,7 +561,7 @@ void SetupFadePolys(void)
|
||||
// Start line: 558
|
||||
// Start offset: 0x00058824
|
||||
// Variables:
|
||||
// struct POLY_G4 *fl_g4; // $a2
|
||||
// POLY_G4 *fl_g4; // $a2
|
||||
/* end block 1 */
|
||||
// End offset: 0x000589B0
|
||||
// End Line: 577
|
||||
|
@ -183,7 +183,7 @@ int gDemoLevel = 0;
|
||||
// Start line: 2845
|
||||
// Start offset: 0x00058F7C
|
||||
// Variables:
|
||||
// struct DRIVER2_JUNCTION *dst; // $a0
|
||||
// DRIVER2_JUNCTION *dst; // $a0
|
||||
// unsigned long *src; // $a2
|
||||
// int i; // $v1
|
||||
/* end block 1.1.1 */
|
||||
@ -194,7 +194,7 @@ int gDemoLevel = 0;
|
||||
// Start line: 2865
|
||||
// Start offset: 0x00058FCC
|
||||
// Variables:
|
||||
// struct DRIVER2_JUNCTION *dst; // $a0
|
||||
// DRIVER2_JUNCTION *dst; // $a0
|
||||
// unsigned long *src; // $a2
|
||||
// int i; // $v1
|
||||
/* end block 1.1.2 */
|
||||
@ -612,7 +612,7 @@ void InitModelNames(void)
|
||||
// Start line: 3305
|
||||
// Start offset: 0x000596B0
|
||||
// Variables:
|
||||
// struct STREAM_SOURCE *pinfo; // $s0
|
||||
// STREAM_SOURCE *pinfo; // $s0
|
||||
// char padid; // stack offset -48
|
||||
// int i; // $s2
|
||||
/* end block 1.4 */
|
||||
@ -682,7 +682,7 @@ void InitModelNames(void)
|
||||
void GameInit(void)
|
||||
{
|
||||
long lVar1;
|
||||
_PLAYER* p_Var2;
|
||||
PLAYER* p_Var2;
|
||||
STREAM_SOURCE* pSVar3;
|
||||
int i;
|
||||
int iVar5;
|
||||
@ -857,7 +857,7 @@ void GameInit(void)
|
||||
|
||||
gStartOnFoot = (pSVar3->type == 2);
|
||||
|
||||
InitPlayer(&player[i], &car_data[i], pSVar3->controlType, pSVar3->rotation, (long(*)[4]) & pSVar3->position, pSVar3->model, pSVar3->palette, &padid);
|
||||
InitPlayer(&player[i], &car_data[i], pSVar3->controlType, pSVar3->rotation, (LONGVECTOR *)&pSVar3->position, pSVar3->model, pSVar3->palette, &padid);
|
||||
|
||||
if (gStartOnFoot == 0)
|
||||
{
|
||||
@ -995,7 +995,7 @@ void GameInit(void)
|
||||
// static char t1; // offset 0x4
|
||||
// static char t2; // offset 0x5
|
||||
// static int oldsp; // offset 0x8
|
||||
// struct _CAR_DATA *lcp; // $s0
|
||||
// CAR_DATA *lcp; // $s0
|
||||
// int i; // $s2
|
||||
|
||||
/* begin block 1.1 */
|
||||
@ -1142,8 +1142,8 @@ void StepSim(void)
|
||||
char padSteer;
|
||||
short* playerFelony;
|
||||
int stream;
|
||||
_CAR_DATA* cp;
|
||||
_PLAYER* pl;
|
||||
CAR_DATA* cp;
|
||||
PLAYER* pl;
|
||||
int i, j;
|
||||
int car;
|
||||
|
||||
@ -1598,14 +1598,14 @@ void StepSim(void)
|
||||
// Start offset: 0x0005A8DC
|
||||
// Variables:
|
||||
// int i; // $s0
|
||||
// struct RECT dest; // stack offset -24
|
||||
// RECT dest; // stack offset -24
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 4125
|
||||
// Start offset: 0x0005AA2C
|
||||
// Variables:
|
||||
// static struct POLY_FT3 buffer[2]; // offset 0x10
|
||||
// static struct POLY_FT3 *null; // offset 0xc
|
||||
// static POLY_FT3 buffer[2]; // offset 0x10
|
||||
// static POLY_FT3 *null; // offset 0xc
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x0005AA98
|
||||
// End Line: 4140
|
||||
@ -1809,7 +1809,7 @@ void StepGame(void)
|
||||
int iVar2;
|
||||
int i;
|
||||
unsigned char* puVar4;
|
||||
_PLAYER* pl;
|
||||
PLAYER* pl;
|
||||
|
||||
if (CameraCnt == 3)
|
||||
{
|
||||
@ -2161,7 +2161,7 @@ void DrawGame(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ EndGame(enum GAMEMODE mode /*$a0*/)
|
||||
// void /*$ra*/ EndGame(GAMEMODE mode /*$a0*/)
|
||||
// line 4586, offset 0x0005c574
|
||||
/* begin block 1 */
|
||||
// Start line: 10823
|
||||
@ -2193,7 +2193,7 @@ void EndGame(GAMEMODE mode)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ EnablePause(enum PAUSEMODE mode /*$a0*/)
|
||||
// void /*$ra*/ EnablePause(PAUSEMODE mode /*$a0*/)
|
||||
// line 4593, offset 0x0005c590
|
||||
/* begin block 1 */
|
||||
// Start line: 10842
|
||||
@ -2697,7 +2697,7 @@ void FadeScreen(int end_value)
|
||||
// Start line: 4895
|
||||
// Start offset: 0x0005B54C
|
||||
// Variables:
|
||||
// struct _CAR_DATA *cp; // $s1
|
||||
// CAR_DATA *cp; // $s1
|
||||
// int count; // $s0
|
||||
// int scale; // $v1
|
||||
// int wheel; // $t1
|
||||
@ -2731,7 +2731,7 @@ void UpdatePlayerInformation(void)
|
||||
int i, j;
|
||||
int wheelsInWater;
|
||||
int wheelsAboveWaterToDieWithFade;
|
||||
_CAR_DATA* cp;
|
||||
CAR_DATA* cp;
|
||||
|
||||
cp = NULL;
|
||||
|
||||
@ -2857,7 +2857,7 @@ void UpdatePlayerInformation(void)
|
||||
// Start line: 5090
|
||||
// Start offset: 0x0005BAE4
|
||||
// Variables:
|
||||
// struct POLY_F4 *poly; // $v1
|
||||
// POLY_F4 *poly; // $v1
|
||||
// int col; // $a1
|
||||
/* end block 1.3 */
|
||||
// End offset: 0x0005BC20
|
||||
@ -2894,7 +2894,7 @@ void RenderGame2(int view)
|
||||
int notInDreaAndStevesEvilLair;
|
||||
|
||||
CurrentPlayerView = view;
|
||||
InitCamera((_PLAYER*)(player + view));
|
||||
InitCamera((PLAYER*)(player + view));
|
||||
|
||||
#ifndef PSX
|
||||
int screenW, screenH;
|
||||
@ -3266,7 +3266,7 @@ void InitGameVariables(void)
|
||||
// Start line: 5346
|
||||
// Start offset: 0x0005BF74
|
||||
// Variables:
|
||||
// struct _CAR_DATA *car; // $s0
|
||||
// CAR_DATA *car; // $s0
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 5348
|
||||
@ -3293,7 +3293,7 @@ void DealWithHorn(char* hr, int i)
|
||||
{
|
||||
int channel;
|
||||
int modelId;
|
||||
_CAR_DATA* car;
|
||||
CAR_DATA* car;
|
||||
|
||||
car = &car_data[player[i].playerCarId];
|
||||
|
||||
|
@ -49,9 +49,9 @@ extern void StepGame(); // 0x0005AB28
|
||||
|
||||
extern void DrawGame(); // 0x0005C458
|
||||
|
||||
extern void EndGame(enum GAMEMODE mode); // 0x0005C574
|
||||
extern void EndGame(GAMEMODE mode); // 0x0005C574
|
||||
|
||||
extern void EnablePause(enum PAUSEMODE mode); // 0x0005C590
|
||||
extern void EnablePause(PAUSEMODE mode); // 0x0005C590
|
||||
|
||||
extern void CheckForPause(); // 0x0005C5D0
|
||||
|
||||
|
@ -40,7 +40,7 @@ CELL_OBJECT** coplist;
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ NewProcessRoadMapLump(struct ROAD_MAP_LUMP_DATA *pRoadMapLumpData /*$s0*/, char *pLumpFile /*$s1*/)
|
||||
// void /*$ra*/ NewProcessRoadMapLump(ROAD_MAP_LUMP_DATA *pRoadMapLumpData /*$s0*/, char *pLumpFile /*$s1*/)
|
||||
// line 237, offset 0x0005d7bc
|
||||
/* begin block 1 */
|
||||
// Start line: 238
|
||||
@ -150,7 +150,7 @@ void ProcessJuncBoundsLump(char *lump_file, int lump_size)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// struct MODEL * /*$ra*/ FindModelPtrWithName(char *name /*$s4*/)
|
||||
// MODEL * /*$ra*/ FindModelPtrWithName(char *name /*$s4*/)
|
||||
// line 289, offset 0x0005d40c
|
||||
/* begin block 1 */
|
||||
// Start line: 290
|
||||
@ -353,7 +353,7 @@ void InitCellData(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ newPositionVisible(struct VECTOR *pos /*$a0*/, char *pvs /*$a1*/, int ccx /*$a2*/, int ccz /*$a3*/)
|
||||
// int /*$ra*/ newPositionVisible(VECTOR *pos /*$a0*/, char *pvs /*$a1*/, int ccx /*$a2*/, int ccz /*$a3*/)
|
||||
// line 378, offset 0x0005d61c
|
||||
/* begin block 1 */
|
||||
// Start line: 379
|
||||
@ -410,7 +410,7 @@ int newPositionVisible(VECTOR *pos, char *pvs, int ccx, int ccz)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ PositionVisible(struct VECTOR *pos /*$a0*/)
|
||||
// int /*$ra*/ PositionVisible(VECTOR *pos /*$a0*/)
|
||||
// line 400, offset 0x0005d560
|
||||
/* begin block 1 */
|
||||
// Start line: 401
|
||||
@ -484,7 +484,7 @@ int PositionVisible(VECTOR *pos)
|
||||
// Start line: 440
|
||||
// Start offset: 0x0005C824
|
||||
// Variables:
|
||||
// struct AREA_LOAD_INFO regions_to_unpack[3]; // stack offset -104
|
||||
// AREA_LOAD_INFO regions_to_unpack[3]; // stack offset -104
|
||||
// int leftright_unpack; // $a1
|
||||
// int topbottom_unpack; // $a2
|
||||
// int num_regions_to_unpack; // $s5
|
||||
@ -495,7 +495,7 @@ int PositionVisible(VECTOR *pos)
|
||||
// int sortcount; // $s4
|
||||
// int i; // $v1
|
||||
// int j; // $a2
|
||||
// struct SVECTOR sortregions[4]; // stack offset -80
|
||||
// SVECTOR sortregions[4]; // stack offset -80
|
||||
// unsigned short sortorder[4]; // stack offset -48
|
||||
// int force_load_boundary; // $a0
|
||||
|
||||
@ -504,7 +504,7 @@ int PositionVisible(VECTOR *pos)
|
||||
// Start offset: 0x0005C9F4
|
||||
// Variables:
|
||||
// int region_to_unpack; // $s0
|
||||
// struct Spool *spoolptr; // $a1
|
||||
// Spool *spoolptr; // $a1
|
||||
|
||||
/* begin block 1.1.1 */
|
||||
// Start line: 559
|
||||
@ -831,7 +831,7 @@ void ControlMap(void)
|
||||
// Variables:
|
||||
// int region; // $a3
|
||||
// int barrel_region; // $a1
|
||||
// struct Spool *spoolptr; // $v1
|
||||
// Spool *spoolptr; // $v1
|
||||
|
||||
/* begin block 1.1.1.1 */
|
||||
// Start line: 726
|
||||
@ -956,7 +956,7 @@ void InitMap(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ GetVisSetAtPosition(struct VECTOR *pos /*$a0*/, char *tgt /*$t3*/, int *ccx /*$a1*/, int *ccz /*$a3*/)
|
||||
// void /*$ra*/ GetVisSetAtPosition(VECTOR *pos /*$a0*/, char *tgt /*$t3*/, int *ccx /*$a1*/, int *ccz /*$a3*/)
|
||||
// line 756, offset 0x0005d6e4
|
||||
/* begin block 1 */
|
||||
// Start line: 757
|
||||
|
@ -73,7 +73,7 @@ extern void ProcessRoadBoundsLump(char *lump_file, int lump_size); // 0x0005D6D4
|
||||
|
||||
extern void ProcessJuncBoundsLump(char *lump_file, int lump_size); // 0x0005D6DC
|
||||
|
||||
extern struct MODEL * FindModelPtrWithName(char *name); // 0x0005D40C
|
||||
extern MODEL * FindModelPtrWithName(char *name); // 0x0005D40C
|
||||
|
||||
extern int FindModelIdxWithName(char *name); // 0x0005D4C4
|
||||
|
||||
|
@ -342,7 +342,7 @@ void InitializeCutsceneSound(int cutscene)
|
||||
// Start line: 245
|
||||
// Start offset: 0x0005DBAC
|
||||
// Variables:
|
||||
// struct _CAR_DATA *you; // $s0
|
||||
// CAR_DATA *you; // $s0
|
||||
/* end block 1.1.2.1 */
|
||||
// End offset: 0x0005DBF0
|
||||
// End Line: 248
|
||||
@ -658,8 +658,8 @@ void InitializeMissionSound(void)
|
||||
// Start line: 475
|
||||
// Start offset: 0x0005E348
|
||||
// Variables:
|
||||
// struct VECTOR Q[3]; // stack offset -96
|
||||
// struct VECTOR P; // stack offset -48
|
||||
// VECTOR Q[3]; // stack offset -96
|
||||
// VECTOR P; // stack offset -48
|
||||
/* end block 1.2 */
|
||||
// End offset: 0x0005E410
|
||||
// End Line: 478
|
||||
@ -677,8 +677,8 @@ void InitializeMissionSound(void)
|
||||
// Start line: 523
|
||||
// Start offset: 0x0005E6F0
|
||||
// Variables:
|
||||
// struct VECTOR Q[3]; // stack offset -96
|
||||
// struct VECTOR P; // stack offset -48
|
||||
// VECTOR Q[3]; // stack offset -96
|
||||
// VECTOR P; // stack offset -48
|
||||
/* end block 1.4 */
|
||||
// End offset: 0x0005E7B8
|
||||
// End Line: 526
|
||||
@ -728,7 +728,7 @@ void DoMissionSound(void)
|
||||
char cVar1;
|
||||
int y;
|
||||
int z;
|
||||
_TARGET* p_Var4;
|
||||
MS_TARGET* p_Var4;
|
||||
int x;
|
||||
int y_00;
|
||||
int z_00;
|
||||
@ -976,7 +976,7 @@ void DoMissionSound(void)
|
||||
}
|
||||
else
|
||||
{
|
||||
long V[4];
|
||||
LONGVECTOR V;
|
||||
long* C = (long*)bodgevar; // Ahhh, Reflections...
|
||||
|
||||
x = car_data[player[0].playerCarId].hd.where.t[0];
|
||||
@ -1076,7 +1076,7 @@ void DoMissionSound(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ SetMSoundVar(int var /*$a0*/, struct VECTOR *V /*$a1*/)
|
||||
// void /*$ra*/ SetMSoundVar(int var /*$a0*/, VECTOR *V /*$a1*/)
|
||||
// line 636, offset 0x0005f25c
|
||||
/* begin block 1 */
|
||||
// Start line: 1453
|
||||
|
@ -120,7 +120,7 @@ void DrawMission(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DrawTimer(struct MR_TIMER *timer /*$s1*/)
|
||||
// void /*$ra*/ DrawTimer(MR_TIMER *timer /*$s1*/)
|
||||
// line 126, offset 0x0005fa88
|
||||
/* begin block 1 */
|
||||
// Start line: 127
|
||||
@ -394,7 +394,7 @@ void DrawFullscreenTargets(void)
|
||||
iVar1 = 0;
|
||||
do {
|
||||
iVar2 = iVar2 + 1;
|
||||
DrawFullscreenTarget((_TARGET *)((int)MissionTargets->data + iVar1));
|
||||
DrawFullscreenTarget((MS_TARGET *)((int)MissionTargets->data + iVar1));
|
||||
iVar1 = iVar2 * 0x40;
|
||||
} while (iVar2 < 0x10);
|
||||
}
|
||||
@ -451,13 +451,13 @@ void DrawMultiplayerTargets(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DrawOverheadTarget(struct _TARGET *target /*$s0*/)
|
||||
// void /*$ra*/ DrawOverheadTarget(MS_TARGET *target /*$s0*/)
|
||||
// line 230, offset 0x0005fd7c
|
||||
/* begin block 1 */
|
||||
// Start line: 231
|
||||
// Start offset: 0x0005FD7C
|
||||
// Variables:
|
||||
// struct VECTOR tv; // stack offset -24
|
||||
// VECTOR tv; // stack offset -24
|
||||
/* end block 1 */
|
||||
// End offset: 0x0005FE84
|
||||
// End Line: 269
|
||||
@ -468,7 +468,7 @@ void DrawMultiplayerTargets(void)
|
||||
// End Line: 894
|
||||
|
||||
// [D]
|
||||
void DrawOverheadTarget(_TARGET *target)
|
||||
void DrawOverheadTarget(MS_TARGET *target)
|
||||
{
|
||||
int iVar1;
|
||||
int *piVar2;
|
||||
@ -519,13 +519,13 @@ LAB_0005fe3c:
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DrawFullscreenTarget(struct _TARGET *target /*$s0*/)
|
||||
// void /*$ra*/ DrawFullscreenTarget(MS_TARGET *target /*$s0*/)
|
||||
// line 271, offset 0x0005fe94
|
||||
/* begin block 1 */
|
||||
// Start line: 272
|
||||
// Start offset: 0x0005FE94
|
||||
// Variables:
|
||||
// struct VECTOR tv; // stack offset -24
|
||||
// VECTOR tv; // stack offset -24
|
||||
/* end block 1 */
|
||||
// End offset: 0x0005FF9C
|
||||
// End Line: 310
|
||||
@ -536,7 +536,7 @@ LAB_0005fe3c:
|
||||
// End Line: 978
|
||||
|
||||
// [D]
|
||||
void DrawFullscreenTarget(_TARGET *target)
|
||||
void DrawFullscreenTarget(MS_TARGET *target)
|
||||
{
|
||||
int iVar1;
|
||||
int *piVar2;
|
||||
@ -586,13 +586,13 @@ LAB_0005ff54:
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DrawWorldTarget(struct _TARGET *target /*$s0*/)
|
||||
// void /*$ra*/ DrawWorldTarget(MS_TARGET *target /*$s0*/)
|
||||
// line 312, offset 0x0005f56c
|
||||
/* begin block 1 */
|
||||
// Start line: 313
|
||||
// Start offset: 0x0005F56C
|
||||
// Variables:
|
||||
// struct VECTOR tv; // stack offset -32
|
||||
// VECTOR tv; // stack offset -32
|
||||
// int slot; // $v1
|
||||
// int flags; // $s1
|
||||
/* end block 1 */
|
||||
@ -610,7 +610,7 @@ LAB_0005ff54:
|
||||
// End Line: 634
|
||||
|
||||
// [D]
|
||||
void DrawWorldTarget(_TARGET *target)
|
||||
void DrawWorldTarget(MS_TARGET *target)
|
||||
{
|
||||
int iVar1;
|
||||
int iVar2;
|
||||
@ -744,13 +744,13 @@ LAB_0005f7dc:
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DrawMultiplayerTarget(struct _TARGET *target /*$s0*/)
|
||||
// void /*$ra*/ DrawMultiplayerTarget(MS_TARGET *target /*$s0*/)
|
||||
// line 419, offset 0x0005f864
|
||||
/* begin block 1 */
|
||||
// Start line: 420
|
||||
// Start offset: 0x0005F864
|
||||
// Variables:
|
||||
// struct VECTOR tv; // stack offset -40
|
||||
// VECTOR tv; // stack offset -40
|
||||
// unsigned char r; // $s3
|
||||
// unsigned char g; // $s2
|
||||
// unsigned char b; // $s1
|
||||
@ -764,7 +764,7 @@ LAB_0005f7dc:
|
||||
// End Line: 860
|
||||
|
||||
// [D] [A] - not drawn properly...
|
||||
void DrawMultiplayerTarget(_TARGET *target)
|
||||
void DrawMultiplayerTarget(MS_TARGET *target)
|
||||
{
|
||||
int iVar1;
|
||||
uint uVar2;
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
extern void DrawMission(); // 0x0005F2FC
|
||||
|
||||
extern void DrawTimer(struct MR_TIMER *timer); // 0x0005FA88
|
||||
extern void DrawTimer(MR_TIMER *timer); // 0x0005FA88
|
||||
|
||||
extern void DisplayPlayerPosition(); // 0x0005FB7C
|
||||
|
||||
@ -18,13 +18,13 @@ extern void DrawFullscreenTargets(); // 0x0005FCDC
|
||||
|
||||
extern void DrawMultiplayerTargets(); // 0x0005FD2C
|
||||
|
||||
extern void DrawOverheadTarget(struct _TARGET *target); // 0x0005FD7C
|
||||
extern void DrawOverheadTarget(MS_TARGET *target); // 0x0005FD7C
|
||||
|
||||
extern void DrawFullscreenTarget(struct _TARGET *target); // 0x0005FE94
|
||||
extern void DrawFullscreenTarget(MS_TARGET *target); // 0x0005FE94
|
||||
|
||||
extern void DrawWorldTarget(struct _TARGET *target); // 0x0005F56C
|
||||
extern void DrawWorldTarget(MS_TARGET *target); // 0x0005F56C
|
||||
|
||||
extern void DrawMultiplayerTarget(struct _TARGET *target); // 0x0005F864
|
||||
extern void DrawMultiplayerTarget(MS_TARGET *target); // 0x0005F864
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -17,8 +17,8 @@
|
||||
// Start line: 64
|
||||
// Start offset: 0x00060740
|
||||
// Variables:
|
||||
// struct _TARGET *target; // $s0
|
||||
// struct SAVED_CAR_POS *carpos; // $s2
|
||||
// MS_TARGET *target; // $s0
|
||||
// SAVED_CAR_POS *carpos; // $s2
|
||||
// int i; // $s1
|
||||
/* end block 1 */
|
||||
// End offset: 0x000607E4
|
||||
@ -44,7 +44,7 @@
|
||||
// [D] [T]
|
||||
void StoreEndData(void)
|
||||
{
|
||||
_TARGET *target;
|
||||
MS_TARGET *target;
|
||||
int i;
|
||||
SAVED_CAR_POS *carpos;
|
||||
|
||||
@ -79,7 +79,7 @@ void StoreEndData(void)
|
||||
// Start line: 88
|
||||
// Start offset: 0x000607E4
|
||||
// Variables:
|
||||
// struct SAVED_CAR_POS *carpos; // $s0
|
||||
// SAVED_CAR_POS *carpos; // $s0
|
||||
// int i; // $s1
|
||||
/* end block 1 */
|
||||
// End offset: 0x00060838
|
||||
@ -133,7 +133,7 @@ void RestoreStartData(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ StorePlayerPosition(struct SAVED_PLAYER_POS *data /*$a2*/)
|
||||
// void /*$ra*/ StorePlayerPosition(SAVED_PLAYER_POS *data /*$a2*/)
|
||||
// line 109, offset 0x0005ffac
|
||||
/* begin block 1 */
|
||||
// Start line: 110
|
||||
@ -196,7 +196,7 @@ void StorePlayerPosition(SAVED_PLAYER_POS *data)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ RestorePlayerPosition(struct SAVED_PLAYER_POS *data /*$a2*/)
|
||||
// void /*$ra*/ RestorePlayerPosition(SAVED_PLAYER_POS *data /*$a2*/)
|
||||
// line 150, offset 0x00060248
|
||||
/* begin block 1 */
|
||||
// Start line: 151
|
||||
@ -253,7 +253,7 @@ void RestorePlayerPosition(SAVED_PLAYER_POS *data)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ StoreCarPosition(struct _TARGET *target /*$t1*/, struct SAVED_CAR_POS *data /*$t0*/)
|
||||
// void /*$ra*/ StoreCarPosition(MS_TARGET *target /*$t1*/, SAVED_CAR_POS *data /*$t0*/)
|
||||
// line 180, offset 0x000603b0
|
||||
/* begin block 1 */
|
||||
// Start line: 181
|
||||
@ -275,7 +275,7 @@ void RestorePlayerPosition(SAVED_PLAYER_POS *data)
|
||||
// End Line: 369
|
||||
|
||||
// [D] [T]
|
||||
void StoreCarPosition(_TARGET *target, SAVED_CAR_POS *data)
|
||||
void StoreCarPosition(MS_TARGET *target, SAVED_CAR_POS *data)
|
||||
{
|
||||
int slot;
|
||||
|
||||
@ -315,7 +315,7 @@ void StoreCarPosition(_TARGET *target, SAVED_CAR_POS *data)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ RestoreCarPosition(struct SAVED_CAR_POS *data /*$a3*/)
|
||||
// void /*$ra*/ RestoreCarPosition(SAVED_CAR_POS *data /*$a3*/)
|
||||
// line 214, offset 0x000604e4
|
||||
/* begin block 1 */
|
||||
// Start line: 439
|
||||
|
@ -6,13 +6,13 @@ extern void StoreEndData(); // 0x00060740
|
||||
|
||||
extern void RestoreStartData(); // 0x000607E4
|
||||
|
||||
extern void StorePlayerPosition(struct SAVED_PLAYER_POS *data); // 0x0005FFAC
|
||||
extern void StorePlayerPosition(SAVED_PLAYER_POS *data); // 0x0005FFAC
|
||||
|
||||
extern void RestorePlayerPosition(struct SAVED_PLAYER_POS *data); // 0x00060248
|
||||
extern void RestorePlayerPosition(SAVED_PLAYER_POS *data); // 0x00060248
|
||||
|
||||
extern void StoreCarPosition(struct _TARGET *target, struct SAVED_CAR_POS *data); // 0x000603B0
|
||||
extern void StoreCarPosition(MS_TARGET *target, SAVED_CAR_POS *data); // 0x000603B0
|
||||
|
||||
extern void RestoreCarPosition(struct SAVED_CAR_POS *data); // 0x000604E4
|
||||
extern void RestoreCarPosition(SAVED_CAR_POS *data); // 0x000604E4
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -189,7 +189,7 @@ int gBatterPlayer = 1;
|
||||
|
||||
int wantedCar[2] = { -1, -1 };
|
||||
|
||||
_TARGET* MissionTargets;
|
||||
MS_TARGET* MissionTargets;
|
||||
unsigned long* MissionScript;
|
||||
char* MissionStrings;
|
||||
char* gMissionTitle = NULL;
|
||||
@ -335,7 +335,7 @@ void InitialiseMissionDefaults(void)
|
||||
// Start line: 1767
|
||||
// Start offset: 0x00060F84
|
||||
// Variables:
|
||||
// struct _ROUTE_INFO *rinfo; // $s0
|
||||
// _ROUTE_INFO *rinfo; // $s0
|
||||
/* end block 1.2 */
|
||||
// End offset: 0x00061024
|
||||
// End Line: 1793
|
||||
@ -421,9 +421,9 @@ void LoadMission(int missionnum)
|
||||
LoadfileSeg(filename, (char *)MissionLoadAddress, offset, sizeof(_MISSION));
|
||||
|
||||
MissionHeader = MissionLoadAddress;
|
||||
MissionTargets = (_TARGET *)((int)&MissionLoadAddress->id + MissionLoadAddress->size);
|
||||
MissionTargets = (MS_TARGET *)((int)&MissionLoadAddress->id + MissionLoadAddress->size);
|
||||
MissionScript = (ulong *)(MissionTargets + 16);
|
||||
MissionStrings = (char *)(((_TARGET *)MissionScript)->data + MissionLoadAddress->strings);
|
||||
MissionStrings = (char *)(((MS_TARGET *)MissionScript)->data + MissionLoadAddress->strings);
|
||||
|
||||
if (MissionLoadAddress->route && !NewLevel)
|
||||
loadsize = (int)MissionStrings + (MissionLoadAddress->route - (int)MissionLoadAddress);
|
||||
@ -1155,7 +1155,7 @@ void HandleMission(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ HandleTimer(struct MR_TIMER *timer /*$s0*/)
|
||||
// void /*$ra*/ HandleTimer(MR_TIMER *timer /*$s0*/)
|
||||
// line 1962, offset 0x000614a4
|
||||
/* begin block 1 */
|
||||
// Start line: 4347
|
||||
@ -1187,7 +1187,7 @@ void HandleTimer(MR_TIMER *timer)
|
||||
|
||||
if (timer->flags & 0x10)
|
||||
{
|
||||
events.cameraEvent = (_EVENT *)0x1;
|
||||
events.cameraEvent = (EVENT *)0x1;
|
||||
|
||||
BombThePlayerToHellAndBack(gCarWithABerm);
|
||||
}
|
||||
@ -1394,7 +1394,7 @@ void SetPlayerMessage(int player, char *message, int priority, int seconds)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ TargetComplete(struct _TARGET *target /*$a0*/, int player /*$a1*/)
|
||||
// int /*$ra*/ TargetComplete(MS_TARGET *target /*$a0*/, int player /*$a1*/)
|
||||
// line 2094, offset 0x000643c4
|
||||
/* begin block 1 */
|
||||
// Start line: 2095
|
||||
@ -1416,7 +1416,7 @@ void SetPlayerMessage(int player, char *message, int priority, int seconds)
|
||||
// End Line: 6689
|
||||
|
||||
// [D] [T]
|
||||
int TargetComplete(_TARGET *target, int player)
|
||||
int TargetComplete(MS_TARGET *target, int player)
|
||||
{
|
||||
unsigned long complete;
|
||||
|
||||
@ -1447,7 +1447,7 @@ int TargetComplete(_TARGET *target, int player)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ TargetActive(struct _TARGET *target /*$a0*/, int player /*$a1*/)
|
||||
// int /*$ra*/ TargetActive(MS_TARGET *target /*$a0*/, int player /*$a1*/)
|
||||
// line 2117, offset 0x00064408
|
||||
/* begin block 1 */
|
||||
// Start line: 2118
|
||||
@ -1474,7 +1474,7 @@ int TargetComplete(_TARGET *target, int player)
|
||||
// End Line: 6735
|
||||
|
||||
// [D] [T]
|
||||
int TargetActive(_TARGET *target, int player)
|
||||
int TargetActive(MS_TARGET *target, int player)
|
||||
{
|
||||
unsigned long active;
|
||||
|
||||
@ -1508,8 +1508,8 @@ int TargetActive(_TARGET *target, int player)
|
||||
// Start line: 2141
|
||||
// Start offset: 0x00061784
|
||||
// Variables:
|
||||
// struct _CAR_DATA cd; // stack offset -704
|
||||
// struct _CAR_DATA *cp; // $s0
|
||||
// CAR_DATA cd; // stack offset -704
|
||||
// CAR_DATA *cp; // $s0
|
||||
// int ctrlNodeCurId; // $s4
|
||||
// int pnodeCurId; // $s5
|
||||
// int ctrlNodeNewId; // $t2
|
||||
@ -1528,14 +1528,14 @@ int TargetActive(_TARGET *target, int player)
|
||||
// [D] [T]
|
||||
int Swap2Cars(int curslot, int newslot)
|
||||
{
|
||||
_CAR_DATA *cp;
|
||||
CAR_DATA *cp;
|
||||
|
||||
int ctrlNodeNewId;
|
||||
int pnodeNewId;
|
||||
int ctrlNodeCurId;
|
||||
int pnodeCurId;
|
||||
|
||||
_CAR_DATA cd;
|
||||
CAR_DATA cd;
|
||||
|
||||
if (curslot == newslot)
|
||||
return newslot;
|
||||
@ -1588,9 +1588,9 @@ int Swap2Cars(int curslot, int newslot)
|
||||
cp = &car_data[newslot];
|
||||
|
||||
// do data swap
|
||||
memcpy(&cd, &car_data[newslot], sizeof(_CAR_DATA));
|
||||
memcpy(&car_data[newslot], &car_data[curslot], sizeof(_CAR_DATA));
|
||||
memcpy(&car_data[curslot], &cd, sizeof(_CAR_DATA));
|
||||
memcpy(&cd, &car_data[newslot], sizeof(CAR_DATA));
|
||||
memcpy(&car_data[newslot], &car_data[curslot], sizeof(CAR_DATA));
|
||||
memcpy(&car_data[curslot], &cd, sizeof(CAR_DATA));
|
||||
|
||||
// swap ids
|
||||
car_data[newslot].id = newslot;
|
||||
@ -1707,7 +1707,7 @@ void SetConfusedCar(int slot)
|
||||
// Start line: 2236
|
||||
// Start offset: 0x00061C5C
|
||||
// Variables:
|
||||
// struct MR_THREAD *thread; // $s0
|
||||
// MR_THREAD *thread; // $s0
|
||||
// int running; // $s1
|
||||
// unsigned long value; // $a1
|
||||
// int i; // $a0
|
||||
@ -1787,7 +1787,7 @@ void HandleMissionThreads(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ MRCommand(struct MR_THREAD *thread /*$s1*/, unsigned long cmd /*$a1*/)
|
||||
// int /*$ra*/ MRCommand(MR_THREAD *thread /*$s1*/, unsigned long cmd /*$a1*/)
|
||||
// line 2279, offset 0x00061e3c
|
||||
/* begin block 1 */
|
||||
// Start line: 2280
|
||||
@ -2043,7 +2043,7 @@ int MRCommand(MR_THREAD *thread, ulong cmd)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ MROperator(struct MR_THREAD *thread /*$s3*/, unsigned long op /*$s0*/)
|
||||
// int /*$ra*/ MROperator(MR_THREAD *thread /*$s3*/, unsigned long op /*$s0*/)
|
||||
// line 2441, offset 0x00064498
|
||||
/* begin block 1 */
|
||||
// Start line: 2442
|
||||
@ -2119,7 +2119,7 @@ int MROperator(MR_THREAD *thread, ulong op)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ MRFunction(struct MR_THREAD *thread /*$s0*/, unsigned long fnc /*$a1*/)
|
||||
// int /*$ra*/ MRFunction(MR_THREAD *thread /*$s0*/, unsigned long fnc /*$a1*/)
|
||||
// line 2494, offset 0x000645ac
|
||||
/* begin block 1 */
|
||||
// Start line: 2495
|
||||
@ -2165,7 +2165,7 @@ int MRFunction(MR_THREAD *thread, ulong fnc)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ MRInitialiseThread(struct MR_THREAD *thread /*$a0*/, unsigned long *pc /*$a1*/, unsigned char player /*$a2*/)
|
||||
// void /*$ra*/ MRInitialiseThread(MR_THREAD *thread /*$a0*/, unsigned long *pc /*$a1*/, unsigned char player /*$a2*/)
|
||||
// line 2514, offset 0x00064614
|
||||
/* begin block 1 */
|
||||
// Start line: 7538
|
||||
@ -2195,7 +2195,7 @@ void MRInitialiseThread(MR_THREAD *thread, ulong *pc, unsigned char player)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ MRStartThread(struct MR_THREAD *callingthread /*$t0*/, unsigned long addr /*$a1*/, unsigned char player /*$a2*/)
|
||||
// void /*$ra*/ MRStartThread(MR_THREAD *callingthread /*$t0*/, unsigned long addr /*$a1*/, unsigned char player /*$a2*/)
|
||||
// line 2526, offset 0x00064630
|
||||
/* begin block 1 */
|
||||
// Start line: 2527
|
||||
@ -2234,7 +2234,7 @@ void MRStartThread(MR_THREAD *callingthread, ulong addr, unsigned char player)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ MRStopThread(struct MR_THREAD *thread /*$a0*/)
|
||||
// int /*$ra*/ MRStopThread(MR_THREAD *thread /*$a0*/)
|
||||
// line 2545, offset 0x00064690
|
||||
/* begin block 1 */
|
||||
// Start line: 7613
|
||||
@ -2297,7 +2297,7 @@ void MRCommitThreadGenocide(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ MRJump(struct MR_THREAD *thread /*$a2*/, long jump /*$a1*/)
|
||||
// int /*$ra*/ MRJump(MR_THREAD *thread /*$a2*/, long jump /*$a1*/)
|
||||
// line 2560, offset 0x000646e0
|
||||
/* begin block 1 */
|
||||
// Start line: 7640
|
||||
@ -2323,7 +2323,7 @@ int MRJump(MR_THREAD *thread, long jump)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ MRPush(struct MR_THREAD *thread /*$a0*/, long value /*$a1*/)
|
||||
// void /*$ra*/ MRPush(MR_THREAD *thread /*$a0*/, long value /*$a1*/)
|
||||
// line 2575, offset 0x0006472c
|
||||
/* begin block 1 */
|
||||
// Start line: 7678
|
||||
@ -2351,7 +2351,7 @@ void MRPush(MR_THREAD *thread, long value)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// long /*$ra*/ MRPop(struct MR_THREAD *thread /*$a0*/)
|
||||
// long /*$ra*/ MRPop(MR_THREAD *thread /*$a0*/)
|
||||
// line 2585, offset 0x00064744
|
||||
/* begin block 1 */
|
||||
// Start line: 2586
|
||||
@ -2381,7 +2381,7 @@ long MRPop(MR_THREAD *thread)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// long /*$ra*/ MRGetParam(struct MR_THREAD *thread /*$s0*/)
|
||||
// long /*$ra*/ MRGetParam(MR_THREAD *thread /*$s0*/)
|
||||
// line 2600, offset 0x00064760
|
||||
/* begin block 1 */
|
||||
// Start line: 2601
|
||||
@ -2425,7 +2425,7 @@ long MRGetParam(MR_THREAD *thread)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// long /*$ra*/ MRGetVariable(struct MR_THREAD *thread /*$a2*/, unsigned long var /*$a1*/)
|
||||
// long /*$ra*/ MRGetVariable(MR_THREAD *thread /*$a2*/, unsigned long var /*$a1*/)
|
||||
// line 2622, offset 0x000647cc
|
||||
/* begin block 1 */
|
||||
// Start line: 7773
|
||||
@ -2466,7 +2466,7 @@ long MRGetVariable(MR_THREAD *thread, ulong var)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ MRSetVariable(struct MR_THREAD *thread /*$v1*/, unsigned long var /*$a1*/, long value /*$a2*/)
|
||||
// void /*$ra*/ MRSetVariable(MR_THREAD *thread /*$v1*/, unsigned long var /*$a1*/, long value /*$a2*/)
|
||||
// line 2648, offset 0x000648b0
|
||||
/* begin block 1 */
|
||||
// Start line: 7828
|
||||
@ -2527,14 +2527,14 @@ void MRSetVariable(MR_THREAD *thread, ulong var, long value)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ MRProcessTarget(struct MR_THREAD *thread /*$s7*/, struct _TARGET *target /*$s5*/)
|
||||
// int /*$ra*/ MRProcessTarget(MR_THREAD *thread /*$s7*/, MS_TARGET *target /*$s5*/)
|
||||
// line 2701, offset 0x00062470
|
||||
/* begin block 1 */
|
||||
// Start line: 2702
|
||||
// Start offset: 0x00062470
|
||||
// Variables:
|
||||
// struct VECTOR tv; // stack offset -96
|
||||
// struct VECTOR pv; // stack offset -80
|
||||
// VECTOR tv; // stack offset -96
|
||||
// VECTOR pv; // stack offset -80
|
||||
// int ret; // $fp
|
||||
// unsigned long dist; // $s6
|
||||
// int slot; // stack offset -48
|
||||
@ -2557,9 +2557,9 @@ void MRSetVariable(MR_THREAD *thread, ulong var, long value)
|
||||
// Start offset: 0x00062BFC
|
||||
// Variables:
|
||||
// int direction; // $s0
|
||||
// long pos[4]; // stack offset -64
|
||||
// LONGVECTOR pos; // stack offset -64
|
||||
// int *inform; // $s4
|
||||
// struct _CAR_DATA *cp; // $v0
|
||||
// CAR_DATA *cp; // $v0
|
||||
/* end block 1.2 */
|
||||
// End offset: 0x00062BFC
|
||||
// End Line: 2940
|
||||
@ -2568,7 +2568,7 @@ void MRSetVariable(MR_THREAD *thread, ulong var, long value)
|
||||
// Start line: 3069
|
||||
// Start offset: 0x00063028
|
||||
// Variables:
|
||||
// long pos[4]; // stack offset -64
|
||||
// LONGVECTOR pos; // stack offset -64
|
||||
/* end block 1.3 */
|
||||
// End offset: 0x00063090
|
||||
// End Line: 3076
|
||||
@ -2616,7 +2616,7 @@ void MRSetVariable(MR_THREAD *thread, ulong var, long value)
|
||||
/* WARNING: Could not reconcile some variable overlaps */
|
||||
|
||||
// [D] [T]
|
||||
int MRProcessTarget(MR_THREAD *thread, _TARGET *target)
|
||||
int MRProcessTarget(MR_THREAD *thread, MS_TARGET *target)
|
||||
{
|
||||
int phrase;
|
||||
int playerId;
|
||||
@ -2625,7 +2625,7 @@ int MRProcessTarget(MR_THREAD *thread, _TARGET *target)
|
||||
int ret;
|
||||
VECTOR tv;
|
||||
VECTOR pv;
|
||||
long pos[4];
|
||||
LONGVECTOR pos;
|
||||
int slot;
|
||||
|
||||
ret = 0;
|
||||
@ -2835,7 +2835,7 @@ int MRProcessTarget(MR_THREAD *thread, _TARGET *target)
|
||||
case 2: // car target
|
||||
{
|
||||
|
||||
_CAR_DATA* cp;
|
||||
CAR_DATA* cp;
|
||||
tv.vx = target->data[3];
|
||||
tv.vz = target->data[4];
|
||||
tv.vy = 0;
|
||||
@ -2880,7 +2880,7 @@ int MRProcessTarget(MR_THREAD *thread, _TARGET *target)
|
||||
cp->inform = NULL;
|
||||
|
||||
PingOutCar(&car_data[slot]);
|
||||
slot = CreateCivCarWotDrivesABitThenStops(direction, (long(*)[4])pos, NULL, model, palette);
|
||||
slot = CreateCivCarWotDrivesABitThenStops(direction, &pos, NULL, model, palette);
|
||||
|
||||
cp->inform = inform;
|
||||
|
||||
@ -3293,7 +3293,7 @@ int MRProcessTarget(MR_THREAD *thread, _TARGET *target)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ MRRequestCar(struct _TARGET *target /*$a0*/)
|
||||
// int /*$ra*/ MRRequestCar(MS_TARGET *target /*$a0*/)
|
||||
// line 3296, offset 0x000649e4
|
||||
/* begin block 1 */
|
||||
// Start line: 9124
|
||||
@ -3306,7 +3306,7 @@ int MRProcessTarget(MR_THREAD *thread, _TARGET *target)
|
||||
// End Line: 9126
|
||||
|
||||
// [D] [T]
|
||||
int MRRequestCar(_TARGET *target)
|
||||
int MRRequestCar(MS_TARGET *target)
|
||||
{
|
||||
if (Mission.CarTarget == NULL && GameType != GAME_SURVIVAL)
|
||||
{
|
||||
@ -3345,13 +3345,13 @@ void MRHandleCarRequests(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ MRCreateCar(struct _TARGET *target /*$s1*/)
|
||||
// int /*$ra*/ MRCreateCar(MS_TARGET *target /*$s1*/)
|
||||
// line 3311, offset 0x00063728
|
||||
/* begin block 1 */
|
||||
// Start line: 3312
|
||||
// Start offset: 0x00063728
|
||||
// Variables:
|
||||
// long pos[4]; // stack offset -64
|
||||
// LONGVECTOR pos; // stack offset -64
|
||||
// int actAsCop; // $s2
|
||||
// int damaged; // $s7
|
||||
// int model; // $s4
|
||||
@ -3375,11 +3375,11 @@ void MRHandleCarRequests(void)
|
||||
// End Line: 7216
|
||||
|
||||
// [D] [T]
|
||||
int MRCreateCar(_TARGET *target)
|
||||
int MRCreateCar(MS_TARGET *target)
|
||||
{
|
||||
int curslot;
|
||||
int newslot;
|
||||
long pos[4];
|
||||
LONGVECTOR pos;
|
||||
char playerid;
|
||||
|
||||
pos[0] = target->data[3];
|
||||
@ -3393,7 +3393,7 @@ int MRCreateCar(_TARGET *target)
|
||||
}
|
||||
else
|
||||
{
|
||||
curslot = CreateStationaryCivCar(target->data[5], 0, ((target->data[10] & 0x40000) != 0) << 10, (long(*)[4])pos, target->data[7], target->data[8], (target->data[10] & 8) != 0);
|
||||
curslot = CreateStationaryCivCar(target->data[5], 0, ((target->data[10] & 0x40000) != 0) << 10, &pos, target->data[7], target->data[8], (target->data[10] & 8) != 0);
|
||||
}
|
||||
|
||||
if (curslot < 0)
|
||||
@ -3416,7 +3416,7 @@ int MRCreateCar(_TARGET *target)
|
||||
{
|
||||
playerid = 0xff;
|
||||
|
||||
InitPlayer((_PLAYER *)(player + 1), &car_data[curslot], 4, target->data[5], (long(*)[4])pos, target->data[7], target->data[8], (char *)&playerid);
|
||||
InitPlayer((PLAYER *)(player + 1), &car_data[curslot], 4, target->data[5], &pos, target->data[7], target->data[8], (char *)&playerid);
|
||||
|
||||
EnablePercentageBar(&DamageBar, target->data[13]);
|
||||
NewLeadDelay = 0;
|
||||
@ -3452,7 +3452,7 @@ int MRCreateCar(_TARGET *target)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ MRCancelCarRequest(struct _TARGET *target /*$a0*/)
|
||||
// void /*$ra*/ MRCancelCarRequest(MS_TARGET *target /*$a0*/)
|
||||
// line 3392, offset 0x00064a50
|
||||
/* begin block 1 */
|
||||
// Start line: 9316
|
||||
@ -3465,7 +3465,7 @@ int MRCreateCar(_TARGET *target)
|
||||
// End Line: 9318
|
||||
|
||||
// [D] [T]
|
||||
void MRCancelCarRequest(_TARGET *target)
|
||||
void MRCancelCarRequest(MS_TARGET *target)
|
||||
{
|
||||
if (Mission.CarTarget == target)
|
||||
Mission.CarTarget = NULL;
|
||||
@ -3481,7 +3481,7 @@ void MRCancelCarRequest(_TARGET *target)
|
||||
// Start line: 3400
|
||||
// Start offset: 0x000639A0
|
||||
// Variables:
|
||||
// struct _TARGET *target; // $s0
|
||||
// MS_TARGET *target; // $s0
|
||||
// int i; // $s1
|
||||
/* end block 1 */
|
||||
// End offset: 0x00063B78
|
||||
@ -3512,7 +3512,7 @@ void MRCancelCarRequest(_TARGET *target)
|
||||
// [D] [T]
|
||||
void PreProcessTargets(void)
|
||||
{
|
||||
_TARGET *target;
|
||||
MS_TARGET *target;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < MissionHeader->nCutscenes; i++)
|
||||
@ -3638,8 +3638,8 @@ int Handle321Go(void)
|
||||
// Start line: 3474
|
||||
// Start offset: 0x00063BB8
|
||||
// Variables:
|
||||
// struct _PLAYER *lp; // $s0
|
||||
// struct _CAR_DATA *cp; // $a2
|
||||
// PLAYER *lp; // $s0
|
||||
// CAR_DATA *cp; // $a2
|
||||
// int i; // $s2
|
||||
// int playersdead; // $s3
|
||||
|
||||
@ -3684,8 +3684,8 @@ int HandleGameOver(void)
|
||||
int player_id;
|
||||
int playersdead;
|
||||
|
||||
_PLAYER* lp;
|
||||
_CAR_DATA *cp;
|
||||
PLAYER* lp;
|
||||
CAR_DATA *cp;
|
||||
|
||||
if (Mission.gameover_delay != -1)
|
||||
{
|
||||
@ -3868,7 +3868,7 @@ int HandleGameOver(void)
|
||||
// [D] [T]
|
||||
void CompleteAllActiveTargets(int player)
|
||||
{
|
||||
_TARGET *pTarget;
|
||||
MS_TARGET *pTarget;
|
||||
int i;
|
||||
int flag2;
|
||||
int flag1;
|
||||
@ -3982,7 +3982,7 @@ void SetMissionComplete(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ SetMissionFailed(enum FAIL_REASON reason /*$a0*/)
|
||||
// void /*$ra*/ SetMissionFailed(FAIL_REASON reason /*$a0*/)
|
||||
// line 3684, offset 0x00064b38
|
||||
/* begin block 1 */
|
||||
// Start line: 9846
|
||||
@ -4014,7 +4014,7 @@ void SetMissionFailed(FAIL_REASON reason)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ SetMissionOver(enum PAUSEMODE mode /*$a0*/)
|
||||
// void /*$ra*/ SetMissionOver(PAUSEMODE mode /*$a0*/)
|
||||
// line 3704, offset 0x00064bd8
|
||||
/* begin block 1 */
|
||||
// Start line: 9950
|
||||
@ -4072,7 +4072,7 @@ void SetMissionOver(PAUSEMODE mode)
|
||||
void ActivateNextFlag(void)
|
||||
{
|
||||
int j;
|
||||
_TARGET *target;
|
||||
MS_TARGET *target;
|
||||
int i;
|
||||
|
||||
if (last_flag == -1)
|
||||
@ -4149,7 +4149,7 @@ int CalcLapTime(int player, int time, int lap)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ SetCarToBeStolen(struct _TARGET *target /*$s0*/, int player /*$s1*/)
|
||||
// void /*$ra*/ SetCarToBeStolen(MS_TARGET *target /*$s0*/, int player /*$s1*/)
|
||||
// line 3770, offset 0x00064c60
|
||||
/* begin block 1 */
|
||||
// Start line: 10085
|
||||
@ -4162,7 +4162,7 @@ int CalcLapTime(int player, int time, int lap)
|
||||
// End Line: 10089
|
||||
|
||||
// [D]
|
||||
void SetCarToBeStolen(_TARGET *target, int player)
|
||||
void SetCarToBeStolen(MS_TARGET *target, int player)
|
||||
{
|
||||
if (target->data[10] & 0x800000)
|
||||
MakePhantomCarEqualPlayerCar();
|
||||
|
@ -68,7 +68,7 @@ extern int MaxPlayerDamage[2];
|
||||
|
||||
extern COP_DATA gCopData;
|
||||
|
||||
extern _TARGET *MissionTargets;
|
||||
extern MS_TARGET *MissionTargets;
|
||||
extern unsigned long *MissionScript;
|
||||
extern char *MissionStrings;
|
||||
|
||||
@ -94,7 +94,7 @@ extern void LoadMission(int missionnum); // 0x00060A74
|
||||
|
||||
extern void HandleMission(); // 0x00061274
|
||||
|
||||
extern void HandleTimer(struct MR_TIMER *timer); // 0x000614A4
|
||||
extern void HandleTimer(MR_TIMER *timer); // 0x000614A4
|
||||
|
||||
extern void RegisterChaseHit(int car1, int car2); // 0x00061684
|
||||
|
||||
@ -104,9 +104,9 @@ extern void SetMissionMessage(char *message, int priority, int seconds); // 0x00
|
||||
|
||||
extern void SetPlayerMessage(int player, char *message, int priority, int seconds); // 0x00064348
|
||||
|
||||
extern int TargetComplete(struct _TARGET *target, int player); // 0x000643C4
|
||||
extern int TargetComplete(MS_TARGET *target, int player); // 0x000643C4
|
||||
|
||||
extern int TargetActive(struct _TARGET *target, int player); // 0x00064408
|
||||
extern int TargetActive(MS_TARGET *target, int player); // 0x00064408
|
||||
|
||||
extern int Swap2Cars(int curslot, int newslot); // 0x00061784
|
||||
|
||||
@ -114,41 +114,41 @@ extern void SetConfusedCar(int slot); // 0x0006444C
|
||||
|
||||
extern void HandleMissionThreads(); // 0x00061C5C
|
||||
|
||||
extern int MRCommand(struct MR_THREAD *thread, unsigned long cmd); // 0x00061E3C
|
||||
extern int MRCommand(MR_THREAD *thread, unsigned long cmd); // 0x00061E3C
|
||||
|
||||
extern int MROperator(struct MR_THREAD *thread, unsigned long op); // 0x00064498
|
||||
extern int MROperator(MR_THREAD *thread, unsigned long op); // 0x00064498
|
||||
|
||||
extern int MRFunction(struct MR_THREAD *thread, unsigned long fnc); // 0x000645AC
|
||||
extern int MRFunction(MR_THREAD *thread, unsigned long fnc); // 0x000645AC
|
||||
|
||||
extern void MRInitialiseThread(struct MR_THREAD *thread, unsigned long *pc, unsigned char player); // 0x00064614
|
||||
extern void MRInitialiseThread(MR_THREAD *thread, unsigned long *pc, unsigned char player); // 0x00064614
|
||||
|
||||
extern void MRStartThread(struct MR_THREAD *callingthread, unsigned long addr, unsigned char player); // 0x00064630
|
||||
extern void MRStartThread(MR_THREAD *callingthread, unsigned long addr, unsigned char player); // 0x00064630
|
||||
|
||||
extern int MRStopThread(struct MR_THREAD *thread); // 0x00064690
|
||||
extern int MRStopThread(MR_THREAD *thread); // 0x00064690
|
||||
|
||||
extern void MRCommitThreadGenocide(); // 0x0006469C
|
||||
|
||||
extern int MRJump(struct MR_THREAD *thread, long jump); // 0x000646E0
|
||||
extern int MRJump(MR_THREAD *thread, long jump); // 0x000646E0
|
||||
|
||||
extern void MRPush(struct MR_THREAD *thread, long value); // 0x0006472C
|
||||
extern void MRPush(MR_THREAD *thread, long value); // 0x0006472C
|
||||
|
||||
extern long MRPop(struct MR_THREAD *thread); // 0x00064744
|
||||
extern long MRPop(MR_THREAD *thread); // 0x00064744
|
||||
|
||||
extern long MRGetParam(struct MR_THREAD *thread); // 0x00064760
|
||||
extern long MRGetParam(MR_THREAD *thread); // 0x00064760
|
||||
|
||||
extern long MRGetVariable(struct MR_THREAD *thread, unsigned long var); // 0x000647CC
|
||||
extern long MRGetVariable(MR_THREAD *thread, unsigned long var); // 0x000647CC
|
||||
|
||||
extern void MRSetVariable(struct MR_THREAD *thread, unsigned long var, long value); // 0x000648B0
|
||||
extern void MRSetVariable(MR_THREAD *thread, unsigned long var, long value); // 0x000648B0
|
||||
|
||||
extern int MRProcessTarget(struct MR_THREAD *thread, struct _TARGET *target); // 0x00062470
|
||||
extern int MRProcessTarget(MR_THREAD *thread, MS_TARGET *target); // 0x00062470
|
||||
|
||||
extern int MRRequestCar(struct _TARGET *target); // 0x000649E4
|
||||
extern int MRRequestCar(MS_TARGET *target); // 0x000649E4
|
||||
|
||||
extern void MRHandleCarRequests(); // 0x00064A24
|
||||
|
||||
extern int MRCreateCar(struct _TARGET *target); // 0x00063728
|
||||
extern int MRCreateCar(MS_TARGET *target); // 0x00063728
|
||||
|
||||
extern void MRCancelCarRequest(struct _TARGET *target); // 0x00064A50
|
||||
extern void MRCancelCarRequest(MS_TARGET *target); // 0x00064A50
|
||||
|
||||
extern void PreProcessTargets(); // 0x000639A0
|
||||
|
||||
@ -160,15 +160,15 @@ extern void CompleteAllActiveTargets(int player); // 0x00064AD0
|
||||
|
||||
extern void SetMissionComplete(); // 0x00063F84
|
||||
|
||||
extern void SetMissionFailed(enum FAIL_REASON reason); // 0x00064B38
|
||||
extern void SetMissionFailed(FAIL_REASON reason); // 0x00064B38
|
||||
|
||||
extern void SetMissionOver(enum PAUSEMODE mode); // 0x00064BD8
|
||||
extern void SetMissionOver(PAUSEMODE mode); // 0x00064BD8
|
||||
|
||||
extern void ActivateNextFlag(); // 0x000641A8
|
||||
|
||||
extern int CalcLapTime(int player, int time, int lap); // 0x00064C24
|
||||
|
||||
extern void SetCarToBeStolen(struct _TARGET *target, int player); // 0x00064C60
|
||||
extern void SetCarToBeStolen(MS_TARGET *target, int player); // 0x00064C60
|
||||
|
||||
extern void MakePhantomCarEqualPlayerCar(); // 0x00064CD0
|
||||
|
||||
|
@ -31,8 +31,8 @@ MODEL* pLodModels[1536];
|
||||
// int size; // $v0
|
||||
// int modelamt; // $a3
|
||||
// char *mdsfile; // $a0
|
||||
// struct MODEL *model; // $a0
|
||||
// struct MODEL *parentmodel; // $a1
|
||||
// MODEL *model; // $a0
|
||||
// MODEL *parentmodel; // $a1
|
||||
/* end block 1 */
|
||||
// End offset: 0x00064E6C
|
||||
// End Line: 94
|
||||
@ -156,7 +156,7 @@ void ProcessMDSLump(char *lump_file, int lump_size)
|
||||
// Start line: 231
|
||||
// Start offset: 0x00064EB0
|
||||
// Variables:
|
||||
// struct MODEL *model; // $v0
|
||||
// MODEL *model; // $v0
|
||||
// int mem; // $a1
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x00064F88
|
||||
@ -316,13 +316,13 @@ int ProcessCarModelLump(char *lump_ptr, int lump_size)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// struct MODEL * /*$ra*/ GetCarModel(char *src /*$s2*/, char **dest /*$s1*/, int KeepNormals /*$s3*/)
|
||||
// MODEL * /*$ra*/ GetCarModel(char *src /*$s2*/, char **dest /*$s1*/, int KeepNormals /*$s3*/)
|
||||
// line 391, offset 0x00065134
|
||||
/* begin block 1 */
|
||||
// Start line: 392
|
||||
// Start offset: 0x00065134
|
||||
// Variables:
|
||||
// struct MODEL *model; // $s0
|
||||
// MODEL *model; // $s0
|
||||
// int size; // $a2
|
||||
// char *mem; // $v1
|
||||
|
||||
|
@ -21,7 +21,7 @@ extern void ProcessMDSLump(char *lump_file, int lump_size); // 0x00064CFC
|
||||
|
||||
extern int ProcessCarModelLump(char *lump_ptr, int lump_size); // 0x00064E6C
|
||||
|
||||
extern struct MODEL * GetCarModel(char *src, char **dest, int KeepNormals); // 0x00065134
|
||||
extern MODEL * GetCarModel(char *src, char **dest, int KeepNormals); // 0x00065134
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -377,7 +377,7 @@ void ProcessMotionLump(char *lump_ptr, int lump_size)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ SetupPedMotionData(struct PEDESTRIAN *pPed /*$a0*/)
|
||||
// void /*$ra*/ SetupPedMotionData(PEDESTRIAN *pPed /*$a0*/)
|
||||
// line 944, offset 0x00069ab8
|
||||
/* begin block 1 */
|
||||
// Start line: 5388
|
||||
@ -399,7 +399,7 @@ void SetupPedMotionData(PEDESTRIAN *pPed)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ SetupPedestrian(struct PEDESTRIAN *pedptr /*$a0*/)
|
||||
// void /*$ra*/ SetupPedestrian(PEDESTRIAN *pedptr /*$a0*/)
|
||||
// line 955, offset 0x00069b6c
|
||||
/* begin block 1 */
|
||||
// Start line: 2236
|
||||
@ -444,7 +444,7 @@ void SetupPedestrian(PEDESTRIAN *pedptr)
|
||||
// Start line: 979
|
||||
// Start offset: 0x0006520C
|
||||
// Variables:
|
||||
// struct TEXTURE_DETAILS *body_texture; // $s2
|
||||
// TEXTURE_DETAILS *body_texture; // $s2
|
||||
// int x0; // $s5
|
||||
// int x1; // $s6
|
||||
// int y0; // $fp
|
||||
@ -462,7 +462,7 @@ void SetupPedestrian(PEDESTRIAN *pedptr)
|
||||
// int s; // $a2
|
||||
// int clut; // $a2
|
||||
// int tpage; // $t0
|
||||
// struct POLY_FT4 *prims; // $t2
|
||||
// POLY_FT4 *prims; // $t2
|
||||
// int z1; // stack offset -44
|
||||
// int pal; // $v1
|
||||
|
||||
@ -784,10 +784,10 @@ void DrawBodySprite(PEDESTRIAN *pDrawingPed, int boneId, VERTTYPE v1[2], VERTTYP
|
||||
// int i; // $t1
|
||||
// int j; // $a3
|
||||
// int numVerts; // $t3
|
||||
// struct MODEL *pModel; // $t0
|
||||
// struct SVECTOR *pVerts; // $a2
|
||||
// MODEL *pModel; // $t0
|
||||
// SVECTOR *pVerts; // $a2
|
||||
// int counter; // $t4
|
||||
// struct BONE *pBone; // $a0
|
||||
// BONE *pBone; // $a0
|
||||
/* end block 1 */
|
||||
// End offset: 0x00065AD8
|
||||
// End Line: 1346
|
||||
@ -918,10 +918,10 @@ void StoreVertexLists(void)
|
||||
// Start offset: 0x00065AD8
|
||||
// Variables:
|
||||
// int i; // $t1
|
||||
// struct BONE *pBone; // $a3
|
||||
// BONE *pBone; // $a3
|
||||
// char *pC; // $v0
|
||||
// struct SVECTOR *store; // $t4
|
||||
// struct SVECTOR_NOPAD *pSVNP; // $v1
|
||||
// SVECTOR *store; // $t4
|
||||
// SVECTOR_NOPAD *pSVNP; // $v1
|
||||
/* end block 1 */
|
||||
// End offset: 0x00065CD8
|
||||
// End Line: 1413
|
||||
@ -1082,33 +1082,33 @@ void SetupTannerSkeleton(PEDESTRIAN *pDrawingPed)
|
||||
// Start line: 1423
|
||||
// Start offset: 0x00065CD8
|
||||
// Variables:
|
||||
// struct VECTOR *playerPos; // $a2
|
||||
// struct VECTOR *camPos; // $a1
|
||||
// struct VECTOR *vJPos; // $s1
|
||||
// struct VECTOR v; // stack offset -128
|
||||
// struct MODEL *pModel; // $t0
|
||||
// struct SVECTOR *mVerts; // $a1
|
||||
// VECTOR *playerPos; // $a2
|
||||
// VECTOR *camPos; // $a1
|
||||
// VECTOR *vJPos; // $s1
|
||||
// VECTOR v; // stack offset -128
|
||||
// MODEL *pModel; // $t0
|
||||
// SVECTOR *mVerts; // $a1
|
||||
// int i; // $s2
|
||||
// int j; // $a3
|
||||
// int c; // $a3
|
||||
// int id; // $a2
|
||||
// int limbs; // $a0
|
||||
// struct BONE *pBone; // $s0
|
||||
// BONE *pBone; // $s0
|
||||
// int lval; // $t1
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 1530
|
||||
// Start offset: 0x000660A0
|
||||
// Variables:
|
||||
// struct BONE *pBone; // $s0
|
||||
// struct VECTOR *v1; // $a2
|
||||
// struct VECTOR *v2; // $a1
|
||||
// BONE *pBone; // $s0
|
||||
// VECTOR *v1; // $a2
|
||||
// VECTOR *v2; // $a1
|
||||
|
||||
/* begin block 1.1.1 */
|
||||
// Start line: 1530
|
||||
// Start offset: 0x000660A0
|
||||
// Variables:
|
||||
// struct SVECTOR *data; // $t1
|
||||
// SVECTOR *data; // $t1
|
||||
// long t1; // stack offset -92
|
||||
// long t0; // stack offset -96
|
||||
// int z2; // stack offset -80
|
||||
@ -1125,15 +1125,15 @@ void SetupTannerSkeleton(PEDESTRIAN *pDrawingPed)
|
||||
// Start line: 1536
|
||||
// Start offset: 0x000661F8
|
||||
// Variables:
|
||||
// struct BONE *pBone; // $s0
|
||||
// struct VECTOR *v1; // $a0
|
||||
// struct VECTOR *v2; // $a2
|
||||
// BONE *pBone; // $s0
|
||||
// VECTOR *v1; // $a0
|
||||
// VECTOR *v2; // $a2
|
||||
|
||||
/* begin block 1.2.1 */
|
||||
// Start line: 1536
|
||||
// Start offset: 0x000661F8
|
||||
// Variables:
|
||||
// struct SVECTOR *data; // $t0
|
||||
// SVECTOR *data; // $t0
|
||||
// long t1; // stack offset -72
|
||||
// long t0; // stack offset -76
|
||||
// int z2; // stack offset -60
|
||||
@ -1150,8 +1150,8 @@ void SetupTannerSkeleton(PEDESTRIAN *pDrawingPed)
|
||||
// Start line: 1542
|
||||
// Start offset: 0x00066330
|
||||
// Variables:
|
||||
// struct SVECTOR v1; // stack offset -112
|
||||
// struct SVECTOR v2; // stack offset -104
|
||||
// SVECTOR v1; // stack offset -112
|
||||
// SVECTOR v2; // stack offset -104
|
||||
/* end block 1.3 */
|
||||
// End offset: 0x00066330
|
||||
// End Line: 1544
|
||||
@ -1160,15 +1160,15 @@ void SetupTannerSkeleton(PEDESTRIAN *pDrawingPed)
|
||||
// Start line: 1569
|
||||
// Start offset: 0x0006648C
|
||||
// Variables:
|
||||
// struct BONE *pBone; // $s0
|
||||
// struct VECTOR *v1; // $a2
|
||||
// struct VECTOR *v2; // $a1
|
||||
// BONE *pBone; // $s0
|
||||
// VECTOR *v1; // $a2
|
||||
// VECTOR *v2; // $a1
|
||||
|
||||
/* begin block 1.4.1 */
|
||||
// Start line: 1569
|
||||
// Start offset: 0x0006648C
|
||||
// Variables:
|
||||
// struct SVECTOR *data; // $t1
|
||||
// SVECTOR *data; // $t1
|
||||
// long t1; // stack offset -52
|
||||
// long t0; // stack offset -56
|
||||
// int z2; // stack offset -40
|
||||
@ -1510,7 +1510,7 @@ void newShowTanner(PEDESTRIAN *pDrawingPed)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// struct SVECTOR * /*$ra*/ GetModelVertPtr(int boneId /*$a1*/, int modelType /*$a1*/)
|
||||
// SVECTOR * /*$ra*/ GetModelVertPtr(int boneId /*$a1*/, int modelType /*$a1*/)
|
||||
// line 1774, offset 0x00066fb8
|
||||
/* begin block 1 */
|
||||
// Start line: 4462
|
||||
@ -1569,28 +1569,28 @@ SVECTOR* GetModelVertPtr(PEDESTRIAN *pDrawingPed, int boneId, int modelType)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ newRotateBones(struct BONE *poBone /*$a0*/)
|
||||
// void /*$ra*/ newRotateBones(BONE *poBone /*$a0*/)
|
||||
// line 1606, offset 0x00066648
|
||||
/* begin block 1 */
|
||||
// Start line: 1608
|
||||
// Start offset: 0x00066648
|
||||
// Variables:
|
||||
// struct MATRIX mStore[32]; // stack offset -1088
|
||||
// struct MATRIX *pMatrix; // $s2
|
||||
// struct MATRIX *oMatrix; // $s5
|
||||
// struct SVECTOR *svBone; // $s6
|
||||
// struct VECTOR *vBoneRotated; // $s3
|
||||
// struct BONE *pBone; // $s1
|
||||
// MATRIX mStore[32]; // stack offset -1088
|
||||
// MATRIX *pMatrix; // $s2
|
||||
// MATRIX *oMatrix; // $s5
|
||||
// SVECTOR *svBone; // $s6
|
||||
// VECTOR *vBoneRotated; // $s3
|
||||
// BONE *pBone; // $s1
|
||||
// int id; // $s0
|
||||
// struct SVECTOR *pVerts; // $a3
|
||||
// struct SVECTOR *pmVerts; // $s0
|
||||
// SVECTOR *pVerts; // $a3
|
||||
// SVECTOR *pmVerts; // $s0
|
||||
// int numVerts; // $t0
|
||||
// struct MODEL *pModel; // $v0
|
||||
// MODEL *pModel; // $v0
|
||||
// int i; // $a2
|
||||
// struct SVECTOR *pD; // $a0
|
||||
// SVECTOR *pD; // $a0
|
||||
// int c; // $s4
|
||||
// int j; // $a1
|
||||
// struct VECTOR sv; // stack offset -64
|
||||
// VECTOR sv; // stack offset -64
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 1609
|
||||
@ -1839,29 +1839,29 @@ void newRotateBones(PEDESTRIAN *pDrawingPed, BONE *poBone)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DrawCiv(struct PEDESTRIAN *pPed /*$fp*/)
|
||||
// void /*$ra*/ DrawCiv(PEDESTRIAN *pPed /*$fp*/)
|
||||
// line 1834, offset 0x000670cc
|
||||
/* begin block 1 */
|
||||
// Start line: 1835
|
||||
// Start offset: 0x000670CC
|
||||
// Variables:
|
||||
// int i; // $s5
|
||||
// struct DVECTOR *outpoints; // $t9
|
||||
// DVECTOR *outpoints; // $t9
|
||||
// long *outlongs; // $s5
|
||||
// struct SVECTOR *psrLerpData; // $t8
|
||||
// SVECTOR *psrLerpData; // $t8
|
||||
// long *zbuff; // $s4
|
||||
// struct SVECTOR *pLerpData; // $s0
|
||||
// struct SVECTOR pos; // stack offset -160
|
||||
// struct VECTOR pos1; // stack offset -152
|
||||
// struct SVECTOR *vert1; // $a1
|
||||
// struct SVECTOR *vert2; // $a0
|
||||
// struct SVECTOR temp1; // stack offset -136
|
||||
// struct SVECTOR temp2; // stack offset -128
|
||||
// SVECTOR *pLerpData; // $s0
|
||||
// SVECTOR pos; // stack offset -160
|
||||
// VECTOR pos1; // stack offset -152
|
||||
// SVECTOR *vert1; // $a1
|
||||
// SVECTOR *vert2; // $a0
|
||||
// SVECTOR temp1; // stack offset -136
|
||||
// SVECTOR temp2; // stack offset -128
|
||||
// int cnt3; // $a2
|
||||
// int bHeadModel; // stack offset -56
|
||||
// int shift; // $t0
|
||||
// int frame; // $a2
|
||||
// struct MATRIX workmatrix; // stack offset -120
|
||||
// MATRIX workmatrix; // stack offset -120
|
||||
// int j; // $s7
|
||||
|
||||
/* begin block 1.1 */
|
||||
@ -1883,9 +1883,9 @@ void newRotateBones(PEDESTRIAN *pDrawingPed, BONE *poBone)
|
||||
// Start line: 1964
|
||||
// Start offset: 0x000677C0
|
||||
// Variables:
|
||||
// struct SVECTOR sV; // stack offset -88
|
||||
// struct SVECTOR sV2; // stack offset -80
|
||||
// struct VECTOR v; // stack offset -72
|
||||
// SVECTOR sV; // stack offset -88
|
||||
// SVECTOR sV2; // stack offset -80
|
||||
// VECTOR v; // stack offset -72
|
||||
/* end block 1.2 */
|
||||
// End offset: 0x000677FC
|
||||
// End Line: 1976
|
||||
@ -1894,8 +1894,8 @@ void newRotateBones(PEDESTRIAN *pDrawingPed, BONE *poBone)
|
||||
// Start line: 1985
|
||||
// Start offset: 0x000677FC
|
||||
// Variables:
|
||||
// struct CVECTOR cv; // stack offset -88
|
||||
// struct VECTOR pos; // stack offset -80
|
||||
// CVECTOR cv; // stack offset -88
|
||||
// VECTOR pos; // stack offset -80
|
||||
// int phase; // $s0
|
||||
/* end block 1.3 */
|
||||
// End offset: 0x000678A0
|
||||
@ -2211,16 +2211,16 @@ void SetSkelModelPointers(int type)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DrawTanner(struct PEDESTRIAN *pPed /*$s2*/)
|
||||
// void /*$ra*/ DrawTanner(PEDESTRIAN *pPed /*$s2*/)
|
||||
// line 2041, offset 0x000678d0
|
||||
/* begin block 1 */
|
||||
// Start line: 2042
|
||||
// Start offset: 0x000678D0
|
||||
// Variables:
|
||||
// struct VECTOR v; // stack offset -112
|
||||
// struct CVECTOR cV; // stack offset -96
|
||||
// struct MATRIX mRotStore; // stack offset -88
|
||||
// struct MATRIX iMatrix; // stack offset -56
|
||||
// VECTOR v; // stack offset -112
|
||||
// CVECTOR cV; // stack offset -96
|
||||
// MATRIX mRotStore; // stack offset -88
|
||||
// MATRIX iMatrix; // stack offset -56
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 2042
|
||||
@ -2306,16 +2306,16 @@ void DrawTanner(PEDESTRIAN *pPed)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ DrawCharacter(struct PEDESTRIAN *pPed /*$s1*/)
|
||||
// int /*$ra*/ DrawCharacter(PEDESTRIAN *pPed /*$s1*/)
|
||||
// line 2120, offset 0x00067d44
|
||||
/* begin block 1 */
|
||||
// Start line: 2121
|
||||
// Start offset: 0x00067D44
|
||||
// Variables:
|
||||
// struct MATRIX mRotStore; // stack offset -128
|
||||
// struct MATRIX iMatrix; // stack offset -96
|
||||
// struct CVECTOR cV; // stack offset -64
|
||||
// struct VECTOR v; // stack offset -56
|
||||
// MATRIX mRotStore; // stack offset -128
|
||||
// MATRIX iMatrix; // stack offset -96
|
||||
// CVECTOR cV; // stack offset -64
|
||||
// VECTOR v; // stack offset -56
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 2121
|
||||
@ -2336,8 +2336,8 @@ void DrawTanner(PEDESTRIAN *pPed)
|
||||
// Start line: 2175
|
||||
// Start offset: 0x00068134
|
||||
// Variables:
|
||||
// struct CVECTOR cv; // stack offset -40
|
||||
// struct VECTOR pos; // stack offset -32
|
||||
// CVECTOR cv; // stack offset -40
|
||||
// VECTOR pos; // stack offset -32
|
||||
// int phase; // $s0
|
||||
/* end block 1.2 */
|
||||
// End offset: 0x000681D0
|
||||
@ -2441,7 +2441,7 @@ int DrawCharacter(PEDESTRIAN *pPed)
|
||||
// Start line: 2203
|
||||
// Start offset: 0x000681EC
|
||||
// Variables:
|
||||
// struct CVECTOR cV; // stack offset -8
|
||||
// CVECTOR cV; // stack offset -8
|
||||
// int i; // $a3
|
||||
/* end block 1 */
|
||||
// End offset: 0x00068358
|
||||
@ -2557,7 +2557,7 @@ void InitTannerShadow(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ TannerShadow(struct VECTOR *pPedPos /*$s6*/, struct SVECTOR *pLightPos /*$s7*/, struct CVECTOR *col /*$a2*/, short angle /*$a3*/)
|
||||
// void /*$ra*/ TannerShadow(VECTOR *pPedPos /*$s6*/, SVECTOR *pLightPos /*$s7*/, CVECTOR *col /*$a2*/, short angle /*$a3*/)
|
||||
// line 2258, offset 0x00068358
|
||||
/* begin block 1 */
|
||||
// Start line: 2259
|
||||
@ -2568,15 +2568,15 @@ void InitTannerShadow(void)
|
||||
// int z1; // stack offset -68
|
||||
// int z2; // stack offset -64
|
||||
// int z3; // stack offset -60
|
||||
// struct SVECTOR vert[4]; // stack offset -272
|
||||
// struct VECTOR d; // stack offset -240
|
||||
// struct DR_ENV *pDE; // $s3
|
||||
// struct DRAWENV drEnv; // stack offset -224
|
||||
// struct VECTOR cp; // stack offset -128
|
||||
// struct SVECTOR ca; // stack offset -112
|
||||
// struct VECTOR v1; // stack offset -104
|
||||
// SVECTOR vert[4]; // stack offset -272
|
||||
// VECTOR d; // stack offset -240
|
||||
// DR_ENV *pDE; // $s3
|
||||
// DRAWENV drEnv; // stack offset -224
|
||||
// VECTOR cp; // stack offset -128
|
||||
// SVECTOR ca; // stack offset -112
|
||||
// VECTOR v1; // stack offset -104
|
||||
// int i; // $s4
|
||||
// struct VECTOR myVector; // stack offset -88
|
||||
// VECTOR myVector; // stack offset -88
|
||||
// int avalue2; // $v0
|
||||
// int w; // $v1
|
||||
|
||||
@ -2777,19 +2777,19 @@ void TannerShadow(PEDESTRIAN* pDrawingPed, VECTOR *pPedPos, SVECTOR *pLightPos,
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DoCivHead(struct SVECTOR *vert1 /*$s1*/, struct SVECTOR *vert2 /*$s3*/)
|
||||
// void /*$ra*/ DoCivHead(SVECTOR *vert1 /*$s1*/, SVECTOR *vert2 /*$s3*/)
|
||||
// line 2442, offset 0x00068b2c
|
||||
/* begin block 1 */
|
||||
// Start line: 2443
|
||||
// Start offset: 0x00068B2C
|
||||
// Variables:
|
||||
// struct VECTOR headpos; // stack offset -184
|
||||
// struct SVECTOR final_rotation; // stack offset -168
|
||||
// struct SVECTOR spos1; // stack offset -160
|
||||
// struct MODEL *model; // $s5
|
||||
// struct MATRIX work2matrix; // stack offset -152
|
||||
// struct MATRIX mRotStore; // stack offset -120
|
||||
// struct VECTOR pos1; // stack offset -88
|
||||
// VECTOR headpos; // stack offset -184
|
||||
// SVECTOR final_rotation; // stack offset -168
|
||||
// SVECTOR spos1; // stack offset -160
|
||||
// MODEL *model; // $s5
|
||||
// MATRIX work2matrix; // stack offset -152
|
||||
// MATRIX mRotStore; // stack offset -120
|
||||
// VECTOR pos1; // stack offset -88
|
||||
// int pal; // $v1
|
||||
// int ci; // $s6
|
||||
|
||||
@ -2825,7 +2825,7 @@ void TannerShadow(PEDESTRIAN* pDrawingPed, VECTOR *pPedPos, SVECTOR *pLightPos,
|
||||
// Start line: 2535
|
||||
// Start offset: 0x00069274
|
||||
// Variables:
|
||||
// struct MATRIX comb; // stack offset -72
|
||||
// MATRIX comb; // stack offset -72
|
||||
/* end block 1.3 */
|
||||
// End offset: 0x00069274
|
||||
// End Line: 2537
|
||||
@ -2916,15 +2916,15 @@ void DoCivHead(PEDESTRIAN *pPed, SVECTOR *vert1, SVECTOR *vert2)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DrawObject(struct MODEL *model /*$t8*/, struct MATRIX *matrix /*$a1*/, struct VECTOR *pos /*$a2*/, int z_correct /*$a3*/)
|
||||
// void /*$ra*/ DrawObject(MODEL *model /*$t8*/, MATRIX *matrix /*$a1*/, VECTOR *pos /*$a2*/, int z_correct /*$a3*/)
|
||||
// line 2562, offset 0x00069438
|
||||
/* begin block 1 */
|
||||
// Start line: 2563
|
||||
// Start offset: 0x00069438
|
||||
// Variables:
|
||||
// struct DVECTOR *outpoints; // $t7
|
||||
// DVECTOR *outpoints; // $t7
|
||||
// short *zbuff; // $t5
|
||||
// struct SVECTOR *verts; // $t6
|
||||
// SVECTOR *verts; // $t6
|
||||
// char *polys; // $s0
|
||||
// int cnt3; // $t1
|
||||
// int i; // $s1
|
||||
@ -3120,10 +3120,10 @@ void DrawObject(MODEL *model, MATRIX *matrix, VECTOR *pos, int z_correct)
|
||||
// Start line: 2692
|
||||
// Start offset: 0x00069874
|
||||
// Variables:
|
||||
// struct POLYFT3 *src; // $a3
|
||||
// POLYFT3 *src; // $a3
|
||||
// short *zbuff; // $t2
|
||||
// long *outlongs; // $a2
|
||||
// struct POLY_FT3 *prims; // $t1
|
||||
// POLY_FT3 *prims; // $t1
|
||||
// unsigned long clut; // $t0
|
||||
// unsigned long tpage; // $a1
|
||||
// int z; // $a2
|
||||
|
@ -173,8 +173,8 @@ int cycle_timer = 0;
|
||||
// Start offset: 0x000149B4
|
||||
// Variables:
|
||||
// int i; // $s0
|
||||
// struct CYCLE_OBJECT *cyc; // $s1
|
||||
// struct RECT vram; // stack offset -24
|
||||
// CYCLE_OBJECT *cyc; // $s1
|
||||
// RECT vram; // stack offset -24
|
||||
/* end block 1 */
|
||||
// End offset: 0x00014A58
|
||||
// End Line: 278
|
||||
@ -225,8 +225,8 @@ void InitCyclingPals(void)
|
||||
// Start offset: 0x00013980
|
||||
// Variables:
|
||||
// int i; // $s5
|
||||
// struct CYCLE_OBJECT *cyc; // $s2
|
||||
// struct RECT vram; // stack offset -56
|
||||
// CYCLE_OBJECT *cyc; // $s2
|
||||
// RECT vram; // stack offset -56
|
||||
// unsigned short *bufaddr; // $s0
|
||||
// unsigned short length; // $v0
|
||||
// unsigned short temp; // $s1
|
||||
@ -370,7 +370,7 @@ void ColourCycle(void)
|
||||
// Start line: 462
|
||||
// Start offset: 0x00014950
|
||||
// Variables:
|
||||
// struct SMASHABLE_OBJECT *sip; // $s0
|
||||
// SMASHABLE_OBJECT *sip; // $s0
|
||||
/* end block 1 */
|
||||
// End offset: 0x000149A8
|
||||
// End Line: 468
|
||||
@ -420,11 +420,11 @@ void FindSmashableObjects(void)
|
||||
// Start line: 483
|
||||
// Start offset: 0x00013CAC
|
||||
// Variables:
|
||||
// struct ANIMATED_OBJECT *aop; // $s1
|
||||
// ANIMATED_OBJECT *aop; // $s1
|
||||
// int loop; // $s0
|
||||
// int count1; // $a0
|
||||
// int count; // $a2
|
||||
// struct MODEL *modelPtr; // $a0
|
||||
// MODEL *modelPtr; // $a0
|
||||
/* end block 1 */
|
||||
// End offset: 0x00013DF8
|
||||
// End Line: 528
|
||||
@ -498,7 +498,7 @@ void InitAnimatingObjects(void)
|
||||
// Start line: 537
|
||||
// Start offset: 0x00014828
|
||||
// Variables:
|
||||
// struct ANIMATED_OBJECT *aop; // $a1
|
||||
// ANIMATED_OBJECT *aop; // $a1
|
||||
// int i; // $a2
|
||||
/* end block 1 */
|
||||
// End offset: 0x00014898
|
||||
@ -570,13 +570,13 @@ void int_garage_door(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ DrawAnimatingObject(struct MODEL *model /*$a0*/, struct CELL_OBJECT *cop /*$s3*/, struct VECTOR *pos /*$a2*/)
|
||||
// int /*$ra*/ DrawAnimatingObject(MODEL *model /*$a0*/, CELL_OBJECT *cop /*$s3*/, VECTOR *pos /*$a2*/)
|
||||
// line 578, offset 0x000148a0
|
||||
/* begin block 1 */
|
||||
// Start line: 579
|
||||
// Start offset: 0x000148A0
|
||||
// Variables:
|
||||
// struct ANIMATED_OBJECT *aop; // $s1
|
||||
// ANIMATED_OBJECT *aop; // $s1
|
||||
// int loop; // $s2
|
||||
// int type; // $s0
|
||||
/* end block 1 */
|
||||
@ -627,7 +627,7 @@ void DrawAllAnimatingObjects(CELL_OBJECT** objects, int num_animated)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ animate_object(struct CELL_OBJECT *cop /*$s2*/, int type /*$a1*/)
|
||||
// void /*$ra*/ animate_object(CELL_OBJECT *cop /*$s2*/, int type /*$a1*/)
|
||||
// line 613, offset 0x00013df8
|
||||
/* begin block 1 */
|
||||
// Start line: 614
|
||||
|
@ -17,16 +17,16 @@
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// char /*$ra*/ CellEmpty(struct VECTOR *pPosition /*$s1*/, int radius /*$s2*/)
|
||||
// char /*$ra*/ CellEmpty(VECTOR *pPosition /*$s1*/, int radius /*$s2*/)
|
||||
// line 63, offset 0x00069ba4
|
||||
/* begin block 1 */
|
||||
// Start line: 64
|
||||
// Start offset: 0x00069BA4
|
||||
// Variables:
|
||||
// struct CELL_ITERATOR ci; // stack offset -48
|
||||
// CELL_ITERATOR ci; // stack offset -48
|
||||
// int cell_x; // $a0
|
||||
// struct CELL_OBJECT *pCellObject; // $a2
|
||||
// struct MODEL *pModel; // $a3
|
||||
// CELL_OBJECT *pCellObject; // $a2
|
||||
// MODEL *pModel; // $a3
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 100
|
||||
@ -42,7 +42,7 @@
|
||||
// Variables:
|
||||
// int box_loop; // $t3
|
||||
// int num_cb; // $t6
|
||||
// struct COLLISION_PACKET *collide; // $t0
|
||||
// COLLISION_PACKET *collide; // $t0
|
||||
|
||||
/* begin block 1.1.1.1 */
|
||||
// Start line: 119
|
||||
@ -259,7 +259,7 @@ char CellEmpty(VECTOR *pPosition, int radius)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ GlobalPositionToCellNumber(struct VECTOR *pPosition /*$a0*/)
|
||||
// int /*$ra*/ GlobalPositionToCellNumber(VECTOR *pPosition /*$a0*/)
|
||||
// line 155, offset 0x0006b2ec
|
||||
/* begin block 1 */
|
||||
// Start line: 156
|
||||
@ -318,7 +318,7 @@ int GlobalPositionToCellNumber(VECTOR *pPosition)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// char /*$ra*/ CellAtPositionEmpty(struct VECTOR *pPosition /*$s0*/, int radius /*$s1*/)
|
||||
// char /*$ra*/ CellAtPositionEmpty(VECTOR *pPosition /*$s0*/, int radius /*$s1*/)
|
||||
// line 183, offset 0x0006b3e4
|
||||
/* begin block 1 */
|
||||
// Start line: 184
|
||||
@ -350,21 +350,21 @@ char CellAtPositionEmpty(VECTOR *pPosition, int radius)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ RaySlabsIntersection(struct tRay *ray /*$t5*/, struct tAABB *bbox /*$t4*/)
|
||||
// int /*$ra*/ RaySlabsIntersection(tRay *ray /*$t5*/, tAABB *bbox /*$t4*/)
|
||||
// line 217, offset 0x00069e1c
|
||||
/* begin block 1 */
|
||||
// Start line: 218
|
||||
// Start offset: 0x00069E1C
|
||||
// Variables:
|
||||
// int i; // $t1
|
||||
// struct tRange inside; // stack offset -24
|
||||
// tRange inside; // stack offset -24
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 226
|
||||
// Start offset: 0x00069E40
|
||||
// Variables:
|
||||
// struct tRange cabbage; // stack offset -16
|
||||
// struct tRange scaledCabbage; // stack offset -8
|
||||
// tRange cabbage; // stack offset -16
|
||||
// tRange scaledCabbage; // stack offset -8
|
||||
// int dir; // $a2
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x00069F94
|
||||
@ -456,7 +456,7 @@ int RaySlabsIntersection(tRay *ray, tAABB *bbox)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// char /*$ra*/ lineClear(struct VECTOR *v1 /*stack 0*/, struct VECTOR *v2 /*stack 4*/)
|
||||
// char /*$ra*/ lineClear(VECTOR *v1 /*stack 0*/, VECTOR *v2 /*stack 4*/)
|
||||
// line 259, offset 0x00069fb4
|
||||
/* begin block 1 */
|
||||
// Start line: 260
|
||||
@ -465,9 +465,9 @@ int RaySlabsIntersection(tRay *ray, tAABB *bbox)
|
||||
// int we; // stack offset -56
|
||||
// int ocx; // $t2
|
||||
// int ocz; // $t3
|
||||
// struct VECTOR pos; // stack offset -184
|
||||
// struct VECTOR va; // stack offset -168
|
||||
// struct VECTOR vb; // stack offset -152
|
||||
// VECTOR pos; // stack offset -184
|
||||
// VECTOR va; // stack offset -168
|
||||
// VECTOR vb; // stack offset -152
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 279
|
||||
@ -475,14 +475,14 @@ int RaySlabsIntersection(tRay *ray, tAABB *bbox)
|
||||
// Variables:
|
||||
// int cell_x; // $fp
|
||||
// int cell_z; // $s7
|
||||
// struct CELL_ITERATOR ci; // stack offset -136
|
||||
// struct CELL_OBJECT *pCellObject; // $s4
|
||||
// CELL_ITERATOR ci; // stack offset -136
|
||||
// CELL_OBJECT *pCellObject; // $s4
|
||||
|
||||
/* begin block 1.1.1 */
|
||||
// Start line: 299
|
||||
// Start offset: 0x0006A134
|
||||
// Variables:
|
||||
// struct MODEL *pModel; // $a1
|
||||
// MODEL *pModel; // $a1
|
||||
|
||||
/* begin block 1.1.1.1 */
|
||||
// Start line: 307
|
||||
@ -498,13 +498,13 @@ int RaySlabsIntersection(tRay *ray, tAABB *bbox)
|
||||
// Variables:
|
||||
// int box_loop; // $s5
|
||||
// int num_cb; // $s6
|
||||
// struct COLLISION_PACKET *collide; // $s3
|
||||
// COLLISION_PACKET *collide; // $s3
|
||||
|
||||
/* begin block 1.1.1.1.1.1 */
|
||||
// Start line: 323
|
||||
// Start offset: 0x0006A1F0
|
||||
// Variables:
|
||||
// struct MATRIX *mat; // $a0
|
||||
// MATRIX *mat; // $a0
|
||||
// int cx; // $v1
|
||||
// int cy; // $a2
|
||||
// int cz; // $v0
|
||||
@ -515,8 +515,8 @@ int RaySlabsIntersection(tRay *ray, tAABB *bbox)
|
||||
// Start line: 323
|
||||
// Start offset: 0x0006A1F0
|
||||
// Variables:
|
||||
// struct tRay ray; // stack offset -112
|
||||
// struct tAABB box; // stack offset -80
|
||||
// tRay ray; // stack offset -112
|
||||
// tAABB box; // stack offset -80
|
||||
/* end block 1.1.1.1.1.1.1 */
|
||||
// End offset: 0x0006A414
|
||||
// End Line: 347
|
||||
@ -770,7 +770,7 @@ char lineClear(VECTOR *v1, VECTOR *v2)
|
||||
// Start line: 379
|
||||
// Start offset: 0x0006B430
|
||||
// Variables:
|
||||
// struct XZPAIR cell; // stack offset -16
|
||||
// XZPAIR cell; // stack offset -16
|
||||
/* end block 1 */
|
||||
// End offset: 0x0006B45C
|
||||
// End Line: 384
|
||||
@ -829,19 +829,19 @@ void BuildCollisionCopList(int *count)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ CollisionCopList(struct XZPAIR *pos /*$a0*/, int *count /*$s0*/)
|
||||
// void /*$ra*/ CollisionCopList(XZPAIR *pos /*$a0*/, int *count /*$s0*/)
|
||||
// line 391, offset 0x0006a498
|
||||
/* begin block 1 */
|
||||
// Start line: 392
|
||||
// Start offset: 0x0006A498
|
||||
// Variables:
|
||||
// static struct XZPAIR initial; // offset 0x0
|
||||
// static XZPAIR initial; // offset 0x0
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 402
|
||||
// Start offset: 0x0006A4E8
|
||||
// Variables:
|
||||
// struct XZPAIR cell; // stack offset -72
|
||||
// XZPAIR cell; // stack offset -72
|
||||
// int i; // $a0
|
||||
// int j; // $t1
|
||||
|
||||
@ -849,10 +849,10 @@ void BuildCollisionCopList(int *count)
|
||||
// Start line: 411
|
||||
// Start offset: 0x0006A508
|
||||
// Variables:
|
||||
// struct CELL_ITERATOR ci; // stack offset -64
|
||||
// struct XZPAIR cbr; // stack offset -40
|
||||
// CELL_ITERATOR ci; // stack offset -64
|
||||
// XZPAIR cbr; // stack offset -40
|
||||
// int barrelRegion; // $v0
|
||||
// struct CELL_OBJECT *cop; // $a0
|
||||
// CELL_OBJECT *cop; // $a0
|
||||
/* end block 1.1.1 */
|
||||
// End offset: 0x0006A5F8
|
||||
// End Line: 429
|
||||
@ -950,16 +950,16 @@ void CollisionCopList(XZPAIR *pos, int *count)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ CheckScenaryCollisions(struct _CAR_DATA *cp /*$s7*/)
|
||||
// void /*$ra*/ CheckScenaryCollisions(CAR_DATA *cp /*$s7*/)
|
||||
// line 439, offset 0x0006a64c
|
||||
/* begin block 1 */
|
||||
// Start line: 440
|
||||
// Start offset: 0x0006A64C
|
||||
// Variables:
|
||||
// struct MODEL *model; // stack offset -76
|
||||
// struct CELL_OBJECT *cop; // $s5
|
||||
// struct VECTOR player_pos; // stack offset -152
|
||||
// struct COLLISION_PACKET *collide; // $s1
|
||||
// MODEL *model; // stack offset -76
|
||||
// CELL_OBJECT *cop; // $s5
|
||||
// VECTOR player_pos; // stack offset -152
|
||||
// COLLISION_PACKET *collide; // $s1
|
||||
// int cell_x; // $a0
|
||||
// int xd; // $v1
|
||||
// int zd; // $a0
|
||||
@ -967,10 +967,10 @@ void CollisionCopList(XZPAIR *pos, int *count)
|
||||
// int box_loop; // $s6
|
||||
// int sphere_sq; // $v0
|
||||
// int x1; // stack offset -68
|
||||
// struct BUILDING_BOX bbox; // stack offset -136
|
||||
// BUILDING_BOX bbox; // stack offset -136
|
||||
// int mdcount; // stack offset -80
|
||||
// int coll_test_count; // $t0
|
||||
// struct XZPAIR box; // stack offset -104
|
||||
// XZPAIR box; // stack offset -104
|
||||
// int lbody; // stack offset -64
|
||||
// int extraDist; // stack offset -60
|
||||
|
||||
@ -978,9 +978,9 @@ void CollisionCopList(XZPAIR *pos, int *count)
|
||||
// Start line: 519
|
||||
// Start offset: 0x0006A934
|
||||
// Variables:
|
||||
// struct BUILDING_BOX *pbox; // $s4
|
||||
// struct MATRIX *mat; // $a1
|
||||
// struct VECTOR offset; // stack offset -96
|
||||
// BUILDING_BOX *pbox; // $s4
|
||||
// MATRIX *mat; // $a1
|
||||
// VECTOR offset; // stack offset -96
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x0006AD48
|
||||
// End Line: 591
|
||||
@ -1003,7 +1003,7 @@ ushort gLastModelCollisionCheck;
|
||||
int ExBoxDamage = 0;
|
||||
|
||||
// [D] [T]
|
||||
void CheckScenaryCollisions(_CAR_DATA *cp)
|
||||
void CheckScenaryCollisions(CAR_DATA *cp)
|
||||
{
|
||||
int count;
|
||||
int num_cb;
|
||||
@ -1183,16 +1183,16 @@ void CheckScenaryCollisions(_CAR_DATA *cp)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ QuickBuildingCollisionCheck(struct VECTOR *pPos /*$s5*/, int dir /*stack 4*/, int l /*stack 8*/, int w /*$fp*/, int extra /*stack 16*/)
|
||||
// int /*$ra*/ QuickBuildingCollisionCheck(VECTOR *pPos /*$s5*/, int dir /*stack 4*/, int l /*stack 8*/, int w /*$fp*/, int extra /*stack 16*/)
|
||||
// line 609, offset 0x0006adbc
|
||||
/* begin block 1 */
|
||||
// Start line: 610
|
||||
// Start offset: 0x0006ADBC
|
||||
// Variables:
|
||||
// struct MODEL *model; // $a1
|
||||
// struct CELL_OBJECT *cop; // $s3
|
||||
// struct VECTOR player_pos; // stack offset -112
|
||||
// struct COLLISION_PACKET *collide; // $s0
|
||||
// MODEL *model; // $a1
|
||||
// CELL_OBJECT *cop; // $s3
|
||||
// VECTOR player_pos; // stack offset -112
|
||||
// COLLISION_PACKET *collide; // $s0
|
||||
// int cell_x; // $a0
|
||||
// int xd; // $v1
|
||||
// int zd; // $a0
|
||||
@ -1200,16 +1200,16 @@ void CheckScenaryCollisions(_CAR_DATA *cp)
|
||||
// int box_loop; // $s4
|
||||
// int sphere_sq; // $v0
|
||||
// int x1; // $s6
|
||||
// struct BUILDING_BOX bbox; // stack offset -96
|
||||
// BUILDING_BOX bbox; // stack offset -96
|
||||
// int mdcount; // stack offset -48
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 669
|
||||
// Start offset: 0x0006AFA4
|
||||
// Variables:
|
||||
// struct BUILDING_BOX *pbox; // $s1
|
||||
// struct MATRIX *mat; // $a1
|
||||
// struct VECTOR offset; // stack offset -64
|
||||
// BUILDING_BOX *pbox; // $s1
|
||||
// MATRIX *mat; // $a1
|
||||
// VECTOR offset; // stack offset -64
|
||||
|
||||
/* begin block 1.1.1 */
|
||||
// Start line: 685
|
||||
@ -1427,7 +1427,7 @@ int QuickBuildingCollisionCheck(VECTOR *pPos, int dir, int l, int w, int extra)
|
||||
// Start line: 737
|
||||
// Start offset: 0x0006B220
|
||||
// Variables:
|
||||
// struct _CAR_DATA *lcp; // $s0
|
||||
// CAR_DATA *lcp; // $s0
|
||||
/* end block 1 */
|
||||
// End offset: 0x0006B2EC
|
||||
// End Line: 753
|
||||
@ -1457,7 +1457,7 @@ int QuickBuildingCollisionCheck(VECTOR *pPos, int dir, int l, int w, int extra)
|
||||
// [D] [T]
|
||||
void DoScenaryCollisions(void)
|
||||
{
|
||||
_CAR_DATA *cp;
|
||||
CAR_DATA *cp;
|
||||
|
||||
cp = &car_data[MAX_CARS - 1];
|
||||
|
||||
|
@ -19,7 +19,7 @@ extern void BuildCollisionCopList(int *count); // 0x0006B45C
|
||||
|
||||
extern void CollisionCopList(XZPAIR *pos, int *count); // 0x0006A498
|
||||
|
||||
extern void CheckScenaryCollisions(_CAR_DATA *cp); // 0x0006A64C
|
||||
extern void CheckScenaryCollisions(CAR_DATA *cp); // 0x0006A64C
|
||||
|
||||
extern int QuickBuildingCollisionCheck(VECTOR *pPos, int dir, int l, int w, int extra); // 0x0006ADBC
|
||||
|
||||
|
@ -50,11 +50,11 @@ COLOUR_BAND damageColour[2] =
|
||||
|
||||
/* WARNING: Unknown calling convention yet parameter storage is locked */
|
||||
|
||||
_PERCENTAGE_BAR PlayerDamageBar;
|
||||
_PERCENTAGE_BAR Player2DamageBar;
|
||||
_PERCENTAGE_BAR DamageBar;
|
||||
_PERCENTAGE_BAR FelonyBar;
|
||||
_PERCENTAGE_BAR ProxyBar;
|
||||
PERCENTAGE_BAR PlayerDamageBar;
|
||||
PERCENTAGE_BAR Player2DamageBar;
|
||||
PERCENTAGE_BAR DamageBar;
|
||||
PERCENTAGE_BAR FelonyBar;
|
||||
PERCENTAGE_BAR ProxyBar;
|
||||
|
||||
int gDoOverlays = 1;
|
||||
|
||||
@ -185,8 +185,8 @@ void DisplayOverlays(void)
|
||||
// Start line: 380
|
||||
// Start offset: 0x00015E70
|
||||
// Variables:
|
||||
// struct DRAWENV drawenv; // stack offset -104
|
||||
// struct DR_ENV *dr_env; // $s0
|
||||
// DRAWENV drawenv; // stack offset -104
|
||||
// DR_ENV *dr_env; // $s0
|
||||
/* end block 1 */
|
||||
// End offset: 0x00015F20
|
||||
// End Line: 388
|
||||
@ -234,7 +234,7 @@ void SetFullscreenDrawing(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ InitPercentageBar(struct _PERCENTAGE_BAR *bar /*$a0*/, int size /*$a1*/, struct COLOUR_BAND *pColourBand /*$a2*/, char *tag /*$a3*/)
|
||||
// void /*$ra*/ InitPercentageBar(PERCENTAGE_BAR *bar /*$a0*/, int size /*$a1*/, COLOUR_BAND *pColourBand /*$a2*/, char *tag /*$a3*/)
|
||||
// line 395, offset 0x00015f20
|
||||
/* begin block 1 */
|
||||
// Start line: 1476
|
||||
@ -252,7 +252,7 @@ void SetFullscreenDrawing(void)
|
||||
// End Line: 1486
|
||||
|
||||
// [D]
|
||||
void InitPercentageBar(_PERCENTAGE_BAR *bar, int size, COLOUR_BAND *pColourBand, char *tag)
|
||||
void InitPercentageBar(PERCENTAGE_BAR *bar, int size, COLOUR_BAND *pColourBand, char *tag)
|
||||
{
|
||||
bar->xpos = 0x96;
|
||||
bar->ypos = 10;
|
||||
@ -270,7 +270,7 @@ void InitPercentageBar(_PERCENTAGE_BAR *bar, int size, COLOUR_BAND *pColourBand,
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ EnablePercentageBar(struct _PERCENTAGE_BAR *bar /*$a0*/, int max /*$a1*/)
|
||||
// void /*$ra*/ EnablePercentageBar(PERCENTAGE_BAR *bar /*$a0*/, int max /*$a1*/)
|
||||
// line 414, offset 0x00015f58
|
||||
/* begin block 1 */
|
||||
// Start line: 1524
|
||||
@ -288,7 +288,7 @@ void InitPercentageBar(_PERCENTAGE_BAR *bar, int size, COLOUR_BAND *pColourBand,
|
||||
// End Line: 1528
|
||||
|
||||
// [D]
|
||||
void EnablePercentageBar(_PERCENTAGE_BAR *bar, int max)
|
||||
void EnablePercentageBar(PERCENTAGE_BAR *bar, int max)
|
||||
{
|
||||
bar->position = 0;
|
||||
bar->max = (ushort)max;
|
||||
@ -299,14 +299,14 @@ void EnablePercentageBar(_PERCENTAGE_BAR *bar, int max)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DrawPercentageBar(struct _PERCENTAGE_BAR *bar /*$fp*/)
|
||||
// void /*$ra*/ DrawPercentageBar(PERCENTAGE_BAR *bar /*$fp*/)
|
||||
// line 426, offset 0x00014da8
|
||||
/* begin block 1 */
|
||||
// Start line: 427
|
||||
// Start offset: 0x00014DA8
|
||||
// Variables:
|
||||
// struct POLY_G4 *poly; // $s0
|
||||
// struct CVECTOR temp; // stack offset -56
|
||||
// POLY_G4 *poly; // $s0
|
||||
// CVECTOR temp; // stack offset -56
|
||||
// int min_x; // $s1
|
||||
// int max_x; // $s7
|
||||
// int min_y; // $s2
|
||||
@ -332,7 +332,7 @@ void EnablePercentageBar(_PERCENTAGE_BAR *bar, int max)
|
||||
// End Line: 896
|
||||
|
||||
// [D]
|
||||
void DrawPercentageBar(_PERCENTAGE_BAR *bar)
|
||||
void DrawPercentageBar(PERCENTAGE_BAR *bar)
|
||||
{
|
||||
short sVar1;
|
||||
short sVar3;
|
||||
@ -491,13 +491,13 @@ void DrawPercentageBar(_PERCENTAGE_BAR *bar)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DrawProximityBar(struct _PERCENTAGE_BAR *bar /*$t3*/)
|
||||
// void /*$ra*/ DrawProximityBar(PERCENTAGE_BAR *bar /*$t3*/)
|
||||
// line 532, offset 0x000152d4
|
||||
/* begin block 1 */
|
||||
// Start line: 533
|
||||
// Start offset: 0x000152D4
|
||||
// Variables:
|
||||
// struct TILE *tile; // $a1
|
||||
// TILE *tile; // $a1
|
||||
// int min_x; // $s1
|
||||
// int max_x; // $s7
|
||||
// int min_y; // $s2
|
||||
@ -529,7 +529,7 @@ void DrawPercentageBar(_PERCENTAGE_BAR *bar)
|
||||
// End Line: 1179
|
||||
|
||||
// [D]
|
||||
void DrawProximityBar(_PERCENTAGE_BAR *bar)
|
||||
void DrawProximityBar(PERCENTAGE_BAR *bar)
|
||||
{
|
||||
int iVar3;
|
||||
TILE *tile;
|
||||
@ -669,13 +669,13 @@ void DrawProximityBar(_PERCENTAGE_BAR *bar)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ SetColourByValue(struct COLOUR_BAND *pColourBand /*$a3*/, int value /*$a1*/, struct CVECTOR *pOut /*$t0*/)
|
||||
// void /*$ra*/ SetColourByValue(COLOUR_BAND *pColourBand /*$a3*/, int value /*$a1*/, CVECTOR *pOut /*$t0*/)
|
||||
// line 631, offset 0x00015f6c
|
||||
/* begin block 1 */
|
||||
// Start line: 632
|
||||
// Start offset: 0x00015F6C
|
||||
// Variables:
|
||||
// struct COLOUR_BAND *pPrevColourBand; // $a2
|
||||
// COLOUR_BAND *pPrevColourBand; // $a2
|
||||
// int scale; // $a0
|
||||
// int temp; // $a1
|
||||
/* end block 1 */
|
||||
@ -740,7 +740,7 @@ void SetColourByValue(COLOUR_BAND *pColourBand, int value, CVECTOR *pOut)
|
||||
// Start line: 670
|
||||
// Start offset: 0x00016098
|
||||
// Variables:
|
||||
// struct DR_TPAGE *null; // $a2
|
||||
// DR_TPAGE *null; // $a2
|
||||
/* end block 1 */
|
||||
// End offset: 0x00016114
|
||||
// End Line: 676
|
||||
@ -842,7 +842,7 @@ void UpdateFlashValue(void)
|
||||
// Start line: 709
|
||||
// Start offset: 0x000157F4
|
||||
// Variables:
|
||||
// struct SCORE_ENTRY *table; // $s1
|
||||
// SCORE_ENTRY *table; // $s1
|
||||
// char string[32]; // stack offset -64
|
||||
// int i; // $s1
|
||||
// int x; // $s3
|
||||
|
@ -1,11 +1,11 @@
|
||||
#ifndef OVERLAY_H
|
||||
#define OVERLAY_H
|
||||
|
||||
extern _PERCENTAGE_BAR PlayerDamageBar;
|
||||
extern _PERCENTAGE_BAR Player2DamageBar;
|
||||
extern _PERCENTAGE_BAR DamageBar;
|
||||
extern _PERCENTAGE_BAR FelonyBar;
|
||||
extern _PERCENTAGE_BAR ProxyBar;
|
||||
extern PERCENTAGE_BAR PlayerDamageBar;
|
||||
extern PERCENTAGE_BAR Player2DamageBar;
|
||||
extern PERCENTAGE_BAR DamageBar;
|
||||
extern PERCENTAGE_BAR FelonyBar;
|
||||
extern PERCENTAGE_BAR ProxyBar;
|
||||
|
||||
extern char OverlayFlashValue;
|
||||
|
||||
@ -15,15 +15,15 @@ extern void DisplayOverlays(); // 0x00014C3C
|
||||
|
||||
extern void SetFullscreenDrawing(); // 0x00015E70
|
||||
|
||||
extern void InitPercentageBar(struct _PERCENTAGE_BAR *bar, int size, struct COLOUR_BAND *pColourBand, char *tag); // 0x00015F20
|
||||
extern void InitPercentageBar(PERCENTAGE_BAR *bar, int size, COLOUR_BAND *pColourBand, char *tag); // 0x00015F20
|
||||
|
||||
extern void EnablePercentageBar(struct _PERCENTAGE_BAR *bar, int max); // 0x00015F58
|
||||
extern void EnablePercentageBar(PERCENTAGE_BAR *bar, int max); // 0x00015F58
|
||||
|
||||
extern void DrawPercentageBar(struct _PERCENTAGE_BAR *bar); // 0x00014DA8
|
||||
extern void DrawPercentageBar(PERCENTAGE_BAR *bar); // 0x00014DA8
|
||||
|
||||
extern void DrawProximityBar(struct _PERCENTAGE_BAR *bar); // 0x000152D4
|
||||
extern void DrawProximityBar(PERCENTAGE_BAR *bar); // 0x000152D4
|
||||
|
||||
extern void SetColourByValue(struct COLOUR_BAND *pColourBand, int value, struct CVECTOR *pOut); // 0x00015F6C
|
||||
extern void SetColourByValue(COLOUR_BAND *pColourBand, int value, CVECTOR *pOut); // 0x00015F6C
|
||||
|
||||
extern void TransparencyOn(void *potz, unsigned short tpage); // 0x00016098
|
||||
|
||||
|
@ -116,14 +116,14 @@ static int gUseRotatedMap = 0;
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DrawTargetBlip(struct VECTOR *pos /*$t0*/, unsigned char r /*$s2*/, unsigned char g /*$s3*/, unsigned char b /*$s4*/, unsigned long flags /*stack 16*/)
|
||||
// void /*$ra*/ DrawTargetBlip(VECTOR *pos /*$t0*/, unsigned char r /*$s2*/, unsigned char g /*$s3*/, unsigned char b /*$s4*/, unsigned long flags /*stack 16*/)
|
||||
// line 685, offset 0x00016280
|
||||
/* begin block 1 */
|
||||
// Start line: 686
|
||||
// Start offset: 0x00016280
|
||||
// Variables:
|
||||
// struct POLY_FT4 *poly; // $t0
|
||||
// struct VECTOR vec; // stack offset -40
|
||||
// POLY_FT4 *poly; // $t0
|
||||
// VECTOR vec; // stack offset -40
|
||||
// int ysize; // $a2
|
||||
/* end block 1 */
|
||||
// End offset: 0x00016558
|
||||
@ -246,16 +246,16 @@ void DrawTargetBlip(VECTOR *pos, unsigned char r, unsigned char g, unsigned char
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DrawTargetArrow(struct VECTOR *pos /*$a2*/, unsigned long flags /*$s3*/)
|
||||
// void /*$ra*/ DrawTargetArrow(VECTOR *pos /*$a2*/, unsigned long flags /*$s3*/)
|
||||
// line 815, offset 0x00016578
|
||||
/* begin block 1 */
|
||||
// Start line: 816
|
||||
// Start offset: 0x00016578
|
||||
// Variables:
|
||||
// struct VECTOR vec; // stack offset -56
|
||||
// struct VECTOR vec2; // stack offset -40
|
||||
// struct POLY_FT3 *null; // $t1
|
||||
// struct POLY_G3 *poly; // $s2
|
||||
// VECTOR vec; // stack offset -56
|
||||
// VECTOR vec2; // stack offset -40
|
||||
// POLY_FT3 *null; // $t1
|
||||
// POLY_G3 *poly; // $s2
|
||||
// int dx; // $s1
|
||||
// int dy; // $s0
|
||||
/* end block 1 */
|
||||
@ -371,18 +371,18 @@ void DrawTargetArrow(VECTOR *pos, ulong flags)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DrawPlayerDot(struct VECTOR *pos /*$a1*/, short rot /*$s2*/, unsigned char r /*$s5*/, unsigned char g /*$s4*/, int b /*stack 16*/, unsigned long flags /*stack 20*/)
|
||||
// void /*$ra*/ DrawPlayerDot(VECTOR *pos /*$a1*/, short rot /*$s2*/, unsigned char r /*$s5*/, unsigned char g /*$s4*/, int b /*stack 16*/, unsigned long flags /*stack 20*/)
|
||||
// line 883, offset 0x00016814
|
||||
/* begin block 1 */
|
||||
// Start line: 884
|
||||
// Start offset: 0x00016814
|
||||
// Variables:
|
||||
// struct MATRIX matrix; // stack offset -168
|
||||
// struct VECTOR direction; // stack offset -136
|
||||
// struct SVECTOR apos[3]; // stack offset -120
|
||||
// struct VECTOR opos[3]; // stack offset -96
|
||||
// struct POLY_F3 *poly; // $t0
|
||||
// struct VECTOR vec; // stack offset -48
|
||||
// MATRIX matrix; // stack offset -168
|
||||
// VECTOR direction; // stack offset -136
|
||||
// SVECTOR apos[3]; // stack offset -120
|
||||
// VECTOR opos[3]; // stack offset -96
|
||||
// POLY_F3 *poly; // $t0
|
||||
// VECTOR vec; // stack offset -48
|
||||
/* end block 1 */
|
||||
// End offset: 0x00016AC4
|
||||
// End Line: 946
|
||||
@ -501,7 +501,7 @@ void DrawPlayerDot(VECTOR *pos, short rot, unsigned char r, unsigned char g, int
|
||||
// Start line: 955
|
||||
// Start offset: 0x00016AE8
|
||||
// Variables:
|
||||
// struct TEXTURE_DETAILS info; // stack offset -32
|
||||
// TEXTURE_DETAILS info; // stack offset -32
|
||||
// int i; // $a1
|
||||
// int x; // $v0
|
||||
// int y; // $a0
|
||||
@ -553,13 +553,13 @@ void ProcessOverlayLump(char *lump_ptr, int lump_size)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// unsigned long /*$ra*/ Long2DDistance(struct VECTOR *pPoint1 /*$a0*/, struct VECTOR *pPoint2 /*$a2*/)
|
||||
// unsigned long /*$ra*/ Long2DDistance(VECTOR *pPoint1 /*$a0*/, VECTOR *pPoint2 /*$a2*/)
|
||||
// line 994, offset 0x00016c0c
|
||||
/* begin block 1 */
|
||||
// Start line: 995
|
||||
// Start offset: 0x00016C0C
|
||||
// Variables:
|
||||
// struct VECTOR delta; // stack offset -24
|
||||
// VECTOR delta; // stack offset -24
|
||||
// unsigned int result; // $v0
|
||||
|
||||
/* begin block 1.1 */
|
||||
@ -736,15 +736,15 @@ void InitOverheadMap(void)
|
||||
// int MeshWidth; // $s6
|
||||
// int MeshHeight; // $s7
|
||||
// long flag; // stack offset -104
|
||||
// struct SVECTOR MapMesh[5][5]; // stack offset -784
|
||||
// struct VECTOR MapMeshO[5][5]; // stack offset -584
|
||||
// struct MAPTEX MapTex[4]; // stack offset -184
|
||||
// struct SVECTOR direction; // stack offset -152
|
||||
// struct POLY_FT4 *spt; // $a3
|
||||
// struct POLY_F4 *sptb; // $a0
|
||||
// struct DR_AREA *draw_area; // $s2
|
||||
// struct RECT clipped_size; // stack offset -144
|
||||
// struct VECTOR translate; // stack offset -136
|
||||
// SVECTOR MapMesh[5][5]; // stack offset -784
|
||||
// VECTOR MapMeshO[5][5]; // stack offset -584
|
||||
// MAPTEX MapTex[4]; // stack offset -184
|
||||
// SVECTOR direction; // stack offset -152
|
||||
// POLY_FT4 *spt; // $a3
|
||||
// POLY_F4 *sptb; // $a0
|
||||
// DR_AREA *draw_area; // $s2
|
||||
// RECT clipped_size; // stack offset -144
|
||||
// VECTOR translate; // stack offset -136
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 1112
|
||||
@ -773,8 +773,8 @@ void InitOverheadMap(void)
|
||||
// Start line: 1139
|
||||
// Start offset: 0x00016FA8
|
||||
// Variables:
|
||||
// struct VECTOR vec; // stack offset -120
|
||||
// struct TILE_1 *tile1; // $a0
|
||||
// VECTOR vec; // stack offset -120
|
||||
// TILE_1 *tile1; // $a0
|
||||
/* end block 1.3.1 */
|
||||
// End offset: 0x000170F4
|
||||
// End Line: 1142
|
||||
@ -786,7 +786,7 @@ void InitOverheadMap(void)
|
||||
// Start line: 1146
|
||||
// Start offset: 0x000170F4
|
||||
// Variables:
|
||||
// struct _CAR_DATA *cp; // $s0
|
||||
// CAR_DATA *cp; // $s0
|
||||
/* end block 1.4 */
|
||||
// End offset: 0x00017218
|
||||
// End Line: 1161
|
||||
@ -874,7 +874,7 @@ void DrawOverheadMap(void)
|
||||
SVECTOR *pSVar21;
|
||||
char cVar22;
|
||||
SVECTOR *v0;
|
||||
_CAR_DATA *cp;
|
||||
CAR_DATA *cp;
|
||||
char *pcVar24;
|
||||
char *pbVar25;
|
||||
VECTOR *v1;
|
||||
@ -1330,12 +1330,12 @@ LAB_00016fac:
|
||||
// Start line: 1376
|
||||
// Start offset: 0x00017C30
|
||||
// Variables:
|
||||
// struct TILE *polys; // $v0
|
||||
// struct POLY_FT4 *back; // $a1
|
||||
// struct POLY_FT3 *null; // $a2
|
||||
// struct SVECTOR Mesh[4]; // stack offset -192
|
||||
// struct VECTOR MeshO[4]; // stack offset -160
|
||||
// struct VECTOR target; // stack offset -96
|
||||
// TILE *polys; // $v0
|
||||
// POLY_FT4 *back; // $a1
|
||||
// POLY_FT3 *null; // $a2
|
||||
// SVECTOR Mesh[4]; // stack offset -192
|
||||
// VECTOR MeshO[4]; // stack offset -160
|
||||
// VECTOR target; // stack offset -96
|
||||
// long flag; // stack offset -64
|
||||
// long count; // $s4
|
||||
// int width; // stack offset -60
|
||||
@ -1374,8 +1374,8 @@ LAB_00016fac:
|
||||
// Start line: 1620
|
||||
// Start offset: 0x000182B0
|
||||
// Variables:
|
||||
// struct VECTOR vec; // stack offset -80
|
||||
// struct TILE_1 *tile1; // $v1
|
||||
// VECTOR vec; // stack offset -80
|
||||
// TILE_1 *tile1; // $v1
|
||||
/* end block 1.3.1 */
|
||||
// End offset: 0x000182B0
|
||||
// End Line: 1620
|
||||
@ -1710,7 +1710,7 @@ LAB_00017f8c:
|
||||
// Start offset: 0x000183E8
|
||||
// Variables:
|
||||
// static int ft[16]; // offset 0x188
|
||||
// struct _CAR_DATA *cp; // $s0
|
||||
// CAR_DATA *cp; // $s0
|
||||
// int fade; // $s1
|
||||
// int cc; // $s3
|
||||
// int cs; // $s2
|
||||
@ -1769,7 +1769,7 @@ void DrawCopIndicators(void)
|
||||
int iVar4;
|
||||
int iVar5;
|
||||
int iVar6;
|
||||
_CAR_DATA *cp;
|
||||
CAR_DATA *cp;
|
||||
|
||||
sVar1 = rcossin_tbl[(player[0].dir & 0xfffU) * 2 + 1];
|
||||
sVar2 = rcossin_tbl[(player[0].dir & 0xfffU) * 2];
|
||||
@ -1814,7 +1814,7 @@ void DrawCopIndicators(void)
|
||||
// Start line: 1680
|
||||
// Start offset: 0x000198E0
|
||||
// Variables:
|
||||
// struct RECT rect; // stack offset -48
|
||||
// RECT rect; // stack offset -48
|
||||
// char filename[32]; // stack offset -40
|
||||
/* end block 1 */
|
||||
// End offset: 0x00019994
|
||||
@ -1871,9 +1871,9 @@ void InitMultiplayerMap(void)
|
||||
// Start line: 1699
|
||||
// Start offset: 0x000185A0
|
||||
// Variables:
|
||||
// struct POLY_FT4 *poly; // $a2
|
||||
// struct LINE_F2 *line2; // $s1
|
||||
// struct VECTOR target; // stack offset -64
|
||||
// POLY_FT4 *poly; // $a2
|
||||
// LINE_F2 *line2; // $s1
|
||||
// VECTOR target; // stack offset -64
|
||||
// int i; // $s3
|
||||
// int y; // $s7
|
||||
/* end block 1 */
|
||||
@ -1910,7 +1910,7 @@ void DrawMultiplayerMap(void)
|
||||
ulong *puVar4;
|
||||
POLY_FT4 *poly;
|
||||
char *pcVar5;
|
||||
_PLAYER *pPVar6;
|
||||
PLAYER *pPVar6;
|
||||
int iVar7;
|
||||
char *pcVar8;
|
||||
unsigned char g;
|
||||
@ -2034,7 +2034,7 @@ void DrawMultiplayerMap(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ WorldToMultiplayerMap(struct VECTOR *in /*$a3*/, struct VECTOR *out /*$a2*/)
|
||||
// void /*$ra*/ WorldToMultiplayerMap(VECTOR *in /*$a3*/, VECTOR *out /*$a2*/)
|
||||
// line 1778, offset 0x00019994
|
||||
/* begin block 1 */
|
||||
// Start line: 1779
|
||||
@ -2184,7 +2184,7 @@ void ProcessPalletLump(char *lump_ptr, int lump_size)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ load_civ_palettes(struct RECT *cluts /*$a0*/)
|
||||
// void /*$ra*/ load_civ_palettes(RECT *cluts /*$a0*/)
|
||||
// line 2043, offset 0x0001a094
|
||||
/* begin block 1 */
|
||||
// Start line: 8350
|
||||
@ -2216,7 +2216,7 @@ void load_civ_palettes(RECT16 *cluts)
|
||||
// Start line: 2321
|
||||
// Start offset: 0x00018980
|
||||
// Variables:
|
||||
// struct TILE *tile; // $a3
|
||||
// TILE *tile; // $a3
|
||||
/* end block 1 */
|
||||
// End offset: 0x00018AA0
|
||||
// End Line: 2341
|
||||
@ -2292,7 +2292,7 @@ void FlashOverheadMap(int r, int g, int b)
|
||||
// Start line: 2351
|
||||
// Start offset: 0x00018AA0
|
||||
// Variables:
|
||||
// struct RECT MapSegment; // stack offset -16
|
||||
// RECT MapSegment; // stack offset -16
|
||||
// int temp; // $a0
|
||||
// int count; // $a2
|
||||
// int idx; // $a3
|
||||
@ -2395,8 +2395,8 @@ void SetMapPos(void)
|
||||
// Start line: 2407
|
||||
// Start offset: 0x00018BF4
|
||||
// Variables:
|
||||
// struct LINE_F4 *line4; // $s0
|
||||
// struct LINE_F2 *line2; // $s1
|
||||
// LINE_F4 *line4; // $s0
|
||||
// LINE_F2 *line2; // $s1
|
||||
/* end block 1 */
|
||||
// End offset: 0x00018D54
|
||||
// End Line: 2427
|
||||
@ -2468,21 +2468,21 @@ void draw_box(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DrawN(struct VECTOR *pScreenPosition /*$s2*/, int direct /*$s7*/)
|
||||
// void /*$ra*/ DrawN(VECTOR *pScreenPosition /*$s2*/, int direct /*$s7*/)
|
||||
// line 2435, offset 0x00018d54
|
||||
/* begin block 1 */
|
||||
// Start line: 2436
|
||||
// Start offset: 0x00018D54
|
||||
// Variables:
|
||||
// struct XYPAIR lastPoint; // stack offset -48
|
||||
// struct XYPAIR *pPoint; // $s0
|
||||
// XYPAIR lastPoint; // stack offset -48
|
||||
// XYPAIR *pPoint; // $s0
|
||||
// char loop; // $s4
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 2446
|
||||
// Start offset: 0x00018DC4
|
||||
// Variables:
|
||||
// struct LINE_F2 *pLine; // $a2
|
||||
// LINE_F2 *pLine; // $a2
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x00018EC4
|
||||
// End Line: 2469
|
||||
@ -2574,8 +2574,8 @@ void DrawN(VECTOR *pScreenPosition, int direct)
|
||||
// Start line: 2481
|
||||
// Start offset: 0x00018F18
|
||||
// Variables:
|
||||
// struct VECTOR position[5]; // stack offset -88
|
||||
// struct XYPAIR *pNorth; // $a1
|
||||
// VECTOR position[5]; // stack offset -88
|
||||
// XYPAIR *pNorth; // $a1
|
||||
// int scale; // $a0
|
||||
|
||||
/* begin block 1.1 */
|
||||
@ -2583,14 +2583,14 @@ void DrawN(VECTOR *pScreenPosition, int direct)
|
||||
// Start offset: 0x00018F18
|
||||
// Variables:
|
||||
// char loop; // $t2
|
||||
// struct VECTOR *pPosition; // $a3
|
||||
// VECTOR *pPosition; // $a3
|
||||
// void *pot; // $s0
|
||||
|
||||
/* begin block 1.1.1 */
|
||||
// Start line: 2511
|
||||
// Start offset: 0x000190B8
|
||||
// Variables:
|
||||
// struct LINE_G2 *pLine; // $a0
|
||||
// LINE_G2 *pLine; // $a0
|
||||
/* end block 1.1.1 */
|
||||
// End offset: 0x000190B8
|
||||
// End Line: 2511
|
||||
@ -2696,21 +2696,21 @@ void DrawCompass(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DrawBigCompass(struct VECTOR *root /*$a0*/, int angle /*$a1*/)
|
||||
// void /*$ra*/ DrawBigCompass(VECTOR *root /*$a0*/, int angle /*$a1*/)
|
||||
// line 2534, offset 0x00019194
|
||||
/* begin block 1 */
|
||||
// Start line: 2535
|
||||
// Start offset: 0x00019194
|
||||
// Variables:
|
||||
// struct VECTOR position[5]; // stack offset -96
|
||||
// struct VECTOR *pPosition; // $s0
|
||||
// VECTOR position[5]; // stack offset -96
|
||||
// VECTOR *pPosition; // $s0
|
||||
// char loop; // $s1
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 2557
|
||||
// Start offset: 0x00019300
|
||||
// Variables:
|
||||
// struct LINE_G2 *pLine; // $a1
|
||||
// LINE_G2 *pLine; // $a1
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x00019300
|
||||
// End Line: 2557
|
||||
@ -2812,7 +2812,7 @@ void DrawBigCompass(VECTOR *root, int angle)
|
||||
// Start line: 2578
|
||||
// Start offset: 0x000193B4
|
||||
// Variables:
|
||||
// struct POLY_F3 *tri; // $a2
|
||||
// POLY_F3 *tri; // $a2
|
||||
// int str2; // $fp
|
||||
// void *pot; // stack offset -56
|
||||
/* end block 1 */
|
||||
@ -2896,14 +2896,14 @@ void CopIndicator(int xpos, int strength)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DrawSightCone(struct COP_SIGHT_DATA *pCopSightData /*$a0*/, struct VECTOR *pPosition /*$a1*/, int direction /*$t6*/)
|
||||
// void /*$ra*/ DrawSightCone(COP_SIGHT_DATA *pCopSightData /*$a0*/, VECTOR *pPosition /*$a1*/, int direction /*$t6*/)
|
||||
// line 2609, offset 0x00019594
|
||||
/* begin block 1 */
|
||||
// Start line: 2610
|
||||
// Start offset: 0x00019594
|
||||
// Variables:
|
||||
// struct VECTOR vertex[9]; // stack offset -160
|
||||
// struct VECTOR *pVertex; // $t0
|
||||
// VECTOR vertex[9]; // stack offset -160
|
||||
// VECTOR *pVertex; // $t0
|
||||
// int angle; // $a3
|
||||
// int frontViewAngle; // $t1
|
||||
// int negFrontViewAngle; // $a2
|
||||
@ -2932,15 +2932,15 @@ void CopIndicator(int xpos, int strength)
|
||||
// Start line: 2643
|
||||
// Start offset: 0x0001966C
|
||||
// Variables:
|
||||
// struct VECTOR *pVertex; // $a2
|
||||
// VECTOR *pVertex; // $a2
|
||||
// void *pot; // $a3
|
||||
|
||||
/* begin block 1.2.1 */
|
||||
// Start line: 2651
|
||||
// Start offset: 0x000196B8
|
||||
// Variables:
|
||||
// struct POLY_G3 *poly; // $a1
|
||||
// struct VECTOR *pNextVertex; // $a0
|
||||
// POLY_G3 *poly; // $a1
|
||||
// VECTOR *pNextVertex; // $a0
|
||||
/* end block 1.2.1 */
|
||||
// End offset: 0x000196DC
|
||||
// End Line: 2659
|
||||
@ -3053,13 +3053,13 @@ void DrawSightCone(COP_SIGHT_DATA *pCopSightData, VECTOR *pPosition, int directi
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ WorldToOverheadMapPositions(struct VECTOR *pGlobalPosition /*$s1*/, struct VECTOR *pOverheadMapPosition /*$s3*/, int count /*$s2*/, char inputRelative /*$s5*/, int outputRelative /*stack 16*/)
|
||||
// void /*$ra*/ WorldToOverheadMapPositions(VECTOR *pGlobalPosition /*$s1*/, VECTOR *pOverheadMapPosition /*$s3*/, int count /*$s2*/, char inputRelative /*$s5*/, int outputRelative /*stack 16*/)
|
||||
// line 2703, offset 0x00019af0
|
||||
/* begin block 1 */
|
||||
// Start line: 2704
|
||||
// Start offset: 0x00019AF0
|
||||
// Variables:
|
||||
// struct MATRIX TempMatrix; // stack offset -80
|
||||
// MATRIX TempMatrix; // stack offset -80
|
||||
// int sin; // $a1
|
||||
// int cos; // $a2
|
||||
// int angle; // $v1
|
||||
@ -3069,7 +3069,7 @@ void DrawSightCone(COP_SIGHT_DATA *pCopSightData, VECTOR *pPosition, int directi
|
||||
// Start line: 2745
|
||||
// Start offset: 0x00019C20
|
||||
// Variables:
|
||||
// struct SVECTOR tempVector; // stack offset -48
|
||||
// SVECTOR tempVector; // stack offset -48
|
||||
// long flag; // stack offset -40
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x00019CC0
|
||||
@ -3154,8 +3154,8 @@ void WorldToOverheadMapPositions(VECTOR *pGlobalPosition, VECTOR *pOverheadMapPo
|
||||
// Start line: 2773
|
||||
// Start offset: 0x00019D0C
|
||||
// Variables:
|
||||
// struct VECTOR translate; // stack offset -32
|
||||
// struct SVECTOR direction; // stack offset -16
|
||||
// VECTOR translate; // stack offset -32
|
||||
// SVECTOR direction; // stack offset -16
|
||||
/* end block 1 */
|
||||
// End offset: 0x00019DE8
|
||||
// End Line: 2787
|
||||
@ -3203,7 +3203,7 @@ void SetFullscreenMapMatrix(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ WorldToFullscreenMap(struct VECTOR *in /*$a0*/, struct VECTOR *out /*$a1*/)
|
||||
// void /*$ra*/ WorldToFullscreenMap(VECTOR *in /*$a0*/, VECTOR *out /*$a1*/)
|
||||
// line 2794, offset 0x00019de8
|
||||
/* begin block 1 */
|
||||
// Start line: 8983
|
||||
@ -3232,13 +3232,13 @@ void WorldToFullscreenMap(VECTOR *in, VECTOR *out)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ WorldToFullscreenMap2(struct VECTOR *in /*$a0*/, struct VECTOR *out /*$a1*/)
|
||||
// void /*$ra*/ WorldToFullscreenMap2(VECTOR *in /*$a0*/, VECTOR *out /*$a1*/)
|
||||
// line 2806, offset 0x00019e7c
|
||||
/* begin block 1 */
|
||||
// Start line: 2807
|
||||
// Start offset: 0x00019E7C
|
||||
// Variables:
|
||||
// struct SVECTOR pos; // stack offset -24
|
||||
// SVECTOR pos; // stack offset -24
|
||||
// long flag; // stack offset -16
|
||||
/* end block 1 */
|
||||
// End offset: 0x00019F44
|
||||
|
@ -64,7 +64,7 @@ DUPLICATION DuplicatePadData; // [A]
|
||||
void InitControllers(void)
|
||||
{
|
||||
int i, j;
|
||||
struct PAD* pad;
|
||||
PAD* pad;
|
||||
|
||||
DuplicatePadData.buffer = NULL;
|
||||
DuplicatePadData.size = 0;
|
||||
@ -354,7 +354,7 @@ void SetDuplicatePadData(char *buffer, int size)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ MapPad(int pad /*$t2*/, struct PADRAW *pData /*$a3*/)
|
||||
// void /*$ra*/ MapPad(int pad /*$t2*/, PADRAW *pData /*$a3*/)
|
||||
// line 257, offset 0x0006b6f0
|
||||
/* begin block 1 */
|
||||
// Start line: 258
|
||||
|
@ -52,7 +52,7 @@ extern void StopDualShockMotors(); // 0x0006BEEC
|
||||
|
||||
extern void SetDuplicatePadData(char *buffer, int size); // 0x0006BEF4
|
||||
|
||||
extern void MapPad(int pad, struct PADRAW *pData); // 0x0006B6F0
|
||||
extern void MapPad(int pad, PADRAW *pData); // 0x0006B6F0
|
||||
|
||||
extern void ClearPad(int pad); // 0x0006BF24
|
||||
|
||||
|
@ -190,14 +190,14 @@ void DebugDisplayObstacleMap()
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// struct tNode /*$ra*/ popNode()
|
||||
// tNode /*$ra*/ popNode()
|
||||
// line 314, offset 0x000e7000
|
||||
/* begin block 1 */
|
||||
// Start line: 315
|
||||
// Start offset: 0x000E7000
|
||||
// Variables:
|
||||
// unsigned int lNumHeapEntries; // $s0
|
||||
// struct tNode res; // stack offset -24
|
||||
// tNode res; // stack offset -24
|
||||
// unsigned short f; // $t8
|
||||
// unsigned int child; // $a1
|
||||
// unsigned int here; // $t5
|
||||
@ -295,7 +295,7 @@ tNode* popNode(tNode* __return_storage_ptr__)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ WunCell(struct VECTOR *pbase /*$s0*/)
|
||||
// void /*$ra*/ WunCell(VECTOR *pbase /*$s0*/)
|
||||
// line 426, offset 0x000e7194
|
||||
/* begin block 1 */
|
||||
// Start line: 427
|
||||
@ -303,8 +303,8 @@ tNode* popNode(tNode* __return_storage_ptr__)
|
||||
// Variables:
|
||||
// int i; // $s2
|
||||
// int j; // $s4
|
||||
// struct VECTOR v[2]; // stack offset -88
|
||||
// struct VECTOR pos; // stack offset -56
|
||||
// VECTOR v[2]; // stack offset -88
|
||||
// VECTOR pos; // stack offset -56
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 440
|
||||
@ -414,7 +414,7 @@ void WunCell(VECTOR* pbase)
|
||||
// Start line: 455
|
||||
// Start offset: 0x000E735C
|
||||
// Variables:
|
||||
// struct VECTOR bPos; // stack offset -16
|
||||
// VECTOR bPos; // stack offset -16
|
||||
// int count; // $t4
|
||||
// int dir; // $t1
|
||||
// int p; // $t2
|
||||
@ -560,7 +560,7 @@ void InvalidateMap(void)
|
||||
// Start line: 497
|
||||
// Start offset: 0x000E74B0
|
||||
// Variables:
|
||||
// struct VECTOR bPos; // stack offset -48
|
||||
// VECTOR bPos; // stack offset -48
|
||||
// int count; // $s4
|
||||
// int dir; // $s0
|
||||
// int p; // $s1
|
||||
@ -709,13 +709,13 @@ void BloodyHell(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ blocked(struct tNode *v1 /*$a3*/, struct tNode *v2 /*$a2*/)
|
||||
// int /*$ra*/ blocked(tNode *v1 /*$a3*/, tNode *v2 /*$a2*/)
|
||||
// line 567, offset 0x000e76c4
|
||||
/* begin block 1 */
|
||||
// Start line: 568
|
||||
// Start offset: 0x000E76C4
|
||||
// Variables:
|
||||
// struct VECTOR pos; // stack offset -24
|
||||
// VECTOR pos; // stack offset -24
|
||||
// int res; // $a0
|
||||
|
||||
/* begin block 1.1 */
|
||||
@ -785,7 +785,7 @@ int blocked(tNode* v1, tNode* v2)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ setDistance(struct tNode *n /*$a0*/, unsigned short dist /*$a1*/)
|
||||
// void /*$ra*/ setDistance(tNode *n /*$a0*/, unsigned short dist /*$a1*/)
|
||||
// line 659, offset 0x000e90a4
|
||||
/* begin block 1 */
|
||||
// Start line: 1316
|
||||
@ -816,8 +816,8 @@ void setDistance(tNode* n, ushort dist)
|
||||
// Start offset: 0x000E7814
|
||||
// Variables:
|
||||
// int dir; // $s2
|
||||
// struct tNode itHere; // stack offset -48
|
||||
// struct tNode *nbr; // $s4
|
||||
// tNode itHere; // stack offset -48
|
||||
// tNode *nbr; // $s4
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 724
|
||||
@ -891,7 +891,7 @@ void setDistance(tNode* n, ushort dist)
|
||||
// Start line: 773
|
||||
// Start offset: 0x000E7AAC
|
||||
// Variables:
|
||||
// struct tNode *pnode; // $s0
|
||||
// tNode *pnode; // $s0
|
||||
|
||||
/* begin block 1.2.2.1 */
|
||||
// Start line: 773
|
||||
@ -1143,13 +1143,13 @@ void InitPathFinding(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ getInterpolatedDistance(struct VECTOR *pos /*$s2*/)
|
||||
// int /*$ra*/ getInterpolatedDistance(VECTOR *pos /*$s2*/)
|
||||
// line 821, offset 0x000e7ca8
|
||||
/* begin block 1 */
|
||||
// Start line: 822
|
||||
// Start offset: 0x000E7CA8
|
||||
// Variables:
|
||||
// struct tNode n; // stack offset -72
|
||||
// tNode n; // stack offset -72
|
||||
// int fx; // $s4
|
||||
// int fz; // $s5
|
||||
// int a; // $s3
|
||||
@ -1162,8 +1162,8 @@ void InitPathFinding(void)
|
||||
// Start line: 822
|
||||
// Start offset: 0x000E7CA8
|
||||
// Variables:
|
||||
// struct VECTOR *where; // $s2
|
||||
// struct tNode *node; // $s0
|
||||
// VECTOR *where; // $s2
|
||||
// tNode *node; // $s0
|
||||
|
||||
/* begin block 1.1.1 */
|
||||
// Start line: 822
|
||||
@ -1175,13 +1175,13 @@ void InitPathFinding(void)
|
||||
// Start line: 822
|
||||
// Start offset: 0x000E7CA8
|
||||
// Variables:
|
||||
// struct tNode *pos; // $s0
|
||||
// tNode *pos; // $s0
|
||||
|
||||
/* begin block 1.1.1.1.1 */
|
||||
// Start line: 822
|
||||
// Start offset: 0x000E7CA8
|
||||
// Variables:
|
||||
// struct VECTOR sp; // stack offset -56
|
||||
// VECTOR sp; // stack offset -56
|
||||
|
||||
/* begin block 1.1.1.1.1.1 */
|
||||
// Start line: 822
|
||||
@ -1245,7 +1245,7 @@ void InitPathFinding(void)
|
||||
// Start line: 822
|
||||
// Start offset: 0x000E7DA0
|
||||
// Variables:
|
||||
// struct VECTOR sp; // stack offset -56
|
||||
// VECTOR sp; // stack offset -56
|
||||
|
||||
/* begin block 1.3.1.1 */
|
||||
// Start line: 822
|
||||
@ -1303,7 +1303,7 @@ void InitPathFinding(void)
|
||||
// Start line: 848
|
||||
// Start offset: 0x000E7F28
|
||||
// Variables:
|
||||
// struct VECTOR sp; // stack offset -56
|
||||
// VECTOR sp; // stack offset -56
|
||||
|
||||
/* begin block 1.5.1.1 */
|
||||
// Start line: 848
|
||||
@ -1361,7 +1361,7 @@ void InitPathFinding(void)
|
||||
// Start line: 864
|
||||
// Start offset: 0x000E807C
|
||||
// Variables:
|
||||
// struct VECTOR sp; // stack offset -56
|
||||
// VECTOR sp; // stack offset -56
|
||||
|
||||
/* begin block 1.7.1.1 */
|
||||
// Start line: 864
|
||||
@ -1588,7 +1588,7 @@ int getInterpolatedDistance(VECTOR* pos)
|
||||
// Start line: 893
|
||||
// Start offset: 0x000E822C
|
||||
// Variables:
|
||||
// struct _CAR_DATA *cp; // $t5
|
||||
// CAR_DATA *cp; // $t5
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 898
|
||||
@ -1656,7 +1656,7 @@ void addCivs(void)
|
||||
int rx, rz;
|
||||
int x, z, vx, vz;
|
||||
int vx2, vz2;
|
||||
_CAR_DATA* cp;
|
||||
CAR_DATA* cp;
|
||||
|
||||
cp = car_data;
|
||||
do {
|
||||
@ -1712,13 +1712,13 @@ void addCivs(void)
|
||||
// Start line: 946
|
||||
// Start offset: 0x000E83FC
|
||||
// Variables:
|
||||
// struct tNode startNode; // stack offset -72
|
||||
// tNode startNode; // stack offset -72
|
||||
|
||||
/* begin block 1.2.1 */
|
||||
// Start line: 952
|
||||
// Start offset: 0x000E843C
|
||||
// Variables:
|
||||
// struct _CAR_DATA *cp; // $a0
|
||||
// CAR_DATA *cp; // $a0
|
||||
/* end block 1.2.1 */
|
||||
// End offset: 0x000E843C
|
||||
// End Line: 952
|
||||
@ -1780,7 +1780,7 @@ void addCivs(void)
|
||||
// Start line: 934
|
||||
// Start offset: 0x000E8564
|
||||
// Variables:
|
||||
// struct VECTOR sp; // stack offset -56
|
||||
// VECTOR sp; // stack offset -56
|
||||
|
||||
/* begin block 1.2.3.1.1.1.1 */
|
||||
// Start line: 934
|
||||
@ -1824,7 +1824,7 @@ void addCivs(void)
|
||||
// Start line: 934
|
||||
// Start offset: 0x000E862C
|
||||
// Variables:
|
||||
// struct tNode n; // stack offset -56
|
||||
// tNode n; // stack offset -56
|
||||
// int fx; // $v1
|
||||
// int fz; // $v0
|
||||
|
||||
@ -2158,7 +2158,7 @@ void UpdateCopMap(void)
|
||||
// restart from new search target position
|
||||
if (player[0].playerType == 1 && (CopsCanSeePlayer != 0 || numActiveCops == 0))
|
||||
{
|
||||
_CAR_DATA* cp;
|
||||
CAR_DATA* cp;
|
||||
cp = &car_data[player[0].playerCarId];
|
||||
|
||||
searchTarget.vx = cp->hd.where.t[0] + FIXEDH(cp->st.n.linearVelocity[0]) * 8;
|
||||
@ -2413,7 +2413,7 @@ void UpdateCopMap(void)
|
||||
// int d1; // $s2
|
||||
// int d2; // $s1
|
||||
// int d3; // $s0
|
||||
// struct VECTOR pos; // stack offset -48
|
||||
// VECTOR pos; // stack offset -48
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 1051
|
||||
|
@ -28,7 +28,7 @@ static int gScorePosition = 0;
|
||||
static int allownameentry = 0;
|
||||
|
||||
static MENU_ITEM* ActiveItem[3];
|
||||
static struct MENU_HEADER* ActiveMenu;
|
||||
static MENU_HEADER* ActiveMenu;
|
||||
static int ActiveMenuItem;
|
||||
static int VisibleMenu;
|
||||
static MENU_HEADER* VisibleMenus[3];
|
||||
@ -446,13 +446,13 @@ int playerwithcontrol[3] = { 0 };
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ ShowPauseMenu(enum PAUSEMODE mode /*$s0*/)
|
||||
// int /*$ra*/ ShowPauseMenu(PAUSEMODE mode /*$s0*/)
|
||||
// line 1004, offset 0x0006bf50
|
||||
/* begin block 1 */
|
||||
// Start line: 1005
|
||||
// Start offset: 0x0006BF50
|
||||
// Variables:
|
||||
// enum PAUSEMODE passed_mode; // $s2
|
||||
// PAUSEMODE passed_mode; // $s2
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 1062
|
||||
@ -465,7 +465,7 @@ int playerwithcontrol[3] = { 0 };
|
||||
// Start line: 1092
|
||||
// Start offset: 0x0006C178
|
||||
// Variables:
|
||||
// struct RECT rect; // stack offset -32
|
||||
// RECT rect; // stack offset -32
|
||||
/* end block 1.2 */
|
||||
// End offset: 0x0006C1FC
|
||||
// End Line: 1101
|
||||
@ -742,13 +742,13 @@ void EnterName(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ MaxMenuStringLength(struct MENU_HEADER *pMenu /*$v0*/)
|
||||
// int /*$ra*/ MaxMenuStringLength(MENU_HEADER *pMenu /*$v0*/)
|
||||
// line 1185, offset 0x0006da18
|
||||
/* begin block 1 */
|
||||
// Start line: 1186
|
||||
// Start offset: 0x0006DA18
|
||||
// Variables:
|
||||
// struct MENU_ITEM *pItems; // $s1
|
||||
// MENU_ITEM *pItems; // $s1
|
||||
// int max; // $s2
|
||||
// int temp; // $s0
|
||||
/* end block 1 */
|
||||
@ -790,13 +790,13 @@ int MaxMenuStringLength(MENU_HEADER *pMenu)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ InitaliseMenu(enum PAUSEMODE mode /*$a2*/)
|
||||
// void /*$ra*/ InitaliseMenu(PAUSEMODE mode /*$a2*/)
|
||||
// line 1216, offset 0x0006c2ac
|
||||
/* begin block 1 */
|
||||
// Start line: 1217
|
||||
// Start offset: 0x0006C2AC
|
||||
// Variables:
|
||||
// struct MENU_ITEM *pItem; // $a0
|
||||
// MENU_ITEM *pItem; // $a0
|
||||
// int i; // $a1
|
||||
/* end block 1 */
|
||||
// End offset: 0x0006C6B8
|
||||
@ -1004,13 +1004,13 @@ LAB_0006c5d0:
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ SetupMenu(struct MENU_HEADER *menu /*$a0*/, int back /*$a1*/)
|
||||
// void /*$ra*/ SetupMenu(MENU_HEADER *menu /*$a0*/, int back /*$a1*/)
|
||||
// line 1401, offset 0x0006c6b8
|
||||
/* begin block 1 */
|
||||
// Start line: 1402
|
||||
// Start offset: 0x0006C6B8
|
||||
// Variables:
|
||||
// struct MENU_ITEM *pItem; // $a2
|
||||
// MENU_ITEM *pItem; // $a2
|
||||
// int count; // $a3
|
||||
/* end block 1 */
|
||||
// End offset: 0x0006C7F4
|
||||
@ -1089,9 +1089,9 @@ void SetupMenu(MENU_HEADER *menu, int back)
|
||||
// Start line: 1445
|
||||
// Start offset: 0x0006C7F4
|
||||
// Variables:
|
||||
// struct MENU_HEADER *pActive; // $s5
|
||||
// struct MENU_ITEM *pItem; // $s1
|
||||
// struct POLY_FT3 *null; // $a0
|
||||
// MENU_HEADER *pActive; // $s5
|
||||
// MENU_ITEM *pItem; // $s1
|
||||
// POLY_FT3 *null; // $a0
|
||||
// int i; // stack offset -48
|
||||
// int ypos; // $s3
|
||||
// int xpos; // $fp
|
||||
@ -1676,7 +1676,7 @@ void MusicVolume(int direction)
|
||||
// Start line: 1789
|
||||
// Start offset: 0x0006D044
|
||||
// Variables:
|
||||
// struct SCORE_ENTRY *table; // stack offset -40
|
||||
// SCORE_ENTRY *table; // stack offset -40
|
||||
// char *username; // $s3
|
||||
// unsigned short npad; // $a1
|
||||
// int so; // $s0
|
||||
@ -1896,7 +1896,7 @@ void EnterScoreName(void)
|
||||
// Start line: 2021
|
||||
// Start offset: 0x0006D694
|
||||
// Variables:
|
||||
// struct POLY_FT3 *null; // $a0
|
||||
// POLY_FT3 *null; // $a0
|
||||
// char text[4]; // stack offset -48
|
||||
// unsigned char r; // $s3
|
||||
// unsigned char g; // $s5
|
||||
@ -1996,7 +1996,7 @@ void DrawHighScoreMenu(int selection)
|
||||
//* Stack frame base $sp, size 80
|
||||
//* Saved registers at offset - 4: s0 s1 s2 s3 s4 s5 s6 s7 fp ra
|
||||
//* /
|
||||
//void /*$ra*/ CreateScoreNames(struct SCORE_ENTRY* table /*$s0*/, struct PLAYER_SCORE* score /*stack 4*/, int position /*stack 8*/)
|
||||
//void /*$ra*/ CreateScoreNames(SCORE_ENTRY* table /*$s0*/, PLAYER_SCORE* score /*stack 4*/, int position /*stack 8*/)
|
||||
//{ // line 1, offset 0x6d324
|
||||
// char* text; // $s1
|
||||
// int min; // $t1
|
||||
|
@ -6,7 +6,7 @@ extern int gDrawPauseMenus;
|
||||
extern int pauseflag;
|
||||
extern int gMissionCompletionState;
|
||||
|
||||
extern int ShowPauseMenu(enum PAUSEMODE mode); // 0x0006BF50
|
||||
extern int ShowPauseMenu(PAUSEMODE mode); // 0x0006BF50
|
||||
|
||||
extern void DrawPauseMenus(); // 0x0006DCD4
|
||||
|
||||
@ -16,11 +16,11 @@ extern void SaveGame(int direction); // 0x0006D9D4
|
||||
|
||||
extern void EnterName(); // 0x0006D9F8
|
||||
|
||||
extern int MaxMenuStringLength(struct MENU_HEADER *pMenu); // 0x0006DA18
|
||||
extern int MaxMenuStringLength(MENU_HEADER *pMenu); // 0x0006DA18
|
||||
|
||||
extern void InitaliseMenu(enum PAUSEMODE mode); // 0x0006C2AC
|
||||
extern void InitaliseMenu(PAUSEMODE mode); // 0x0006C2AC
|
||||
|
||||
extern void SetupMenu(struct MENU_HEADER *menu, int back); // 0x0006C6B8
|
||||
extern void SetupMenu(MENU_HEADER *menu, int back); // 0x0006C6B8
|
||||
|
||||
extern void DrawVisibleMenus(); // 0x0006C7F4
|
||||
|
||||
@ -34,7 +34,7 @@ extern void MusicVolume(int direction); // 0x0006DC04
|
||||
|
||||
extern void EnterScoreName(); // 0x0006D044
|
||||
|
||||
extern void CreateScoreNames(struct SCORE_ENTRY *table, struct PLAYER_SCORE *score, int position); // 0x0006D324
|
||||
extern void CreateScoreNames(SCORE_ENTRY *table, PLAYER_SCORE *score, int position); // 0x0006D324
|
||||
|
||||
extern void DrawHighScoreMenu(int selection); // 0x0006D694
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -28,13 +28,13 @@ extern void DestroyCivPedestrians(); // 0x00072FD0
|
||||
|
||||
extern void DestroyPedestrian(PEDESTRIAN *pPed); // 0x00071FB4
|
||||
|
||||
extern int ActivatePlayerPedestrian(_CAR_DATA *pCar, char *padId, int direction, long (*position)[4], PED_MODEL_TYPES playerType); // 0x0006E6C4
|
||||
extern int ActivatePlayerPedestrian(CAR_DATA *pCar, char *padId, int direction, LONGVECTOR* position, PED_MODEL_TYPES playerType); // 0x0006E6C4
|
||||
|
||||
extern struct PEDESTRIAN * CreatePedestrian(); // 0x000720AC
|
||||
extern PEDESTRIAN * CreatePedestrian(); // 0x000720AC
|
||||
|
||||
extern void PlaceRoadBlockCops(); // 0x0006EC88
|
||||
|
||||
extern int CreatePedAtLocation(long (*pPos)[4], int pedType); // 0x0006F00C
|
||||
extern int CreatePedAtLocation(LONGVECTOR* pPos, int pedType); // 0x0006F00C
|
||||
|
||||
extern void DrawAllPedestrians(); // 0x00072290
|
||||
|
||||
@ -64,7 +64,7 @@ extern void PedCarryOutAnimation(PEDESTRIAN *pPed); // 0x00072A10
|
||||
|
||||
extern void PedGetOutCar(PEDESTRIAN *pPed); // 0x00072BEC
|
||||
|
||||
extern void SetupGetOutCar(PEDESTRIAN *pPed, struct _CAR_DATA *pCar, int side); // 0x0006F80C
|
||||
extern void SetupGetOutCar(PEDESTRIAN *pPed, CAR_DATA *pCar, int side); // 0x0006F80C
|
||||
|
||||
extern void SetupGetInCar(PEDESTRIAN *pPed); // 0x0006FA3C
|
||||
|
||||
@ -92,13 +92,13 @@ extern void PingInPedestrians(); // 0x0007047C
|
||||
|
||||
extern void TannerCollision(PEDESTRIAN *pPed); // 0x00072EE4
|
||||
|
||||
extern int FindPointOfCollision(_CAR_DATA *pCar, PEDESTRIAN* pPed); // 0x00070878
|
||||
extern int FindPointOfCollision(CAR_DATA *pCar, PEDESTRIAN* pPed); // 0x00070878
|
||||
|
||||
extern int TannerCarCollisionCheck(VECTOR *pPos, int dir, int bQuick); // 0x00070A9C
|
||||
|
||||
extern int PingOutPed(PEDESTRIAN *pPed); // 0x000731F8
|
||||
|
||||
extern void SetupCivJump(PEDESTRIAN *pPed, struct _CAR_DATA *cp); // 0x00071054
|
||||
extern void SetupCivJump(PEDESTRIAN *pPed, CAR_DATA *cp); // 0x00071054
|
||||
|
||||
extern void CivPedJump(PEDESTRIAN *pPed); // 0x00072CF0
|
||||
|
||||
@ -116,21 +116,21 @@ extern void CorrectPathPosition(PEDESTRIAN *pedestrian, VECTOR *position); // 0x
|
||||
|
||||
extern int CalcPedestrianDirection(int last_dir, int wx, int wz, VECTOR *target); // 0x00071608
|
||||
|
||||
extern int IsPavement(int x, int y, int z, struct PEDESTRIAN *pPed); // 0x000725B8
|
||||
extern int IsPavement(int x, int y, int z, PEDESTRIAN *pPed); // 0x000725B8
|
||||
|
||||
extern void SetPedestrianTurn(PEDESTRIAN *pedestrian, int turn); // 0x00072500
|
||||
|
||||
extern struct SEATED_PEDESTRIANS * FindSeated(); // 0x00072644
|
||||
extern SEATED_PEDESTRIANS * FindSeated(); // 0x00072644
|
||||
|
||||
extern struct SEATED_PEDESTRIANS * FindTannerASeat(PEDESTRIAN *pPed); // 0x000717AC
|
||||
extern SEATED_PEDESTRIANS * FindTannerASeat(PEDESTRIAN *pPed); // 0x000717AC
|
||||
|
||||
extern void add_seated(SEATED_PEDESTRIANS *seatedptr, int seat_index); // 0x000718C8
|
||||
|
||||
extern void set_coll_box(int index, _CAR_DATA *cp, int offset); // 0x00071A5C
|
||||
extern void set_coll_box(int index, CAR_DATA *cp, int offset); // 0x00071A5C
|
||||
|
||||
extern void BuildCarCollisionBox(); // 0x00071B7C
|
||||
|
||||
extern struct _CAR_DATA * CheckForCar(PEDESTRIAN *pedestrian); // 0x00072738
|
||||
extern CAR_DATA * CheckForCar(PEDESTRIAN *pedestrian); // 0x00072738
|
||||
|
||||
extern int CheckForPlayerCar(PEDESTRIAN *pedestrian, CAR_COLLISION_BOX *collision_box); // 0x000732C0
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ InitPlayer(struct _PLAYER *locPlayer /*$s1*/, struct _CAR_DATA *cp /*$s2*/, char carCtrlType /*$s3*/, int direction /*$s6*/, long (*startPos)[4] /*stack 16*/, int externModel /*stack 20*/, int palette /*stack 24*/, char *padid /*stack 28*/)
|
||||
// void /*$ra*/ InitPlayer(PLAYER *locPlayer /*$s1*/, CAR_DATA *cp /*$s2*/, char carCtrlType /*$s3*/, int direction /*$s6*/, LONGVECTOR* startPos /*stack 16*/, int externModel /*stack 20*/, int palette /*stack 24*/, char *padid /*stack 28*/)
|
||||
// line 75, offset 0x000739d8
|
||||
/* begin block 1 */
|
||||
// Start line: 76
|
||||
@ -35,16 +35,16 @@
|
||||
// End Line: 151
|
||||
|
||||
PEDESTRIAN *pPlayerPed = NULL;
|
||||
_PLAYER player[8];
|
||||
PLAYER player[8];
|
||||
|
||||
// [D] [T]
|
||||
void InitPlayer(_PLAYER *locPlayer, _CAR_DATA *cp, char carCtrlType, int direction, long(*startPos)[4], int externModel, int palette, char *padid)
|
||||
void InitPlayer(PLAYER *locPlayer, CAR_DATA *cp, char carCtrlType, int direction, LONGVECTOR* startPos, int externModel, int palette, char *padid)
|
||||
{
|
||||
int model;
|
||||
uint playerType;
|
||||
|
||||
playerType = externModel & 0xFF;
|
||||
ClearMem((char *)locPlayer, sizeof(_PLAYER));
|
||||
ClearMem((char *)locPlayer, sizeof(PLAYER));
|
||||
|
||||
if (gStartOnFoot == 0 || carCtrlType == 4)
|
||||
{
|
||||
@ -115,7 +115,7 @@ void InitPlayer(_PLAYER *locPlayer, _CAR_DATA *cp, char carCtrlType, int directi
|
||||
// Start line: 131
|
||||
// Start offset: 0x00073334
|
||||
// Variables:
|
||||
// struct _CAR_DATA *lcp; // $s2
|
||||
// CAR_DATA *lcp; // $s2
|
||||
/* end block 1 */
|
||||
// End offset: 0x0007350C
|
||||
// End Line: 181
|
||||
@ -128,7 +128,7 @@ void InitPlayer(_PLAYER *locPlayer, _CAR_DATA *cp, char carCtrlType, int directi
|
||||
// [D] [T]
|
||||
void ChangeCarPlayerToPed(int playerID)
|
||||
{
|
||||
_CAR_DATA *lcp = &car_data[player[playerID].playerCarId];
|
||||
CAR_DATA *lcp = &car_data[player[playerID].playerCarId];
|
||||
|
||||
//my_sly_var = playerID;
|
||||
player[playerID].headTimer = 0;
|
||||
@ -177,13 +177,13 @@ void ChangeCarPlayerToPed(int playerID)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ ChangePedPlayerToCar(int playerID /*$s4*/, struct _CAR_DATA *newCar /*$s2*/)
|
||||
// void /*$ra*/ ChangePedPlayerToCar(int playerID /*$s4*/, CAR_DATA *newCar /*$s2*/)
|
||||
// line 184, offset 0x0007350c
|
||||
/* begin block 1 */
|
||||
// Start line: 185
|
||||
// Start offset: 0x0007350C
|
||||
// Variables:
|
||||
// struct _PLAYER *lPlayer; // $s1
|
||||
// PLAYER *lPlayer; // $s1
|
||||
// int siren; // $s5
|
||||
// long *pos; // $s3
|
||||
// int carParked; // $s6
|
||||
@ -209,14 +209,14 @@ void ChangeCarPlayerToPed(int playerID)
|
||||
extern int lastCarCameraView;
|
||||
|
||||
// [D] [T]
|
||||
void ChangePedPlayerToCar(int playerID, _CAR_DATA *newCar)
|
||||
void ChangePedPlayerToCar(int playerID, CAR_DATA *newCar)
|
||||
{
|
||||
int carParked;
|
||||
int siren;
|
||||
int channel;
|
||||
int carSampleId;
|
||||
|
||||
_PLAYER* lPlayer;
|
||||
PLAYER* lPlayer;
|
||||
|
||||
lPlayer = &player[playerID];
|
||||
|
||||
@ -313,8 +313,8 @@ void ChangePedPlayerToCar(int playerID, _CAR_DATA *newCar)
|
||||
// Start line: 249
|
||||
// Start offset: 0x00073898
|
||||
// Variables:
|
||||
// struct _PLAYER *locPlayer; // $t0
|
||||
// struct _CAR_DATA *cp; // $v1
|
||||
// PLAYER *locPlayer; // $t0
|
||||
// CAR_DATA *cp; // $v1
|
||||
/* end block 1 */
|
||||
// End offset: 0x000739D8
|
||||
// End Line: 286
|
||||
@ -346,8 +346,8 @@ void UpdatePlayers(void)
|
||||
{
|
||||
int carId;
|
||||
PEDESTRIAN *ped;
|
||||
_PLAYER *locPlayer;
|
||||
_CAR_DATA* cp;
|
||||
PLAYER *locPlayer;
|
||||
CAR_DATA* cp;
|
||||
|
||||
pedestrianFelony = 0;
|
||||
|
||||
|
@ -1,14 +1,14 @@
|
||||
#ifndef PLAYERS_H
|
||||
#define PLAYERS_H
|
||||
|
||||
extern _PLAYER player[8];
|
||||
extern PLAYER player[8];
|
||||
extern PEDESTRIAN *pPlayerPed;
|
||||
|
||||
extern void InitPlayer(struct _PLAYER *locPlayer, struct _CAR_DATA *cp, char carCtrlType, int direction, long (*startPos)[4], int externModel, int palette, char *padid); // 0x000739D8
|
||||
extern void InitPlayer(PLAYER *locPlayer, CAR_DATA *cp, char carCtrlType, int direction, LONGVECTOR* startPos, int externModel, int palette, char *padid); // 0x000739D8
|
||||
|
||||
extern void ChangeCarPlayerToPed(int playerID); // 0x00073334
|
||||
|
||||
extern void ChangePedPlayerToCar(int playerID, struct _CAR_DATA *newCar); // 0x0007350C
|
||||
extern void ChangePedPlayerToCar(int playerID, CAR_DATA *newCar); // 0x0007350C
|
||||
|
||||
extern void UpdatePlayers(); // 0x00073898
|
||||
|
||||
|
@ -250,7 +250,7 @@ void PrintStringCentred(char *pString, short y)
|
||||
// Start line: 361
|
||||
// Start offset: 0x00073CC8
|
||||
// Variables:
|
||||
// struct RECT dest; // stack offset -24
|
||||
// RECT dest; // stack offset -24
|
||||
// char *file; // $s1
|
||||
// int i; // $v1
|
||||
// int nchars; // $s0
|
||||
@ -331,7 +331,7 @@ void LoadFont(char *buffer)
|
||||
// Start line: 417
|
||||
// Start offset: 0x00074C28
|
||||
// Variables:
|
||||
// struct RECT rect; // stack offset -16
|
||||
// RECT rect; // stack offset -16
|
||||
/* end block 1 */
|
||||
// End offset: 0x00074C64
|
||||
// End Line: 426
|
||||
@ -435,8 +435,8 @@ void SetCLUT16Flags(ushort clutID, ushort mask, char transparent)
|
||||
// Start line: 458
|
||||
// Start offset: 0x00073EA0
|
||||
// Variables:
|
||||
// struct OUT_FONTINFO *pFontInfo; // $a1
|
||||
// struct SPRT *font; // $s0
|
||||
// OUT_FONTINFO *pFontInfo; // $a1
|
||||
// SPRT *font; // $s0
|
||||
// unsigned char width; // $s1
|
||||
// unsigned char c; // $s1
|
||||
// int index; // $v1
|
||||
@ -562,8 +562,8 @@ int PrintString(char *string, int x, int y)
|
||||
// Start line: 540
|
||||
// Start offset: 0x00074140
|
||||
// Variables:
|
||||
// struct FONT_DIGIT *pDigit; // $a1
|
||||
// struct SPRT *font; // $t0
|
||||
// FONT_DIGIT *pDigit; // $a1
|
||||
// SPRT *font; // $t0
|
||||
// char width; // $a3
|
||||
// char fixedWidth; // $t1
|
||||
// char vOff; // $t2
|
||||
@ -723,8 +723,8 @@ int PrintStringFeature(char *string, int x, int y, int w, int h, int transparent
|
||||
// Start line: 644
|
||||
// Start offset: 0x00074364
|
||||
// Variables:
|
||||
// struct OUT_FONTINFO *pFontInfo; // $a1
|
||||
// struct SPRT *font; // $s0
|
||||
// OUT_FONTINFO *pFontInfo; // $a1
|
||||
// SPRT *font; // $s0
|
||||
// char word[32]; // stack offset -64
|
||||
// char *wpt; // $t0
|
||||
// char c; // $a0
|
||||
@ -897,8 +897,8 @@ void InitButtonTextures(void)
|
||||
// Start line: 727
|
||||
// Start offset: 0x000745DC
|
||||
// Variables:
|
||||
// struct FONT_DIGIT *pDigit; // $a2
|
||||
// struct POLY_FT4 *font; // $t0
|
||||
// FONT_DIGIT *pDigit; // $a2
|
||||
// POLY_FT4 *font; // $t0
|
||||
// int x; // $s0
|
||||
// int width; // $t3
|
||||
// int height; // $t6
|
||||
@ -1068,8 +1068,8 @@ char * GetNextWord(char *string, char *word)
|
||||
// Start line: 820
|
||||
// Start offset: 0x00074858
|
||||
// Variables:
|
||||
// struct TEXTURE_DETAILS *btn; // $a1
|
||||
// struct POLY_FT3 *null; // $s0
|
||||
// TEXTURE_DETAILS *btn; // $a1
|
||||
// POLY_FT3 *null; // $s0
|
||||
/* end block 1 */
|
||||
// End offset: 0x00074A10
|
||||
// End Line: 853
|
||||
@ -1143,7 +1143,7 @@ void* DrawButton(unsigned char button, void *prim, int x, int y)
|
||||
// Start line: 856
|
||||
// Start offset: 0x00074D94
|
||||
// Variables:
|
||||
// struct POLY_FT3 *null; // $s0
|
||||
// POLY_FT3 *null; // $s0
|
||||
/* end block 1 */
|
||||
// End offset: 0x00074E54
|
||||
// End Line: 871
|
||||
|
@ -30,7 +30,7 @@ char *replayptr = NULL;
|
||||
int ReplaySize = 0;
|
||||
|
||||
unsigned long PingBufferPos = 0;
|
||||
_PING_PACKET *PingBuffer = NULL;
|
||||
PING_PACKET *PingBuffer = NULL;
|
||||
|
||||
SXYPAIR *PlayerWayRecordPtr = NULL;
|
||||
PLAYBACKCAMERA *PlaybackCamera = NULL;
|
||||
@ -96,8 +96,8 @@ void InitPadRecording(void)
|
||||
|
||||
PlaybackCamera = (PLAYBACKCAMERA *)(PlayerWayRecordPtr + MAX_REPLAY_WAYPOINTS);
|
||||
|
||||
PingBuffer = (_PING_PACKET *)(PlaybackCamera + MAX_REPLAY_CAMERAS);
|
||||
setMem8((u_char*)PingBuffer, -1, sizeof(_PING_PACKET) * MAX_REPLAY_PINGS);
|
||||
PingBuffer = (PING_PACKET *)(PlaybackCamera + MAX_REPLAY_CAMERAS);
|
||||
setMem8((u_char*)PingBuffer, -1, sizeof(PING_PACKET) * MAX_REPLAY_PINGS);
|
||||
|
||||
replayptr = (char*)(PingBuffer + MAX_REPLAY_PINGS);
|
||||
|
||||
@ -140,7 +140,7 @@ void InitPadRecording(void)
|
||||
// Start line: 658
|
||||
// Start offset: 0x0001A234
|
||||
// Variables:
|
||||
// struct REPLAY_SAVE_HEADER *header; // $s2
|
||||
// REPLAY_SAVE_HEADER *header; // $s2
|
||||
// int i; // $a2
|
||||
// int size; // $s1
|
||||
// int numstreams; // $s6
|
||||
@ -236,8 +236,8 @@ int SaveReplayToBuffer(char *buffer)
|
||||
memcpy(pt, PlaybackCamera, sizeof(PLAYBACKCAMERA) * MAX_REPLAY_CAMERAS);
|
||||
pt += sizeof(PLAYBACKCAMERA) * MAX_REPLAY_CAMERAS;
|
||||
|
||||
memcpy(pt, PingBuffer, sizeof(_PING_PACKET) * MAX_REPLAY_PINGS);
|
||||
pt += sizeof(_PING_PACKET) * MAX_REPLAY_PINGS;
|
||||
memcpy(pt, PingBuffer, sizeof(PING_PACKET) * MAX_REPLAY_PINGS);
|
||||
pt += sizeof(PING_PACKET) * MAX_REPLAY_PINGS;
|
||||
|
||||
// [A] is that ever valid?
|
||||
if (gHaveStoredData)
|
||||
@ -263,8 +263,8 @@ int SaveReplayToBuffer(char *buffer)
|
||||
// Start line: 742
|
||||
// Start offset: 0x0001A798
|
||||
// Variables:
|
||||
// struct REPLAY_SAVE_HEADER *header; // $s3
|
||||
// struct REPLAY_STREAM_HEADER *sheader; // $t0
|
||||
// REPLAY_SAVE_HEADER *header; // $s3
|
||||
// REPLAY_STREAM_HEADER *sheader; // $t0
|
||||
// int i; // $a1
|
||||
// int size; // $s0
|
||||
/* end block 1 */
|
||||
@ -492,9 +492,9 @@ int LoadReplayFromBuffer(char *buffer)
|
||||
pt += sizeof(PLAYBACKCAMERA) * MAX_REPLAY_CAMERAS;
|
||||
|
||||
PingBufferPos = 0;
|
||||
PingBuffer = (_PING_PACKET *)(PlaybackCamera + MAX_REPLAY_CAMERAS);
|
||||
memcpy(PingBuffer, pt, sizeof(_PING_PACKET) * MAX_REPLAY_PINGS);
|
||||
pt += sizeof(_PING_PACKET) * MAX_REPLAY_PINGS;
|
||||
PingBuffer = (PING_PACKET *)(PlaybackCamera + MAX_REPLAY_CAMERAS);
|
||||
memcpy(PingBuffer, pt, sizeof(PING_PACKET) * MAX_REPLAY_PINGS);
|
||||
pt += sizeof(PING_PACKET) * MAX_REPLAY_PINGS;
|
||||
|
||||
replayptr = (char*)(PingBuffer + MAX_REPLAY_PINGS);
|
||||
|
||||
@ -558,7 +558,7 @@ int LoadAttractReplay(int mission)
|
||||
// Start line: 1183
|
||||
// Start offset: 0x0001B090
|
||||
// Variables:
|
||||
// struct _PING_PACKET *pp; // $a1
|
||||
// _PING_PACKET *pp; // $a1
|
||||
// char retCarId; // $v0
|
||||
/* end block 1 */
|
||||
// End offset: 0x0001B118
|
||||
@ -578,7 +578,7 @@ int LoadAttractReplay(int mission)
|
||||
char GetPingInfo(char *cookieCount)
|
||||
{
|
||||
char retCarId;
|
||||
_PING_PACKET *pp;
|
||||
PING_PACKET *pp;
|
||||
|
||||
retCarId = -1;
|
||||
|
||||
@ -606,7 +606,7 @@ char GetPingInfo(char *cookieCount)
|
||||
// [A] Stores ping info into replay buffer
|
||||
int StorePingInfo(int cookieCount, int carId)
|
||||
{
|
||||
_PING_PACKET* packet;
|
||||
PING_PACKET* packet;
|
||||
|
||||
if (CurrentGameMode == GAMEMODE_REPLAY || gInGameChaseActive != 0)
|
||||
return 0;
|
||||
@ -643,7 +643,7 @@ int IsPingInfoAvailable()
|
||||
// Start line: 1224
|
||||
// Start offset: 0x0001AF34
|
||||
// Variables:
|
||||
// struct XYPAIR region_coords; // stack offset -8
|
||||
// XYPAIR region_coords; // stack offset -8
|
||||
// int region; // $a0
|
||||
/* end block 1 */
|
||||
// End offset: 0x0001AFFC
|
||||
@ -860,7 +860,7 @@ void cjpRecord(int stream, ulong *ppad, char *psteer, char *ptype)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ AllocateReplayStream(struct REPLAY_STREAM *stream /*$a0*/, int maxpad /*$a1*/)
|
||||
// void /*$ra*/ AllocateReplayStream(REPLAY_STREAM *stream /*$a0*/, int maxpad /*$a1*/)
|
||||
// line 1383, offset 0x0001b17c
|
||||
/* begin block 1 */
|
||||
// Start line: 3101
|
||||
@ -915,7 +915,7 @@ void AllocateReplayStream(REPLAY_STREAM *stream, int maxpad)
|
||||
// Start line: 1403
|
||||
// Start offset: 0x0001B1F0
|
||||
// Variables:
|
||||
// struct REPLAY_STREAM *rstream; // $a2
|
||||
// REPLAY_STREAM *rstream; // $a2
|
||||
// unsigned long t0; // $a0
|
||||
/* end block 1 */
|
||||
// End offset: 0x0001B280
|
||||
@ -974,7 +974,7 @@ int Get(int stream, ulong *pt0)
|
||||
// Start line: 1442
|
||||
// Start offset: 0x0001B280
|
||||
// Variables:
|
||||
// struct REPLAY_STREAM *rstream; // $a0
|
||||
// REPLAY_STREAM *rstream; // $a0
|
||||
// unsigned char **pstream; // $a3
|
||||
// unsigned long t0; // $a1
|
||||
/* end block 1 */
|
||||
|
@ -11,7 +11,7 @@ extern char *ReplayStart;
|
||||
extern char *replayptr;
|
||||
|
||||
extern unsigned long PingBufferPos;
|
||||
extern _PING_PACKET *PingBuffer;
|
||||
extern PING_PACKET *PingBuffer;
|
||||
|
||||
extern int TimeToWay;
|
||||
extern short PlayerWaypoints;
|
||||
@ -40,7 +40,7 @@ extern int cjpPlay(int stream, unsigned long *ppad, char *psteer, char *ptype);
|
||||
|
||||
extern void cjpRecord(int stream, unsigned long *ppad, char *psteer, char *ptype); // 0x0001AD50
|
||||
|
||||
extern void AllocateReplayStream(struct REPLAY_STREAM *stream, int maxpad); // 0x0001B17C
|
||||
extern void AllocateReplayStream(REPLAY_STREAM *stream, int maxpad); // 0x0001B17C
|
||||
|
||||
extern int Get(int stream, unsigned long *pt0); // 0x0001B1F0
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// char /*$ra*/ ROADS_GetRouteData(int x /*$a0*/, int z /*$a1*/, struct ROUTE_DATA *pRouteData /*$a2*/)
|
||||
// char /*$ra*/ ROADS_GetRouteData(int x /*$a0*/, int z /*$a1*/, ROUTE_DATA *pRouteData /*$a2*/)
|
||||
// line 147, offset 0x00074eb4
|
||||
/* begin block 1 */
|
||||
// Start line: 294
|
||||
|
@ -73,13 +73,13 @@ void InitialiseScoreTables(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ OnScoreTable(struct SCORE_ENTRY **tablept /*$s1*/)
|
||||
// int /*$ra*/ OnScoreTable(SCORE_ENTRY **tablept /*$s1*/)
|
||||
// line 86, offset 0x0007503c
|
||||
/* begin block 1 */
|
||||
// Start line: 87
|
||||
// Start offset: 0x0007503C
|
||||
// Variables:
|
||||
// struct SCORE_ENTRY *table; // $s0
|
||||
// SCORE_ENTRY *table; // $s0
|
||||
// int position; // $v0
|
||||
/* end block 1 */
|
||||
// End offset: 0x000751F8
|
||||
@ -142,7 +142,7 @@ int OnScoreTable(SCORE_ENTRY **tablept)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ AddScoreToTable(struct SCORE_ENTRY *table /*$a2*/, int entry /*$a1*/)
|
||||
// void /*$ra*/ AddScoreToTable(SCORE_ENTRY *table /*$a2*/, int entry /*$a1*/)
|
||||
// line 133, offset 0x000751f8
|
||||
/* begin block 1 */
|
||||
// Start line: 134
|
||||
@ -192,7 +192,7 @@ void AddScoreToTable(SCORE_ENTRY *table, int entry)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ CheckGetawayPlacing(struct SCORE_ENTRY *table /*$a0*/)
|
||||
// int /*$ra*/ CheckGetawayPlacing(SCORE_ENTRY *table /*$a0*/)
|
||||
// line 162, offset 0x0007526c
|
||||
/* begin block 1 */
|
||||
// Start line: 163
|
||||
@ -240,7 +240,7 @@ int CheckGetawayPlacing(SCORE_ENTRY *table)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ CheckTrailblazerPlacing(struct SCORE_ENTRY *table /*$a0*/)
|
||||
// int /*$ra*/ CheckTrailblazerPlacing(SCORE_ENTRY *table /*$a0*/)
|
||||
// line 188, offset 0x000752bc
|
||||
/* begin block 1 */
|
||||
// Start line: 189
|
||||
@ -304,7 +304,7 @@ int CheckTrailblazerPlacing(SCORE_ENTRY *table)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ CheckCheckpointPlacing(struct SCORE_ENTRY *table /*$a0*/)
|
||||
// int /*$ra*/ CheckCheckpointPlacing(SCORE_ENTRY *table /*$a0*/)
|
||||
// line 218, offset 0x00075338
|
||||
/* begin block 1 */
|
||||
// Start line: 219
|
||||
@ -351,7 +351,7 @@ int CheckCheckpointPlacing(SCORE_ENTRY *table)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ CheckSurvivalPlacing(struct SCORE_ENTRY *table /*$a0*/)
|
||||
// int /*$ra*/ CheckSurvivalPlacing(SCORE_ENTRY *table /*$a0*/)
|
||||
// line 243, offset 0x00075388
|
||||
/* begin block 1 */
|
||||
// Start line: 244
|
||||
@ -397,7 +397,7 @@ int CheckSurvivalPlacing(SCORE_ENTRY *table)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ ResetTable(struct SCORE_ENTRY *table /*$a0*/)
|
||||
// void /*$ra*/ ResetTable(SCORE_ENTRY *table /*$a0*/)
|
||||
// line 261, offset 0x000753d8
|
||||
/* begin block 1 */
|
||||
// Start line: 262
|
||||
|
@ -6,19 +6,19 @@ extern PLAYER_SCORE gPlayerScore;
|
||||
|
||||
extern void InitialiseScoreTables(); // 0x00074EC0
|
||||
|
||||
extern int OnScoreTable(struct SCORE_ENTRY **tablept); // 0x0007503C
|
||||
extern int OnScoreTable(SCORE_ENTRY **tablept); // 0x0007503C
|
||||
|
||||
extern void AddScoreToTable(struct SCORE_ENTRY *table, int entry); // 0x000751F8
|
||||
extern void AddScoreToTable(SCORE_ENTRY *table, int entry); // 0x000751F8
|
||||
|
||||
extern int CheckGetawayPlacing(struct SCORE_ENTRY *table); // 0x0007526C
|
||||
extern int CheckGetawayPlacing(SCORE_ENTRY *table); // 0x0007526C
|
||||
|
||||
extern int CheckTrailblazerPlacing(struct SCORE_ENTRY *table); // 0x000752BC
|
||||
extern int CheckTrailblazerPlacing(SCORE_ENTRY *table); // 0x000752BC
|
||||
|
||||
extern int CheckCheckpointPlacing(struct SCORE_ENTRY *table); // 0x00075338
|
||||
extern int CheckCheckpointPlacing(SCORE_ENTRY *table); // 0x00075338
|
||||
|
||||
extern int CheckSurvivalPlacing(struct SCORE_ENTRY *table); // 0x00075388
|
||||
extern int CheckSurvivalPlacing(SCORE_ENTRY *table); // 0x00075388
|
||||
|
||||
extern void ResetTable(struct SCORE_ENTRY *table); // 0x000753D8
|
||||
extern void ResetTable(SCORE_ENTRY *table); // 0x000753D8
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -84,16 +84,16 @@ void InitTyreTracks(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ GetTyreTrackPositions(struct _CAR_DATA *cp /*$s3*/, int player_id /*$s7*/)
|
||||
// void /*$ra*/ GetTyreTrackPositions(CAR_DATA *cp /*$s3*/, int player_id /*$s7*/)
|
||||
// line 272, offset 0x00075408
|
||||
/* begin block 1 */
|
||||
// Start line: 273
|
||||
// Start offset: 0x00075408
|
||||
// Variables:
|
||||
// struct CAR_COSMETICS *car_cos; // $s4
|
||||
// struct VECTOR WheelPos; // stack offset -88
|
||||
// struct VECTOR target_pos; // stack offset -72
|
||||
// struct VECTOR normal; // stack offset -56
|
||||
// CAR_COSMETICS *car_cos; // $s4
|
||||
// VECTOR WheelPos; // stack offset -88
|
||||
// VECTOR target_pos; // stack offset -72
|
||||
// VECTOR normal; // stack offset -56
|
||||
// int loop; // $s2
|
||||
|
||||
/* begin block 1.1 */
|
||||
@ -112,7 +112,7 @@ void InitTyreTracks(void)
|
||||
// End Line: 545
|
||||
|
||||
// [D] [T]
|
||||
void GetTyreTrackPositions(_CAR_DATA *cp, int player_id)
|
||||
void GetTyreTrackPositions(CAR_DATA *cp, int player_id)
|
||||
{
|
||||
int track;
|
||||
uint loop;
|
||||
@ -199,30 +199,30 @@ void SetTyreTrackOldPositions(int player_id)
|
||||
// Start line: 331
|
||||
// Start offset: 0x00075540
|
||||
// Variables:
|
||||
// struct VECTOR New1; // stack offset -168
|
||||
// struct VECTOR New2; // stack offset -152
|
||||
// struct VECTOR New3; // stack offset -136
|
||||
// struct VECTOR New4; // stack offset -120
|
||||
// struct VECTOR *old; // $s5
|
||||
// struct VECTOR *new; // $s3
|
||||
// struct TYRE_TRACK *tt_p; // $s1
|
||||
// VECTOR New1; // stack offset -168
|
||||
// VECTOR New2; // stack offset -152
|
||||
// VECTOR New3; // stack offset -136
|
||||
// VECTOR New4; // stack offset -120
|
||||
// VECTOR *old; // $s5
|
||||
// VECTOR *new; // $s3
|
||||
// TYRE_TRACK *tt_p; // $s1
|
||||
// int x; // $v1
|
||||
// int z; // $a1
|
||||
// int c; // $t1
|
||||
// int s; // $t0
|
||||
// unsigned int index; // $a2
|
||||
// static int Cont[4]; // offset 0x0
|
||||
// struct VECTOR psxoffset; // stack offset -104
|
||||
// struct VECTOR SmokeDrift; // stack offset -88
|
||||
// struct VECTOR SmokePosition; // stack offset -72
|
||||
// VECTOR psxoffset; // stack offset -104
|
||||
// VECTOR SmokeDrift; // stack offset -88
|
||||
// VECTOR SmokePosition; // stack offset -72
|
||||
// char trackSurface; // $s0
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 364
|
||||
// Start offset: 0x00075610
|
||||
// Variables:
|
||||
// struct ROUTE_DATA routeData; // stack offset -56
|
||||
// struct _sdPlane *SurfaceDataPtr; // $v0
|
||||
// ROUTE_DATA routeData; // stack offset -56
|
||||
// sdPlane *SurfaceDataPtr; // $v0
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x0007569C
|
||||
// End Line: 399
|
||||
@ -238,7 +238,7 @@ void SetTyreTrackOldPositions(int player_id)
|
||||
// Start line: 421
|
||||
// Start offset: 0x0007572C
|
||||
// Variables:
|
||||
// struct VECTOR grass_vector; // stack offset -48
|
||||
// VECTOR grass_vector; // stack offset -48
|
||||
/* end block 1.3 */
|
||||
// End offset: 0x0007572C
|
||||
// End Line: 421
|
||||
@ -263,7 +263,7 @@ void AddTyreTrack(int wheel, int tracksAndSmoke, int padid)
|
||||
|
||||
short x;
|
||||
short z;
|
||||
_sdPlane *SurfaceDataPtr;
|
||||
sdPlane *SurfaceDataPtr;
|
||||
char trackSurface;
|
||||
TYRE_TRACK *tt_p;
|
||||
VECTOR *newtp;
|
||||
@ -421,17 +421,17 @@ void AddTyreTrack(int wheel, int tracksAndSmoke, int padid)
|
||||
// Start line: 519
|
||||
// Start offset: 0x000759E0
|
||||
// Variables:
|
||||
// struct VECTOR p[4]; // stack offset -136
|
||||
// struct SVECTOR ps[4]; // stack offset -72
|
||||
// struct TYRE_TRACK *tt_p; // $t0
|
||||
// VECTOR p[4]; // stack offset -136
|
||||
// SVECTOR ps[4]; // stack offset -72
|
||||
// TYRE_TRACK *tt_p; // $t0
|
||||
// int z; // stack offset -40
|
||||
// int temp; // $a2
|
||||
// int loop; // $t7
|
||||
// int wheel_loop; // $s0
|
||||
// int index; // $t2
|
||||
// char last_duff; // $s1
|
||||
// struct POLY_FT4 *poly; // $a3
|
||||
// struct POLY_FT4 *lasttyre; // $t8
|
||||
// POLY_FT4 *poly; // $a3
|
||||
// POLY_FT4 *lasttyre; // $t8
|
||||
/* end block 1 */
|
||||
// End offset: 0x00075F34
|
||||
// End Line: 645
|
||||
@ -599,8 +599,8 @@ void DrawTyreTracks(void)
|
||||
// Start line: 661
|
||||
// Start offset: 0x00075F34
|
||||
// Variables:
|
||||
// struct TPAN pos; // stack offset -16
|
||||
// struct TEXINF *texinf; // $v0
|
||||
// TPAN pos; // stack offset -16
|
||||
// TEXINF *texinf; // $v0
|
||||
// int i; // $a2
|
||||
// int j; // $a3
|
||||
|
||||
@ -681,13 +681,13 @@ void InitShadow(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ SubdivShadow(long z0 /*$t7*/, long z1 /*$t9*/, long z2 /*$t8*/, long z3 /*$t6*/, struct POLY_FT4 *sps /*stack 16*/)
|
||||
// void /*$ra*/ SubdivShadow(long z0 /*$t7*/, long z1 /*$t9*/, long z2 /*$t8*/, long z3 /*$t6*/, POLY_FT4 *sps /*stack 16*/)
|
||||
// line 717, offset 0x00076108
|
||||
/* begin block 1 */
|
||||
// Start line: 718
|
||||
// Start offset: 0x00076108
|
||||
// Variables:
|
||||
// struct POLY_FT4 *spd; // $t3
|
||||
// POLY_FT4 *spd; // $t3
|
||||
// int i; // $t4
|
||||
|
||||
/* begin block 1.1 */
|
||||
@ -971,19 +971,19 @@ void SubdivShadow(long z0, long z1, long z2, long z3, POLY_FT4 *sps)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ PlaceShadowForCar(struct VECTOR *shadowPoints /*$t0*/, int slot /*$s0*/, struct VECTOR *CarPos /*$a2*/, int zclip /*$a3*/)
|
||||
// void /*$ra*/ PlaceShadowForCar(VECTOR *shadowPoints /*$t0*/, int slot /*$s0*/, VECTOR *CarPos /*$a2*/, int zclip /*$a3*/)
|
||||
// line 864, offset 0x000766cc
|
||||
/* begin block 1 */
|
||||
// Start line: 865
|
||||
// Start offset: 0x000766CC
|
||||
// Variables:
|
||||
// struct SVECTOR points[4]; // stack offset -64
|
||||
// SVECTOR points[4]; // stack offset -64
|
||||
// long z; // $a0
|
||||
// long z0; // stack offset -32
|
||||
// long z1; // stack offset -28
|
||||
// long z2; // stack offset -24
|
||||
// long z3; // stack offset -20
|
||||
// struct POLY_FT4 *spt; // $a3
|
||||
// POLY_FT4 *spt; // $a3
|
||||
/* end block 1 */
|
||||
// End offset: 0x00076A40
|
||||
// End Line: 933
|
||||
@ -1074,9 +1074,9 @@ void PlaceShadowForCar(VECTOR *shadowPoints, int subdiv, int zOfs, int flag)
|
||||
// Variables:
|
||||
// int srccount; // $t4
|
||||
// int dstcount; // $t5
|
||||
// struct SVECTOR *current; // $t2
|
||||
// struct SVECTOR *previous; // $t1
|
||||
// struct SVECTOR *dst; // $a3
|
||||
// SVECTOR *current; // $t2
|
||||
// SVECTOR *previous; // $t1
|
||||
// SVECTOR *dst; // $a3
|
||||
// int flags; // $t3
|
||||
|
||||
/* begin block 1.1 */
|
||||
@ -1223,7 +1223,7 @@ int clipAgainstZ(void)
|
||||
// int i; // $a3
|
||||
// int j; // $t0
|
||||
// int z1; // $v1
|
||||
// struct POLY_G3 *pg3; // $s0
|
||||
// POLY_G3 *pg3; // $s0
|
||||
// int z[3]; // stack offset -24
|
||||
/* end block 1 */
|
||||
// End offset: 0x00077128
|
||||
@ -1403,7 +1403,7 @@ void clippedPoly(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ sQuad(struct SVECTOR *v0 /*$a0*/, struct SVECTOR *v1 /*$s5*/, struct SVECTOR *v2 /*$s6*/, struct SVECTOR *v3 /*$s4*/)
|
||||
// void /*$ra*/ sQuad(SVECTOR *v0 /*$a0*/, SVECTOR *v1 /*$s5*/, SVECTOR *v2 /*$s6*/, SVECTOR *v3 /*$s4*/)
|
||||
// line 1160, offset 0x00077138
|
||||
/* begin block 1 */
|
||||
// Start line: 1161
|
||||
@ -1416,7 +1416,7 @@ void clippedPoly(void)
|
||||
// Start line: 1168
|
||||
// Start offset: 0x000771B4
|
||||
// Variables:
|
||||
// struct POLY_G4 *pf4; // $t2
|
||||
// POLY_G4 *pf4; // $t2
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x000772B4
|
||||
// End Line: 1190
|
||||
|
@ -7,7 +7,7 @@ extern UV shadowuv;
|
||||
|
||||
extern void InitTyreTracks(); // 0x00077524
|
||||
|
||||
extern void GetTyreTrackPositions(_CAR_DATA *cp, int player_id); // 0x00075408
|
||||
extern void GetTyreTrackPositions(CAR_DATA *cp, int player_id); // 0x00075408
|
||||
|
||||
extern void SetTyreTrackOldPositions(int player_id); // 0x00077558
|
||||
|
||||
|
@ -105,7 +105,7 @@ VECTOR tunnelPos[3][2] =
|
||||
// Start line: 147
|
||||
// Start offset: 0x000775C8
|
||||
// Variables:
|
||||
// struct RECT rect; // stack offset -96
|
||||
// RECT rect; // stack offset -96
|
||||
// char name[16]; // stack offset -88
|
||||
// int x; // $s6
|
||||
// int y; // $a1
|
||||
@ -380,15 +380,15 @@ void DrawSkyDome(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DisplaySun(struct DVECTOR *pos /*$a0*/, struct CVECTOR *col /*$a1*/, int flare_col /*$a2*/)
|
||||
// void /*$ra*/ DisplaySun(DVECTOR *pos /*$a0*/, CVECTOR *col /*$a1*/, int flare_col /*$a2*/)
|
||||
// line 527, offset 0x000780bc
|
||||
/* begin block 1 */
|
||||
// Start line: 528
|
||||
// Start offset: 0x000780BC
|
||||
// Variables:
|
||||
// struct POLY_FT4 *polys; // $a1
|
||||
// struct POLY_FT3 *null; // $a3
|
||||
// struct VECTOR output; // stack offset -32
|
||||
// POLY_FT4 *polys; // $a1
|
||||
// POLY_FT3 *null; // $a3
|
||||
// VECTOR output; // stack offset -32
|
||||
// int width; // $t5
|
||||
// int height; // $t4
|
||||
/* end block 1 */
|
||||
@ -523,14 +523,14 @@ void DisplaySun(DVECTOR* pos, CVECTOR* col, int flare_col)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DisplayMoon(struct DVECTOR *pos /*$t4*/, struct CVECTOR *col /*$t6*/, int flip /*$a2*/)
|
||||
// void /*$ra*/ DisplayMoon(DVECTOR *pos /*$t4*/, CVECTOR *col /*$t6*/, int flip /*$a2*/)
|
||||
// line 609, offset 0x00078544
|
||||
/* begin block 1 */
|
||||
// Start line: 610
|
||||
// Start offset: 0x00078544
|
||||
// Variables:
|
||||
// struct POLY_FT3 *null; // $a0
|
||||
// struct VECTOR output; // stack offset -16
|
||||
// POLY_FT3 *null; // $a0
|
||||
// VECTOR output; // stack offset -16
|
||||
// int width; // $t5
|
||||
// int height; // $t3
|
||||
/* end block 1 */
|
||||
@ -630,9 +630,9 @@ void DisplayMoon(DVECTOR* pos, CVECTOR* col, int flip)
|
||||
// Variables:
|
||||
// static char last_attempt_failed; // offset 0x0
|
||||
// static short buffer[160]; // offset 0x0
|
||||
// struct DVECTOR sun_pers_conv_position; // stack offset -64
|
||||
// struct RECT source; // stack offset -56
|
||||
// struct DR_MOVE *sample_sun; // $s0
|
||||
// DVECTOR sun_pers_conv_position; // stack offset -64
|
||||
// RECT source; // stack offset -56
|
||||
// DR_MOVE *sample_sun; // $s0
|
||||
// int distance_to_sun; // $s0
|
||||
// int xpos; // $t1
|
||||
// int ypos; // $v0
|
||||
@ -641,8 +641,8 @@ void DisplayMoon(DVECTOR* pos, CVECTOR* col, int flip)
|
||||
// int flarez; // stack offset -40
|
||||
// int shade; // $t4
|
||||
// int sun_intensity; // $s3
|
||||
// struct POLY_FT4 *polys; // $a1
|
||||
// struct CVECTOR col; // stack offset -48
|
||||
// POLY_FT4 *polys; // $a1
|
||||
// CVECTOR col; // stack offset -48
|
||||
// int r; // $a2
|
||||
// int g; // $a3
|
||||
// int b; // $a0
|
||||
@ -668,7 +668,7 @@ void DisplayMoon(DVECTOR* pos, CVECTOR* col, int flip)
|
||||
// Start line: 458
|
||||
// Start offset: 0x00077DD0
|
||||
// Variables:
|
||||
// struct FLAREREC *pFlareInfo; // $t3
|
||||
// FLAREREC *pFlareInfo; // $t3
|
||||
// int flaresize; // $t0
|
||||
/* end block 1.2.1 */
|
||||
// End offset: 0x00077FAC
|
||||
@ -925,8 +925,8 @@ void DrawLensFlare(void)
|
||||
// int dX; // $v1
|
||||
// int dZ; // $v0
|
||||
// int len; // $a1
|
||||
// struct VECTOR *v1; // $t1
|
||||
// struct VECTOR *v2; // $t0
|
||||
// VECTOR *v1; // $t1
|
||||
// VECTOR *v2; // $t0
|
||||
|
||||
/* begin block 1.1.1 */
|
||||
// Start line: 725
|
||||
@ -1136,9 +1136,9 @@ void calc_sky_brightness(void)
|
||||
// Start line: 856
|
||||
// Start offset: 0x00078B18
|
||||
// Variables:
|
||||
// struct POLYFT4 *src; // $t1
|
||||
// struct DVECTOR *outpoints; // $t0
|
||||
// struct POLY_FT4 *prims; // $t2
|
||||
// POLYFT4 *src; // $t1
|
||||
// DVECTOR *outpoints; // $t0
|
||||
// POLY_FT4 *prims; // $t2
|
||||
/* end block 1 */
|
||||
// End offset: 0x00078EBC
|
||||
// End Line: 894
|
||||
@ -1218,13 +1218,13 @@ void PlotSkyPoly(POLYFT4* polys, int skytexnum, unsigned char r, unsigned char g
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ PlotHorizonMDL(struct MODEL *model /*$s6*/, int horizontaboffset /*$a1*/)
|
||||
// void /*$ra*/ PlotHorizonMDL(MODEL *model /*$s6*/, int horizontaboffset /*$a1*/)
|
||||
// line 896, offset 0x00078ec4
|
||||
/* begin block 1 */
|
||||
// Start line: 897
|
||||
// Start offset: 0x00078EC4
|
||||
// Variables:
|
||||
// struct SVECTOR *verts; // $v1
|
||||
// SVECTOR *verts; // $v1
|
||||
// char *polys; // $s1
|
||||
// int i; // $s0
|
||||
// int p; // stack offset -56
|
||||
|
@ -18,7 +18,7 @@ extern void calc_sky_brightness(); // 0x00078964
|
||||
|
||||
extern void PlotSkyPoly(POLYFT4* polys, int skytexnum, unsigned char r, unsigned char g, unsigned char b, int offset); // 0x00078B18
|
||||
|
||||
extern void PlotHorizonMDL(struct MODEL *model, int horizontaboffset); // 0x00078EC4
|
||||
extern void PlotHorizonMDL(MODEL *model, int horizontaboffset); // 0x00078EC4
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#define SPU_CHANNEL_COUNT 24
|
||||
|
||||
long dummylong[4] = { 0, 0, 0, 0 };
|
||||
LONGVECTOR dummylong = { 0, 0, 0, 0 };
|
||||
|
||||
long bankaddr[2] = { 0 };
|
||||
long banksize[2] = { 88064, 412672 };
|
||||
@ -449,7 +449,7 @@ int StartSound(int channel, int bank, int sample, int volume, int pitch)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ Start3DTrackingSound(int channel /*$s1*/, int bank /*$s0*/, int sample /*$s3*/, struct VECTOR *position /*$s2*/, long *velocity /*stack 16*/)
|
||||
// int /*$ra*/ Start3DTrackingSound(int channel /*$s1*/, int bank /*$s0*/, int sample /*$s3*/, VECTOR *position /*$s2*/, long *velocity /*stack 16*/)
|
||||
// line 342, offset 0x0007a994
|
||||
/* begin block 1 */
|
||||
// Start line: 684
|
||||
@ -704,7 +704,7 @@ void SetChannelVolume(int channel, int volume, int proximity)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ ComputeDoppler(struct CHANNEL_DATA *ch /*$s1*/)
|
||||
// void /*$ra*/ ComputeDoppler(CHANNEL_DATA *ch /*$s1*/)
|
||||
// line 501, offset 0x000795c4
|
||||
/* begin block 1 */
|
||||
// Start line: 502
|
||||
@ -712,7 +712,7 @@ void SetChannelVolume(int channel, int volume, int proximity)
|
||||
// Variables:
|
||||
// int dist; // $s0
|
||||
// int seperationrate; // $v0
|
||||
// struct _PLAYER *pl; // $s0
|
||||
// PLAYER *pl; // $s0
|
||||
/* end block 1 */
|
||||
// End offset: 0x00079720
|
||||
// End Line: 527
|
||||
@ -733,7 +733,7 @@ void ComputeDoppler(CHANNEL_DATA *ch)
|
||||
int iVar6;
|
||||
int iVar7;
|
||||
long *srcVel;
|
||||
_PLAYER *pl;
|
||||
PLAYER *pl;
|
||||
|
||||
srcPos = ch->srcposition;
|
||||
|
||||
@ -773,7 +773,7 @@ void ComputeDoppler(CHANNEL_DATA *ch)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ SetChannelPosition3(int channel /*$s1*/, struct VECTOR *position /*$a0*/, long *velocity /*$t0*/, int volume /*$t2*/, int pitch /*stack 16*/, int proximity /*stack 20*/)
|
||||
// void /*$ra*/ SetChannelPosition3(int channel /*$s1*/, VECTOR *position /*$a0*/, long *velocity /*$t0*/, int volume /*$t2*/, int pitch /*stack 16*/, int proximity /*stack 20*/)
|
||||
// line 588, offset 0x0007abcc
|
||||
/* begin block 1 */
|
||||
// Start line: 589
|
||||
@ -1554,7 +1554,7 @@ void UpdateXMSamples(int num_samps)
|
||||
// Start line: 905
|
||||
// Start offset: 0x00079BCC
|
||||
// Variables:
|
||||
// static struct __LSBDinfo tabs; // offset 0x0
|
||||
// static __LSBDinfo tabs; // offset 0x0
|
||||
// int i; // $a3
|
||||
// int num_samples; // $s1
|
||||
// int slength; // $s0
|
||||
@ -1920,8 +1920,8 @@ int GetFreeChannel(void)
|
||||
// long ang; // $s0
|
||||
// long dist; // $s6
|
||||
// int player_id; // $a3
|
||||
// struct VECTOR *pos; // $s3
|
||||
// struct VECTOR *cam_pos; // $s4
|
||||
// VECTOR *pos; // $s3
|
||||
// VECTOR *cam_pos; // $s4
|
||||
// int cam_ang; // $fp
|
||||
// long damp; // $v1
|
||||
|
||||
@ -2184,7 +2184,7 @@ void UpdateVolumeAttributesM(int channel)
|
||||
// Start offset: 0x0007A360
|
||||
// Variables:
|
||||
// int volume; // $s0
|
||||
// struct VECTOR *pp; // $a3
|
||||
// VECTOR *pp; // $a3
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 1266
|
||||
@ -2196,7 +2196,7 @@ void UpdateVolumeAttributesM(int channel)
|
||||
// Start line: 1271
|
||||
// Start offset: 0x0007A3F4
|
||||
// Variables:
|
||||
// struct VECTOR ofse; // stack offset -24
|
||||
// VECTOR ofse; // stack offset -24
|
||||
/* end block 1.1.1 */
|
||||
// End offset: 0x0007A3F4
|
||||
// End Line: 1274
|
||||
@ -2294,7 +2294,7 @@ int CalculateVolume(int channel)
|
||||
// Start line: 1304
|
||||
// Start offset: 0x0007AB3C
|
||||
// Variables:
|
||||
// struct SpuReverbAttr r_attr; // stack offset -40
|
||||
// SpuReverbAttr r_attr; // stack offset -40
|
||||
/* end block 1 */
|
||||
// End offset: 0x0007AB94
|
||||
// End Line: 1319
|
||||
|
@ -39,7 +39,7 @@ extern void SetChannelPitch(int channel, int pitch); // 0x00079504
|
||||
|
||||
extern void SetChannelVolume(int channel, int volume, int proximity); // 0x0007AA78
|
||||
|
||||
extern void ComputeDoppler(struct CHANNEL_DATA *ch); // 0x000795C4
|
||||
extern void ComputeDoppler(CHANNEL_DATA *ch); // 0x000795C4
|
||||
|
||||
extern void SetChannelPosition3(int channel, VECTOR *position, long *velocity, int volume, int pitch, int proximity); // 0x0007ABCC
|
||||
|
||||
|
@ -112,7 +112,7 @@ int new_area_location;
|
||||
int LoadingArea = 0;
|
||||
unsigned short *newmodels;
|
||||
|
||||
struct SPOOLQ spooldata[48];
|
||||
SPOOLQ spooldata[48];
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define SPOOL_INFO printInfo
|
||||
@ -302,7 +302,7 @@ void startReadLevSectorsPC(int sector)
|
||||
// Start line: 534
|
||||
// Start offset: 0x0007B228
|
||||
// Variables:
|
||||
// struct SPOOLQ *current; // $a3
|
||||
// SPOOLQ *current; // $a3
|
||||
/* end block 1 */
|
||||
// End offset: 0x0007B3B4
|
||||
// End Line: 588
|
||||
@ -414,7 +414,7 @@ void test_changemode(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ changemode(struct SPOOLQ *current /*$a0*/)
|
||||
// void /*$ra*/ changemode(SPOOLQ *current /*$a0*/)
|
||||
// line 591, offset 0x0007e1a8
|
||||
/* begin block 1 */
|
||||
// Start line: 1182
|
||||
@ -485,7 +485,7 @@ void changemode(SPOOLQ *current)
|
||||
// Start line: 627
|
||||
// Start offset: 0x0007B3C4
|
||||
// Variables:
|
||||
// struct AREA_LOAD_INFO regions_to_unpack[3]; // stack offset -160
|
||||
// AREA_LOAD_INFO regions_to_unpack[3]; // stack offset -160
|
||||
// int leftright_unpack; // $a2
|
||||
// int topbottom_unpack; // $a3
|
||||
// int num_regions_to_unpack; // $a1
|
||||
@ -737,7 +737,7 @@ void startgame(void)
|
||||
// unsigned short *palette; // $a1
|
||||
// int temp; // $a2
|
||||
// int i; // $a0
|
||||
// struct RECT dest; // stack offset -16
|
||||
// RECT dest; // stack offset -16
|
||||
/* end block 1 */
|
||||
// End offset: 0x0007E2CC
|
||||
// End Line: 856
|
||||
@ -790,7 +790,7 @@ void DrawCDicon(void)
|
||||
// Start line: 861
|
||||
// Start offset: 0x0007E2CC
|
||||
// Variables:
|
||||
// struct RECT dest; // stack offset -16
|
||||
// RECT dest; // stack offset -16
|
||||
/* end block 1 */
|
||||
// End offset: 0x0007E35C
|
||||
// End Line: 918
|
||||
@ -850,8 +850,8 @@ void CheckValidSpoolData(void)
|
||||
// Start line: 927
|
||||
// Start offset: 0x0007B6C4
|
||||
// Variables:
|
||||
// struct SPOOLQ *current; // $s0
|
||||
// struct CdlLOC pos; // stack offset -16
|
||||
// SPOOLQ *current; // $s0
|
||||
// CdlLOC pos; // stack offset -16
|
||||
/* end block 1 */
|
||||
// End offset: 0x0007B87C
|
||||
// End Line: 977
|
||||
@ -1074,7 +1074,7 @@ void UpdateSpool(void)
|
||||
// Start line: 1105
|
||||
// Start offset: 0x0007E36C
|
||||
// Variables:
|
||||
// struct SPOOLQ *next; // $t0
|
||||
// SPOOLQ *next; // $t0
|
||||
// int sector; // $v0
|
||||
/* end block 1 */
|
||||
// End offset: 0x0007E3E4
|
||||
@ -1132,7 +1132,7 @@ void RequestSpool(int type, int data, int offset, int loadsize, char *address, s
|
||||
// Variables:
|
||||
// int i; // $s0
|
||||
// char namebuffer[128]; // stack offset -152
|
||||
// struct CdlLOC pos; // stack offset -24
|
||||
// CdlLOC pos; // stack offset -24
|
||||
/* end block 1 */
|
||||
// End offset: 0x0007E528
|
||||
// End Line: 1158
|
||||
@ -1204,7 +1204,7 @@ void InitSpooling(void)
|
||||
// Start line: 1176
|
||||
// Start offset: 0x0007B900
|
||||
// Variables:
|
||||
// struct RECT cluts; // stack offset -32
|
||||
// RECT cluts; // stack offset -32
|
||||
// int npalettes; // $s1
|
||||
// int i; // $a3
|
||||
// unsigned long *clutptr; // $a1
|
||||
@ -1566,7 +1566,7 @@ void SendSBK(void)
|
||||
// int size; // $s2
|
||||
// int model_number; // $a1
|
||||
// char *addr; // $s0
|
||||
// struct MODEL *parentmodel; // $a1
|
||||
// MODEL *parentmodel; // $a1
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 1519
|
||||
@ -1771,7 +1771,7 @@ void LoadInAreaModels(int area)
|
||||
// Variables:
|
||||
// int i; // $a2
|
||||
// int nAreas; // $t0
|
||||
// struct Spool *spoolptr; // $t1
|
||||
// Spool *spoolptr; // $t1
|
||||
// int load; // $a3
|
||||
// int force_load_boundary; // $a0
|
||||
/* end block 1 */
|
||||
@ -1953,7 +1953,7 @@ void ClearRegion(int target_region)
|
||||
// Variables:
|
||||
// int offset; // $s0
|
||||
// char *target_unpacked_data; // $t1
|
||||
// struct Spool *spoolptr; // $s1
|
||||
// Spool *spoolptr; // $s1
|
||||
// char *roadmap_buffer; // $s6
|
||||
// char *cell_buffer; // $s3
|
||||
/* end block 1 */
|
||||
@ -2264,7 +2264,7 @@ void WaitCloseLid(void)
|
||||
// Start line: 1947
|
||||
// Start offset: 0x0007E6D8
|
||||
// Variables:
|
||||
// struct CdlLOC p; // stack offset -16
|
||||
// CdlLOC p; // stack offset -16
|
||||
/* end block 1 */
|
||||
// End offset: 0x0007E724
|
||||
// End Line: 1963
|
||||
@ -2486,7 +2486,7 @@ void data_cb_textures(void)
|
||||
// Start line: 2050
|
||||
// Start offset: 0x0007E0D8
|
||||
// Variables:
|
||||
// struct SPOOLQ *current; // $a2
|
||||
// SPOOLQ *current; // $a2
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x0007E188
|
||||
// End Line: 2080
|
||||
@ -2575,7 +2575,7 @@ void ready_cb_textures(unsigned char intr, unsigned char *result)
|
||||
// Start line: 2110
|
||||
// Start offset: 0x0007DF08
|
||||
// Variables:
|
||||
// struct SPOOLQ *current; // $v1
|
||||
// SPOOLQ *current; // $v1
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x0007DF08
|
||||
// End Line: 2110
|
||||
@ -2646,7 +2646,7 @@ void ready_cb_regions(unsigned char intr, unsigned char *result)
|
||||
// Start line: 2136
|
||||
// Start offset: 0x0007DDBC
|
||||
// Variables:
|
||||
// struct SPOOLQ *current; // $v0
|
||||
// SPOOLQ *current; // $v0
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x0007DE80
|
||||
// End Line: 2167
|
||||
@ -2795,7 +2795,7 @@ void data_cb_soundbank(void)
|
||||
// Start line: 2217
|
||||
// Start offset: 0x0007DD04
|
||||
// Variables:
|
||||
// struct SPOOLQ *current; // $a0
|
||||
// SPOOLQ *current; // $a0
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x0007DD70
|
||||
// End Line: 2237
|
||||
@ -2865,7 +2865,7 @@ void ready_cb_soundbank(unsigned char intr, unsigned char *result)
|
||||
// Start line: 2250
|
||||
// Start offset: 0x0007DA74
|
||||
// Variables:
|
||||
// struct SPOOLQ *current; // $v0
|
||||
// SPOOLQ *current; // $v0
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x0007DB28
|
||||
// End Line: 2275
|
||||
@ -3212,7 +3212,7 @@ void Unpack_CellPtrs(void)
|
||||
// int i; // $s1
|
||||
// int j; // $s2
|
||||
// int tpage; // $s0
|
||||
// struct RECT specCluts; // stack offset -48
|
||||
// RECT specCluts; // stack offset -48
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 2522
|
||||
@ -3583,7 +3583,7 @@ void LowModelSpooled(void)
|
||||
// Start line: 2702
|
||||
// Start offset: 0x0007CE8C
|
||||
// Variables:
|
||||
// struct MODEL *tempModel; // $a1
|
||||
// MODEL *tempModel; // $a1
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x0007CEE0
|
||||
// End Line: 2713
|
||||
@ -3682,7 +3682,7 @@ void CleanSpooled(void)
|
||||
// Start line: 2728
|
||||
// Start offset: 0x0007E7D8
|
||||
// Variables:
|
||||
// struct MODEL *tempModel; // $a1
|
||||
// MODEL *tempModel; // $a1
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x0007E820
|
||||
// End Line: 2737
|
||||
@ -3744,7 +3744,7 @@ void LowSpooled(void)
|
||||
// Start line: 2751
|
||||
// Start offset: 0x0007CF60
|
||||
// Variables:
|
||||
// struct RECT tpage; // stack offset -32
|
||||
// RECT tpage; // stack offset -32
|
||||
// int spec_tpage; // $a0
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x0007D018
|
||||
@ -3754,7 +3754,7 @@ void LowSpooled(void)
|
||||
// Start line: 2767
|
||||
// Start offset: 0x0007D018
|
||||
// Variables:
|
||||
// struct RECT tpage; // stack offset -24
|
||||
// RECT tpage; // stack offset -24
|
||||
// int spec_tpage; // $a0
|
||||
/* end block 1.2 */
|
||||
// End offset: 0x0007D0EC
|
||||
@ -4000,7 +4000,7 @@ void SpecialStartNextBlock(void)
|
||||
// Start line: 2958
|
||||
// Start offset: 0x0007D4E0
|
||||
// Variables:
|
||||
// struct _CAR_DATA *lcp; // $a0
|
||||
// CAR_DATA *lcp; // $a0
|
||||
// int ret; // $a3
|
||||
|
||||
/* begin block 1.1 */
|
||||
@ -4035,7 +4035,7 @@ void CheckSpecialSpool(void)
|
||||
{
|
||||
int ret;
|
||||
int iVar2;
|
||||
_CAR_DATA *lcp;
|
||||
CAR_DATA *lcp;
|
||||
|
||||
if (startSpecSpool != -1 && startSpecSpool+400 < CameraCnt)
|
||||
{
|
||||
|
@ -440,8 +440,8 @@ int Loadfile(char *name, char *addr)
|
||||
// int sector; // $s2
|
||||
// int nsectors; // $s5
|
||||
// char sectorbuffer[2048]; // stack offset -2120
|
||||
// struct CdlFILE info; // stack offset -72
|
||||
// struct CdlLOC pos; // stack offset -48
|
||||
// CdlFILE info; // stack offset -72
|
||||
// CdlLOC pos; // stack offset -48
|
||||
// int i; // $a2
|
||||
// int toload; // $s4
|
||||
// int first; // $a0
|
||||
@ -690,7 +690,7 @@ void data_ready(void)
|
||||
// Start line: 1004
|
||||
// Start offset: 0x0007FAE4
|
||||
// Variables:
|
||||
// struct CdlLOC p; // stack offset -16
|
||||
// CdlLOC p; // stack offset -16
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x0007FB34
|
||||
// End Line: 1014
|
||||
@ -759,7 +759,7 @@ void sector_ready(unsigned char intr, unsigned char *result)
|
||||
// Start line: 1018
|
||||
// Start offset: 0x0007F904
|
||||
// Variables:
|
||||
// struct CdlLOC pos; // stack offset -16
|
||||
// CdlLOC pos; // stack offset -16
|
||||
/* end block 1 */
|
||||
// End offset: 0x0007F984
|
||||
// End Line: 1035
|
||||
@ -1076,7 +1076,7 @@ void UpdatePadData(void)
|
||||
// Start line: 1366
|
||||
// Start offset: 0x0007EDDC
|
||||
// Variables:
|
||||
// struct RECT rect; // stack offset -24
|
||||
// RECT rect; // stack offset -24
|
||||
// int i; // $v1
|
||||
/* end block 1 */
|
||||
// End offset: 0x0007EF0C
|
||||
@ -1266,7 +1266,7 @@ void SetupDrawBufferData(int num_players)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ InitaliseDrawEnv(struct DB *pBuff /*$s0*/, int x /*$s4*/, int y /*$s3*/, int w /*$s1*/, int h /*stack 16*/)
|
||||
// void /*$ra*/ InitaliseDrawEnv(DB *pBuff /*$s0*/, int x /*$s4*/, int y /*$s3*/, int w /*$s1*/, int h /*stack 16*/)
|
||||
// line 1535, offset 0x0007f7c0
|
||||
/* begin block 1 */
|
||||
// Start line: 4857
|
||||
@ -1325,14 +1325,14 @@ void ResetCityType(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ SetCityType(enum CITYTYPE type /*$a0*/)
|
||||
// void /*$ra*/ SetCityType(CITYTYPE type /*$a0*/)
|
||||
// line 1577, offset 0x0007f118
|
||||
/* begin block 1 */
|
||||
// Start line: 1578
|
||||
// Start offset: 0x0007F118
|
||||
// Variables:
|
||||
// struct CdlFILE cdfile; // stack offset -120
|
||||
// struct XYPAIR *info; // $s2
|
||||
// CdlFILE cdfile; // stack offset -120
|
||||
// XYPAIR *info; // $s2
|
||||
// char namebuffer[64]; // stack offset -96
|
||||
// unsigned char result[8]; // stack offset -32
|
||||
// int i; // $a2
|
||||
@ -1491,7 +1491,7 @@ LAB_0007f244:
|
||||
// Start line: 1683
|
||||
// Start offset: 0x0007F5C8
|
||||
// Variables:
|
||||
// struct CdlFILE cdfile; // stack offset -176
|
||||
// CdlFILE cdfile; // stack offset -176
|
||||
// char namebuffer[128]; // stack offset -152
|
||||
// unsigned char result[8]; // stack offset -24
|
||||
// int retries; // $s1
|
||||
@ -1548,13 +1548,13 @@ int FileExists(char *filename)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// enum CDTYPE /*$ra*/ DiscSwapped(char *filename /*$s1*/)
|
||||
// CDTYPE /*$ra*/ DiscSwapped(char *filename /*$s1*/)
|
||||
// line 1723, offset 0x0007f640
|
||||
/* begin block 1 */
|
||||
// Start line: 1724
|
||||
// Start offset: 0x0007F640
|
||||
// Variables:
|
||||
// struct CdlFILE cdfile; // stack offset -40
|
||||
// CdlFILE cdfile; // stack offset -40
|
||||
// int ret; // $v1
|
||||
/* end block 1 */
|
||||
// End offset: 0x0007F6FC
|
||||
|
@ -67,14 +67,14 @@ extern int pathAILoaded;
|
||||
|
||||
extern char* LoadingScreenNames[];
|
||||
|
||||
struct DB // hashcode: 0xE4F25C4D (dec: -453878707)
|
||||
struct DB
|
||||
{
|
||||
char* primptr; // size=0, offset=0
|
||||
OTTYPE* ot; // size=0, offset=4
|
||||
char* primtab; // size=0, offset=8
|
||||
int id; // size=0, offset=12
|
||||
DRAWENV draw; // size=92, offset=16
|
||||
DISPENV disp; // size=20, offset=108
|
||||
char* primptr;
|
||||
OTTYPE* ot;
|
||||
char* primtab;
|
||||
int id;
|
||||
DRAWENV draw;
|
||||
DISPENV disp;
|
||||
};
|
||||
|
||||
extern DRAW_MODE draw_mode_pal;
|
||||
@ -149,15 +149,15 @@ extern void SetupDrawBuffers(); // 0x0007EDDC
|
||||
|
||||
extern void SetupDrawBufferData(int num_players); // 0x0007EF0C
|
||||
|
||||
extern void InitaliseDrawEnv(struct DB *pBuff, int x, int y, int w, int h); // 0x0007F7C0
|
||||
extern void InitaliseDrawEnv(DB *pBuff, int x, int y, int w, int h); // 0x0007F7C0
|
||||
|
||||
extern void ResetCityType(); // 0x0007F5B4
|
||||
|
||||
extern void SetCityType(enum CITYTYPE type); // 0x0007F118
|
||||
extern void SetCityType(CITYTYPE type); // 0x0007F118
|
||||
|
||||
extern int FileExists(char *filename); // 0x0007F5C8
|
||||
|
||||
extern enum CDTYPE DiscSwapped(char *filename); // 0x0007F640
|
||||
extern CDTYPE DiscSwapped(char *filename); // 0x0007F640
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -90,13 +90,13 @@ int gDraw3DArrowBlue = 0;
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ Draw3DTarget(struct VECTOR *position /*$s0*/, int flags /*$s2*/)
|
||||
// void /*$ra*/ Draw3DTarget(VECTOR *position /*$s0*/, int flags /*$s2*/)
|
||||
// line 213, offset 0x0007fb44
|
||||
/* begin block 1 */
|
||||
// Start line: 214
|
||||
// Start offset: 0x0007FB44
|
||||
// Variables:
|
||||
// struct VECTOR pos; // stack offset -32
|
||||
// VECTOR pos; // stack offset -32
|
||||
// int shadow; // $s1
|
||||
/* end block 1 */
|
||||
// End offset: 0x0007FD48
|
||||
@ -181,7 +181,7 @@ void Draw3DTarget(VECTOR *position, int flags)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DrawTargetArrowModel(struct TARGET_ARROW_MODEL *pTargetArrowModel /*$s1*/, struct VECTOR *pPosition /*$s2*/, int shadow /*$s4*/, int invert /*$s3*/)
|
||||
// void /*$ra*/ DrawTargetArrowModel(TARGET_ARROW_MODEL *pTargetArrowModel /*$s1*/, VECTOR *pPosition /*$s2*/, int shadow /*$s4*/, int invert /*$s3*/)
|
||||
// line 267, offset 0x0007fd48
|
||||
/* begin block 1 */
|
||||
// Start line: 268
|
||||
@ -191,16 +191,16 @@ void Draw3DTarget(VECTOR *position, int flags)
|
||||
// Start line: 271
|
||||
// Start offset: 0x0007FD9C
|
||||
// Variables:
|
||||
// struct VECTOR tempVec; // stack offset -56
|
||||
// struct SVECTOR *pVerts; // $s0
|
||||
// struct SVECTOR temp; // stack offset -40
|
||||
// VECTOR tempVec; // stack offset -56
|
||||
// SVECTOR *pVerts; // $s0
|
||||
// SVECTOR temp; // stack offset -40
|
||||
// char *pVertIndex; // $a3
|
||||
|
||||
/* begin block 1.1.1 */
|
||||
// Start line: 283
|
||||
// Start offset: 0x0007FE2C
|
||||
// Variables:
|
||||
// struct POLY_F3 *poly; // $t0
|
||||
// POLY_F3 *poly; // $t0
|
||||
// int z; // stack offset -32
|
||||
/* end block 1.1.1 */
|
||||
// End offset: 0x00080044
|
||||
@ -320,15 +320,15 @@ void DrawTargetArrowModel(TARGET_ARROW_MODEL *pTargetArrowModel, VECTOR *pPositi
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ DrawStopZone(struct VECTOR *pPosition /*$s5*/)
|
||||
// void /*$ra*/ DrawStopZone(VECTOR *pPosition /*$s5*/)
|
||||
// line 412, offset 0x000800f8
|
||||
/* begin block 1 */
|
||||
// Start line: 413
|
||||
// Start offset: 0x000800F8
|
||||
// Variables:
|
||||
// struct VECTOR *pVector; // $s0
|
||||
// struct VECTOR pStopZonePt[4]; // stack offset -128
|
||||
// struct POLY_FT4 *pPoly; // $s1
|
||||
// VECTOR *pVector; // $s0
|
||||
// VECTOR pStopZonePt[4]; // stack offset -128
|
||||
// POLY_FT4 *pPoly; // $s1
|
||||
// long *pOut; // $s2
|
||||
// long sz; // stack offset -48
|
||||
|
||||
@ -336,7 +336,7 @@ void DrawTargetArrowModel(TARGET_ARROW_MODEL *pTargetArrowModel, VECTOR *pPositi
|
||||
// Start line: 430
|
||||
// Start offset: 0x000801FC
|
||||
// Variables:
|
||||
// struct SVECTOR temp; // stack offset -64
|
||||
// SVECTOR temp; // stack offset -64
|
||||
// long p; // stack offset -56
|
||||
// long flag; // stack offset -52
|
||||
/* end block 1.1 */
|
||||
@ -448,7 +448,7 @@ void DrawStopZone(VECTOR *pPosition)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ WorldToCameraPositions(struct VECTOR *pGlobalPositionIn /*$s1*/, struct VECTOR *pCameraPositionOut /*$s0*/, int count /*$s2*/)
|
||||
// void /*$ra*/ WorldToCameraPositions(VECTOR *pGlobalPositionIn /*$s1*/, VECTOR *pCameraPositionOut /*$s0*/, int count /*$s2*/)
|
||||
// line 496, offset 0x0008047c
|
||||
/* begin block 1 */
|
||||
// Start line: 497
|
||||
@ -458,7 +458,7 @@ void DrawStopZone(VECTOR *pPosition)
|
||||
// Start line: 500
|
||||
// Start offset: 0x000804B8
|
||||
// Variables:
|
||||
// struct VECTOR temp; // stack offset -48
|
||||
// VECTOR temp; // stack offset -48
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x000804B8
|
||||
// End Line: 502
|
||||
|
@ -83,7 +83,7 @@ short specialSlot;
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ IncrementClutNum(struct RECT *clut /*$a0*/)
|
||||
// void /*$ra*/ IncrementClutNum(RECT *clut /*$a0*/)
|
||||
// line 116, offset 0x00080ddc
|
||||
/* begin block 1 */
|
||||
// Start line: 1163
|
||||
@ -116,7 +116,7 @@ void IncrementClutNum(RECT16 *clut)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ IncrementTPageNum(struct RECT *tpage /*$t0*/)
|
||||
// void /*$ra*/ IncrementTPageNum(RECT *tpage /*$t0*/)
|
||||
// line 126, offset 0x00080528
|
||||
/* begin block 1 */
|
||||
// Start line: 127
|
||||
@ -175,7 +175,7 @@ void IncrementTPageNum(RECT16 *tpage)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ LoadTPageAndCluts(struct RECT *tpage /*$s5*/, struct RECT *cluts /*$s2*/, int tpage2send /*$s6*/, char *tpageaddress /*$s0*/)
|
||||
// int /*$ra*/ LoadTPageAndCluts(RECT *tpage /*$s5*/, RECT *cluts /*$s2*/, int tpage2send /*$s6*/, char *tpageaddress /*$s0*/)
|
||||
// line 155, offset 0x00080e14
|
||||
/* begin block 1 */
|
||||
// Start line: 156
|
||||
@ -183,7 +183,7 @@ void IncrementTPageNum(RECT16 *tpage)
|
||||
// Variables:
|
||||
// int i; // $s3
|
||||
// int npalettes; // $s4
|
||||
// struct RECT temptpage; // stack offset -40
|
||||
// RECT temptpage; // stack offset -40
|
||||
/* end block 1 */
|
||||
// End offset: 0x00080F3C
|
||||
// End Line: 185
|
||||
@ -256,7 +256,7 @@ int LoadTPageAndCluts(RECT16 *tpage, RECT16 *cluts, int tpage2send, char *tpagea
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// int /*$ra*/ Find_TexID(struct MODEL *model /*$t0*/, int t_id /*$a1*/)
|
||||
// int /*$ra*/ Find_TexID(MODEL *model /*$t0*/, int t_id /*$a1*/)
|
||||
// line 191, offset 0x000805ec
|
||||
/* begin block 1 */
|
||||
// Start line: 192
|
||||
@ -366,7 +366,7 @@ int Find_TexID(MODEL *model, int t_id)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// struct TEXINF * /*$ra*/ GetTEXINFName(char *name /*$fp*/, int *tpagenum /*stack 4*/, int *texturenum /*stack 8*/)
|
||||
// TEXINF * /*$ra*/ GetTEXINFName(char *name /*$fp*/, int *tpagenum /*stack 4*/, int *texturenum /*stack 8*/)
|
||||
// line 261, offset 0x00080f3c
|
||||
/* begin block 1 */
|
||||
// Start line: 262
|
||||
@ -375,7 +375,7 @@ int Find_TexID(MODEL *model, int t_id)
|
||||
// int i; // $s4
|
||||
// int j; // $s1
|
||||
// int texamt; // $s2
|
||||
// struct TEXINF *texinf; // $s3
|
||||
// TEXINF *texinf; // $s3
|
||||
// char *nametable; // $s6
|
||||
/* end block 1 */
|
||||
// End offset: 0x00081038
|
||||
@ -429,7 +429,7 @@ TEXINF* GetTEXINFName(char *name, int *tpagenum, int *texturenum)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// struct TEXINF * /*$ra*/ GetTextureInfoName(char *name /*$a0*/, struct TPAN *result /*$s0*/)
|
||||
// TEXINF * /*$ra*/ GetTextureInfoName(char *name /*$a0*/, TPAN *result /*$s0*/)
|
||||
// line 290, offset 0x00080da0
|
||||
/* begin block 1 */
|
||||
// Start line: 291
|
||||
@ -465,7 +465,7 @@ TEXINF* GetTextureInfoName(char *name, TPAN *result)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ update_slotinfo(int tpage /*$a0*/, int slot /*$a1*/, struct RECT *pos /*$a2*/)
|
||||
// void /*$ra*/ update_slotinfo(int tpage /*$a0*/, int slot /*$a1*/, RECT *pos /*$a2*/)
|
||||
// line 334, offset 0x00081038
|
||||
/* begin block 1 */
|
||||
// Start line: 1606
|
||||
@ -778,8 +778,8 @@ void LoadPermanentTPages(int *sector)
|
||||
// Start line: 580
|
||||
// Start offset: 0x00081118
|
||||
// Variables:
|
||||
// struct RECT tpage; // stack offset -88
|
||||
// struct RECT clutpos; // stack offset -80
|
||||
// RECT tpage; // stack offset -88
|
||||
// RECT clutpos; // stack offset -80
|
||||
// char name[64]; // stack offset -72
|
||||
/* end block 1 */
|
||||
// End offset: 0x00081140
|
||||
@ -818,7 +818,7 @@ void ReloadIcons(void)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ GetTextureDetails(char *name /*stack 0*/, struct TEXTURE_DETAILS *info /*$s3*/)
|
||||
// void /*$ra*/ GetTextureDetails(char *name /*stack 0*/, TEXTURE_DETAILS *info /*$s3*/)
|
||||
// line 602, offset 0x00080bb0
|
||||
/* begin block 1 */
|
||||
// Start line: 603
|
||||
@ -827,7 +827,7 @@ void ReloadIcons(void)
|
||||
// int i; // $s2
|
||||
// int j; // $s1
|
||||
// int texamt; // $s4
|
||||
// struct TEXINF *texinf; // $v1
|
||||
// TEXINF *texinf; // $v1
|
||||
// char *nametable; // stack offset -56
|
||||
/* end block 1 */
|
||||
// End offset: 0x00080D70
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ Tile1x1(struct MODEL *model /*$a0*/)
|
||||
// void /*$ra*/ Tile1x1(MODEL *model /*$a0*/)
|
||||
// line 79, offset 0x00041b10
|
||||
/* begin block 1 */
|
||||
// Start line: 80
|
||||
@ -19,8 +19,8 @@
|
||||
// Variables:
|
||||
// int i; // $t3
|
||||
// unsigned char *polys; // $t0
|
||||
// struct SVECTOR *verts; // $t1
|
||||
// struct POLY_FT4 *prims; // $a2
|
||||
// SVECTOR *verts; // $t1
|
||||
// POLY_FT4 *prims; // $a2
|
||||
// unsigned long clut; // $t6
|
||||
// unsigned long tpage; // $a1
|
||||
|
||||
@ -177,7 +177,7 @@ void Tile1x1(MODEL *model)
|
||||
// Start line: 208
|
||||
// Start offset: 0x00041EBC
|
||||
// Variables:
|
||||
// struct PACKED_CELL_OBJECT **tilePointers; // $s3
|
||||
// PACKED_CELL_OBJECT **tilePointers; // $s3
|
||||
// int previous_matrix; // $s4
|
||||
|
||||
/* begin block 1.2.1 */
|
||||
@ -192,7 +192,7 @@ void Tile1x1(MODEL *model)
|
||||
// Start offset: 0x00041F34
|
||||
// Variables:
|
||||
// int yang; // $a1
|
||||
// struct PACKED_CELL_OBJECT *ppco; // $a0
|
||||
// PACKED_CELL_OBJECT *ppco; // $a0
|
||||
/* end block 1.2.1.1 */
|
||||
// End offset: 0x00041FB8
|
||||
// End Line: 241
|
||||
@ -201,7 +201,7 @@ void Tile1x1(MODEL *model)
|
||||
// Start line: 270
|
||||
// Start offset: 0x0004202C
|
||||
// Variables:
|
||||
// struct MODEL *model; // $a0
|
||||
// MODEL *model; // $a0
|
||||
/* end block 1.2.1.2 */
|
||||
// End offset: 0x00042060
|
||||
// End Line: 279
|
||||
@ -326,7 +326,7 @@ void DrawTILES(PACKED_CELL_OBJECT** tiles, int tile_amount)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ makeMesh(struct MVERTEX (*VSP)[5][5] /*$t4*/, int m /*$t2*/, int n /*$a2*/)
|
||||
// void /*$ra*/ makeMesh(MVERTEX (*VSP)[5][5] /*$t4*/, int m /*$t2*/, int n /*$a2*/)
|
||||
// line 292, offset 0x000420b0
|
||||
/* begin block 1 */
|
||||
// Start line: 293
|
||||
@ -646,7 +646,7 @@ void makeMesh(MVERTEX(*VSP)[5][5], int m, int n)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ drawMesh(struct MVERTEX (*VSP)[5][5] /*$s2*/, int m /*$s3*/, int n /*$s1*/, struct _pct *pc /*$a3*/)
|
||||
// void /*$ra*/ drawMesh(MVERTEX (*VSP)[5][5] /*$s2*/, int m /*$s3*/, int n /*$s1*/, plotContext *pc /*$a3*/)
|
||||
// line 359, offset 0x00042650
|
||||
/* begin block 1 */
|
||||
// Start line: 360
|
||||
@ -654,7 +654,7 @@ void makeMesh(MVERTEX(*VSP)[5][5], int m, int n)
|
||||
// Variables:
|
||||
// int j; // $t6
|
||||
// int k; // $t9
|
||||
// struct POLY_FT4 *prims; // $t1
|
||||
// POLY_FT4 *prims; // $t1
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 370
|
||||
@ -662,7 +662,7 @@ void makeMesh(MVERTEX(*VSP)[5][5], int m, int n)
|
||||
// Variables:
|
||||
// int Z1; // stack offset -24
|
||||
// int Z2; // stack offset -20
|
||||
// struct MVERTEX (*VST)[5][5]; // $t2
|
||||
// MVERTEX (*VST)[5][5]; // $t2
|
||||
// long *ot; // $t7
|
||||
|
||||
/* begin block 1.1.1 */
|
||||
@ -780,17 +780,17 @@ void drawMesh(MVERTEX(*VSP)[5][5], int m, int n, _pct *pc)
|
||||
// Start line: 490
|
||||
// Start offset: 0x00042AEC
|
||||
// Variables:
|
||||
// struct MVERTEX (*VSP)[5][5]; // $t3
|
||||
// struct _pct *pc; // $t2
|
||||
// MVERTEX (*VSP)[5][5]; // $t3
|
||||
// plotContext *pc; // $t2
|
||||
|
||||
/* begin block 1.1 */
|
||||
// Start line: 490
|
||||
// Start offset: 0x00042AEC
|
||||
// Variables:
|
||||
// unsigned long indices; // $a0
|
||||
// struct SVECTOR *v0; // $t1
|
||||
// struct SVECTOR *v1; // $a1
|
||||
// struct SVECTOR *v2; // $t0
|
||||
// SVECTOR *v0; // $t1
|
||||
// SVECTOR *v1; // $a1
|
||||
// SVECTOR *v2; // $t0
|
||||
/* end block 1.1 */
|
||||
// End offset: 0x00042AEC
|
||||
// End Line: 490
|
||||
@ -879,7 +879,7 @@ void SubdivNxM(char *polys, ulong n, ulong m, int ofse)
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ TileNxN(struct MODEL *model /*$s4*/, int levels /*$s2*/, int Dofse /*$s6*/)
|
||||
// void /*$ra*/ TileNxN(MODEL *model /*$s4*/, int levels /*$s2*/, int Dofse /*$s6*/)
|
||||
// line 581, offset 0x00042f40
|
||||
/* begin block 1 */
|
||||
// Start line: 582
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user