Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2012
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.26 KB | None | 0 0
  1. void __thiscall sub_60A8D0(int this, char a2, float a3)
  2. {
  3.   int pPlayer; // esi@1
  4.   int pPlayerData; // ecx@3 // pPlayer + 1152
  5.   double v5; // st7@3
  6.   double v6; // st7@5
  7.   int v7; // eax@8
  8.  
  9.   pPlayer = this;
  10.   if ( !a2 || HasInfiniteOxygen )
  11.   {
  12.     if ( sub_559AF0(8) > *(float *)(*(_DWORD *)(this + 1152) + 68) )
  13.       *(float *)(*(_DWORD *)(pPlayer + 1152) + 68) = flt_B7CB5C * a3// 1152: CPlayerPedDataSAInterface*
  14.                                                 //
  15.                                                    + flt_B7CB5C * a3
  16.                                                    + *(float *)(*(_DWORD *)(pPlayer + 1152) + 68);
  17.   }
  18.   else
  19.   {
  20.     pPlayerData = *(_DWORD *)(this + 1152);
  21.     v5 = flt_B7CB5C * a3;
  22.     if ( *(float *)(pPlayerData + 68) > 0.0 && *(_DWORD *)(pPlayer + 1136) & 0x100000 )
  23.     {
  24.       v6 = *(float *)(pPlayerData + 68) - v5;
  25.       if ( v6 < 0.0 )
  26.         v6 = 0.0;
  27.       *(float *)(pPlayerData + 68) = v6;
  28.     }
  29.     else
  30.     {
  31.       v7 = sub_821B80(v5 * 3.0);
  32.       sub_73A530(pPlayer, pPlayer, 53, v7, 3, 0);
  33.     }
  34.   }
  35.   *(_DWORD *)(*(_DWORD *)(pPlayer + 1152) + 52) &= 0xFFFFFF7Fu;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement