Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void __thiscall sub_60A8D0(int this, char a2, float a3)
- {
- int pPlayer; // esi@1
- int pPlayerData; // ecx@3 // pPlayer + 1152
- double v5; // st7@3
- double v6; // st7@5
- int v7; // eax@8
- pPlayer = this;
- if ( !a2 || HasInfiniteOxygen )
- {
- if ( sub_559AF0(8) > *(float *)(*(_DWORD *)(this + 1152) + 68) )
- *(float *)(*(_DWORD *)(pPlayer + 1152) + 68) = flt_B7CB5C * a3// 1152: CPlayerPedDataSAInterface*
- //
- + flt_B7CB5C * a3
- + *(float *)(*(_DWORD *)(pPlayer + 1152) + 68);
- }
- else
- {
- pPlayerData = *(_DWORD *)(this + 1152);
- v5 = flt_B7CB5C * a3;
- if ( *(float *)(pPlayerData + 68) > 0.0 && *(_DWORD *)(pPlayer + 1136) & 0x100000 )
- {
- v6 = *(float *)(pPlayerData + 68) - v5;
- if ( v6 < 0.0 )
- v6 = 0.0;
- *(float *)(pPlayerData + 68) = v6;
- }
- else
- {
- v7 = sub_821B80(v5 * 3.0);
- sub_73A530(pPlayer, pPlayer, 53, v7, 3, 0);
- }
- }
- *(_DWORD *)(*(_DWORD *)(pPlayer + 1152) + 52) &= 0xFFFFFF7Fu;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement