Advertisement
fggkyle

Untitled

Sep 9th, 2020
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. void func_80AE79A4(EnRl *this, GlobalContext *globalCtx) {
  2. f32* unk_19C = &this->unk_19C;
  3. s32 alpha;
  4.  
  5. if (func_80AE74B4(this, globalCtx, 4, 0)) {
  6. *unk_19C += 1;
  7. if (*unk_19C >= kREG(5) + 10.0f) {
  8. this->action = 7;
  9. this->drawConfig = 1;
  10. *unk_19C = KREG(5) + 10.0f;
  11. this->alpha = 255;
  12. this->actor.shape.unk_14 = 0xFF;
  13. return;
  14. }
  15. } else {
  16. *unk_19C -= 1;
  17. if (*unk_19C <= 0.0f) {
  18. this->action = 4;
  19. this->drawConfig = 0;
  20. *unk_19C = 0.0f;
  21. this->alpha = 0;
  22. this->actor.shape.unk_14 = 0;
  23. return;
  24. }
  25. }
  26. alpha = (*unk_19C / (KREG(5) + 10.0f)) * 255.0f;
  27. this->alpha = alpha;
  28. this->actor.shape.unk_14 = alpha;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement