mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-07 06:40:15 +00:00
En_Tite OK (#555)
* EnTite_Update matching * Fixes to update * made good progress, func_80B1A2A0 is in a good place to be matching soon * Merge stuff * func_80B19E94 done, func_80B18CC4 done * EnTite_Destroy and EnTite_Init done * Commenting out sDamageTable and EnTite_Init until all the data matches * Some more small functions done * more progress * func_80B19918 done * func_80B18E7C done * func_80B19524 done * more progress * EnTite_Draw equiv but nonmatching, file otherwise done * Found some unstaged changed on old laptop * Draw matching: File fully matching! * Documentation * finished documentation * deleted data files * update spec * fixed waterY -> yDistToWater rename after merge * ran format.sh * fixing accidental renames in camera * Fixed some obvious number/comment formatting issues * Removed unecessary prototypes * merge * running format.sh * suggestions * more pr comment changes * format to push * one more change * more renames (see pr comments) * merge * renames * format.sh * fix renames * function comment formatting * merge + format * endless merge fixes * merge fixes until die * yet again a merge fix * pr suggestions
This commit is contained in:
parent
5a2bd7a035
commit
600bad1f20
147 changed files with 1431 additions and 3642 deletions
|
@ -176,7 +176,7 @@ s32 func_80A9C95C(GlobalContext* globalCtx, EnKz* this, s16* arg2, f32 unkf, cal
|
|||
Player* player = PLAYER;
|
||||
s16 sp32;
|
||||
s16 sp30;
|
||||
f32 xzDistFromLink;
|
||||
f32 xzDistToLink;
|
||||
f32 yaw;
|
||||
|
||||
if (func_8002F194(&this->actor, globalCtx) != 0) {
|
||||
|
@ -191,7 +191,7 @@ s32 func_80A9C95C(GlobalContext* globalCtx, EnKz* this, s16* arg2, f32 unkf, cal
|
|||
|
||||
yaw = Math_Vec3f_Yaw(&this->actor.initPosRot.pos, &player->actor.posRot.pos);
|
||||
yaw -= this->actor.shape.rot.y;
|
||||
if ((fabsf(yaw) > 1638.0f) || (this->actor.xzDistFromLink < 265.0f)) {
|
||||
if ((fabsf(yaw) > 1638.0f) || (this->actor.xzDistToLink < 265.0f)) {
|
||||
this->actor.flags &= ~1;
|
||||
return 0;
|
||||
}
|
||||
|
@ -203,13 +203,13 @@ s32 func_80A9C95C(GlobalContext* globalCtx, EnKz* this, s16* arg2, f32 unkf, cal
|
|||
return 0;
|
||||
}
|
||||
|
||||
xzDistFromLink = this->actor.xzDistFromLink;
|
||||
this->actor.xzDistFromLink = Math_Vec3f_DistXZ(&this->actor.initPosRot.pos, &player->actor.posRot.pos);
|
||||
xzDistToLink = this->actor.xzDistToLink;
|
||||
this->actor.xzDistToLink = Math_Vec3f_DistXZ(&this->actor.initPosRot.pos, &player->actor.posRot.pos);
|
||||
if (func_8002F2CC(&this->actor, globalCtx, unkf) == 0) {
|
||||
this->actor.xzDistFromLink = xzDistFromLink;
|
||||
this->actor.xzDistToLink = xzDistToLink;
|
||||
return 0;
|
||||
}
|
||||
this->actor.xzDistFromLink = xzDistFromLink;
|
||||
this->actor.xzDistToLink = xzDistToLink;
|
||||
this->actor.textId = callback1(globalCtx, this);
|
||||
|
||||
return 0;
|
||||
|
@ -417,8 +417,8 @@ void EnKz_SetupGetItem(EnKz* this, GlobalContext* globalCtx) {
|
|||
this->actionFunc = EnKz_StartTimer;
|
||||
} else {
|
||||
getItemID = this->isTrading == true ? GI_FROG : GI_TUNIC_ZORA;
|
||||
yRange = fabsf(this->actor.yDistFromLink) + 1.0f;
|
||||
xzRange = this->actor.xzDistFromLink + 1.0f;
|
||||
yRange = fabsf(this->actor.yDistToLink) + 1.0f;
|
||||
xzRange = this->actor.xzDistToLink + 1.0f;
|
||||
func_8002F434(&this->actor, globalCtx, getItemID, xzRange, yRange);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue