mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-10 17:00:19 +00:00
adjusting sub98 init structs across actors
This commit is contained in:
parent
daa7877c96
commit
340fbd5a40
9 changed files with 48 additions and 50 deletions
|
@ -47,7 +47,7 @@ void ArrowFire_Init(ArrowFire* this, GlobalContext* globalCtx) {
|
|||
this->radius = 0;
|
||||
this->unk_158 = 1.0f;
|
||||
ArrowFire_SetupAction(&this->actor, ArrowFire_Charge);
|
||||
Actor_SetScale(this, 0.01);
|
||||
Actor_SetScale(this, 0.01f);
|
||||
this->alpha = 0xA0;
|
||||
this->timer = 0;
|
||||
this->unk_15C = 0.0f;
|
||||
|
@ -105,7 +105,7 @@ void ArrowFire_Hit(ArrowFire* this, GlobalContext* globalCtx) {
|
|||
scale = 310.0f;
|
||||
} else {
|
||||
scale = this->actor.unk_F0;
|
||||
scale = ((scale - 50.0f) * 0.33333334f) + 10.0f;
|
||||
scale = ((scale - 50.0f) * (1.0f / 3.0f)) + 10.0f;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -114,7 +114,7 @@ void ArrowFire_Hit(ArrowFire* this, GlobalContext* globalCtx) {
|
|||
this->timer -= 1;
|
||||
|
||||
if (this->timer >= 8) {
|
||||
offset = ((this->timer - 8) * 0.041666668f);
|
||||
offset = ((this->timer - 8) * (1.0f / 24.0f));
|
||||
offset = SQ(offset);
|
||||
this->radius = (((1.0f - offset) * scale) + 10.0f);
|
||||
this->unk_158 += ((2.0f - this->unk_158) * 0.1f);
|
||||
|
@ -158,7 +158,7 @@ void ArrowFire_Fly(ArrowFire* this, GlobalContext* globalCtx) {
|
|||
// copy position and rotation from the attached arrow
|
||||
this->actor.posRot.pos = arrow->actor.posRot.pos;
|
||||
this->actor.shape.rot = arrow->actor.shape.rot;
|
||||
distanceScaled = Math_Vec3f_DistXYZ(&this->unkPos, &this->actor.posRot.pos) * 0.041666668f;
|
||||
distanceScaled = Math_Vec3f_DistXYZ(&this->unkPos, &this->actor.posRot.pos) * (1.0f / 24.0f);
|
||||
this->unk_158 = distanceScaled;
|
||||
if (distanceScaled < 1.0f) {
|
||||
this->unk_158 = 1.0f;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue