The first commit
This commit is contained in:
40
src/GV/code_6F80.c
Normal file
40
src/GV/code_6F80.c
Normal file
@@ -0,0 +1,40 @@
|
||||
#include <ultra64.h>
|
||||
#include "functions.h"
|
||||
#include "variables.h"
|
||||
|
||||
void func_8038D3AC(Actor *this);
|
||||
|
||||
/* .data */
|
||||
ActorInfo D_80391260 = { 0x1A5, 0x288, 0x402,
|
||||
0, NULL,
|
||||
func_8038D3AC, NULL, func_80325340,
|
||||
0, 0, 0.0f, 0
|
||||
};
|
||||
|
||||
/* .bss */
|
||||
u8 D_80391AA0;
|
||||
|
||||
/* .code */
|
||||
void func_8038D370(ActorMarker *this_marker, ActorMarker *other_marker){
|
||||
D_80391AA0 = 5;
|
||||
}
|
||||
|
||||
int func_8038D388(void){
|
||||
return D_80391AA0 ? 1 : 0;
|
||||
}
|
||||
|
||||
void func_8038D3AC(Actor *this){
|
||||
if(!this->unk16C_4){
|
||||
this->unk16C_4 = TRUE;
|
||||
marker_setCollisionScripts(this->marker, func_8038D370, NULL, NULL);
|
||||
D_80391AA0 = 0;
|
||||
if(func_8031FF44(BKPROG_F8_KING_SANDYBUTT_PYRAMID_STATE, 2) == 3){
|
||||
marker_despawn(this->marker);
|
||||
}
|
||||
}
|
||||
else{
|
||||
if(D_80391AA0 > 0){
|
||||
D_80391AA0--;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user