What's new

Code [Release/Info] Classes offset

  • Thread starter HotLikeMexico
  • Start date
  • Views 2,123
HotLikeMexico

HotLikeMexico

- The Great Maes -
Modder Seasoned Veteran Grizzled Veteran
Messages
1,640
Reaction score
555
Points
230
Sin$
0
I saw nobody post this so here we go..

Code:
//Class 1
0x830AA121 Name
0x830AA0F9 Primary
+2 Primary Attachement 1
+4 Primary Attachement 2
+6 Primary Camo
0x830AA105 Secondary
        +2 Secondary Attachement 1
+4 Secondary Attachement 2
+6 Secondary Camo
0x830AA111 Equipement 1
0x830AA11D Equipement 2
0x830AA113 Perk 1
+2 Perk 2
+4 Perk 3
//Class 2
0x830AA183 Name
0x830AA15B Primary
+2 Primary Attachement 1
+4 Primary Attachement 2
+6 Primary Camo
0x830AA167 Secondary
        +2 Secondary Attachement 1
+4 Secondary Attachement 2
+6 Secondary Camo
0x830AA173 Equipement 1
0x830AA17F Equipement 2
0x830AA175 Perk 1
+2 Perk 2
+4 Perk 3
//Class 3
0x830AA1E5 Name
0x830AA1BD Primary
+2 Primary Attachement 1
+4 Primary Attachement 2
+6 Primary Camo
0x830AA1C9 Secondary
        +2 Secondary Attachement 1
+4 Secondary Attachement 2
+6 Secondary Camo
0x830AA1D5 Equipement 1
0x830AA1E1 Equipement 2
0x830AA1D7 Perk 1
+2 Perk 2
+4 Perk 3
//Class 4
0x830AA247 Name
0x830AA21F Primary
+2 Primary Attachement 1
+4 Primary Attachement 2
+6 Primary Camo
0x830AA22B Secondary
        +2 Secondary Attachement 1
+4 Secondary Attachement 2
+6 Secondary Camo
0x830AA237 Equipement 1
0x830AA243 Equipement 2
0x830AA239 Perk 1
+2 Perk 2
+4 Perk 3
//Class 5
0x830AA2A9 Name
0x830AA281 Primary
+2 Primary Attachement 1
+4 Primary Attachement 2
+6 Primary Camo
0x830AA28D Secondary
        +2 Secondary Attachement 1
+4 Secondary Attachement 2
+6 Secondary Camo
0x830AA299 Equipement 1
0x830AA2A5 Equipement 2
0x830AA29B Perk 1
+2 Perk 2
+4 Perk 3
 
Const

Const

Übermensch
Messages
575
Reaction score
758
Points
205
Sin$
0
Code:
 struct Class
{
char* Name;
short Primary;
short P_Attachment1;
short P_Attachment2;
short P_Camo;
short Secondary;
short S_Attachment1;
short S_Attachment2'
short S_Camo;
short Equipment1;
short Equipment2;
short Perk1;
short Perk2;
short Perk3;
}
 
Class *myClass[15] = (Class*)0x830AA121;

You should also include all the enums for this too. Also I'm pretty sure these offsets are off because the are not aligned correctly, unless cod developers used the push command.
 
Hacksorce

Hacksorce

Enthusiast
Messages
585
Reaction score
401
Points
125
Sin$
7
I wrote up a method for people who want to experiment with this. Assuming you have the XRPC++ class.
Code:
  public static void ClassEditor(int classNum, string ClassName,short Primary, short PAttachment,short PAttachment2,short PCamo,short Secondary,short SAttachment,short SAttachment2,short SCamo,short,short Equipment1,short Equipment2,short Perk1,short Perk2,short Perk3)
        {
            byte[] Classname = Encoding.UTF8.GetBytes(ClassName);
            uint ClassOffset = (0x830AA0F9) + (uint)(classNum * 62);
            Jtag.SetMemory(ClassOffset + 28, Classname);
            Jtag.WriteInt16(ClassOffset,Primary);
            Jtag.WriteInt16(ClassOffset+2,PAttachment);
            Jtag.WriteInt16(ClassOffset+4,PAttachment2);
            Jtag.WriteInt16(ClassOffset+6,PCamo);
            Jtag.WriteInt16(ClassOffset + 0xC,Secondary);
            Jtag.WriteInt16(ClassOffset + 0xE,SAttachment);
            Jtag.WriteInt16(ClassOffset + 0x10,SAttachment2);
            Jtag.WriteInt16(ClassOffset + 0x12,SCamo);
            Jtag.WriteInt16(ClassOffset + 0x18,Equipment1);
            Jtag.WriteInt16(ClassOffset + 0x24,Equipment2);
            Jtag.WriteInt16(ClassOffset + 0x1A,Perk1);
            Jtag.WriteInt16(ClassOffset + 0x1C,Perk2);
            Jtag.WriteInt16(ClassOffset + 0x1E ,Perk3);
        }
 
Apathy

Apathy

Member
Programmer Modder Hardened Veteran
Messages
3,007
Reaction score
920
Points
455
Sin$
7
Your entry offset if for offline classes i'm pretty sure. Here is what I have...

Code:
        const uint CustomClassEntry = 0x83096C73;
        const uint OnlineClassEntry = 0x830A711C; //CustomClassEntry + 0x104A9;
        const uint OfflineClassEntry = 0x830AA121; //OnlineClassEntry + 0x3005;

Example
Code:
string OfflineClass3Name = GetString((OfflineClassEntry + (3 * 0x62)), 20, true);
 
Last edited:
Apathy

Apathy

Member
Programmer Modder Hardened Veteran
Messages
3,007
Reaction score
920
Points
455
Sin$
7
Cuz he doesnt know C++ or C# soo he looks at this post and dusnt know wut the faq any of it means.
I know. Just wanted to hear it from him, and maybe try and help him understand... Your signature is quite funny... The dude in your sig has YET to prove he knows anything more than **** talking hahha
 
Sycc

CaPsychoModz

Custom Title:
Programmer Modder Experienced Veteran
Messages
1,868
Reaction score
509
Points
365
Sin$
0
I know. Just wanted to hear it from him, and maybe try and help him understand... Your signature is quite funny... The dude in your sig has YET to prove he knows anything more than **** talking hahha
Lol.. Kyza got banned for the 4th time soo its a permanant ip ban..
 
Top Bottom
Login
Register