Download ArmA 2 OA / DayZ Flyhack

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

c5

Kim Kong Trasher
Dank Tier VIP
Dank Tier Donator
Jul 19, 2012
1,187
12,638
76
ArmA 2 OA & DayZ Flyhack.

Controls:
  • Turn On/Off - Insert
  • Move higher - Up arrow
  • Move down - Down arrow
  • Move forward - Numpad 8
  • Move backward- Numpad 2
  • Move left- Numpad 4
  • Move right - Numpad 6
  • Rotate left - Left arrow
  • Rotate right - Right arrow

Usage:
  • Inject to ArmA 2 OA's process with your favourite (undetected) injector any time
  • Press insert to enable/disable
Built for beta version 102936, might work on others.
Battleye 1.191 Undetected

Note: Turning on and off might be a bit buggy, I am too lazy to improve it.

Credits: c5
Thanks: m101jay (client pointer); fatboy88
 

Attachments

Last edited:

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,367
78,998
2,414
If only I had Arma 2 / DayZ then I would be able to test it for you!

Other than that, good work c5! Great to see more work poppin' up! :)
 

c5

Kim Kong Trasher
Dank Tier VIP
Dank Tier Donator
Jul 19, 2012
1,187
12,638
76
Here is the source..

I did it in endscene, obviously you can also do it externally or wherever else you like :)
C++:
#include "hack.h"

HRESULT WINAPI myEndscene (LPDIRECT3DDEVICE9 pDevice)
{
	vFlyhack();

	return pEndscene(pDevice);
}
and hack.h:
C++:
#include "Engine/Fivehax.h"
#include "windows.h"
#include <math.h>

#define PI 3.1415926535897932
#define CLIENT_PTR 0xDFCDD8

Fivehax memory;

void vFlyhack();
void vOffsets();
void vFly();

bool bFlyhack = false;
bool bGodmode = false;
bool bHover = false;

DWORD dArmaBase = 0;

struct playerData {
	float headingOne;
	float headingTwo;
	float heading;
	float heading2;
	float xcoord;
	float ycoord;
	float zcoord;
	float zhover;
	DWORD dwHeadingOne;
	DWORD dwHeadingTwo;
	DWORD dwxcoord;
	DWORD dwycoord;
	DWORD dwzcoord;
	DWORD dAllowDamage;
} player;

bool restore = false;

void vFlyhack()
{
	static bool init = false;
	if (!init)
	{
		dArmaBase = memory.GetDLLBase("arma2oa.exe");
		init = true;
	}
	if (memory.Read<char>(dArmaBase+0x9F9FA4) == 0) // 9F9FA5 // 9F9FAD // we dont wanna crash while not in game
		return;

	if (!bFlyhack)
	{
		if (GetAsyncKeyState(VK_INSERT))
		{
			bFlyhack = true;
		}
		else if (restore)
		{
			memory.Write<char>(player.dAllowDamage, 1);
			restore = false;
		}
	}
	else if(bFlyhack)
	{
		if (GetAsyncKeyState(VK_INSERT))
		{
			vOffsets();
			memory.Write<float>(player.dwzcoord, 0);
			restore = true;
			bFlyhack = false;
		}
		else
		{
			vOffsets();
			memory.Write<char>(player.dAllowDamage, 0);
			vFly();
		}
	}
}

DWORD dPlayerOffsets[] = {0x13A8, 0x4, 0x18};

void vOffsets()// and obtaining data
{
	DWORD temp = memory.EvaluatePointer(CLIENT_PTR);
	temp += dPlayerOffsets[0];
	temp = memory.EvaluatePointer(temp);
	temp += dPlayerOffsets[1];
	temp = memory.EvaluatePointer(temp);
	temp += dPlayerOffsets[2];
	temp = memory.EvaluatePointer(temp);
	player.dwHeadingOne = temp + 0x1C;
	player.dwHeadingTwo = temp + 0x24;
	player.dwxcoord = temp + 0x28;
	player.dwzcoord = temp + 0x2C;
	player.dwycoord = temp + 0x30;

	player.headingOne = memory.Read<float>(player.dwHeadingOne);
	player.headingTwo = memory.Read<float>(player.dwHeadingTwo);
	player.heading = atan2((double)player.headingOne,(double)player.headingTwo);
	player.heading2 = player.heading * (float)-1.0;
	player.heading = player.heading * (float)-1.0 + (float)1.582;

	player.xcoord = memory.Read<float>(player.dwxcoord);
	player.ycoord = memory.Read<float>(player.dwycoord);
	player.zcoord = memory.Read<float>(player.dwzcoord);

	player.dAllowDamage = memory.EvaluatePointer(dArmaBase+0x9F43E4) + 0x213;
}

#define moveDistance 0.1
#define rotationconst 0.018//0.0001
float movx = 0;
float movy = 0;

void vFly()
{
	if( GetAsyncKeyState(VK_UP) )
	{
		memory.Write<float>(player.dwzcoord, player.zcoord + 0.9);	
		bHover = false;
	}
	else if( GetAsyncKeyState(VK_DOWN) )
	{
		memory.Write<float>(player.dwzcoord, player.zcoord - 0.5);
		bHover = false;
	}
	else 
	{
		if (!bHover) 
		{	
			player.zhover = player.zcoord;
			bHover = true;
		}
		else if (bHover)
			memory.Write<float>(player.dwzcoord, player.zhover);
	}

	if( GetAsyncKeyState(VK_NUMPAD4) )
	{
		movx = moveDistance * (float)cos(player.heading2);
		movy = moveDistance * (float)sin(player.heading2);

		memory.Write<float>(player.dwxcoord, player.xcoord - movx);
		memory.Write<float>(player.dwycoord, player.ycoord - movy);
	}
	
	if( GetAsyncKeyState(VK_NUMPAD6) )
	{
		movx = moveDistance * (float)cos(player.heading2);
		movy = moveDistance * (float)sin(player.heading2);

		memory.Write<float>(player.dwxcoord, player.xcoord + movx);
		memory.Write<float>(player.dwycoord, player.ycoord + movy);
	}

	if( GetAsyncKeyState(VK_NUMPAD8) )
	{
		movx = moveDistance * (float)cos(player.heading);
		movy = moveDistance * (float)sin(player.heading);

		memory.Write<float>(player.dwxcoord, player.xcoord + movx);
		memory.Write<float>(player.dwycoord, player.ycoord + movy);
	}
	
	if( GetAsyncKeyState(VK_NUMPAD2) )
	{
		movx = moveDistance * (float)cos(player.heading);
		movy = moveDistance * (float)sin(player.heading);

		memory.Write<float>(player.dwxcoord, player.xcoord - movx);
		memory.Write<float>(player.dwycoord, player.ycoord - movy);
	}

	if(GetAsyncKeyState(VK_LEFT) )
	{
		if (player.headingOne >= 0 && player.headingTwo >= 0)
		{
			memory.Write<float>(player.dwHeadingOne, player.headingOne - rotationconst);
			memory.Write<float>(player.dwHeadingTwo, player.headingTwo + rotationconst);
		}
		else if (player.headingOne > 0 && player.headingTwo < 0)
		{
			memory.Write<float>(player.dwHeadingOne, player.headingOne + rotationconst);
			memory.Write<float>(player.dwHeadingTwo, player.headingTwo + rotationconst);
		}
		else if (player.headingOne < 0 && player.headingTwo < 0)
		{
			memory.Write<float>(player.dwHeadingOne, player.headingOne + rotationconst);
			memory.Write<float>(player.dwHeadingTwo, player.headingTwo - rotationconst);
		}
		else if (player.headingOne <= 0 && player.headingTwo >= 0)
		{
			memory.Write<float>(player.dwHeadingOne, player.headingOne - rotationconst);
			memory.Write<float>(player.dwHeadingTwo, player.headingTwo - rotationconst);
		}
	}

	if(GetAsyncKeyState(VK_RIGHT) )
	{
		if (player.headingOne > 0 && player.headingTwo > 0)
		{
			memory.Write<float>(player.dwHeadingOne, player.headingOne + rotationconst);
			memory.Write<float>(player.dwHeadingTwo, player.headingTwo - rotationconst);
		}
		else if (player.headingOne >= 0 && player.headingTwo <= 0)
		{
			memory.Write<float>(player.dwHeadingOne, player.headingOne - rotationconst);
			memory.Write<float>(player.dwHeadingTwo, player.headingTwo - rotationconst);
		}
		else if (player.headingOne <= 0 && player.headingTwo <= 0)
		{
			memory.Write<float>(player.dwHeadingOne, player.headingOne - rotationconst);
			memory.Write<float>(player.dwHeadingTwo, player.headingTwo + rotationconst);
		}
		else if (player.headingOne < 0 && player.headingTwo > 0)
		{
			memory.Write<float>(player.dwHeadingOne, player.headingOne + rotationconst);
			memory.Write<float>(player.dwHeadingTwo, player.headingTwo + rotationconst);
		}
	}
}
If you're smart you could build a simple godmode out of it ;)
 
Last edited:

c5

Kim Kong Trasher
Dank Tier VIP
Dank Tier Donator
Jul 19, 2012
1,187
12,638
76
Sweet! I'll be giving out a ArmA 3 hack soon with ESP Features and Script Injection.
Sounds great. I haven't bothered with ArmA 3 yet, not until it's in full state I guess. As far as I've noticed, nothing big hasn't changed engine wise on that part, has it?
 

Chuck E

Coder
Dank Tier Donator
Nobleman
Jan 2, 2013
122
588
1
Thanks for releasing the source. I'm more interested in the way you coded it than the hack itself :)
I think I may change my name to Cap'n Cut-n-Paste :D
 
Last edited:

c5

Kim Kong Trasher
Dank Tier VIP
Dank Tier Donator
Jul 19, 2012
1,187
12,638
76
Thanks for releasing the source. I'm more interested in the way you coded it then the hack itself :)
I think I may change my name to Cap'n Cut-n-Paste :D
Haha, I can surely say I'm no expert in trigonometry what so ever, so be warned when copying math related stuff lol
 

Chuck E

Coder
Dank Tier Donator
Nobleman
Jan 2, 2013
122
588
1
Haha, I can surely say I'm no expert in trigonometry what so ever, so be warned when copying math related stuff lol
LOL, I'll be sure to double check it, when i get to use it or anything like this :)
 

Syperus

RTFM
Meme Tier VIP
Dank Tier Donator
Oct 29, 2012
432
2,638
7
Thanks for sharing your work c5. I always like looking other peoples code and see how they create their work. Crypt WB man. Do you have a copy of ArmA you could spare for me? Also is it ArmA 2 or 3 that you have a lot of copies of? Just curious, but either would work for me. I haven't played it before. Thanks
 

jamesbxv

Newbie
Dec 29, 2012
3
172
0
Hey there. I I'm glad to see this forum is still alive haha:) I was wondering if you have any extra keys for me as the last time I was testing Arma 2 hacks I got banned:(
 

c5

Kim Kong Trasher
Dank Tier VIP
Dank Tier Donator
Jul 19, 2012
1,187
12,638
76
So you just inject it?
Yes, into arma2oa.exe process. And if you don't want to risk losing another key, don't try it, simple as that, there is always a risk.
 

c5

Kim Kong Trasher
Dank Tier VIP
Dank Tier Donator
Jul 19, 2012
1,187
12,638
76
Updated to 1.1, for some reason movement speeds were off and you were moving really slow :)
 

h4344

Newbie
Full Member
Nov 20, 2012
25
498
0
What methods do you use to bypass BattlEyes detection? I was considering making my own hack for this game but decided against it since i wasn't sure how i could get around detection to do things like this. Also, what do you do for the fly hack? I host my own server with BattlEye disabled and i would like to test making one for shits n giggles.
 

c5

Kim Kong Trasher
Dank Tier VIP
Dank Tier Donator
Jul 19, 2012
1,187
12,638
76
Local x/y/z, pitch/yaw, and this one also has godmode so you dont die when colliding with ground for example.

There is no need for this hack to bypass anything because it doesn't do anything which it can be detected for.
 

h4344

Newbie
Full Member
Nov 20, 2012
25
498
0
Local x/y/z, pitch/yaw, and this one also has godmode so you dont die when colliding with ground for example.

There is no need for this hack to bypass anything because it doesn't do anything which it can be detected for.
So your saying you straight up just change the XYZ position of your player and give him infinite health and it works?
 

c5

Kim Kong Trasher
Dank Tier VIP
Dank Tier Donator
Jul 19, 2012
1,187
12,638
76
So your saying you straight up just change the XYZ position of your player and give him infinite health and it works?
Ching-Ching Jackpot.. look at the source provided.
 
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.

Similar threads

Community Mods