Decompile weaponTick

This commit is contained in:
Ryan Dwyer
2022-08-24 23:07:51 +10:00
parent 83d0268f19
commit fdb0b4990a
5 changed files with 436 additions and 2839 deletions
+1
View File
@@ -153,6 +153,7 @@ SECTIONS
osAppNMIBuffer = 0x8000031c;
getitle0f0155f0_hack = getitle0f0155f0;
nbombCreateStorm_hack = nbombCreateStorm;
viGetHeight_hack = viGetHeight;
/***************************************************************************
+2 -2
View File
@@ -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
View File
@@ -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
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -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 {