void SuperJump()
{
PlayerPtr
if (dwPlayerPointer != 0)
{
*(float*)(dwPlayerPtr+OFS_Z)+=150;
}
}
Happy Christmas
Hi.
I have a little problem to make a MoonJump.
I can make SuperJump. But i wanna go higher little bu little.
I tried to initialize a value ( Named Height ) with the actual height. Then, add 100.
But nothing happend ! I tried differents way. None worked.
here is what i made :
Thanks for help.Code:void SuperJump() { PlayerPtr // A define. It take the playerpointer. if (dwPlayerPointer != 0) { float Height = *(float*)(dwPlayerPointer+OFS_z); if(GetAsyncKeyState(VK_CONTROL)) Height += 100; } }
void SuperJump()
{
PlayerPtr
if (dwPlayerPointer != 0)
{
*(float*)(dwPlayerPtr+OFS_Z)+=150;
}
}
Happy Christmas
Thanks. Gonna try it.
But If I remember, that's what i tried first. But when I press control, i'm pushed in the "space"^^ . And I don't even come down.
But maybe I did something wrong. I'll try it.
EDIT : You forgot the Hotkey ^^
EDIT 2 : Yeah, thats what i said... It get me to the space ! And I can't go down...
Here is a screenshot :
I don't know why. I can't fix it ! I should work..
Last edited by larta; 11-10-2010 at 05:37 AM.
Use weapon gravity. And if you are doing this make it like this with the ofs_z:
void SuperJump()
{
PlayerPtr // A define. It take the playerpointer.
if ((dwPlayerPointer != 0) && (GetAsyncKeyState(VK_CONTROL)))
{
float Height = *(float*)(dwPlayerPointer+OFS_z);
Height += 100;
*(float*)(dwPlayerPointer+OFS_z)=Height;
Sleep(50);
}
}
Please learn scripting b4 coding hacks lol. This is just basic. If you change a variable, it wont immediately change the adress.
Last edited by rickbovenkamp2; 11-10-2010 at 10:25 AM.
lol Don't worry. I know the basics in c++ ( and more than that )
But this is the first time i use dll injection. I'm trying to understand how it works.
I use to make programs with windows, and Read/write process memory. And it's king different as dll injection..
Anyway, thanks. Gonna try it
EDIT :
Working.
What was my mistake ?
- The "sleep" forgotten ?
- And yeah, i forgot to change the value of the adress at the end x)
Last edited by larta; 11-10-2010 at 10:57 AM.