Decompile pdmodeGetReaction

This commit is contained in:
Ryan Dwyer 2020-03-26 19:08:09 +10:00
parent 94a5aadb22
commit 1c812697d7
3 changed files with 11 additions and 13 deletions

View File

@ -216,7 +216,7 @@ glabel var7f1a8cf0
/* f02e170: 448e2000 */ mtc1 $t6,$f4
/* f02e174: 00000000 */ sll $zero,$zero,0x0
/* f02e178: 468020a0 */ cvt.s.w $f2,$f4
/* f02e17c: 0fc06c28 */ jal func0f01b0a0
/* f02e17c: 0fc06c28 */ jal pdmodeGetReaction
/* f02e180: e7a2001c */ swc1 $f2,0x1c($sp)
/* f02e184: 3c0142c8 */ lui $at,0x42c8
/* f02e188: 44813000 */ mtc1 $at,$f6
@ -244,7 +244,7 @@ glabel func0f02e1cc
/* f02e1d0: afbf0014 */ sw $ra,0x14($sp)
/* f02e1d4: afa50024 */ sw $a1,0x24($sp)
/* f02e1d8: 80830003 */ lb $v1,0x3($a0)
/* f02e1dc: 0fc06c28 */ jal func0f01b0a0
/* f02e1dc: 0fc06c28 */ jal pdmodeGetReaction
/* f02e1e0: afa3001c */ sw $v1,0x1c($sp)
/* f02e1e4: 8fa3001c */ lw $v1,0x1c($sp)
/* f02e1e8: 24040064 */ addiu $a0,$zero,0x64
@ -295,7 +295,7 @@ glabel var7f1a8cf4
/* f02e274: 448e2000 */ mtc1 $t6,$f4
/* f02e278: 00000000 */ sll $zero,$zero,0x0
/* f02e27c: 468020a0 */ cvt.s.w $f2,$f4
/* f02e280: 0fc06c28 */ jal func0f01b0a0
/* f02e280: 0fc06c28 */ jal pdmodeGetReaction
/* f02e284: e7a2001c */ swc1 $f2,0x1c($sp)
/* f02e288: 3c0142c8 */ lui $at,0x42c8
/* f02e28c: 44813000 */ mtc1 $at,$f6

View File

@ -22,12 +22,10 @@ const u32 var7f1a85a4[] = {0x3e89374c};
const u32 var7f1a85a8[] = {0x4196cbe4};
const u32 var7f1a85ac[] = {0x4196cbe4};
GLOBAL_ASM(
glabel func0f01b0a0
/* f01b0a0: 44800000 */ mtc1 $zero,$f0
/* f01b0a4: 03e00008 */ jr $ra
/* f01b0a8: 00000000 */ sll $zero,$zero,0x0
);
f32 pdmodeGetReaction(void)
{
return 0;
}
f32 pdmodeGetHealth(void)
{
@ -35,7 +33,7 @@ f32 pdmodeGetHealth(void)
return g_MissionConfig.pdmodehealthf;
}
return 1.0f;
return 1;
}
f32 pdmodeGetDamage(void)
@ -44,7 +42,7 @@ f32 pdmodeGetDamage(void)
return g_MissionConfig.pdmodedamagef;
}
return 1.0f;
return 1;
}
f32 pdmodeGetAccuracy(void)
@ -53,7 +51,7 @@ f32 pdmodeGetAccuracy(void)
return g_MissionConfig.pdmodeaccuracyf;
}
return 1.0f;
return 1;
}
GLOBAL_ASM(

View File

@ -3,7 +3,7 @@
#include <ultra64.h>
#include "types.h"
u32 func0f01b0a0(void);
f32 pdmodeGetReaction(void);
f32 pdmodeGetHealth(void);
f32 pdmodeGetDamage(void);
f32 pdmodeGetAccuracy(void);