document ba/carry, ba/drone and ba/falldamage
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
|
||||
/* .bss */
|
||||
u8 D_8037D440;
|
||||
u8 bsdronetogo_substate;
|
||||
u8 D_8037D441;
|
||||
|
||||
void func_802AEC08(void);
|
||||
@@ -14,8 +14,8 @@ void func_802AEC70(void);
|
||||
void func_802AEC78(void);
|
||||
void func_802AEDC8(void);
|
||||
|
||||
void func_802AEB60(s32 arg0){
|
||||
switch(D_8037D440){
|
||||
static void __bsDroneGoTo_set_substate(s32 arg0){
|
||||
switch(bsdronetogo_substate){
|
||||
case 1:
|
||||
func_802AEC70();
|
||||
break;
|
||||
@@ -23,7 +23,7 @@ void func_802AEB60(s32 arg0){
|
||||
func_802AEDC8();
|
||||
break;
|
||||
}
|
||||
switch(D_8037D440 = arg0){
|
||||
switch(bsdronetogo_substate = arg0){
|
||||
case 1:
|
||||
func_802AEC08();
|
||||
break;
|
||||
@@ -41,20 +41,20 @@ void func_802AEC08(void){
|
||||
void func_802AEC28(void){
|
||||
baphysics_reset_horizontal_velocity();
|
||||
if(func_8028B2E8() || player_inWater())
|
||||
func_802AEB60(2);
|
||||
__bsDroneGoTo_set_substate(2);
|
||||
}
|
||||
|
||||
void func_802AEC70(void){}
|
||||
|
||||
void func_802AEC78(void){
|
||||
f32 sp2C;
|
||||
f32 sp20[3];
|
||||
s32 sp1C;
|
||||
func_8029BC60(&sp1C, &sp2C);
|
||||
baanim_playForDuration_loopSmooth(sp1C, sp2C);
|
||||
func_802925F8(&sp20, &sp2C);
|
||||
baphysics_set_goto_position(&sp20);
|
||||
baphysics_set_goto_duration(sp2C);
|
||||
f32 duration_s;
|
||||
f32 target_position[3];
|
||||
s32 anim_id;
|
||||
func_8029BC60(&anim_id, &duration_s);
|
||||
baanim_playForDuration_loopSmooth(anim_id, duration_s);
|
||||
badrone_get_position_and_duration(target_position, &duration_s);
|
||||
baphysics_set_goto_position(target_position);
|
||||
baphysics_set_goto_duration(duration_s);
|
||||
func_8029C7F4(1,1,3,BA_PHYSICS_GOTO);
|
||||
func_8029436C(1);
|
||||
D_8037D441 = 0;
|
||||
@@ -80,7 +80,7 @@ void func_802AECE4(void){
|
||||
|
||||
if(baphysics_goto_done() && D_8037D441 == 0){
|
||||
D_8037D441++;
|
||||
func_80292768();
|
||||
badrone_goto_end();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,19 +88,19 @@ void func_802AEDC8(void){
|
||||
func_8029436C(0);
|
||||
}
|
||||
|
||||
void func_802AEDE8(void){
|
||||
D_8037D440 = 0;
|
||||
void bsDroneGoTo_init(void){
|
||||
bsdronetogo_substate = 0;
|
||||
func_8031F9F4(1);
|
||||
if( !func_8028B2E8() && func_8029BDE8()){
|
||||
func_802AEB60(1);
|
||||
__bsDroneGoTo_set_substate(1);
|
||||
}else{
|
||||
func_802AEB60(2);
|
||||
__bsDroneGoTo_set_substate(2);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void func_802AEE48(void){
|
||||
switch(D_8037D440){
|
||||
void bsDroneGoTo_update(void){
|
||||
switch(bsdronetogo_substate){
|
||||
case 1:
|
||||
func_802AEC28();
|
||||
break;
|
||||
@@ -110,7 +110,7 @@ void func_802AEE48(void){
|
||||
}
|
||||
}
|
||||
|
||||
void func_802AEE9C(void){
|
||||
func_802AEB60(0);
|
||||
void bsDroneGoTo_end(void){
|
||||
__bsDroneGoTo_set_substate(0);
|
||||
func_8031F9F4(0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user