Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [enable]
- assert(player_car,**)
- alloc(forall,1024)
- label(start_time)
- label(amount)
- label(alreadystarted)
- label(clean_and_skip)
- label(carscount)
- label(returnforall)
- label(activated)
- registersymbol(activated)
- forall:
- cmp byte ptr[activated], 0
- jz skip
- // ITS ACTIVATED
- push edi
- push eax
- call GetTickCount
- mov ecx, [start_time]
- test ecx, ecx
- jnz alreadystarted
- mov [start_time], eax
- alreadystarted:
- sub eax,[start_time]
- cmp eax, 5
- pop eax
- jle stillactive
- mov byte ptr[activated], 0
- mov [start_time], 0
- //CLEAN ARRAY
- mov ecx, [carscount]
- lea edi, [cars]
- push eax
- xor eax, eax
- rep stosd
- mov [carscount],0
- pop eax
- jmp clean_and_skip
- stillactive:
- mov edi,[player_car]
- cmp edi, eax
- jz clean_and_skip
- lea edi, [cars]
- // SEARCH FOR eax IN cars ARRAY
- mov ecx, [carscount]
- repne scasd
- jz clean_and_skip
- //NOT FOUND IN ARRAY, AND NOT MY CAR
- mov [edi], eax // INSERT IN ARRAY
- inc [carscount]
- // MAKE IT FLY
- fld [eax+34]
- fadd [amount]
- fstp [eax+34]
- clean_and_skip:
- pop edi
- skip:
- db 0f 28 40 30 8b 44 24 04
- jmp returnforall
- activated:
- db 0
- start_time:
- dd 0
- amount:
- dd (float)20.0
- carscount:
- dd 0
- cars:
- "NFS13.exe"+5903E6:
- jmp forall
- db 90 90 90
- returnforall:
- [disable]
- dealloc(forall)
- "NFS13.exe"+5903E6:
- db 0f 28 40 30 8b 44 24 04
- unregistersymbol(activated)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement