Attempt decompile of aiSetHearDistance
This commit is contained in:
parent
f3b951ae81
commit
6abc086c04
|
|
@ -5260,7 +5260,7 @@ bool aiIfAlertnessLessThanRandom(void)
|
|||
* @cmd 0092
|
||||
*/
|
||||
GLOBAL_ASM(
|
||||
glabel ai0092
|
||||
glabel aiSetHearDistance
|
||||
/* f0537d4: 3c04800a */ lui $a0,0x800a
|
||||
/* f0537d8: 24849fc0 */ addiu $a0,$a0,-24640
|
||||
/* f0537dc: 8c8e0434 */ lw $t6,0x434($a0)
|
||||
|
|
@ -5284,6 +5284,19 @@ glabel ai0092
|
|||
/* f053824: ac8c0438 */ sw $t4,0x438($a0)
|
||||
);
|
||||
|
||||
// Commented because it uses different float registers. Matches otherwise.
|
||||
//bool aiSetHearDistance(void)
|
||||
//{
|
||||
// u8 *cmd = g_Vars.ailist + g_Vars.aioffset;
|
||||
// float distance = cmd[3] | (cmd[2] << 8);
|
||||
// distance /= 1000;
|
||||
// g_Vars.chrdata->hearingscale = distance;
|
||||
//
|
||||
// g_Vars.aioffset += 4;
|
||||
//
|
||||
// return false;
|
||||
//}
|
||||
|
||||
/**
|
||||
* @cmd 0093
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@
|
|||
/*0x008f*/ bool aiIfChrAlertnessLessThan(void);
|
||||
/*0x0090*/ bool aiIfAlertnessLessThanRandom(void);
|
||||
/*0x0091*/ bool ai0091(void);
|
||||
/*0x0092*/ bool ai0092(void);
|
||||
/*0x0092*/ bool aiSetHearDistance(void);
|
||||
/*0x0093*/ bool ai0093(void);
|
||||
/*0x0094*/ bool ai0094(void);
|
||||
/*0x0095*/ bool ai0095(void);
|
||||
|
|
|
|||
|
|
@ -14099,7 +14099,7 @@ bool (*command_pointers[])(void) = {
|
|||
/*0x008f*/ aiIfChrAlertnessLessThan,
|
||||
/*0x0090*/ aiIfAlertnessLessThanRandom,
|
||||
/*0x0091*/ ai0091,
|
||||
/*0x0092*/ ai0092,
|
||||
/*0x0092*/ aiSetHearDistance,
|
||||
/*0x0093*/ ai0093,
|
||||
/*0x0094*/ ai0094,
|
||||
/*0x0095*/ ai0095,
|
||||
|
|
|
|||
Loading…
Reference in New Issue