mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-21 22:41:14 +00:00
Some cleanup and docs for z_skelanime (#601)
* docs and enums * bgcheck merge Co-authored-by: petrie911 <pmontag@DESKTOP-LG8A167.localdomain>
This commit is contained in:
parent
7a171488d2
commit
115c152b03
65 changed files with 701 additions and 423 deletions
|
@ -126,7 +126,7 @@ void EnVm_Destroy(Actor* thisx, GlobalContext* globalCtx) {
|
|||
void EnVm_SetupWait(EnVm* this) {
|
||||
f32 frameCount = Animation_GetLastFrame(&D_06000068);
|
||||
|
||||
Animation_Change(&this->skelAnime, &D_06000068, 1.0f, frameCount, frameCount, 2, 0.0f);
|
||||
Animation_Change(&this->skelAnime, &D_06000068, 1.0f, frameCount, frameCount, ANIMMODE_ONCE, 0.0f);
|
||||
this->unk_25E = this->unk_260 = 0;
|
||||
this->unk_21C = 0;
|
||||
this->timer = 10;
|
||||
|
@ -208,7 +208,7 @@ void EnVm_Wait(EnVm* this, GlobalContext* globalCtx) {
|
|||
}
|
||||
|
||||
void EnVm_SetupAttack(EnVm* this) {
|
||||
Animation_Change(&this->skelAnime, &D_06000068, 3.0f, 3.0f, 7.0f, 2, 0.0f);
|
||||
Animation_Change(&this->skelAnime, &D_06000068, 3.0f, 3.0f, 7.0f, ANIMMODE_ONCE, 0.0f);
|
||||
this->timer = 305;
|
||||
this->beamScale.x = 0.6f;
|
||||
this->beamSpeed = 40.0f;
|
||||
|
@ -277,7 +277,8 @@ void EnVm_Attack(EnVm* this, GlobalContext* globalCtx) {
|
|||
}
|
||||
|
||||
void EnVm_SetupStun(EnVm* this) {
|
||||
Animation_Change(&this->skelAnime, &D_06000068, -1.0f, Animation_GetLastFrame(&D_06000068), 0.0f, 2, 0.0f);
|
||||
Animation_Change(&this->skelAnime, &D_06000068, -1.0f, Animation_GetLastFrame(&D_06000068), 0.0f, ANIMMODE_ONCE,
|
||||
0.0f);
|
||||
this->unk_260 = 0;
|
||||
this->timer = 180;
|
||||
this->unk_25E = this->unk_260;
|
||||
|
@ -295,8 +296,8 @@ void EnVm_Stun(EnVm* this, GlobalContext* globalCtx) {
|
|||
if (this->unk_25E == 3) {
|
||||
EnVm_SetupWait(this);
|
||||
} else if (this->unk_25E == 1) {
|
||||
Animation_Change(&this->skelAnime, &D_06000068, 1.0f, 0.0f, Animation_GetLastFrame(&D_06000068), 2,
|
||||
0.0f);
|
||||
Animation_Change(&this->skelAnime, &D_06000068, 1.0f, 0.0f, Animation_GetLastFrame(&D_06000068),
|
||||
ANIMMODE_ONCE, 0.0f);
|
||||
} else {
|
||||
this->timer = 10;
|
||||
this->skelAnime.curFrame = 0.0f;
|
||||
|
@ -311,7 +312,8 @@ void EnVm_Stun(EnVm* this, GlobalContext* globalCtx) {
|
|||
}
|
||||
|
||||
void EnVm_SetupDie(EnVm* this) {
|
||||
Animation_Change(&this->skelAnime, &D_06000068, -1.0f, Animation_GetLastFrame(&D_06000068), 0.0f, 2, 0.0f);
|
||||
Animation_Change(&this->skelAnime, &D_06000068, -1.0f, Animation_GetLastFrame(&D_06000068), 0.0f, ANIMMODE_ONCE,
|
||||
0.0f);
|
||||
this->timer = 33;
|
||||
this->unk_25E = this->unk_260 = 0;
|
||||
this->unk_21C = 3;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue