Posts 16–30 of 43 · Page 2 of 3

Originally Posted by
aS1an1Sm
@
I2espect thanks for sharing...
Anyway to check for object if hp drop to zero?
Code:
enum eObjectType
{
PLAYER = 1,
WEAPON = 3,
GRENADE = 4,
ZOMBIE = 10,
MZ_GADGET = 23,
BR_WEAPON = 33
};
class cObjectInfo
{
public:
eObjectType ObjectType; //0x0000
union
{
cObjectFX* ObjectFX; //0x0004
cCharacterFX* CharacterFX; // <-- this to check for health :D
};
__forceinline bool IsWeapon() {
return ((ObjectType == eObjectType::WEAPON) ||
(ObjectType == eObjectType::GRENADE) ||
(ObjectType == eObjectType::MZ_GADGET) ||
(ObjectType == eObjectType::BR_WEAPON));
}
__forceinline bool IsPlayer() {
return ((ObjectType == eObjectType::PLAYER));
}
__forceinline bool IsRifle() {
return ((ObjectType == eObjectType::WEAPON));
}
__forceinline bool IsGrenade() {
return ((ObjectType == eObjectType::GRENADE));
}
__forceinline bool IsRifleBR() { // BattleRoyaleIndex
return ((ObjectType == eObjectType::BR_WEAPON));
}
__forceinline bool IsAIZombie() {
return ((ObjectType == eObjectType::ZOMBIE));
}
public:
FORCEINLINE cObjectFX* GetObjectFX(void)
{
return (this != nullptr) ? ObjectFX : NULL;
}
FORCEINLINE cCharacterFX* GetCharacFX(void)
{
return (this != nullptr) ? CharacterFX : NULL;
}
}; //Size: 0x0008

Originally Posted by
jayjay153
Code:
enum eObjectType
{
PLAYER = 1,
WEAPON = 3,
GRENADE = 4,
ZOMBIE = 10,
MZ_GADGET = 23,
BR_WEAPON = 33
};
class cObjectInfo
{
public:
eObjectType ObjectType; //0x0000
union
{
cObjectFX* ObjectFX; //0x0004
cCharacterFX* CharacterFX; // <-- this to check for health :D
};
__forceinline bool IsWeapon() {
return ((ObjectType == eObjectType::WEAPON) ||
(ObjectType == eObjectType::GRENADE) ||
(ObjectType == eObjectType::MZ_GADGET) ||
(ObjectType == eObjectType::BR_WEAPON));
}
__forceinline bool IsPlayer() {
return ((ObjectType == eObjectType::PLAYER));
}
__forceinline bool IsRifle() {
return ((ObjectType == eObjectType::WEAPON));
}
__forceinline bool IsGrenade() {
return ((ObjectType == eObjectType::GRENADE));
}
__forceinline bool IsRifleBR() { // BattleRoyaleIndex
return ((ObjectType == eObjectType::BR_WEAPON));
}
__forceinline bool IsAIZombie() {
return ((ObjectType == eObjectType::ZOMBIE));
}
public:
FORCEINLINE cObjectFX* GetObjectFX(void)
{
return (this != nullptr) ? ObjectFX : NULL;
}
FORCEINLINE cCharacterFX* GetCharacFX(void)
{
return (this != nullptr) ? CharacterFX : NULL;
}
}; //Size: 0x0008
cObjectFX* ObjectFX; // <---- 0xA4 ?
cCharacterFX* CharacterFX; // <---- Pointer ?
Wrong CharacterFX pointer i guess.
- - - Updated - - -

Originally Posted by
I2espect
i dont know if my offsets are old or not but :
Code:
char pad_0000[164];
cObject* Object;
char pad_0001[348];
int8_t bIsDead;
char pad_0002[15];
int8_t SpawnShield;
char pad_0003[326947];
__int32 fHealth;
doesn't need the CharacterFX pointer ? I tried yours but crash.
But doing this,
Code:
struct CFX
{
char _0x0000[0xA4];
HOBJECT* fxObject; // 0xA4
unsigned long* CharacterFX; // <--- wrong
bool IsFxDead() {
return (*(uint8_t*)(*(int32_t*)&this->CharacterFX + aDead));
}
bool isValidFx() {
if (IsValidPtr(this) && IsValidPtr(this->fxObject) &&
IsValidPtr(this->CharacterFX) && !this->IsFxDead())
return true;
return false;
}
};
Not all gets rendered.

Originally Posted by
aS1an1Sm
cObjectFX* ObjectFX; // <---- 0xA4 ?
cCharacterFX* CharacterFX; // <---- Pointer ?
Wrong CharacterFX pointer i guess.
- - - Updated - - -
doesn't need the CharacterFX pointer ? I tried yours but crash.
But doing this,
Code:
struct CFX
{
char _0x0000[0xA4];
HOBJECT* fxObject; // 0xA4
unsigned long* CharacterFX; // <--- wrong
bool IsFxDead() {
return (*(uint8_t*)(*(int32_t*)&this->CharacterFX + aDead));
}
bool isValidFx() {
if (IsValidPtr(this) && IsValidPtr(this->fxObject) &&
IsValidPtr(this->CharacterFX) && !this->IsFxDead())
return true;
return false;
}
};
Not all gets rendered.
its a union
union // <======

{
cObjectFX* ObjectFX; //0x0004
cCharacterFX* CharacterFX; //0x0004 // this only applies for Player

};

Originally Posted by
jayjay153
its a union
union // <======

{
cObjectFX* ObjectFX; //0x0004
cCharacterFX* CharacterFX; //0x0004 // this only applies for Player

};
i'm not asking about the union. Ahh i see so CharacterFX is only for Character.

Originally Posted by
aS1an1Sm
cObjectFX* ObjectFX; // <---- 0xA4 ?
cCharacterFX* CharacterFX; // <---- Pointer ?
Wrong CharacterFX pointer i guess.
- - - Updated - - -
doesn't need the CharacterFX pointer ? I tried yours but crash.
But doing this,
Code:
struct CFX
{
char _0x0000[0xA4];
HOBJECT* fxObject; // 0xA4
unsigned long* CharacterFX; // <--- wrong
bool IsFxDead() {
return (*(uint8_t*)(*(int32_t*)&this->CharacterFX + aDead));
}
bool isValidFx() {
if (IsValidPtr(this) && IsValidPtr(this->fxObject) &&
IsValidPtr(this->CharacterFX) && !this->IsFxDead())
return true;
return false;
}
};
Not all gets rendered.
maybe wrong offset for 'isDead'
tbh i didnt test isDead but i am sure of the 'health' property
ss from 07/05/2018 so not sure about it nw too XD


Originally Posted by
I2espect
maybe wrong offset for 'isDead'
tbh i didnt test isDead but i am sure of the 'health' property
ss from 07/05/2018 so not sure about it nw too XD

@
I2espect thanks, glad i have my previous dump file.
One more problem though, about the object getting re-null. I tried your Hints but still crashing midway.

Originally Posted by
aS1an1Sm
@
I2espect thanks, glad i have my previous dump file.
One more problem though, about the object getting re-null. I tried your Hints but still crashing midway.
Use RTTI to check if the address is a ModelI stance class

Do NOT ask me how to get RTTI information, make the code urself.

Originally Posted by
vaisefud3
Use RTTI to check if the address is a ModelI stance class

Do NOT ask me how to get RTTI information, make the code urself.
Great Function


Originally Posted by
vaisefud3
Use RTTI to check if the address is a ModelI stance class

Do NOT ask me how to get RTTI information, make the code urself.
already fixed. problem with the hooked func.

Originally Posted by
aS1an1Sm
already fixed. problem with the hooked func.
Ahh, I thought you were using the EntityList

Originally Posted by
I2espect
i dont know if my offsets are old or not but :
Code:
char pad_0000[164];
cObject* Object;
char pad_0001[348];
int8_t bIsDead;
char pad_0002[15];
int8_t SpawnShield;
char pad_0003[326947];
__int32 fHealth;
how to know the actual number of objects on the map?

Originally Posted by
CaiozinhoFC1
how to know the actual number of objects on the map?
Nearby the entitylist there is the ObjectCount, just look it up...

Originally Posted by
vaisefud3
Nearby the entitylist there is the ObjectCount, just look it up...
@
CaiozinhoFC1
but if u are using the hook i posted
u should add the objects to a vector
and get the size of it

Originally Posted by
I2espect
@
CaiozinhoFC1
but if u are using the hook i posted
u should add the objects to a vector
and get the size of it
exactly

ZM Health:
Code:
West:
__int32 Health; //0x155B8
PH:
__int32 Health; //0x155AC
ES:
__int32 Health; //0x4FF40
BR:
__int32 Health; //0x155AC

Posts 16–30 of 43 · Page 2 of 3