Jump to content

Recommended Posts

Posted

...
                  RadarPlayerStruct = *(DWORD*)0x244013B8;
	RadarPlayerStruct = RadarPlayerStruct + 0x28;

	for( int i = 0; i < 32; i++ )
	{
		if(i == (g_pEngine->GetLocalPlayer()-1))
			continue;

		RadarPlayer = (DWORD)(RadarPlayerStruct+(0x140*i));

		if(RadarPlayer == NULL || IsBadReadPtr((void*)RadarPlayer, 4))
			continue;

		RadarPlayerName = (char*)(RadarPlayer+0x10);
		RadarPlayerTeam = *(int*)(RadarPlayer+0x30);
		RadarPlayerHealth = *(int*)(RadarPlayer+0x34);
		RadarPlayerOrigin = *(Vector*)(RadarPlayer+0x38);
		if(RadarPlayerOrigin.z == (int)RadarPlayerOrigin.z)//sloppy way...who cares?
			RadarPlayerOrigin.z = RadarPlayerOrigin.z + 32;
		else
			RadarPlayerOrigin.z = RadarPlayerOrigin.z - 32;

		memcpy(&RadarPlayerEyeOrigin, &RadarPlayerOrigin, 12);
		RadarPlayerEyeOrigin.z = RadarPlayerEyeOrigin.z + 32;

		RadarPlayerViewangles = *(QAngle*)(RadarPlayer+0x44);
...

 

aVitamin

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...