|
|
sponsored advertisements
|
|
15th May 2010, 11:26 PM
|
#1
|
The Legendary Cheater
|
Local Player Structs
Code:
377B0858 // Local Pointer for CA NA
class Main;
class Info;
class Stats;
class WepInfo;
class Something;
class Main
{
public:
Info* goToInfoClass; //0000
};
class Info
{
public:
char unknown0[8];
__int32 Unknown1; //0008
__int32 iCurrentHealth; //000C
char unknown2[4];
__int32 iMaxHealth; //0014
char unknown3[4];
WepInfo* goToWepInfo;//001C
Something* goToSomething; //0020
char unknown4[348];
float fStamina; //0180
char unknown5[8];
__int32 iWeaponSlotInUse; //018C
float fCameraSomething; //0190
float fCameraSomething2; //0194
float fCameraSomething3; //0198
char unknown6[32];
Stats* goToStats; //01BC
};
class WepInfo
{
public:
__int32 iBackPackABulletsLeft; //0000
__int32 i2ndaryBulletsLeft; //0004
__int32 Unknown0; //0008
__int32 iGrenadesLeft; //000C
__int32 iBackPackBBulletsLeft; //0010
};
class Stats
{
public:
char unknown0[16];
char szLocalNameChangesInKill[16]; //0010
char unknown1[12];
__int32 iKills; //002C
__int32 iDeaths; //0030
char unknown2[44];
__int32 iHeadShots; //0060
};
class Something
{
public:
BYTE bIsAlive; //0000
};
Credits - Gellin, Ghoster, DrunkenChettah for structbuild
Do not post these on any other forum or you will be shot by gellin and they will not be updated.
Last edited by Gellin; 15th May 2010 at 11:29 PM.
|
Gellin is offline
|
|
|
15th May 2010, 11:45 PM
|
#2
|
Join Date: Oct 2008
Posts: 180
Reputation: 608
Rep Power: 379
Points: 10,879, Level: 12 |
Level up: 90%, 121 Points needed |
|
Epic share man! Thank you so much!
Made a little stats box :veryhappy::
http://i39.tinypic.com/23j288g.png
Last edited by Mack R; 16th May 2010 at 12:50 AM.
|
Mack R is offline
|
|
16th May 2010, 02:43 AM
|
#3
|
Hacked North Korea
|
Great contribution :]
|
SEGnosis is offline
|
|
16th May 2010, 05:05 PM
|
#5
|
Join Date: Nov 2009
Location: Box.
Posts: 187
Reputation: 198
Rep Power: 0
|
Dear god... not another CA Rush.
Great contribution Mr. Gellin!
+ Reputation for yew.
|
rev0lt is offline
|
|
17th May 2010, 12:55 PM
|
#7
|
Retired Administrator
|
instead of doing this:
Code:
cVar.Kills = (float)engine->GetLocal()->goToInfoClass->goToStats->iKills;
cVar.Deaths = (float)engine->GetLocal()->goToInfoClass->goToStats->iDeaths;
cVar.Headshots = (float)engine->GetLocal()->goToInfoClass->goToStats->iHeadShots;
why don't u latch the Stats class?
Code:
Stats* stats = engine->GetLocal()->goToInfoClass->goToStats;
cVar.Kills = (float)stats->iKills;
cVar.Deaths = (float)stats->iDeaths;
cVar.Headshots = (float)stats->iHeadShots;
|
learn_more is offline
|
|
17th May 2010, 03:00 PM
|
#8
|
Hacked North Korea
|
Quote:
Originally Posted by learn_more
instead of doing this:
Code:
cVar.Kills = (float)engine->GetLocal()->goToInfoClass->goToStats->iKills;
cVar.Deaths = (float)engine->GetLocal()->goToInfoClass->goToStats->iDeaths;
cVar.Headshots = (float)engine->GetLocal()->goToInfoClass->goToStats->iHeadShots;
why don't u latch the Stats class?
Code:
Stats* stats = engine->GetLocal()->goToInfoClass->goToStats;
cVar.Kills = (float)stats->iKills;
cVar.Deaths = (float)stats->iDeaths;
cVar.Headshots = (float)stats->iHeadShots;
|
o: More efficient, but wouldn't the absolute best way be. To simply use a memory copying function to save repetitive routines?
Quote:
Originally Posted by Gellin
or you will be shot by gellin
|
Why talk in third person
Last edited by SEGnosis; 17th May 2010 at 03:03 PM.
|
SEGnosis is offline
|
|
|
17th May 2010, 06:26 PM
|
#9
|
The Legendary Cheater
|
Quote:
Originally Posted by learn_more
instead of doing this:
Code:
cVar.Kills = (float)engine->GetLocal()->goToInfoClass->goToStats->iKills;
cVar.Deaths = (float)engine->GetLocal()->goToInfoClass->goToStats->iDeaths;
cVar.Headshots = (float)engine->GetLocal()->goToInfoClass->goToStats->iHeadShots;
why don't u latch the Stats class?
Code:
Stats* stats = engine->GetLocal()->goToInfoClass->goToStats;
cVar.Kills = (float)stats->iKills;
cVar.Deaths = (float)stats->iDeaths;
cVar.Headshots = (float)stats->iHeadShots;
|
Thanks , will this improve speed or is it just better code?
|
Gellin is offline
|
|
17th May 2010, 06:48 PM
|
#10
|
Hacked North Korea
|
Quote:
Originally Posted by Gellin
Thanks , will this improve speed or is it just better code?
|
Both, it will avoid repetitive calls and pointer length;
|
SEGnosis is offline
|
|
18th May 2010, 04:01 AM
|
#12
|
The Legendary Cheater
|
Quote:
Originally Posted by DarkFog
How can I reference this structure in memory, I suppose this is part of engine.exe module, so from where should I start searching?
Excuse me the idiot question but I'm trying to understand this.
|
its part of cshell.dll
|
Gellin is offline
|
|
18th May 2010, 08:05 PM
|
#13
|
n00bie
Join Date: May 2010
Posts: 1
Reputation: 10
Rep Power: 340
|
Just so you guys know, the first pointer is the PlayerStats pointer, and the second one is PlayerMgr.
|
mmbob is offline
|
|
23rd May 2010, 05:33 AM
|
#17
|
n00bie
|
Quote:
Originally Posted by DarkFog
If I wanted to reach this structure I start from LTClient address?
If so how do I reach it, do you scan the memory from within or what?
I want know more or less the headlines of finding these type of stuff in memory how is the algorithm behind. What should I do or search for?
Thank you.
|
Come is this vip info or what? Can somebody explain me this? I know how to program so that's not the problem.
|
DarkFog is offline
|
|
23rd May 2010, 08:57 AM
|
#18
|
The Legendary Cheater
|
Quote:
Originally Posted by DarkFog
Come is this vip info or what? Can somebody explain me this? I know how to program so that's not the problem.
|
Quote:
Originally Posted by mmbob
Just so you guys know, the first pointer is the PlayerStats pointer, and the second one is PlayerMgr.
|
Do some research like bob did.
|
Gellin is offline
|
|
23rd May 2010, 10:00 AM
|
#19
|
A Forum Hero
|
Quote:
Originally Posted by Gellin
Do some research like bob did.
|
I dont play this game but judging by other lithtech games when i think of playermgr.... viewangles come to mind.
|
fatboy88 is offline
|
|
23rd May 2010, 07:24 PM
|
#20
|
n00bie
|
Quote:
Originally Posted by Gellin
Do some research like bob did.
|
No, no, no. I don't mean that. What would like to know is how you people reach this structure in memory.
I don't have a method or heuristics to find this kind of stuff, the only thing that comes to mind is start scanning the memory from I don't know where comparing something.
Quote:
Originally Posted by mmbob
Just so you guys know, the first pointer is the PlayerStats pointer, and the second one is PlayerMgr.
|
I don't even understand what pointers is he talking about...
|
DarkFog is offline
|
|
We strive to provide all our services for free and not interrupt your visit with overly intrusive advertisements or restrictions - support us by disabling your ad blocker or whitelisting our site.
All times are GMT. The time now is 03:05 PM.
|
|
sponsored advertisement |
| | |