mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-21 06:21:16 +00:00
Player Docs: Propose Named Unions For Shared Variables (#1560)
* make unions * format * adjust comment on halt thing
This commit is contained in:
parent
ebc6ebf232
commit
181b438393
10 changed files with 343 additions and 332 deletions
|
@ -245,7 +245,7 @@ void EnDha_Wait(EnDha* this, PlayState* play) {
|
|||
if ((player->stateFlags2 & PLAYER_STATE2_7) && (&this->actor == player->actor.parent)) {
|
||||
player->stateFlags2 &= ~PLAYER_STATE2_7;
|
||||
player->actor.parent = NULL;
|
||||
player->actionVar2 = 200;
|
||||
player->av2.actionVar2 = 200;
|
||||
}
|
||||
|
||||
if (this->actor.home.rot.z != 0) {
|
||||
|
@ -285,7 +285,7 @@ void EnDha_Wait(EnDha* this, PlayState* play) {
|
|||
if ((player->stateFlags2 & PLAYER_STATE2_7) && (&this->actor == player->actor.parent)) {
|
||||
player->stateFlags2 &= ~PLAYER_STATE2_7;
|
||||
player->actor.parent = NULL;
|
||||
player->actionVar2 = 200;
|
||||
player->av2.actionVar2 = 200;
|
||||
}
|
||||
|
||||
this->actor.home.rot.z = 1;
|
||||
|
@ -306,7 +306,7 @@ void EnDha_TakeDamage(EnDha* this, PlayState* play) {
|
|||
if ((player->stateFlags2 & PLAYER_STATE2_7) && (&this->actor == player->actor.parent)) {
|
||||
player->stateFlags2 &= ~PLAYER_STATE2_7;
|
||||
player->actor.parent = NULL;
|
||||
player->actionVar2 = 200;
|
||||
player->av2.actionVar2 = 200;
|
||||
}
|
||||
|
||||
Math_SmoothStepToS(&this->limbAngleX[1], 0, 1, 2000, 0);
|
||||
|
@ -344,7 +344,7 @@ void EnDha_Die(EnDha* this, PlayState* play) {
|
|||
if ((player->stateFlags2 & PLAYER_STATE2_7) && (&this->actor == player->actor.parent)) {
|
||||
player->stateFlags2 &= ~PLAYER_STATE2_7;
|
||||
player->actor.parent = NULL;
|
||||
player->actionVar2 = 200;
|
||||
player->av2.actionVar2 = 200;
|
||||
}
|
||||
|
||||
Math_SmoothStepToS(&this->limbAngleX[1], 0, 1, 0x7D0, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue