RattletraPM5

Untitled

Jul 6th, 2020
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. void __thiscall UpdateStartTimer(Algae *this,bool bThroughDoor)
  2.  
  3. {
  4. int iVar1;
  5. int32_t iVar2;
  6. float fVar3;
  7. float fVar4;
  8.  
  9. iVar1 = (*(this->super_Spreadable).super_Repairable.super_Selectable._vptr_Selectable[10])();
  10. if ((char)iVar1 == '\0') {
  11. if (this->fStartTimer == 0.00000000) {
  12. if (RNG == false) {
  13. iVar2 = random32();
  14. }
  15. else {
  16. iVar2 = rand();
  17. }
  18. this->fStartTimer = (float)(iVar2 % 0x46 + 10);
  19. }
  20. fVar4 = 0.05000000;
  21. if (bThroughDoor != false) {
  22. fVar4 = 0.00000000;
  23. }
  24. fVar3 = GetSpeedFactor(&FPSControl);
  25. fVar4 = this->fStartTimer - fVar3 * fVar4;
  26. if (fVar4 < 0.00000000) {
  27. this->fStartTimer = 0.00000000;
  28. *(undefined4 *)&(this->super_Spreadable).super_Repairable.super_ShipObject.field_0xc =
  29. 0x42c80000;
  30. return;
  31. }
  32. this->fStartTimer = fVar4;
  33. }
  34. return;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment