Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void func_80AE79A4(EnRl *this, GlobalContext *globalCtx) {
- f32* unk_19C = &this->unk_19C;
- s32 alpha;
- if (func_80AE74B4(this, globalCtx, 4, 0)) {
- *unk_19C += 1;
- if (*unk_19C >= kREG(5) + 10.0f) {
- this->action = 7;
- this->drawConfig = 1;
- *unk_19C = KREG(5) + 10.0f;
- this->alpha = 255;
- this->actor.shape.unk_14 = 0xFF;
- return;
- }
- } else {
- *unk_19C -= 1;
- if (*unk_19C <= 0.0f) {
- this->action = 4;
- this->drawConfig = 0;
- *unk_19C = 0.0f;
- this->alpha = 0;
- this->actor.shape.unk_14 = 0;
- return;
- }
- }
- alpha = (*unk_19C / (KREG(5) + 10.0f)) * 255.0f;
- this->alpha = alpha;
- this->actor.shape.unk_14 = alpha;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement