Warrock - Code Snippets

08/18/2012 16:48 jeffrey1994#196
Quote:
Originally Posted by GigaByte™ View Post
Well ESP uses CPlayer for the positioning, is it Updated? CBase updated?
I guess they are? I got them from Pointer und Offsets thread, still haven't figured it out, names wont pop above players head but instead they are outside of the map:confused:
Code:
struct CPlayer
{
CHAR hacker1377[0xC4C4];//0x00
BYTE PlayerState;//0xC4C4
CHAR hacker13772[0x3CDD];//0xC4C5
FLOAT Pitch;//0x101A0
CHAR hacker13773[0x18];//0x101A4
FLOAT Yaw;//0x101BC
CHAR hacker13774[0xC];//0x101C0
FLOAT ViewX;//0x101CC
FLOAT ViewY;//0x101D4
FLOAT ViewZ;//0x101D0
CHAR hacker13776[0x124];//0x101D4
FLOAT PosX;//0x102F8
CHAR hacker13777[0x4];//0x102FC
FLOAT PosY;//0x10300
CHAR hacker13778[0x4];//0x10304
FLOAT PosZ;//0x10308
};
struct c_Base
{
	CPlayer* pLocal;//playerpointer
	char cJump1[1197020];
	CPlayer** pGlobal;//remotepointer
};
c_Base *p_Player = (c_Base*)ADR_PLAYERPOINTER;


struct CPlayerInfo
{	
		char unknown0[1724]; //0x0000
	__int32 ping; //0x06BC  
		char unknown1728[20]; //0x06C0
	char ip[16]; //0x06D4  
		char unknown1764[136]; //0x06E4
	__int32 exp; //0x076C  
		char unknown1904[596]; //0x0770
	char Name[20]; //0x09C4  
		char unknown2520[4500]; //0x09D8
	__int32 points; //0x1B6C  
		char unknown7024[16]; //0x1B70
	__int32 kills; //0x1B80  
	__int32 deaths; //0x1B84  
		char unknown7048[12]; //0x1B88
	__int32 health; //0x1B94  
		char unknown7064[312]; //0x1B98
	BYTE team; //0x1CD0 
};
08/18/2012 19:54 ~ExoduS~*#197
than change pos man ! y and x ka man your source is fail
08/18/2012 20:24 Angel-Piece#198
Quote:
Originally Posted by jeffrey1994 View Post
I guess they are? I got them from Pointer und Offsets thread, still haven't figured it out, names wont pop above players head but instead they are outside of the map:confused:
Code:
struct CPlayer
{
CHAR hacker1377[0xC4C4];//0x00
BYTE PlayerState;//0xC4C4
CHAR hacker13772[0x3CDD];//0xC4C5
FLOAT Pitch;//0x101A0
CHAR hacker13773[0x18];//0x101A4
FLOAT Yaw;//0x101BC
CHAR hacker13774[0xC];//0x101C0
FLOAT ViewX;//0x101CC
FLOAT ViewY;//0x101D4
FLOAT ViewZ;//0x101D0
CHAR hacker13776[0x124];//0x101D4
FLOAT PosX;//0x102F8
CHAR hacker13777[0x4];//0x102FC
FLOAT PosY;//0x10300
CHAR hacker13778[0x4];//0x10304
FLOAT PosZ;//0x10308
};
struct c_Base
{
	CPlayer* pLocal;//playerpointer
	char cJump1[1197020];
	CPlayer** pGlobal;//remotepointer
};
c_Base *p_Player = (c_Base*)ADR_PLAYERPOINTER;


struct CPlayerInfo
{	
		char unknown0[1724]; //0x0000
	__int32 ping; //0x06BC  
		char unknown1728[20]; //0x06C0
	char ip[16]; //0x06D4  
		char unknown1764[136]; //0x06E4
	__int32 exp; //0x076C  
		char unknown1904[596]; //0x0770
	char Name[20]; //0x09C4  
		char unknown2520[4500]; //0x09D8
	__int32 points; //0x1B6C  
		char unknown7024[16]; //0x1B70
	__int32 kills; //0x1B80  
	__int32 deaths; //0x1B84  
		char unknown7048[12]; //0x1B88
	__int32 health; //0x1B94  
		char unknown7064[312]; //0x1B98
	BYTE team; //0x1CD0 
};
FLOAT ViewX;//0x101CC
FLOAT ViewY;//0x101D4
FLOAT ViewZ;//0x101D0


you failed hard

FLOAT ViewX;//0x101CC
FLOAT ViewZ;//0x101D4
FLOAT ViewY;//0x101D0


and i think you use a public esp source and there are alle thinks (names,health....)
under the foot of the player not at the head :)
08/18/2012 21:45 jeffrey1994#199
Quote:
Originally Posted by ~ExoduS~* View Post
than change pos man ! y and x ka man your source is fail
I already noticed that I just copy pasted what I found in the "Pointer und Offsets" thread, so you better blame the person that posted these structs;)

Quote:
Originally Posted by Angel-Piece View Post
FLOAT ViewX;//0x101CC
FLOAT ViewY;//0x101D4
FLOAT ViewZ;//0x101D0


you failed hard

FLOAT ViewX;//0x101CC
FLOAT ViewZ;//0x101D4
FLOAT ViewY;//0x101D0


and i think you use a public esp source and there are alle thinks (names,health....)
under the foot of the player not at the head :)
I had already seen that mistake by the creator of the structures but that still didn't work, but I already figured out what the problem was.

My next problem is checking if a player is an enemy or not:rolleyes:
08/18/2012 23:22 GigaByte™#200
Quote:
Originally Posted by jeffrey1994 View Post
I already noticed that I just copy pasted what I found in the "Pointer und Offsets" thread, so you better blame the person that posted these structs;)


I had already seen that mistake by the creator of the structures but that still didn't work, but I already figured out what the problem was.

My next problem is checking if a player is an enemy or not:rolleyes:
Easy peasy, just make team check :)
08/19/2012 02:06 jeffrey1994#201
Quote:
Originally Posted by GigaByte™ View Post
Easy peasy, just make team check :)
Yeah but it's not working. I now got it like this but no matter what it, displays all drawings on all players:mad:
Code:
if (CH_ESPEnemyOnly == 0)
{
       //ESP code here, works fine displays names on all players
}
if (CH_ESPEnemyOnly == 1)
{
  if (GetGlobalInfo(GetLocalInfo())->Team != GetGlobalInfo(i)->Team){
       // ESP code here, displays names on all players
 }
}
You mean like that right?
08/19/2012 08:22 CyberVeezy :)#202
Code:
BOOL PatchInvi;
if(X3_Invisible == 1 && PatchInvi == false){ if(dwServerPtr!=0){ *(long*)(dwServerPtr+ADR_INVISIBLE) -= 2; PatchInvi = true;}} 
if(X3_Invisible == 0 && PatchInvi == true){ *(long*)(dwServerPtr+ADR_INVISIBLE) += 2; PatchInvi = false;}
Credits: Willi35
08/19/2012 11:16 Angel-Piece#203
Quote:
Originally Posted by jeffrey1994 View Post
Yeah but it's not working. I now got it like this but no matter what it, displays all drawings on all players:mad:
Code:
if (CH_ESPEnemyOnly == 0)
{
       //ESP code here, works fine displays names on all players
}
if (CH_ESPEnemyOnly == 1)
{
  if (GetGlobalInfo(GetLocalInfo())->Team != GetGlobalInfo(i)->Team){
       // ESP code here, displays names on all players
 }
}
You mean like that right?
yeah it should work but, if you want to have a good enemy online you need to calculate, if you in ffa or not too because in your code 50% of player are green other 50% are red but in ffa all people are enemy...


and your code isn't clean you could do it realy shorter,cleaner & better....
08/19/2012 12:56 jeffrey1994#204
Quote:
Originally Posted by Angel-Piece View Post
yeah it should work but, if you want to have a good enemy online you need to calculate, if you in ffa or not too because in your code 50% of player are green other 50% are red but in ffa all people are enemy...


and your code isn't clean you could do it realy shorter,cleaner & better....
Well this check causes nothing to work cant figure it out
Code:
if (GetGlobalInfo(GetLocalInfo())->Team != GetGlobalInfo(i)->Team)
08/19/2012 15:03 Angel-Piece#205
Quote:
Originally Posted by jeffrey1994 View Post
Well this check causes nothing to work cant figure it out
Code:
if (GetGlobalInfo(GetLocalInfo())->Team != GetGlobalInfo(i)->Team)
maybe wrong structs?
08/19/2012 17:30 GigaByte™#206
Quote:
Originally Posted by Angel-Piece View Post
maybe wrong structs?
What he said + addies used in GetGlobal and Local Info? :)
08/19/2012 20:14 jeffrey1994#207
Quote:
Originally Posted by GigaByte™ View Post
What he said + addies used in GetGlobal and Local Info? :)
I checked them they seem right, I kinda gave up on the ESP part, if someone is willing to help me PM me or something:confused:
Code:
struct CPlayerInfo
{	
		char unknown0[1724]; //0x0000
	__int32 Ping; //0x06BC  
		char unknown1728[20]; //0x06C0
	char Ip[16]; //0x06D4  
		char unknown1764[136]; //0x06E4
	__int32 Exp; //0x076C  
		char unknown1904[596]; //0x0770
	char Name[20]; //0x09C4  
		char unknown2520[4500]; //0x09D8
	__int32 Points; //0x1B6C  
		char unknown7024[16]; //0x1B70
	__int32 Kills; //0x1B80  
	__int32 Deaths; //0x1B84  
		char unknown7048[12]; //0x1B88
	__int32 Health; //0x1B94  
		char unknown7064[312]; //0x1B98
	BYTE Team; //0x1CD0 
};
The structures look OK if you look at all the offsets and padding in between, I dont know how to create structures I only know how to read them.

Addy's
Code:
#define ADR_BASEPOINTER			0x00A8C178
#define ADR_SERVERPOINTER		        0x00A35268
#define OFS_LOCALSIZE			0x00A404
#define OFS_GLOBALSIZE			0x001D00
08/20/2012 01:55 GigaByte™#208
Quote:
Originally Posted by jeffrey1994 View Post
I checked them they seem right, I kinda gave up on the ESP part, if someone is willing to help me PM me or something:confused:
Code:
struct CPlayerInfo
{	
		char unknown0[1724]; //0x0000
	__int32 Ping; //0x06BC  
		char unknown1728[20]; //0x06C0
	char Ip[16]; //0x06D4  
		char unknown1764[136]; //0x06E4
	__int32 Exp; //0x076C  
		char unknown1904[596]; //0x0770
	char Name[20]; //0x09C4  
		char unknown2520[4500]; //0x09D8
	__int32 Points; //0x1B6C  
		char unknown7024[16]; //0x1B70
	__int32 Kills; //0x1B80  
	__int32 Deaths; //0x1B84  
		char unknown7048[12]; //0x1B88
	__int32 Health; //0x1B94  
		char unknown7064[312]; //0x1B98
	BYTE Team; //0x1CD0 
};
The structures look OK if you look at all the offsets and padding in between, I dont know how to create structures I only know how to read them.

Addy's
Code:
#define ADR_BASEPOINTER			0x00A8C178
#define ADR_SERVERPOINTER		        0x00A35268
#define OFS_LOCALSIZE			0x00A404
#define OFS_GLOBALSIZE			0x001D00
Hmm seems right, then it might be at the beginning of your ESP code where Get screen coordinates from world is :/
08/20/2012 13:29 Angel-Piece#209
Quote:
Originally Posted by jeffrey1994 View Post
I checked them they seem right, I kinda gave up on the ESP part, if someone is willing to help me PM me or something:confused:
Code:
struct CPlayerInfo
{	
		char unknown0[1724]; //0x0000
	__int32 Ping; //0x06BC  
		char unknown1728[20]; //0x06C0
	char Ip[16]; //0x06D4  
		char unknown1764[136]; //0x06E4
	__int32 Exp; //0x076C  
		char unknown1904[596]; //0x0770
	char Name[20]; //0x09C4  
		char unknown2520[4500]; //0x09D8
	__int32 Points; //0x1B6C  
		char unknown7024[16]; //0x1B70
	__int32 Kills; //0x1B80  
	__int32 Deaths; //0x1B84  
		char unknown7048[12]; //0x1B88
	__int32 Health; //0x1B94  
		char unknown7064[312]; //0x1B98
	BYTE Team; //0x1CD0 
};
The structures look OK if you look at all the offsets and padding in between, I dont know how to create structures I only know how to read them.

Addy's
Code:
#define ADR_BASEPOINTER			0x00A8C178
#define ADR_SERVERPOINTER		        0x00A35268
#define OFS_LOCALSIZE			0x00A404
#define OFS_GLOBALSIZE			0x001D00
idk but i think your strucs are fail...

because my team offset is at: 0x001CE0


and yours at 0x1CD0 ... :)

and kills isn't 0x1b80 it is 0x1b88...
death isn't 0x1b84 it is 0x1b8c
and i think ip is 0x6d8


blablabla
08/20/2012 14:19 jeffrey1994#210
Quote:
Originally Posted by Angel-Piece View Post
idk but i think your strucs are fail...

because my team offset is at: 0x001CE0


and yours at 0x1CD0 ... :)

and kills isn't 0x1b80 it is 0x1b88...
death isn't 0x1b84 it is 0x1b8c
and i think ip isn't 0x6d8


blablabla
You are right, now its working :D

I need to make a Vehicle Finder like the User finder using the CPlayerInfo struct, is it also possible for vehicles? Or is there also a way to determine what is the current map of the user playing?