documentation: core2/ba/physics

This commit is contained in:
Banjo Kazooie
2024-06-16 22:36:36 -05:00
parent 8fe5c3b4d1
commit 092de6aae3
208 changed files with 2342 additions and 2163 deletions

View File

@@ -60,7 +60,7 @@ void func_80387520(ActorMarker *caller, enum asset_e text_id, s32 arg1){
local->unk24 = 0;
}
else{
func_80328B8C(this, 2, 0, 1);
subaddie_set_state_with_direction(this, 2, 0, 1);
}
}
@@ -77,7 +77,7 @@ void func_803875D4(ActorMarker *marker){
Actor *this = marker_getActor(reinterpret_cast(ActorMarker *, marker));
enum asset_e text_id;
func_80328A84(this, 4);
subaddie_set_state(this, 4);
actor_loopAnimation(this);
this->unk28 = 0.0f;
@@ -97,7 +97,7 @@ void func_80387678(Actor *this){
func_8028F918(2);
timed_setStaticCameraToNode(0.0f, 4);
timedFunc_set_1(1.0f, (GenFunction_1)func_803875D4, (s32)this->marker);
func_80328B8C(this, 1, 0.0f, 1);
subaddie_set_state_with_direction(this, 1, 0.0f, 1);
}
void func_8038771C(Actor *this){
@@ -140,7 +140,7 @@ void func_803878CC(Actor * this){
if(!this->unk16C_4){
if(this->state == 3){
func_80328B8C(this, 2, 0.0f, 1);
subaddie_set_state_with_direction(this, 2, 0.0f, 1);
}
this->unk16C_4 = TRUE;
}//L80387970
@@ -151,7 +151,7 @@ void func_803878CC(Actor * this){
){
func_80311480(0xa0b, 0xe, this->position, this->marker, func_80387520, NULL);
this->unk138_24 = TRUE;
func_80328AC8(this, 3);
subaddie_set_state_forward(this, 3);
}
if( mapSpecificFlags_get(0)
@@ -173,7 +173,7 @@ void func_803878CC(Actor * this){
}
func_80387774(&this);
if(func_80328BD4(this, 2, 0.0f, 1, 0.007f))
if(subaddie_maybe_set_state_position_direction(this, 2, 0.0f, 1, 0.007f))
break;
func_80328FB0(this, 3.0f);
@@ -185,7 +185,7 @@ void func_803878CC(Actor * this){
case 2:// 80387B10
func_80387774(&this);
if( actor_animationIsAt(this, 0.99f)
&& func_80328BD4(this, 1, 0.0f, 1, 0.78f)
&& subaddie_maybe_set_state_position_direction(this, 1, 0.0f, 1, 0.78f)
){
this->unk28 = 4.0f;
break;
@@ -214,7 +214,7 @@ void func_803878CC(Actor * this){
func_80328FB0(this, 3.0f);
local = (ActorLocal_Blubber*)&this->local;
if(actor_animationIsAt(this, 0.99f) && !local->unk24){
func_80328A84(this, 5);
subaddie_set_state(this, 5);
this->unk28 = 8.0f;
}
}

View File

@@ -35,7 +35,7 @@ void __chClam_func_803863F0(enum sfx_e sfx_id, f32 arg1, s32 arg2, f32 position[
}
void __chClam_func_80386454(Actor *this){
func_80328B8C(this, 1, 0.01f, 1);
subaddie_set_state_with_direction(this, 1, 0.01f, 1);
actor_loopAnimation(this);
animctrl_setDuration(this->animctrl, randf2(1.9f, 2.1f));
}
@@ -286,7 +286,7 @@ void chClam_update(Actor *this){
if(this->position_y <= sp48 + 15.0f && sp48 - 15.0f <= this->position_y){
this->position_y = sp48;
this->unk38_31 = sp44;
func_80328B8C(this, 3, 0.01f, 1);
subaddie_set_state_with_direction(this, 3, 0.01f, 1);
actor_loopAnimation(this);
this->velocity_x = 0.0f;
animctrl_setDuration(this->animctrl, 0.6f);
@@ -298,7 +298,7 @@ void chClam_update(Actor *this){
switch(this->state){
case 1://L80387170
if(__chClam_rotateTowardTarget(this, 140)){
func_80328B8C(this, 2, 0.01f, 1);
subaddie_set_state_with_direction(this, 2, 0.01f, 1);
actor_playAnimationOnce(this);
animctrl_setDuration(this->animctrl, 1.0f);
__chClam_func_803863F0(SFX_3F2_UNKNOWN, randf2(1.0f, 1.1f), 22000, this->position, 1500.0f, 2000.0f);

View File

@@ -83,7 +83,7 @@ void chLeaky_update(Actor *this) {
void __chLeaky_startCutscene(ActorMarker *caller, enum asset_e text_id, s32 arg2){
Actor *this = marker_getActor(caller);
Struct73s *temp_v0;
func_80328A84(this, 2);
subaddie_set_state(this, 2);
temp_v0 = func_8034C5AC(300);
if(temp_v0 != NULL){
func_8034E7B8(temp_v0, -600, 4.0f, 2, 10.0f);

View File

@@ -56,7 +56,7 @@ Actor *func_803894C0(ActorMarker *marker, Gfx **gfx, Mtx **mtx, Vtx **vtx){
}
void TTC_func_80389530(Actor *this){
func_80328B8C(this, 1, 0.2f, 1);
subaddie_set_state_with_direction(this, 1, 0.2f, 1);
this->marker->collidable = FALSE;
this->unk38_31 = 0;
FUNC_8030E8B4(SFX_6C_LOCKUP_CLOSING, 1.0f, 32000, this->position, 1250, 2500);
@@ -65,7 +65,7 @@ void TTC_func_80389530(Actor *this){
void func_8038959C(Actor *this){
func_80389468();
func_80328B8C(this, 2, 0.2f, 1);
subaddie_set_state_with_direction(this, 2, 0.2f, 1);
this->unk38_31 = 1;
FUNC_8030E8B4(SFX_6B_LOCKUP_OPENING, 1.0f, 32000, this->position, 1250, 2500);
}
@@ -94,7 +94,7 @@ void func_80389600(Actor *this){
case 1: //L803896F0
if(!this->initialized){
this->marker->propPtr->unk8_3 = TRUE;
func_80328B8C(this, 1, 0.2f, 1);
subaddie_set_state_with_direction(this, 1, 0.2f, 1);
this->marker->collidable = FALSE;
this->unk38_31 = 0;
this->initialized = TRUE;
@@ -119,7 +119,7 @@ void func_80389600(Actor *this){
}
if(actor_animationIsAt(this, 0.5f)){
func_80328B8C(this, 3, 0.5f, 1);
subaddie_set_state_with_direction(this, 3, 0.5f, 1);
}
if(0.15 < animctrl_getAnimTimer(this->animctrl)){
this->marker->collidable = TRUE;
@@ -135,7 +135,7 @@ void func_80389600(Actor *this){
if(!(local->unk4 < tmp_v1)){
local->unk4 = 0;
func_80328B8C(this, 4, 0.5f, 1);
subaddie_set_state_with_direction(this, 4, 0.5f, 1);
}
break;

View File

@@ -66,7 +66,7 @@ Actor *func_80387EB0(ActorMarker *marker, Gfx **gfx, Mtx **mtx, Vtx **vtx) {
}
void TTC_func_80387F18(Actor *this) {
func_80328AEC(this, 3);
subaddie_set_state_looped(this, 3);
this->unk1C[0] = 0.0f;
switch((s32)this->unk60){
case 0x78:
@@ -94,7 +94,7 @@ void TTC_func_80387FB0(ActorMarker *caller, enum asset_e text_id, s32 arg2){
void TTC_func_80387FF4(Actor *this) {
s32 i;
func_80328B8C(this, 4, 0.01f, 1);
subaddie_set_state_with_direction(this, 4, 0.01f, 1);
actor_playAnimationOnce(this);
for(i = 0; i < 3; i ++){
FUNC_8030E8B4(SFX_79_TICKER_DEATH, 0.5f, 17000, this->position, 1500, 3000);
@@ -127,7 +127,7 @@ void func_80388178(ActorMarker *this_marker, ActorMarker *other_marker) {
func_8032B4DC(this, other_marker, 7);
if (this->unk60 == 40.0f) {
func_80328B8C(this, 6, 0.01f, 1);
subaddie_set_state_with_direction(this, 6, 0.01f, 1);
actor_playAnimationOnce(this);
for(i = 0; i < 3; i++){
FUNC_8030E8B4(SFX_78_EAGLECRY, 0.7f, 20000, this->position, 1500, 3000);
@@ -220,7 +220,7 @@ void func_80388434(Actor *this){
case 1:// L80388578
if(!this->initialized){
animctrl_setTransitionDuration(this->animctrl, 0.35f);
func_80328B8C(this, 1, 0.01f, 1);
subaddie_set_state_with_direction(this, 1, 0.01f, 1);
this->unk60 = 120.0f;
this->marker->propPtr->unk8_3 = TRUE;
marker_setCollisionScripts(this->marker, func_803883C8, func_80388344, func_80388178);
@@ -233,7 +233,7 @@ void func_80388434(Actor *this){
&& temp_v0 != 1
&& temp_v0 != 10
){
func_80328B8C(this, 5, 0.01f, 1);
subaddie_set_state_with_direction(this, 5, 0.01f, 1);
if(func_80311480(0xa0e, 0xf, this->position, this->marker, TTC_func_80387FB0, NULL)){
this->unk138_24 = TRUE;
}
@@ -258,7 +258,7 @@ void func_80388434(Actor *this){
case 2:// L8038872C
if(!func_8038812C(this)){
func_80328AEC(this, 1);
subaddie_set_state_looped(this, 1);
break;
}
@@ -284,7 +284,7 @@ void func_80388434(Actor *this){
}
if(2.0f <= this->unk1C[0]){
func_80328AEC(this, 2);
subaddie_set_state_looped(this, 2);
this->unk38_31 = 0;
break;
}
@@ -322,7 +322,7 @@ void func_80388434(Actor *this){
}
if(actor_animationIsAt(this, 0.99f)){
func_80328B8C(this, 7, 0.01f, 1);
subaddie_set_state_with_direction(this, 7, 0.01f, 1);
}
break;

View File

@@ -76,7 +76,7 @@ void chtreasure_update(Actor *this){
this->unk5C = animctrl_getAnimTimer(this->animctrl) *300.0; //radius of 300.0f
if(animctrl_isStopped(this->animctrl)){
actor_loopAnimation(this);
func_80328AC8(this, 2);
subaddie_set_state_forward(this, 2);
this->marker->propPtr->unk8_3 = 1;
actor_collisionOn(this);
func_8030E878(SFX_3F2_UNKNOWN, randf2(1.2f, 1.3f), 20000, this->position, 200.0f, 1500.0f);