Solved Position is not getting setted

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

CreepSore

scared of variadic functions
Trump Tier Donator
Full Member
Jan 9, 2015
39
963
1

So, I got a problem. I'm Trying to set my Position.
It always worked, but after I started using vectors, I got a Problem.
If i want to set my Position, the Screens flickers a bit, but that's it.
Sometimes is just works, but sometimes it just don't. I don't know what to do about that.

My Keybind Call.
C++:
	vec3 location;
		vec2 mousePos;
		// Get Variables
		location.x = savepoint5.getX();
		location.y = savepoint5.getY();
		location.z = savepoint5.getZ();
		mousePos.x = savepoint5.getMouseX();
		mousePos.y = savepoint5.getMouseY();

		if (savepoint5.areCoordsSetted())
		{
			setPosition(location, mousePos);
		}
		Sleep(250);
setPosition
C++:
void setPosition(vec3 location, vec2 mousePos)
{
	WriteProcessMemory(procHandle, (LPVOID)(PlayerBaseAddress + 0x4), &location, sizeof(location), NULL);
	WriteProcessMemory(procHandle, (LPVOID)(PlayerBaseAddress + 0x40), &mousePos, sizeof(mousePos), NULL);
}
My Savepoint class
C++:
class Savepoint
{
	float x;
	float y;
	float z;
	float mouseX;
	float mouseY;
public:
	float getX();
	float getY();
	float getZ();
	float getMouseX();
	float getMouseY();
	void setCoordinates(float x, float y, float z, float mouseX, float mouseY);
	bool areCoordsSetted();
};

	void Savepoint::setCoordinates(float x, float y, float z, float mouseX, float mouseY)
	{
		this->x = x;
		this->y = y;
		this->z = z;
		this->mouseX = mouseX;
		this->mouseY = mouseY;
	}

	float Savepoint::getX()
	{
		return this->x;
	}

	float Savepoint::getY()
	{
		return this->y;
	}

	float Savepoint::getZ()
	{
		return this->z;
	}

	float Savepoint::getMouseX()
	{
		return this->mouseX;
	}

	float Savepoint::getMouseY()
	{
		return this->mouseY;
	}

	 bool Savepoint::areCoordsSetted()
	{
		if (this->x != NULL && this->y != NULL && this->z != NULL)
		{
			return true;
		}
		return false;
	}
 

CreepSore

scared of variadic functions
Trump Tier Donator
Full Member
Jan 9, 2015
39
963
1
Well, I just looked over my Code and my OffsetList, and realized that I used the Visual Offset (wondering why the position is still sometimes getting setted).
So, thanks for any tried help.
 

lukaluka

Coder
Meme Tier VIP
Jul 6, 2015
285
1,213
3
I Never Understand About ReadProcessMemory And WriteProcessMemory, I Rarely Use This.

So ReWrite Your Code With My Pointer Internal Hack Style :
C++:
vec3 location;
vec2 mousePos;

void SetPosition( vec3 Location, vec2 Mouse )
{
    DWORD BASE = *(DWORD*)(0x50F4F4);
    DWORD XX = BASE + 0x34;
    DWORD YY = BASE + 0x38;
    DWORD ZZ = BASE + 0x3C;
    DWORD XX_MOUSE = BASE + 0x40;
    DWORD YY_MOUSE = BASE + 0x44;

    *(float*)(XX) = Location.x;
    *(float*)(YY) = Location.y;
    *(float*)(ZZ) = Location.z;

    *(float*)(XX_MOUSE) = Mouse.x;
    *(float*)(YY_MOUSE) = Mouse.y;
}

SetPosition(location,mousePos);
 

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,137
78,998
2,393
I Never Understand About ReadProcessMemory And WriteProcessMemory, I Rarely Use This.

So ReWrite Your Code With My Pointer Internal Hack Style :
He's not internal, this doesn't help him
CreepSore lets see your entire source code plz
 

lukaluka

Coder
Meme Tier VIP
Jul 6, 2015
285
1,213
3
Rake;42905 said:
He's not internal, this doesn't help him
CreepSore lets see your entire source code plz
I Never Use External, I Learn C++ Game Hacking Started With Internal Hack
So Sorry
 
Last edited:
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods