Addresses / Offsets / Structures [AW] [1.20]

Discussion in 'Call of Duty: Advanced Warfare' started by CF4_99, Aug 13, 2016.

What Do You Think Of My Post?

  1. It's Good and Usefull

    88.9%
  2. It sucks, this won't help anyone

    11.1%
  1. CF4_99

    CF4_99 Well-Known Member

    59
    51
    218
    Credits:
    506
    Hello Everyone, today I am posting a thread for Advanced Warfare 1.20 Addresses, Offsets, and Structures, so here it is. :smile:


    ---------- Host Mods ----------
    G_Client : 0x1AEE380
    G_Entity : 0x19FE380
    ---------- Function (Call RPC) ----------
    Add_Ammo(playerState_s *ps, Weapon weapon, bool isAlternate, int count, int fillClip) : 0x330A40
    Cbuf_AddText(LocalClientNum_t localClientNum, const char *text) : 0x3AF41C
    Dvar_GetBool(const char *dvarName) : 0x4EB158
    Dvar_GetInt(const char *dvarName) : 0x4EB1D4
    Dvar_GetString(const char *dvarName) : 0x4EB2A0
    G_AddEvent(gentity_s *ent, unsigned int event, unsigned int eventParm) : 0x389EC0
    G_ClientTagIndex(const char *name) : 0x04E73C
    G_FreeEntities(void) : 0x335E74
    G_FreeTurret(gentity_s *self) : 0x399008
    G_GivePlayerWeapon(playerState_s *ps, Weapon weapon, int dualWield, int startInAltMode, int usedBefore) : 0x38D504
    G_GetPlayerEyePosition(playerState_s *ps, float *origin) : 0x314DD4
    G_GetSavePersist() : 0x335D04
    G_HintStringIndex(const char *name) : 0x04E8C4
    G_LoadGame(int checksum, SaveGame *save, int scriptRunning, int demoSave) : 0x34E2EC
    G_ModelIndex(const char *name) : 0x04E694
    G_ReadStruct(saveField_t *fields, char *dest, int tempsize, SaveGame *save) : 0x395118
    G_RegisterDebugDvars : 0x336610
    G_RegisterServerAdminDvars(void) : 0x336050
    G_RegisterWeapon(unsigned int weapIndex) : 0x334AC8
    G_RunFrame(int levelTime) : 0x339380
    G_ScriptMenuIndex(const char *name) : 0x04E840
    G_SetModel(gentity_s *ent, const char *modelName) : 0x388294
    G_SetSavePersist(int savepersist) : 0x335D18
    G_SpawnTurret(gentity_s *self, const char *weaponinfoname, const int useDropPitch) : 0x39E620
    G_Spawn(void) : 0x389510
    G_StatusIconIndex(const char *name) : 0x04E884
    G_ShutdownGame(int freeScripts) : 0x3373D0
    G_VehicleDefIndex(const char *name) : 0x04E8FC
    R_SetFrameFog(GfxCmdBufInput *input) : 0x628870
    SP_Script_Model(gentity_s *mSelf) : 0x37DDD4
    SV_FastRestart_f() : 0x450DB0
    SV_GameSendServerCommand(int clientNum, svscmd_type type, const char *text) : 0x45799C
    SV_MapRestart(int savegame, int loadScripts) : 0x450AF8
    SV_SendServerCommand(client_t *cl, svscmd_type type, const char *fmt, ...) : 0x45BEA8
    Sys_Error(const char *error, ...) : 0x55D2D4
    SV_SetGametype(void) : 0x4587E4
    ---------- FPS ----------
    FPS Enable : 0x4CABE4
    FPS String : 0x7CC8DC
    FPS Text Size : 0x4CAB3C
    FPS Text Position X : 0x4CAB40
    FPS Text Position Y : 0x4CAB44
    ---------- Miscelaneous ----------
    Key_IsDown : 0xD912B4

    public struct G_Client
    {
    public static UInt32
    G_Client = 0x1AEE380,
    Pseudo = G_Client + 0x3334,
    PrimaryAmmo = G_Client + 0x6BD,
    SecondaryAmmo = G_Client + 0x68D,
    ExoLauncherAmmo = G_Client + 0x6A5,
    Team = G_Client + 0x32DF,
    mFlag = G_Client + 0x35A7,
    FakeLag = G_Client + 0x321B,
    Speed = G_Client + 0x32D4,
    Laser = G_Client + 0x59,
    RedBoxes = G_Client + 0x5F,
    ThirdPerson = G_Client + 0x5F,
    ExoCloak = G_Client + 0x58,
    NoFriction = G_Client + 0x56,
    ButtonMonitoring = G_Client + 0x35B6,
    Origin = G_Client + 0x78,
    Angles = G_Client + 0x1B0;
    }

    public struct Stats
    {
    public static UInt32
    EntryStats = 0x2AE7568,
    Prestige = EntryStats + 0x0D,
    Level = EntryStats + 0xA9,
    Score = EntryStats + 0xE6,
    Kills = EntryStats + 0xBD,
    Deaths = EntryStats + 0x95,
    Accuracy = EntryStats + 0x51,
    Wins = EntryStats + 0x112,
    Losses = EntryStats + 0xC5,
    GamePlayed = EntryStats + 0xAD,
    TimePlayed = EntryStats + 0x102,
    UnlockAll = EntryStats + 0x5834,
    ClassName = EntryStats + 0x4DE9;
    }

    --------- Non-Host Mods ----------
    Advanced UAV : 0x1A7080
    Laser : 0x21BE34
    Name : 0x2A80BE8
    No Recoil : 0x2290B0
    RedBoxes : 0x1AF6FC
    Steady Aim : 0x18787C

    #pragma region Buttons
    namespace Buttons{
    int
    Cross = 67108864,
    Crouch = 33554432,
    Prone = 16777216,
    Start = 128,
    L1 = 134217736,
    L2 = -2147483648,
    L3 = 537001984,
    R1 = 65536,
    R2 = 1073741824,
    R3 = 263168,
    Square = 3145728;

    bool ButtonPressed(int client, int button){
    if (*(int*)(Offsets::Buttons + (client * 0x3980)) == button)
    return true;
    else return false;
    }
    }
    #pragma endregion
    Buttons = Look In Structure Client
    //Found by Swaqq, if used please leave credits.

    public static class Key_IsDown
    {
    public enum Key : uint
    {
    Cross = 0,
    Circle = 1,
    Square = 2,
    Triangle = 3,
    L1 = 4,
    R1 = 5,
    Start = 13,
    Select = 14,
    L3 = 15,
    R3 = 16,
    DPAD_UP = 19,
    DPAD_DOWN = 20,
    DPAD_LEFT = 21,
    DPAD_RIGHT = 22,
    }

    public static Boolean LocalKeyIsDown(Key k)
    {
    return PS3.Extension.ReadBool((Offsets.KeyIsDown + 0x0F) + ((UInt32)k * 0xC));
    }
    }

    private static uint function_address = 0x6271B0;//R_SetFrameFog

    public static byte[] ReverseBytes(Byte[] toReverse)
    {
    Array.Reverse(toReverse);
    return toReverse;
    }
    public static void WriteSingle(UInt32 address, float[] input)
    {
    Int32 length = input.Length;
    Byte[] array = new Byte[length * 4];
    for (Int32 i = 0; i < length; i++)
    {
    ReverseBytes(BitConverter.GetBytes(input)).CopyTo(array, (Int32)(i * 4));
    }
    PS3.SetMemory(address, array);
    }

    public static float[] ReadSingle(uint address, int length)
    {
    byte[] memory = PS3.Extension.ReadBytes(address, length * 4);
    ReverseBytes(memory);
    float[] numArray = new float[length];
    for (int index = 0; index < length; ++index)
    numArray[index] = BitConverter.ToSingle(memory, (length - 1 - index) * 4);
    return numArray;
    }

    public static int Init()
    {
    if (function_address == 0) return -1;
    Enable_RPC();
    return 0;
    }

    public static void Enable_RPC()
    {
    PS3.SetMemory(function_address, new byte[] { 0x4E, 0x80, 0x00, 0x20 });
    System.Threading.Thread.Sleep(20);
    byte[] func = new byte[] { 0x7C, 0x08, 0x02, 0xA6, 0xF8, 0x01, 0x00, 0x80, 0x3C, 0x60, 0x10, 0x05, 0x81, 0x83, 0x00, 0x4C, 0x2C, 0x0C, 0x00, 0x00, 0x41, 0x82, 0x00, 0x64, 0x80, 0x83, 0x00, 0x04, 0x80, 0xA3, 0x00, 0x08, 0x80, 0xC3, 0x00, 0x0C, 0x80, 0xE3, 0x00, 0x10, 0x81, 0x03, 0x00, 0x14, 0x81, 0x23, 0x00, 0x18, 0x81, 0x43, 0x00, 0x1C, 0x81, 0x63, 0x00, 0x20, 0xC0, 0x23, 0x00, 0x24, 0xC0, 0x43, 0x00, 0x28, 0xC0, 0x63, 0x00, 0x2C, 0xC0, 0x83, 0x00, 0x30, 0xC0, 0xA3, 0x00, 0x34, 0xC0, 0xC3, 0x00, 0x38, 0xC0, 0xE3, 0x00, 0x3C, 0xC1, 0x03, 0x00, 0x40, 0xC1, 0x23, 0x00, 0x48, 0x80, 0x63, 0x00, 0x00, 0x7D, 0x89, 0x03, 0xA6, 0x4E, 0x80, 0x04, 0x21, 0x3C, 0x80, 0x10, 0x05, 0x38, 0xA0, 0x00, 0x00, 0x90, 0xA4, 0x00, 0x4C, 0x90, 0x64, 0x00, 0x50, 0xE8, 0x01, 0x00, 0x80, 0x7C, 0x08, 0x03, 0xA6, 0x38, 0x21, 0x00, 0x70, 0x4E, 0x80, 0x00, 0x20 };
    PS3.SetMemory(function_address + 0x4, func);
    PS3.SetMemory(0x10050000, new byte[0x2854]);
    PS3.SetMemory(function_address, new byte[] { 0xF8, 0x21, 0xFF, 0x91 });
    }

    public static int Call(uint func_address, params object[] parameters)
    {
    int num_params = parameters.Length;
    uint num_floats = 0;
    for (uint i = 0; i < num_params; i++)
    {
    if (parameters is int)
    {
    byte[] val = BitConverter.GetBytes((int)parameters);
    Array.Reverse(val);
    PS3.SetMemory(0x10050000 + (i + num_floats) * 4, val);
    }
    else if (parameters is uint)
    {
    byte[] val = BitConverter.GetBytes((uint)parameters);
    Array.Reverse(val);
    PS3.SetMemory(0x10050000 + (i + num_floats) * 4, val);
    }
    else if (parameters is string)
    {
    byte[] str = Encoding.UTF8.GetBytes(Convert.ToString(parameters) + "\0");
    PS3.SetMemory(0x10050054 + i * 0x400, str);
    uint addr = 0x10050054 + i * 0x400;
    byte[] address = BitConverter.GetBytes(addr);
    Array.Reverse(address);
    PS3.SetMemory(0x10050000 + (i + num_floats) * 4, address);
    }
    else if (parameters is float)
    {
    num_floats++;
    byte[] val = BitConverter.GetBytes((float)parameters);
    Array.Reverse(val);
    PS3.SetMemory(0x10050024 + ((num_floats - 1) * 0x4), val);
    }
    }
    byte[] fadd = BitConverter.GetBytes(func_address);
    Array.Reverse(fadd);
    PS3.SetMemory(0x1005004C, fadd);
    System.Threading.Thread.Sleep(20);
    byte[] ret = PS3.Extension.ReadBytes(0x10050050, 4);
    Array.Reverse(ret);
    return BitConverter.ToInt32(ret, 0);
    }



    public static void Cbuf_AddText(int client, string command)
    {
    Call(0x3AEA6C, new object[] { 0, command });//Cbuf_AddText
    }

    public static void setBlur(Int32 transitionTime)
    {
    SV_GameSendServerCommand(0, "i _ " + transitionTime + " ");
    }

    public static void SetVision(int clientIndex, string Vision)
    {
    SV_GameSendServerCommand(clientIndex, "J \"" + Vision + "\" ");
    }

    public static void SV_GameSendServerCommand(int client, string command)
    {
    Call(0x456E8C, client, 0, command + "\"");
    }

    public static void iPrintln(int client, string text)
    {
    SV_GameSendServerCommand(client, "e \"" + text + "\"");
    }

    public static void iPrintlnBold(int client, string text)
    {
    SV_GameSendServerCommand(client, "c \"" + text + "\"");
    }

    public static uint spawnEntity(string ModelName, float[] Origin, float[] Angles)
    {
    uint Entity = (uint)Call(0x388B60);//G_Spawn
    WriteSingle(Entity + 0x138, Origin);
    WriteSingle(Entity + 0x148, Angles);
    Call(0x3878E4, Entity, ModelName);//G_SetModels
    Call(0x37D424, Entity);//SP_script_model
    return Entity;
    }

    public static float[] getPlayerOrigin(int clientIndex)
    {
    return ReadSingle(G_Client(clientIndex, 0x78), 3);
    }

    public static void ClonePlayer(int clientIndex)
    {
    RPC.Call(PlayerCMD_ClonePlayer, new object[] { clientIndex });
    }

    public static void G_GivePlayerWeapon(int Client, int Weapon, int ammo)
    {
    RPC.Call(0x36A6A0, 0x1950880+ 0x4180 * (uint)Client, Weapon, 0);//G_GivePlayerWeapons and G_Client !
    RPC.Call(0x3101C0, 0x1950880+ (Client * 0x4180), Weapon, 0, ammo, 1);//Add_Ammo and G_Client
    }

    Public static void SetModel(Int Client , string Models)
    {
    RPC.Call(0x365738 , 0x1860880+ 0x280 * (uint)Client, Model);//G_SetModels And G_Entity
    }

    void FastRestart()
    {
    RPC.Call(Fast_Restart_f);
    }

    uint kb_Result = 0x03260E22,
    kb_cb = 0x9C9518,
    keyboardPrompt = 0x4C2540,
    kb_active = 0x9DBF40;

    string runKeyboard(string title = "Your title", string presetText = "text here", int maxLength = 20)
    {

    /*your own rpc function...*/
    Call(keyboardPrompt, new object[] { 0, title, presetText, maxLength, 0, 0, kb_cb });
    System.Threading.Thread.Sleep(10);//give him some time !
    /*wait for the keyboard to be ended*/
    while (PS3.Extension.ReadInt32(kb_active) == 0) { /*Do nothing :grinning:*/}
    return PS3.Extension.ReadString(kb_Result);

    }


    Shark
    SC58
    Swaqq
    aerosoul94
    Choco
    xCSBKx
    RatchetBooty
    RGaming
    xReaperV3
    Lebigkilleur

    I will be adding more in the future, I didn't put a lot of time or effort into this post, as there aren't a lot of people that like to mod Advanced Warfare.
    Anyways, Happy Modding :smile:
     
    CabCon likes this.
  2. Gentle

    Gentle Guest

    Credits:
    0
    Good release I guess.
     
  3. CF4_99

    CF4_99 Well-Known Member

    59
    51
    218
    Credits:
    506
    why say good then vote sucks... makes no sense lol
     
  4. Gentle

    Gentle Guest

    Credits:
    0
    "I guess"
     
  5. CF4_99

    CF4_99 Well-Known Member

    59
    51
    218
    Credits:
    506
    what would make it better?
     
  6. CabCon

    CabCon Head Administrator Staff Member Head Staff Team

    4,068
    2,642
    403
    Credits:
    188,780
    Some people are active in the advanced warfare section, nice!:blush:
     
  7. Tusta

    Tusta Head Member Donator

    20
    11
    14
    Credits:
    3,242
    Nice Theard :smile:
     
  8. Lucifer

    Lucifer Moderator Staff Member

    806
    550
    303
    Credits:
    4,551
    Dang I thought these were already released thanks man I might work on a tool or something with these thanks :tonguewink:
     
  9. William Belville

    William Belville New Member

    6
    7
    3
    Credits:
    22
    Good One!
     
    CF4_99 likes this.
  10. CF4_99

    CF4_99 Well-Known Member

    59
    51
    218
    Credits:
    506
    Thanks dude!
     

Share This Page