Has anyone figured out how CVars are stored in 10.0.0.46597
They used to be a linked list (kind of like the object manager) with a pointer to the name and a pointer to the value. Pointer to the name still works, but having troubles finding out how to find the value. The next works (weirdly for about half of them)
Code:
const CVarOffset = 0x3497ef0;
const FIRST = 0x10;
const NAME = 0x20;
let current = this.readMemory(FIRST, UINT64);
const namePtr = readMemory<number>(this.handle, current + NAME, UINT64);
const valuePtr = readMemory<number>(this.handle, namePtr - 0x60, UINT64);
const name = this.readString(namePtr);
const value = this.readString(valuePtr)
const next = readMemory<number>(this.handle, current, UINT64); // etc