mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-21 14:31:17 +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
|
@ -7,7 +7,7 @@
|
|||
#include "z_en_geldb.h"
|
||||
#include "assets/objects/object_geldb/object_geldb.h"
|
||||
|
||||
#define FLAGS (ACTOR_FLAG_0 | ACTOR_FLAG_2 | ACTOR_FLAG_4)
|
||||
#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_HOSTILE | ACTOR_FLAG_4)
|
||||
|
||||
typedef enum EnGeldBAction {
|
||||
/* 0 */ GELDB_WAIT,
|
||||
|
@ -355,7 +355,7 @@ void EnGeldB_SetupWait(EnGeldB* this) {
|
|||
this->action = GELDB_WAIT;
|
||||
this->actor.bgCheckFlags &= ~(BGCHECKFLAG_GROUND | BGCHECKFLAG_GROUND_TOUCH);
|
||||
this->actor.gravity = -2.0f;
|
||||
this->actor.flags &= ~ACTOR_FLAG_0;
|
||||
this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
|
||||
EnGeldB_SetupAction(this, EnGeldB_Wait);
|
||||
}
|
||||
|
||||
|
@ -372,7 +372,7 @@ void EnGeldB_Wait(EnGeldB* this, PlayState* play) {
|
|||
Actor_PlaySfx(&this->actor, NA_SE_EN_RIZA_DOWN);
|
||||
this->skelAnime.playSpeed = 1.0f;
|
||||
this->actor.world.pos.y = this->actor.floorHeight;
|
||||
this->actor.flags |= ACTOR_FLAG_0;
|
||||
this->actor.flags |= ACTOR_FLAG_ATTENTION_ENABLED;
|
||||
this->actor.focus.pos = this->actor.world.pos;
|
||||
this->actor.bgCheckFlags &= ~BGCHECKFLAG_GROUND_TOUCH;
|
||||
this->actor.velocity.y = 0.0f;
|
||||
|
@ -1328,7 +1328,7 @@ void EnGeldB_SetupDefeated(EnGeldB* this) {
|
|||
this->invisible = true;
|
||||
}
|
||||
this->action = GELDB_DEFEAT;
|
||||
this->actor.flags &= ~ACTOR_FLAG_0;
|
||||
this->actor.flags &= ~ACTOR_FLAG_ATTENTION_ENABLED;
|
||||
Actor_PlaySfx(&this->actor, NA_SE_EN_GERUDOFT_DEAD);
|
||||
EnGeldB_SetupAction(this, EnGeldB_Defeated);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue