Decompile sky0f11f07c and discover wind speed AI command

This commit is contained in:
Ryan Dwyer
2022-03-26 20:43:28 +10:00
parent 1f23768479
commit 7ebd2578f7
15 changed files with 117 additions and 188 deletions
+5 -6
View File
@@ -3800,13 +3800,12 @@
msrc4, \
msrc5,
// This just does:
// addr8007db84 = addr7f1a9da4 * value
// In practice, value is 8, 11, 15, 20, 22 and 130,
// though some of these setup files are probably not used.
#define cmd01b2_mponly(value) \
/**
* Set the wind speed, which controls how quickly clouds in the sky are moving.
*/
#define set_wind_speed(speed) \
mkshort(0x01b2), \
value,
speed,
/**
* Toggle which player (Bond or Coop) is referenced by the chr's CHR_P1P2
+2 -2
View File
@@ -404,8 +404,8 @@ extern struct skeleton g_Skel22;
extern struct skeleton g_SkelRobot;
extern struct headorbody g_HeadsAndBodies[];
extern struct hatposition var8007dae4[1][6];
extern f32 var8007db80;
extern f32 var8007db84;
extern f32 g_SkyCloudOffset;
extern f32 g_SkyWindSpeed;
extern f32 var8007db88[];
extern u32 var8007db94[];
extern u32 var8007dba0;
+1 -1
View File
@@ -398,7 +398,7 @@
/*0x01ae*/ bool aiClearInventory(void);
/*0x01af*/ bool aiChrGrabObject(void);
/*0x01b1*/ bool aiShuffleRuinsPillars(void);
/*0x01b2*/ bool ai01b2(void);
/*0x01b2*/ bool aiSetWindSpeed(void);
/*0x01b3*/ bool aiToggleP1P2(void);
/*0x01b4*/ bool ai01b4(void);
/*0x01b5*/ bool aiChrSetP1P2(void);
+1 -1
View File
@@ -9,7 +9,7 @@ void skyReset(u32 stagenum);
void skyTick(void);
void sky0f11f000(f32 left, f32 top, struct coord *arg2);
u32 sky0f11f07c(void);
bool sky0f11f07c(struct coord *arg0, struct coord *arg1, f32 *arg2);
u32 sky0f11f1fc(void);
void sky0f11f384(struct coord *arg0, struct coord *arg1, struct coord *out);
f32 sky0f11f3d0(f32 value, f32 min, f32 max);