mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-22 06:52:03 +00:00
Document Attention/Lock-on Related Actor Flags (#2161)
* document actor flags 0, 2, 3, and 27 * format * fly -> hover * wodring
This commit is contained in:
parent
a039aeffb7
commit
2056ae5f1a
181 changed files with 616 additions and 597 deletions
|
@ -3,7 +3,7 @@
|
|||
#include "overlays/actors/ovl_En_Bom/z_en_bom.h"
|
||||
#include "overlays/effects/ovl_Effect_Ss_Hahen/z_eff_ss_hahen.h"
|
||||
|
||||
#define FLAGS (ACTOR_FLAG_0 | ACTOR_FLAG_2 | ACTOR_FLAG_4 | ACTOR_FLAG_24)
|
||||
#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_4 | ACTOR_FLAG_24)
|
||||
|
||||
#define GROUND_HOVER_HEIGHT 75.0f
|
||||
#define MAX_LARVA 3
|
||||
|
@ -223,7 +223,7 @@ void EnPeehat_Init(Actor* thisx, PlayState* play) {
|
|||
this->xzDistToRise = 2800.0f;
|
||||
this->xzDistMax = 1400.0f;
|
||||
EnPeehat_Flying_SetStateGround(this);
|
||||
this->actor.flags &= ~ACTOR_FLAG_0;
|
||||
this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
|
||||
break;
|
||||
case PEAHAT_TYPE_LARVA:
|
||||
this->actor.scale.x = this->actor.scale.z = 0.006f;
|
||||
|
@ -322,7 +322,7 @@ void EnPeehat_Ground_SetStateGround(EnPeehat* this) {
|
|||
|
||||
void EnPeehat_Ground_StateGround(EnPeehat* this, PlayState* play) {
|
||||
if (IS_DAY) {
|
||||
this->actor.flags |= ACTOR_FLAG_0;
|
||||
this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
|
||||
if (this->riseDelayTimer == 0) {
|
||||
if (this->actor.xzDistToPlayer < this->xzDistToRise) {
|
||||
EnPeehat_Ground_SetStateRise(this);
|
||||
|
@ -332,7 +332,7 @@ void EnPeehat_Ground_StateGround(EnPeehat* this, PlayState* play) {
|
|||
this->riseDelayTimer--;
|
||||
}
|
||||
} else {
|
||||
this->actor.flags &= ~ACTOR_FLAG_0;
|
||||
this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
|
||||
Math_SmoothStepToF(&this->actor.shape.yOffset, -1000.0f, 1.0f, 50.0f, 0.0f);
|
||||
if (this->unk_2D4 != 0) {
|
||||
this->unk_2D4--;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue