Xbox [Release]How to Do Walking AC130

Discussion in 'MW2 Modding' started by Im A Hooker, Jul 14, 2012.

  1. Im A Hooker Seasoned Member

    Message Count:
    143
    Likes Received:
    251
    Forgot to add that you need to give ammo to the ac130 for it to shoot, look near the bottom to see how to do that.

    Well since i see really no use for holding onto it and the current ways to do this are via memory editing so it can't be done in a dll, unless you know how to mem edit in a dll. Well this way is done by functions and can be done in a dll.
    the functions you use are:
    SV_GameSendServerCommand(int clientNum,svscmd_type type,const char *text) Offset: 822548C8
    G_GivePlayerWeapon(playerState_s *pPS, int iWeaponIndex, char altModelIndex) Offset: 82210B58
    G_GetClientState(int clientNum) Offset : 821E6638
    G_GetWeaponIndexForName(const char *name) Offset: 822105D0
    BG_TakePlayerWeapon(playerState_s *ps, unsigned int weaponIndex,int takeAwayAmmo) Offset: 822109B8
    BG_GetViewmodelWeaponIndex(playerState_s *ps) Offset: 820E23C8


    The BG_GetViewmodelWeaponIndex is to get the current weapon you have.
    The G_GetClientState is used for playerState in G_GivePlayerWeapon and BG_TakePlayerWeapon

    So to give walking ac130 to client 0 (the host):
    So first you must drop all weapons/equipment using BG_TakePlayerWeapon
    This is a inefficient way to drop all weapons, but i don't have a function that actually drops everything.
    BG_TakePlayerWeapon(G_GetClientState(0),BG_GetViewmodelWeaponIndex(G_GetClientState(0)) ,1);
    Then to switch to your next weapon do:
    SV_GameSendServerCommand(0 ,1,"a 3216 1");
    And repeat that like 4 times to drop everything

    Then once you have all weapons dropped do:
    G_GetWeaponIndexForName to get the weapon index's.
    G_GivePlayerWeapon(G_GetClientState(0) , G_GetWeaponIndexForName("ac130_105mm_mp") , 0);
    G_GivePlayerWeapon(G_GetClientState(0) , G_GetWeaponIndexForName("ac130_40mm_mp") , 0);
    G_GivePlayerWeapon(G_GetClientState(0) , G_GetWeaponIndexForName("ac130_25mm_mp") , 0);
    SV_GameSendServerCommand(0 ,1,"a 3216 1");
    Now you need to give yourself ammo for the ac130,
    here is the xdrpc code for getting entity thanks to Teh1337
    Code:
     public uint getEntity(uint clientIndex)
            {
                return (0x82F03600 + (clientIndex * 0x280));
            }
    
    and add ammo using this function
    821E1F20 Add_Ammo(gentity_s *ent, unsigned int weaponIndex, char weaponModel, int count, int fillClip)
    apparently initialize ammo doesn't work, so:
    add_Ammo(getEntity(0), G_GetWeaponIndexForName("ac130_105mm_mp") , 0, 999, 1)

    You should now how walking ac130 as your weapon, enjoy!
    Video of what this looks like:
    MaloXBL, iMaes, Smileh4x and 9 others like this.
  2. M0D1F13DR34L1TY Selena Gomez <3

    Message Count:
    3,688
    Likes Received:
    1,117




    I already had this due to a little leakage, but this is a cool release for anyone who didn't already have it!
    • Premium

    Jasper RGH Verified Hoster

    Message Count:
    240
    Likes Received:
    53


    Holy. ****. Thank you so much <3 :D
  3. Th3Sup3rN3rd Negro Pls

    Message Count:
    476
    Likes Received:
    229


    Nice Release! :D
  4. DreamyTKD Banned

    Message Count:
    109
    Likes Received:
    33
    God dam it hooker why you release everything when ever you go offline for more teh 1 day I know a release is coming
  5. Cakes Mustard <3

    Message Count:
    5,761
    Likes Received:
    3,370




    Whats the song? :O

    && Nice work.
  6. Im A Hooker Seasoned Member

    Message Count:
    143
    Likes Received:
    251
    Well i been offline only because i got 2 console bans 3 profile bans and a gamertag ban in 1 day :p and my RGH broke the day after :/
    so now i have to wait for coolrunner 3 to RGH my corona's :p

    Never Gave A **** - Kid Ink
  7. DreamyTKD Banned

    Message Count:
    109
    Likes Received:
    33
    Well Seeing you released this shoud I release with mem editing in a dll?
  8. Cakes Mustard <3

    Message Count:
    5,761
    Likes Received:
    3,370




    Thank you <3
  9. IHasTu7ModeMenu Enthusiast

    Message Count:
    41
    Likes Received:
    0
    everything is coming out wuhhhu nice realease
    • Premium

    Fanboy Karma

    Message Count:
    3,464
    Likes Received:
    1,176




    This is a really good tut thanks
  10. D1G1TAL ║▌││║▌║││║▌│║ CEH/IT Network Security SuperUser

    Message Count:
    2,784
    Likes Received:
    1,273




    Thanks for the post man =]
  11. irecordpornz Getting There

    Message Count:
    132
    Likes Received:
    13
    nice release oh if i was using a cmd.txt how would i do the bg_ plz reply
  12. KraZz3D xD The One and Only

    Message Count:
    438
    Likes Received:
    22
    think you should release how to mem edit a .dll ;)
  13. DreamyTKD Banned

    Message Count:
    109
    Likes Received:
    33
    Hmmmm......................Naaaaaaaaaaaaaaaa lol its not hard
  14. S7 Pro Elite Member

    Message Count:
    2,100
    Likes Received:
    674




    LMAO! You can't memory edit a dll. He means memory editing within a dll.
  15. Brag Getting There

    Message Count:
    59
    Likes Received:
    7
    Nice release
  16. Im A Hooker Seasoned Member

    Message Count:
    143
    Likes Received:
    251
    yea you can memory edit a dll.
  17. S7 Pro Elite Member

    Message Count:
    2,100
    Likes Received:
    674




    :3 if you want to be technical about it.
  18. iMaes 010110100101101

    Message Count:
    1,161
    Likes Received:
    226


    amazing release ;)