mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-09-03 18:03:34 -04:00
Decompile weaponTick
This commit is contained in:
@@ -153,6 +153,7 @@ SECTIONS
|
||||
osAppNMIBuffer = 0x8000031c;
|
||||
|
||||
getitle0f0155f0_hack = getitle0f0155f0;
|
||||
nbombCreateStorm_hack = nbombCreateStorm;
|
||||
viGetHeight_hack = viGetHeight;
|
||||
|
||||
/***************************************************************************
|
||||
|
||||
@@ -20482,10 +20482,10 @@ void chrNavTickMain(struct chrdata *chr, struct coord *nextpos, struct waydata *
|
||||
waydata->aimposobj.z = waydata->aimpos.z;
|
||||
} else {
|
||||
// Obstacle ahead
|
||||
waydata->mode = WAYMODE_NEWOBSACTLE;
|
||||
waydata->mode = WAYMODE_NEWOBSTACLE;
|
||||
waydata->iter = 0;
|
||||
}
|
||||
} else if (waydata->mode == WAYMODE_NEWOBSACTLE) {
|
||||
} else if (waydata->mode == WAYMODE_NEWOBSTACLE) {
|
||||
// Chr has just noticed an obstacle ahead of them which they need to
|
||||
// route around. The obstacleleft and obstacleright coordinates are
|
||||
// already populated and they indicate the left and right corners of
|
||||
|
||||
+5
-2
@@ -1337,10 +1337,13 @@ Gfx *nbombsRender(Gfx *gdl)
|
||||
void nbombCreateStorm(struct coord *pos, struct prop *ownerprop)
|
||||
{
|
||||
u32 stack;
|
||||
s32 oldest240 = -1;
|
||||
s32 index = 0;
|
||||
s32 oldest240;
|
||||
s32 index;
|
||||
s32 i;
|
||||
|
||||
oldest240 = -1;
|
||||
index = 0;
|
||||
|
||||
g_NbombsActive = true;
|
||||
|
||||
for (i = 0; i < 6; i++) {
|
||||
|
||||
+427
-2834
File diff suppressed because it is too large
Load Diff
@@ -4208,7 +4208,7 @@
|
||||
#define WAYMODE_RETRY 2
|
||||
#define WAYMODE_LOST2 3
|
||||
#define WAYMODE_HAVEAIMPOS 4
|
||||
#define WAYMODE_NEWOBSACTLE 5
|
||||
#define WAYMODE_NEWOBSTACLE 5
|
||||
#define WAYMODE_MAGIC 6
|
||||
|
||||
enum weaponnum {
|
||||
|
||||
Reference in New Issue
Block a user