1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-12-28 15:56:51 +00:00

fire arrow ok

This commit is contained in:
fig02 2020-03-29 05:23:40 -04:00
parent fde5369eae
commit 7cc6b00fac

View file

@ -117,7 +117,7 @@ void func_80865F1C(ArrowFire* this, GlobalContext* globalCtx) {
this->fireRadius = (((1.0f - offset) * scale) + 10.0f); this->fireRadius = (((1.0f - offset) * scale) + 10.0f);
this->unk_158 += ((2.0f - this->unk_158) * 0.1f); this->unk_158 += ((2.0f - this->unk_158) * 0.1f);
if (this->timer < 0x10) { if (this->timer < 0x10) {
if (1){} // needed for regalloc if (1){}
this->alpha = ((this->timer * 0x23) - 0x118); this->alpha = ((this->timer * 0x23) - 0x118);
} }
} }
@ -186,7 +186,6 @@ void ArrowFire_Update(ArrowFire* this, GlobalContext* globalCtx) {
} }
} }
//#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_Arrow_Fire/ArrowFire_Draw.s")
void ArrowFire_Draw(ArrowFire* this, GlobalContext* globalCtx){ void ArrowFire_Draw(ArrowFire* this, GlobalContext* globalCtx){
s32 pad1; s32 pad1;
s32 pad2; s32 pad2;
@ -198,15 +197,15 @@ void ArrowFire_Draw(ArrowFire* this, GlobalContext* globalCtx){
s32 pad4; s32 pad4;
Gfx* gfxArr[2]; Gfx* gfxArr[2];
stateFrames = globalCtx->state.frames; if (1) {
arrow = this->actor.attachedA; stateFrames = globalCtx->state.frames;
arrow = this->actor.attachedA;
}
if ((arrow != NULL) && (arrow->actor.update != NULL) && (this->timer < 0xFF)) { if ((arrow != NULL) && (arrow->actor.update != NULL) && (this->timer < 0xFF)) {
if (arrow->hitWall & 2){ if (1) {}
tranform = &this->actor; tranform = (arrow->hitWall & 2) ? &this->actor : &arrow->actor;
} else { gfxCtx = globalCtx->state.gfxCtx; func_800C6AC4(gfxArr, globalCtx->state.gfxCtx, "../z_arrow_fire.c", 618);
tranform = &arrow->actor;
}
func_800C6AC4(gfxArr, gfxCtx = globalCtx->state.gfxCtx, "../z_arrow_fire.c", 618);
Matrix_Translate(tranform->posRot.pos.x, tranform->posRot.pos.y, tranform->posRot.pos.z, MTXMODE_NEW); Matrix_Translate(tranform->posRot.pos.x, tranform->posRot.pos.y, tranform->posRot.pos.z, MTXMODE_NEW);
Matrix_RotateY(tranform->shape.rot.y * 9.58738E-05f, MTXMODE_APPLY); // 2*PI/65536, do we have a pi define? Matrix_RotateY(tranform->shape.rot.y * 9.58738E-05f, MTXMODE_APPLY); // 2*PI/65536, do we have a pi define?
Matrix_RotateX(tranform->shape.rot.x * 9.58738E-05f, MTXMODE_APPLY); // 2*PI/65536, do we have a pi define? Matrix_RotateX(tranform->shape.rot.x * 9.58738E-05f, MTXMODE_APPLY); // 2*PI/65536, do we have a pi define?