offsets
Interact with the internally used offsets class
Offsets Structure Overview
Our offsets class is structured in a similar hierarchical format to the one used by a2x/cs2-dumper. This familiar layout helps maintain compatibility with community standards and makes it easier to update or migrate offsets from external sources.
We group offsets under relevant namespaces (such as clientdll and gameclient) to mirror the internal architecture of the game client, promoting clean organization and intuitive access while being able to be visually understood as well.
Below is an example of our structure:
public class offsets
{
public static class clientdll
{
public static class gameclient
{
public static class client
{
public static nint dwCSGOInput;
public static nint dwEntityList;
public static nint dwGameEntitySystem;
public static nint dwGameEntitySystem_highestEntityIndex;
public static nint dwGameRules;
public static nint dwGlobalVars;
public static nint dwGlowManager;
public static nint dwLocalPlayerController;
public static nint dwLocalPlayerPawn;
public static nint dwPlantedC4;
public static nint dwPrediction;
public static nint dwSensitivity;
public static nint dwSensitivity_sensitivity;
public static nint dwViewAngles;
public static nint dwViewMatrix;
public static nint dwViewRender;
public static nint dwWeaponC4;
}
}
}
}Print offset value from class
var offset = offsets.clientdll.gameclient.client.dwEntityList;
client.print(client.formatPtr(offset));Here’s how you might access and format an offset for logging. You can also do something like this:
for (let key in offsets.clientdll.gameclient.client)
{
client.print(`${key} = ${client.formatPtr(offsets.clientdll.gameclient.client[key])}`);
}Update offsets
offsetupdater.updateFromRepo();This pulls the offsets from the official a2x/cs2-dumper GitHub repository and automatically populates the internal C# offsets class structure.
Last updated
Was this helpful?