As some of you may have understand already: scripting in DayZ SA is obsolete, it will work for some more time then it will stop (atm the scripting client side is enabled only for dev purpose.. it will be disabled later on, so forget to spawn weapons or teleport and doing all the usual scripting shit), you're going to cheat in the old fashion style (mem reading/writing), with one (big) consideration: VAC ... i'm not going to add more details about this.
This is the pointers and piece of code i'm using for my own radar (I love passive cheats.. i don't like god mode and such, or i'll get bored soon..). I'm going to post copy/paste working code on purpose: i like ppl learning how to code, instead of serving a bunch of code lines ready to be compiled.
Code:
const int bsAdr = 0xDD9D30; // Base Address (113860)
const int usrAdr = 0xDCCB28; // Server list (profile names)
const int bldAdr[2] = {0xF7C, 0x980}; // OBJ Tables
const int bldAdrOff[4] = {0x4, 0xAC, 0x154, 0x1FC}; // OBJ SubTables
/../
ReadProcessMemory(handler, (VOID*)bsAdr, &bytes, sizeof(bytes), 0);
int bldTable = (int)bytes;
for (int adr_i = 0; adr_i < 3; adr_i++) {
for (int adroff_i = 0; adroff_i < 4; adroff_i++) {
bld_offset = buildAdr[adr_i] + bldAdrOff[adroff_i];
ReadProcessMemory(handler, (VOID*)(bsTable + bld_offset + 0x4), &bytes, sizeof(bytes), 0);
int bldTablePtr = (int)bytes;
ReadProcessMemory(handler, (VOID*)(bldTable + bld_offset + 0x8), &bytes, sizeof(bytes), 0);
int bldTableSize = 0;
bldTableSize = min((int)bytes, 1000);
for (int i = 0; i < bldTableSize; i++) {
ReadProcessMemory(handler, (VOID*)(bldTablePtr + (i * 0x4)), &bytes, sizeof(bytes), 0);
int bldPtr = (int)bytes;
ReadProcessMemory(handler, (VOID*)(bldPtr + 0x9C), &bytes, sizeof(bytes), 0);
int coordinates = (int)bytes; // coords XZY format
// bld3 = bldPtr* ] + 0x70 ] + 0x3C ] + 0x08]
ReadProcessMemory(handler, (VOID*)(bld3 + 0x8), name, 26, 0);
String^ obj_name = gcnew String(name);
}
}
}
obj_names (actually skins) i'm using to identify the players:
"SurvivorBase",
"SurvivorMale",
"SurvivorFemale",
"SurvivorPartsMaleWhite",
"SurvivorPartsMaleAsian",
"SurvivorPartsMaleAfrican",
"SurvivorPartsMaleLatino",
"SurvivorPartsFemaleWhite",
"SurvivorPartsFemaleAsian",
"SurvivorPartsFemaleAfrican",
"SurvivorPartsFemaleLatino"
...you can use all the other obj names to identify the loot.. like in example (for the weapons):
"M4A1",
"FNX45",
"Mosin9130"