1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-23 07:21:19 +00:00

Target Mode Enum [Target Docs 7/?] (#2133)

* TargetMode Enum

* format

* add default comment

* bss

* bss 2

* fix bss 3
This commit is contained in:
fig02 2024-09-04 23:46:03 -04:00 committed by GitHub
parent 6051251c92
commit dbb059c6a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
112 changed files with 154 additions and 139 deletions

View file

@ -142,7 +142,7 @@ void EnRd_Init(Actor* thisx, PlayState* play) {
EnRd* this = (EnRd*)thisx;
Actor_ProcessInitChain(thisx, sInitChain);
this->actor.targetMode = 0;
this->actor.targetMode = TARGET_MODE_0;
this->actor.colChkInfo.damageTable = &sDamageTable;
ActorShape_Init(&thisx->shape, 0.0f, NULL, 0.0f);
this->upperBodyYRotation = this->headYRotation = 0;
@ -434,7 +434,7 @@ void EnRd_WalkToHome(EnRd* this, PlayState* play) {
PLAYER_STATE1_19 | PLAYER_STATE1_21)) &&
!(player->stateFlags2 & PLAYER_STATE2_7) &&
(Actor_WorldDistXYZToPoint(&player->actor, &this->actor.home.pos) < 150.0f)) {
this->actor.targetMode = 0;
this->actor.targetMode = TARGET_MODE_0;
EnRd_SetupWalkToPlayer(this, play);
} else if (this->actor.params > REDEAD_TYPE_DOES_NOT_MOURN_IF_WALKING) {
if (this->actor.parent != NULL) {
@ -579,7 +579,7 @@ void EnRd_Grab(EnRd* this, PlayState* play) {
if (!LINK_IS_ADULT) {
Math_SmoothStepToF(&this->actor.shape.yOffset, 0, 1.0f, 400.0f, 0.0f);
}
this->actor.targetMode = 0;
this->actor.targetMode = TARGET_MODE_0;
this->actor.flags |= ACTOR_FLAG_0;
this->playerStunWaitTimer = 0xA;
this->grabWaitTimer = 0xF;