Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ----
- // # Attack case(s)
- // ----
- /*case 0xD9:*/ case 0x1E: /*case 0x19:*/
- {
- if(gObj[aIndex].Type == OBJ_USER)
- {
- _NEW_OBJECT * nObject = & g_GS.nObject[FIXINDEX];
- // ----
- nObject->dwAttacks++;
- // ----
- nObject->dwCurrentTime = GetTickCount();
- nObject->dwElapsedTime = nObject->dwCurrentTime - nObject->dwLastUpdateTime;
- // ----
- if(nObject->dwElapsedTime >= 1500)
- {
- nObject->dwAttacksPerSec = (UINT)(nObject->dwAttacks * 1000.0 / nObject->dwElapsedTime);
- // ----
- if(nObject->dwBest < nObject->dwAttacksPerSec)
- {
- nObject->dwBest = nObject->dwAttacksPerSec;
- }
- // ----
- _beginthread(LOGIT, 4, (LPVOID)aIndex); // make log for test
- // ----
- nObject->dwAttacks = 0;
- nObject->dwLastUpdateTime = nObject->dwCurrentTime;
- }
- }
- }
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement