Login Register
MoHH2 Legendz

Legends of Medal of honor:Heores 2.. Never forgotten RiP in piece


    You are not connected. Please login or register

    View previous topic View next topic Go down  Message [Page 1 of 1]

    Post: #1Wed Feb 08, 2012 7:45 pm

    sdrawkcab

    sdrawkcab

    Senior Member


    hey, i need some help i wanna make a code that teleports my player to
    another player when i press a button i already have undma player &
    enemy cords.
    so how do i go about loading my cords in to the enemy cords? would it be something like this?

    >lui t0 $first half of controller<
    >lw t0 $second half of controller(t0)<
    >addiu t1 $button value<
    >lui t2 $first half enemy cord <
    >lui t3 $first half player cord<
    >bne t0 t1 $jr ra<
    >lw t4 $second half enemy cord X(t2)<
    >lw t5 $second half enemy cord Y(t2)<
    >lw t6 $second half enemy cord Z(t2)<
    >sw t4 $second half player cord X(t3)<
    >sw t5 $second half player cord X(t3)<
    >sw t6 $second half player cord X(t3)<
    >jr ra<

    and
    i olny have to load the first half of the enemy & player cord once
    because all the cords are right next to each other right?

    anyway
    im not so great at coding. (the codes is for tekken 6 so im olny faceing
    one opponent at a time). thanks in advance! Smile


    Post: #2Wed Feb 08, 2012 8:07 pm

    FoodFx

    FoodFx

    Senior Member


    yes this is right


    Post: #3Wed Feb 08, 2012 8:08 pm

    sdrawkcab

    sdrawkcab

    Senior Member


    FoodFx wrote:yes this is right

    wait i did it right?


    Post: #4Wed Feb 08, 2012 8:10 pm

    FoodFx

    FoodFx

    Senior Member


    yes


    Post: #5Wed Feb 08, 2012 8:12 pm

    sdrawkcab

    sdrawkcab

    Senior Member


    wewt! Smile


    Post: #6Wed Feb 08, 2012 10:45 pm

    Vet

    Vet

    Elite Member


    I think in TempAR codetype it would be like this

    Code:

    _M 0x6XXXXXXX 0x00000000 // Player pointer
    _M 0xBXXXXXXX 0x00000000 // player pointer
    _M 0x5XXXXXXX 0x0000XXXX // Controller address/Button value
    _M 0xD6XXXX00 0x00000000 // first half of enemy cord's
    _M 0xD6XXXX00 0x00000000 // first half of enemy cord's
    _M 0xD2000000 0x00000000 // close all conditional codetype
    _M 0xDA000000 0x0000XXXX // second half enemy cord offset X
    _M 0xDA000000 0x0000XXXX // second half enemy cord offset Y
    _M 0xDA000000 0x0000XXXX // second half enemy cord offset Z
    _M 0xD7000000 0x0000XXXX // second half player cord offset X
    _M 0xD7000000 0x0000XXXX // second half player cord offset X
    _M 0xD7000000 0x0000XXXX // second half player cord offset X
    _M 0xD2000000 0x00000000 // close all conditional codetype

    hope its correct you know




    Last edited by Fragon on Thu Feb 09, 2012 11:44 pm; edited 1 time in total

    Post: #7Wed Feb 08, 2012 11:42 pm

    sdrawkcab

    sdrawkcab

    Senior Member


    Fragon wrote:I think in TempAR codetype it would be like this

    Code:

    _M 0x6XXXXXXX 0x00000000 // Player pointer
    _M 0xBXXXXXXX 0x00000000 // player pointer
    _M 0x5XXXX000 0x00000000 // first half of controller address
    _M 0x5000XXXX 0x00000000 // second half of controller address
    _M 0x50000000 0x0000XXXX // Button value
    _M 0xD6XXXX00 0x00000000 // first half of enemy cord's
    _M 0xD6XXXX00 0x00000000 // first half of enemy cord's
    _M 0xD2000000 0x00000000 // close all conditional codetype
    _M 0xDA000000 0x0000XXXX // second half enemy cord offset X
    _M 0xDA000000 0x0000XXXX // second half enemy cord offset Y
    _M 0xDA000000 0x0000XXXX // second half enemy cord offset Z
    _M 0xD7000000 0x0000XXXX // second half player cord offset X
    _M 0xD7000000 0x0000XXXX // second half player cord offset X
    _M 0xD7000000 0x0000XXXX // second half player cord offset X
    _M 0xD2000000 0x00000000 // close all conditional codetype

    hope its correct help teleport player to enemy! 405870228

    thanks ill try that first (because i hate using ps2dis) rep +


    Post: #8Sat Feb 25, 2012 6:48 am

    avatar

    Brian-1337-

    Senior Member


    sdrawkcab wrote:hey, i need some help i wanna make a code that teleports my player to
    another player when i press a button i already have undma player &
    enemy cords.
    so how do i go about loading my cords in to the enemy cords? would it be something like this?

    >lui t0 $first half of controller<
    >lw t0 $second half of controller(t0)<
    >addiu t1 zero $button value<
    >lui t2 $first half enemy cord <
    >lui t3 $first half player cord<
    >bne t0 t1 $jr ra<
    >lw t4 $second half enemy cord X(t2)<
    >lw t5 $second half enemy cord Y(t2)<
    >lw t6 $second half enemy cord Z(t2)<
    >sw t4 $second half player cord X(t3)<
    >sw t5 $second half player cord X(t3)<
    >sw t6 $second half player cord X(t3)<
    >jr ra<
    >nop<

    and
    i olny have to load the first half of the enemy & player cord once
    because all the cords are right next to each other right?

    anyway
    im not so great at coding. (the codes is for tekken 6 so im olny faceing
    one opponent at a time). thanks in advance! Smile
    Fragon wrote:I think in TempAR codetype it would be like this

    Code:

    _M 0x6XXXXXXX 0x00000000 // Player pointer
    _M 0xBXXXXXXX 0x00000000 // player pointer
    _M 0x5XXXXXXX 0x0000XXXX // Controller address/Button value
    _M 0xD6XXXX00 0x00000000 // first half of enemy cord's
    _M 0xD6XXXX00 0x00000000 // first half of enemy cord's
    _M 0xD2000000 0x00000000 // close all conditional codetype
    _M 0xDA000000 0x0000XXXX // second half enemy cord offset X
    _M 0xDA000000 0x0000XXXX // second half enemy cord offset Y
    _M 0xDA000000 0x0000XXXX // second half enemy cord offset Z
    _M 0xD7000000 0x0000XXXX // second half player cord offset X
    _M 0xD7000000 0x0000XXXX // second half player cord offset Y
    _M 0xD7000000 0x0000XXXX // second half player cord offset Z
    _M 0xD2000000 0x00000000 // close all conditional codetype

    hope its correct you know
    This is very wrong frag...
    MIPS ASM and Code Types are not the same, Code Types have only one register.
    It would be like this...
    1 - Code Type 0xD6/0xD9
    Code:
    _M 0x5XXXXXXX 0xXXXXXXXX // Controller address/Button value
    _M 0xD9000000 0xXXXXXXXX // enemy cord offset X
    _M 0xD6000000 0xXXXXXXXX // player cord offset X
    _M 0xD9000000 0xXXXXXXXX // enemy cord offset Y
    _M 0xD6000000 0xXXXXXXXX // player cord offset Y
    _M 0xD9000000 0xXXXXXXXX // enemy cord offset Z
    _M 0xD6000000 0xXXXXXXXX // player cord offset Z
    _M 0xD2000000 0x00000000 // close all conditional codetype
    2 - Code Type 0xF
    Code:
    _M 0x5XXXXXXX 0xXXXXXXXX // Controller address/Button value
    _M 0xD3000000 0xXXXXXXXX // enemy cord offset X
    _M 0xFXXXXXXX 0x00000004 // player cord offset X
    _M 0xD3000000 0xXXXXXXXX // enemy cord offset Y
    _M 0xFXXXXXXX 0x00000004 // player cord offset Y
    _M 0xD3000000 0xXXXXXXXX // enemy cord offset Z
    _M 0xFXXXXXXX 0x00000004 // player cord offset Z
    _M 0xD2000000 0x00000000 // close all conditional codetype
    3 - Code Type 0xF Shortcut
    Code:
    _M 0x5XXXXXXX 0xXXXXXXXX // Controller address/Button value
    _M 0xD3000000 0xXXXXXXXX // enemy cord offset X
    _M 0xFXXXXXXX 0x0000000C // player cord offset X
    _M 0xD2000000 0x00000000 // close all conditional codetype


    https://www.facebook.com/Mips.Brian1337

    Post: #9Sat Feb 25, 2012 12:56 pm

    Vet

    Vet

    Elite Member


    I did two address checks? my bad I forgot Laughing


    Post: #10Sat Feb 25, 2012 1:04 pm

    sdrawkcab

    sdrawkcab

    Senior Member


    Brian-1337- wrote:
    sdrawkcab wrote:hey, i need some help i wanna make a code that teleports my player to
    another player when i press a button i already have undma player &
    enemy cords.
    so how do i go about loading my cords in to the enemy cords? would it be something like this?

    >lui t0 $first half of controller<
    >lw t0 $second half of controller(t0)<
    >addiu t1 zero $button value<
    >lui t2 $first half enemy cord <
    >lui t3 $first half player cord<
    >bne t0 t1 $jr ra<
    >lw t4 $second half enemy cord X(t2)<
    >lw t5 $second half enemy cord Y(t2)<
    >lw t6 $second half enemy cord Z(t2)<
    >sw t4 $second half player cord X(t3)<
    >sw t5 $second half player cord X(t3)<
    >sw t6 $second half player cord X(t3)<
    >jr ra<
    >nop<

    and
    i olny have to load the first half of the enemy & player cord once
    because all the cords are right next to each other right?

    anyway
    im not so great at coding. (the codes is for tekken 6 so im olny faceing
    one opponent at a time). thanks in advance! Smile
    Fragon wrote:I think in TempAR codetype it would be like this

    Code:

    _M 0x6XXXXXXX 0x00000000 // Player pointer
    _M 0xBXXXXXXX 0x00000000 // player pointer
    _M 0x5XXXXXXX 0x0000XXXX // Controller address/Button value
    _M 0xD6XXXX00 0x00000000 // first half of enemy cord's
    _M 0xD6XXXX00 0x00000000 // first half of enemy cord's
    _M 0xD2000000 0x00000000 // close all conditional codetype
    _M 0xDA000000 0x0000XXXX // second half enemy cord offset X
    _M 0xDA000000 0x0000XXXX // second half enemy cord offset Y
    _M 0xDA000000 0x0000XXXX // second half enemy cord offset Z
    _M 0xD7000000 0x0000XXXX // second half player cord offset X
    _M 0xD7000000 0x0000XXXX // second half player cord offset Y
    _M 0xD7000000 0x0000XXXX // second half player cord offset Z
    _M 0xD2000000 0x00000000 // close all conditional codetype

    hope its correct you know
    This is very wrong frag...
    MIPS ASM and Code Types are not the same, Code Types have only one register.
    It would be like this...
    1 - Code Type 0xD6/0xD9
    Code:
    _M 0x5XXXXXXX 0xXXXXXXXX // Controller address/Button value
    _M 0xD9000000 0xXXXXXXXX // enemy cord offset X
    _M 0xD6000000 0xXXXXXXXX // player cord offset X
    _M 0xD9000000 0xXXXXXXXX // enemy cord offset Y
    _M 0xD6000000 0xXXXXXXXX // player cord offset Y
    _M 0xD9000000 0xXXXXXXXX // enemy cord offset Z
    _M 0xD6000000 0xXXXXXXXX // player cord offset Z
    _M 0xD2000000 0x00000000 // close all conditional codetype
    2 - Code Type 0xF
    Code:
    _M 0x5XXXXXXX 0xXXXXXXXX // Controller address/Button value
    _M 0xD3000000 0xXXXXXXXX // enemy cord offset X
    _M 0xFXXXXXXX 0x00000004 // player cord offset X
    _M 0xD3000000 0xXXXXXXXX // enemy cord offset Y
    _M 0xFXXXXXXX 0x00000004 // player cord offset Y
    _M 0xD3000000 0xXXXXXXXX // enemy cord offset Z
    _M 0xFXXXXXXX 0x00000004 // player cord offset Z
    _M 0xD2000000 0x00000000 // close all conditional codetype
    3 - Code Type 0xF Shortcut
    Code:
    _M 0x5XXXXXXX 0xXXXXXXXX // Controller address/Button value
    _M 0xD3000000 0xXXXXXXXX // enemy cord offset X
    _M 0xFXXXXXXX 0x0000000C // player cord offset X
    _M 0xD2000000 0x00000000 // close all conditional codetype

    holy crap! that the most in depth answer iv ever gotten for a question i ask thanks!


    Post: #11Sat Feb 25, 2012 7:17 pm

    avatar

    Brian-1337-

    Senior Member


    Fragon wrote:I did two address checks? my bad I forgot help teleport player to enemy! 454738237
    You used the code types for pointers but there is no connections help teleport player to enemy! 793915934 plus code types don't need upper or lower address/values.


    https://www.facebook.com/Mips.Brian1337

    Post: #12

    Sponsored content





    View previous topic View next topic Back to top  Message [Page 1 of 1]

    Permissions in this forum:
    You cannot reply to topics in this forum