User Tag List

Results 1 to 7 of 7

Thread: M16A4 Inf Ammo

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    M16A4 Inf Ammo

    User Info Menu

    Re: M16A4 Inf Ammo

    If it only freezes outside of the games mission, it means the pointer doesn't exist anymore, so you should make a routine, something like that :

    lui t0 , $09B0 <-- You load the first 4 digits of the pointer address in t0 (you have to add 0x0880, 0x130 + 0x880= 0x9B0)
    ori t0 , t0 , $6124 <-- You add to t0 the last 4 digits of the pointer address
    lw t0 , $0000(t0) <-- Now we load the content of the pointer address in t0
    beq t0 , zero , $ END <-- If the content is empty then pointer doesn't exist, else it exists
    nop <-- I always let a nop command after a condition
    sw zero , $10D0(t0) <-- The pointer exists so here is your code
    jr ra <=== END


    Hook: 0x00000098


    With the routine, the code will be turned on only when the pointer exists, else nothing is done, so no freezeeee.
    Last edited by Linblow; 02-27-2010 at 03:43 AM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •