Merge branch 'master' of https://gitlab.com/banjo.decomp/banjo-kazooie into document/fileprogress
This commit is contained in:
@@ -101,7 +101,7 @@ void CCW_func_80387A40(Actor *this) {
|
||||
local->unk18[0] += sp5C[0] * sp68;
|
||||
local->unk18[1] += sp5C[1] * sp68;
|
||||
local->unk18[2] += sp5C[2] * sp68;
|
||||
if (local->unk8 < gu_sqrtf(local->unk18[0]*local->unk18[0] + local->unk18[1]*local->unk18[1] + local->unk18[2]*local->unk18[2])) {
|
||||
if (local->unk8 < LENGTH_VEC3F(local->unk18)) {
|
||||
ml_vec3f_set_length(local->unk18, local->unk8);
|
||||
}
|
||||
func_80258A4C(this->position, this->yaw - 90.0f, local->unkC, &sp58, &sp54, &sp50);
|
||||
@@ -117,7 +117,7 @@ void CCW_func_80387A40(Actor *this) {
|
||||
sfxsource_set_fade_distances(local->sfxsourceIdx, 500.0f, 1500.0f);
|
||||
sfxsource_set_position(local->sfxsourceIdx, this->position);
|
||||
func_8030E2C4(local->sfxsourceIdx);
|
||||
sfxsource_setSampleRate(local->sfxsourceIdx, 2000.0f + 8000.0f*(gu_sqrtf(local->unk18[0]*local->unk18[0] + local->unk18[1]*local->unk18[1] + local->unk18[2]*local->unk18[2])/ local->unk8));
|
||||
sfxsource_setSampleRate(local->sfxsourceIdx, 2000.0f + 8000.0f*(LENGTH_VEC3F(local->unk18)/ local->unk8));
|
||||
if (!mapSpecificFlags_get(local->unk4->unk2)) {
|
||||
player_getPosition(sp44);
|
||||
if (sp44[2] > -600.0f) {
|
||||
|
||||
@@ -270,9 +270,9 @@ void CCW_func_80389BFC(Actor *this) {
|
||||
func_8028F784(0);
|
||||
}
|
||||
if ((local->unk0->map_id != MAP_43_CCW_SPRING) && ((this->position[0] + 500.0f) < sp4C[0])) {
|
||||
func_8028F364(this->position, 1110.0f, 200.0f, ACTOR_2A2_CATERPILLAR, &this);
|
||||
player_setCarryObjectPoseInCylinder(this->position, 1110.0f, 200.0f, ACTOR_2A2_CATERPILLAR, &this);
|
||||
if ((local->unk0->unkE != 0) && (carriedObj_getActorId() == ACTOR_2A2_CATERPILLAR) && (ml_distance_vec3f(this->position, sp4C) < 1010.0f) && (player_throwCarriedObject() != 0)) {
|
||||
func_8028FA54(D_8038FDE0);
|
||||
player_setThrowTargetPosition(D_8038FDE0);
|
||||
if ((local->unk0->map_id == MAP_44_CCW_SUMMER) && (local->unk4 == 0)) {
|
||||
gcdialog_showText(0xCD8, 4, NULL, NULL, NULL, NULL);
|
||||
}
|
||||
|
||||
@@ -142,9 +142,9 @@ void chnabnut_update(Actor *this) {
|
||||
this->yaw += sp24 * 10.0f;
|
||||
}
|
||||
if (this->has_met_before && !func_803114B0()) {
|
||||
func_8028F364(this->position, 500.0f, 200.0f, ACTOR_2A9_ACORN, &this);
|
||||
player_setCarryObjectPoseInCylinder(this->position, 500.0f, 200.0f, ACTOR_2A9_ACORN, &this);
|
||||
if ((carriedObj_getActorId() == ACTOR_2A9_ACORN) && (ml_distance_vec3f(this->position, sp30) < 300.0f) && player_throwCarriedObject()) {
|
||||
func_8028FA54(D_8038F350);
|
||||
player_setThrowTargetPosition(D_8038F350);
|
||||
local->returned_acorn_count++;
|
||||
if (local->returned_acorn_count == 6) {
|
||||
chnabnut_setState(this, NABNUT_STATE_2_WAIT);
|
||||
|
||||
Reference in New Issue
Block a user