Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

[Project] Planetside 2 + AHK = Awesomeness Beyond Measure


  • Please log in to reply
249 replies to this topic
EpicnessCoding
  • Members
  • 217 posts
  • Last active: Feb 05 2016 12:48 AM
  • Joined: 29 Dec 2014

Yes, I cant access my PMs... I don't know. Maybe on of the admins on this site can help me?

 

I'm building a site dedicated to AHK scripting!


I make custom scripts for money!

Sorry my website is down. Contact me by adding me on Steam. My steam is EpicnessCoding.

Just add me on steam if you have to. (Hint: Search EpicnessCoding, my name changes a lot :D)


CyberAce
  • Members
  • 46 posts
  • Last active: Sep 13 2015 06:40 PM
  • Joined: 18 Jan 2015

What I wanted to ask was concerning the AHK Counter recoil thing I mentioned. I found a AHK script someone else made in 2010, which records the mouse movements and logs them to a file. Is there any way to produce those mouse movements in reverse to counter recoil using a script?

http://www.autohotke...click-recorder/  <-- The link to it.
 



Archonet
  • Members
  • 4 posts
  • Last active: Aug 03 2015 02:10 AM
  • Joined: 04 Nov 2014

Is the C++ version on your website still undetected/working? Or are you only updating the AHK version now?



mhoops821
  • Members
  • 2 posts
  • Last active: Aug 16 2015 06:55 PM
  • Joined: 06 Oct 2013

My curiosity is how can i change this to be able to run it on my computer, Due to the wonderful spinning up in the air to aimbot.



EpicnessCoding
  • Members
  • 217 posts
  • Last active: Feb 05 2016 12:48 AM
  • Joined: 29 Dec 2014

Actually, both of the hacks are not updated, since I do not play this game anymore. About the aimbot not working problem, try the script when you play in the SMALLEST possible window size. Since I hardcoded the code to work in that size. :(

 

Thanks!


I make custom scripts for money!

Sorry my website is down. Contact me by adding me on Steam. My steam is EpicnessCoding.

Just add me on steam if you have to. (Hint: Search EpicnessCoding, my name changes a lot :D)


mhoops821
  • Members
  • 2 posts
  • Last active: Aug 16 2015 06:55 PM
  • Joined: 06 Oct 2013

Actually, both of the hacks are not updated, since I do not play this game anymore. About the aimbot not working problem, try the script when you play in the SMALLEST possible window size. Since I hardcoded the code to work in that size. :(

 

Thanks!

 

I know most of you think i'm a complete noob and everything, But how can i make your code into the updated version of Planetside 2 and also make it compatible with my computer graphics.



id4023
  • New members
  • 1 posts
  • Last active: Aug 20 2015 03:09 PM
  • Joined: 20 Aug 2015

 

Ok. So I made a AHK Planetside 2 "hack" which has exciting features:

  • Shift+z - toggle color Aimbot (click and hold to aimbot): aims for the red nametags
  • Middle Mouse - Makes knifing fully auto: hold down mouse to spam knife
  • LCtrl + LAlt - toggle hack on or off
  • Shield/Heal on shoot
  • spam q on shoot
  • nospread (reduces spread)
  • RAlt - toggle jumpjet or "drifter jet" for light assault (must equip jumpjet) for other classes its bunnyhop
  • Tab - burst fire for automatic weapons
  • Bullet dodge (Glitch move on fire)
  • Save you presets for quick ingame changes

Enjoy!

Please post below if you have any questions or if there is a bug.

You can use this for anything, and giving me credits is nice but not necessary. :)

If you liked this tool and would like to support the developer (me) you can private message me using the forum messaging and you can donate something to me. Since I need to work, donating will help me lessen my work load and make more scripts! Please post if you wanna suggest a script idea!

 

The site for the hack is at:

http://2epichack.weebly.com

You can download the .exe file there. :)

You can also view the features list and the images for the hack.

 

There are 2 hacks, an AHK one and a c++ one. The AHK hack is found here, while the c++ hack is OUTDATED.

 

 

161445_orig.png

C++ hack photo:

 

7619174_orig.png

 

Code:

;Planetside 2 2Epic Hack
;By: EpicnessCoding
;Do not claim as your own!
;Happy hacking!

#singleInstance, force
#Persistent

jumpJet = 0
;0 = default jump jet
;1 = drifter jet

fireMode = 0
;0 = off
;1 = no recoil for auto weps
;2 = full auto for semi auto weps

melee = 0
;1 = full auto melee
;0 = off

fireShield = 0
;1 = fire and shield
;0 = off

fireQ = 0
;1 = fire and press q
;0 = off

burst = 0
;0 = using the fireMode
;1 = overwrite fireMode to burst

aimbot = 0
;0 = off
;1 = aimbot!!!
terminateBot = 0

vrecoilMult = 1
;recoil multiplier 1 to 3

hrecoilMult = 1
;recoil multiplier 1 to 3

;hrecoilDir = 2

noSpread = 0

glitchMoveNum = 0

stopLThread = 0

presetHRecoilDir1 = 2
presetHRecoilMult1 = 3
presetVRecoilMult1 = 3
presetWepType1 = 1 
presetOption11 = 0 ;Shield/Heal
presetOption21 = 0 ;Press Q
presetOption31 = 0 ;No Spread
presetOption41 = 0 ;Glitch Move

presetHRecoilDir2 = 2
presetHRecoilMult2 = 3
presetVRecoilMult2 = 3
presetWepType2 = 1
presetOption12 = 0 ;Shield/Heal
presetOption22 = 0 ;Press Q
presetOption32 = 0 ;No Spread
presetOption42 = 0 ;Glitch Move

wepType = 1
;1 = smg
;2 = carbine/rifles
;3 = shotgun
;4 = sniper rifle

CoordMode, Mouse, Relative
CoordMode, Pixel, Relative

;Gui, AltSubmit
Gui, Show, w300 h550, 2Epic
;Gui, Add, Text, x10 y10 w290 Left, RCtrl -- reset and open this window, press it when game starts
Gui, Add, Text, x10 y10 w290 Left, LCtrl+LAlt -- toggle hacks that affect the mouse on/off
Gui, Add, Text, x10 y30 w290 Left, Tab -- toggle burst fire for automatics
Gui, Add, Text, x10 y50 w290 Left, RAlt -- toggle between jump jet and drifter jet
Gui, Add, Text, x10 y70 w290 Left, Middle mouse button held down -- switch to knife`nand the knife will be auto
Gui, Add, Text, x10 y100 w290 Left, Shift+Z -- toggle aimbot and left mouse to shoot and aimbot
Gui, Add, GroupBox, x10 y115 w200 h60, Presets
Gui, Add, Text, x20 y130 w290 Left, NumPad 1-2 -- choose preset
Gui, Add, Button, x20 y150 w80 h20 vPRESET1BUTTON gSETPRESET1, Set As Preset 1
Gui, Add, Button, x120 y150 w80 h20 vPRESET2BUTTON gSETPRESET2, Set As Preset 2

Gui, Add, GroupBox, x10 y190 w200 h50, Weapon Type
Gui, Add, DropDownList, x20 y210 w250 vWeaponType AltSubmit Choose1, SMG (up)|Carbine/Rifles (up and sideways)|Shotgun/Semi-Autos/Pistol (full auto and up)|Sniper Rifles (full auto and up)
;Gui, Add, Radio, x20 y150 vWeaponType Checked, SMG (up)
;Gui, Add, Radio,, Carbine/Rifles (up and sideways)
;Gui, Add, Radio,, Shotgun/Semi-Autos/Pistol (full auto and up)
;Gui, Add, Radio,, Sniper Rifles (full auto and up)
Gui, Add, GroupBox, x10 y250 w200 h200, Options
Gui, Add, CheckBox, x20 y270 vFireShield, Shield/Heal on Fire
Gui, Add, CheckBox, x20 y290 vFireQ, Press Q on Fire
Gui, Add, CheckBox, x20 y310 vNoSpread, No Spread
Gui, Add, CheckBox, x20 y330 vGlitchMove, Glitch Move on Fire
Gui, Add, Text, w290 Left, Vertical Recoil
Gui, Add, DropDownList, vVRecoilMult AltSubmit Choose3, x0|x0.5|x1|x1.5|x2|x2.5|x3|x3.5
Gui, Add, Text, w290 Left, Horizontal Recoil
Gui, Add, DropDownList, vHRecoilMult AltSubmit Choose3, x0|x0.5|x1|x1.5|x2|x2.5|x3|x3.5
;Gui, Add, Text, x20 y450 w290 Left, Horizontal Recoil
;Gui, Add, Radio, x150 y420 vHRecoilDir, Left
;Gui, Add, Radio, Checked, Right
Gui, Add, DropDownList, x150 y415 w50 vHRecoilDir AltSubmit Choose2, Left|Right
;Gui, Add, Radio, x30 y330 vRecoilMult, x0
;Gui, Add, Radio,, x0.5
;Gui, Add, Radio, Checked, x1
;Gui, Add, Radio,, x1.5
;Gui, Add, Radio,, x2
;Gui, Add, Radio,, x2.5
;Gui, Add, Radio,, x3
;Gui, Add, Radio,, x3.5
Gui, Add, Button, x210 y470 w80 h20 vUPDATEBUTTON gUPDATE, Update
Gui, Add, GroupBox, x-10 y520 w310 h50,
Gui, Add, Text, x200 y530 w290, By: EpicnessCoding

^+x::ExitApp

update()
{
	Gui, Submit, NoHide
	wepType := WeaponType
	fireShield := FireShield
	noSpread := NoSpread
	if(GlitchMove == 1)
		vrecoilMult := (VRecoilMult - 1) / 2 * (fireQ == 0 ? 6 : 3.5)
	else
		vrecoilMult := (VRecoilMult - 1) / 2
	if(HRecoilDir == 1){
		if(GlitchMove == 1)
			hrecoilMult := -((HRecoilMult - 1) / 2 * (fireQ == 0 ? 4 : 1.5))
		else
			hrecoilMult := -((HRecoilMult - 1) / 2)
	}else if(HRecoilDir == 2){
		if(GlitchMove == 1)
			hrecoilMult := (HRecoilMult - 1) / 2 * (fireQ == 0 ? 4 : 1.5)
		else
			hrecoilMult := (HRecoilMult - 1) / 2
	}
}

#IfWinActive ahk_class Planetside2 PlayClient (Live) x64
#NoEnv
;SendMode Input

;RCtrl::

;Gui, Destroy
;fireMode = 0
;jumpJet = 0
;melee = 0
;burst = 0
;wepType = 1

;Gui, Show, w300 h300, Herp Derp
;Gui, Add, Text, x10 y10 w290 Left, RCtrl -- reset and open this window, press it when game starts
;Gui, Add, Text, x10 y30 w290 Left, LCtrl+LAlt -- toggle between none and no recoil
;Gui, Add, Text, x10 y50 w290 Left, Tab -- burst fire for automatics
;Gui, Add, Text, x10 y70 w290 Left, RAlt -- toggle between jump jet and drifter jet
;Gui, Add, Text, x10 y90 w290 Left, Middle mouse button held down -- knife spam
;Gui, Add, Text, x10 y120 w290 Left, Weapon Type:
;Gui, Add, Radio, vWeaponType Checked, SMG
;Gui, Add, Radio,, Carbine/Rifles
;Gui, Add, Radio,, Shotgun
;Gui, Add, Radio,, Sniper Rifles
;Gui, Add, Button, x210 y270 w80 h20 vUPDATEBUTTON gUPDATE, Update

;return

SETPRESET1:

	Gui, Submit, NoHide
	presetHRecoilDir1 := HRecoilDir
	presetHRecoilMult1 := HRecoilMult
	presetVRecoilMult1 := VRecoilMult
	presetWepType1 := WeaponType
	presetOption11 := FireShield ;Shield/Heal
	presetOption21 := FireQ ;Press Q
	presetOption31 := NoSpread ;No Spread
	presetOption41 := GlitchMove ;Glitch Move

return

SETPRESET2:

	Gui, Submit, NoHide
	presetHRecoilDir2 := HRecoilDir
	presetHRecoilMult2 := HRecoilMult
	presetVRecoilMult2 := VRecoilMult
	presetWepType2 := WeaponType
	presetOption12 := FireShield ;Shield/Heal
	presetOption22 := FireQ ;Press Q
	presetOption32 := NoSpread ;No Spread
	presetOption42 := GlitchMove ;Glitch Move

return

*Numpad1::

	GuiControl, Choose, WeaponType, %presetWepType1%
	GuiControl, Choose, VRecoilMult, %presetVRecoilMult1%
	GuiControl, Choose, HRecoilMult, %presetHRecoilMult1%
	GuiControl, Choose, HRecoilDir, %presetHRecoilDir1%
	
	GuiControl, , FireShield, %presetOption11%
	GuiControl, , FireQ, %presetOption21%
	GuiControl, , NoSpread, %presetOption31%
	GuiControl, , GlitchMove, %presetOption41%
	
	Gui, Submit, NoHide
	wepType := WeaponType
	fireShield := FireShield
	noSpread := NoSpread
	if(GlitchMove == 1)
		vrecoilMult := (VRecoilMult - 1) / 2 * (fireQ == 0 ? 6 : 3.5)
	else
		vrecoilMult := (VRecoilMult - 1) / 2
	if(HRecoilDir == 1){
		if(GlitchMove == 1)
			hrecoilMult := -((HRecoilMult - 1) / 2 * (fireQ == 0 ? 4 : 1.5))
		else
			hrecoilMult := -((HRecoilMult - 1) / 2)
	}else if(HRecoilDir == 2){
		if(GlitchMove == 1)
			hrecoilMult := (HRecoilMult - 1) / 2 * (fireQ == 0 ? 4 : 1.5)
		else
			hrecoilMult := (HRecoilMult - 1) / 2
	}

return

*Numpad2::

	GuiControl, Choose, WeaponType, %presetWepType2%
	GuiControl, Choose, VRecoilMult, %presetVRecoilMult2%
	GuiControl, Choose, HRecoilMult, %presetHRecoilMult2%
	GuiControl, Choose, HRecoilDir, %presetHRecoilDir2%
	
	GuiControl, , FireShield, %presetOption12%
	GuiControl, , FireQ, %presetOption22%
	GuiControl, , NoSpread, %presetOption32%
	GuiControl, , GlitchMove, %presetOption42%
	
	Gui, Submit, NoHide
	wepType := WeaponType
	fireShield := FireShield
	noSpread := NoSpread
	if(GlitchMove == 1)
		vrecoilMult := (VRecoilMult - 1) / 2 * (fireQ == 0 ? 6 : 3.5)
	else
		vrecoilMult := (VRecoilMult - 1) / 2
	if(HRecoilDir == 1){
		if(GlitchMove == 1)
			hrecoilMult := -((HRecoilMult - 1) / 2 * (fireQ == 0 ? 4 : 1.5))
		else
			hrecoilMult := -((HRecoilMult - 1) / 2)
	}else if(HRecoilDir == 2){
		if(GlitchMove == 1)
			hrecoilMult := (HRecoilMult - 1) / 2 * (fireQ == 0 ? 4 : 1.5)
		else
			hrecoilMult := (HRecoilMult - 1) / 2
	}

return

UPDATE:

	Gui, Submit, NoHide
	wepType := WeaponType
	fireShield := FireShield
	noSpread := NoSpread
	if(GlitchMove == 1)
		vrecoilMult := (VRecoilMult - 1) / 2 * (fireQ == 0 ? 6 : 3.5)
	else
		vrecoilMult := (VRecoilMult - 1) / 2
	if(HRecoilDir == 1){
		if(GlitchMove == 1)
			hrecoilMult := -((HRecoilMult - 1) / 2 * (fireQ == 0 ? 4 : 1.5))
		else
			hrecoilMult := -((HRecoilMult - 1) / 2)
	}else if(HRecoilDir == 2){
		if(GlitchMove == 1)
			hrecoilMult := (HRecoilMult - 1) / 2 * (fireQ == 0 ? 4 : 1.5)
		else
			hrecoilMult := (HRecoilMult - 1) / 2
	}

return

+z::
	
	aimbot += 1
	if(aimbot > 1){
		aimbot = 0
		;terminateAimbot = 1
	}
	
Return

LCtrl & LAlt::

fireMode += 1
if(fireMode > 1)
   fireMode = 0

;ToolTip
;if(fireMode == 0){
;    ToolTip, 0   Off, 100, 100
;}else if(fireMode == 1){
;    ToolTip, 1   No recoil for autos, 100, 100
;}else if(fireMode == 2){
;    ToolTip, 2   Full auto for semi autos, 100, 100
;}else if(fireMode == 3){
;    ToolTip, 3   3x burst, 100, 100
;}

return

*tab::

burst += 1
if(burst > 1)
	burst = 0

return

*Space::

if(jumpJet == 1){
	While GetKeyState("Space", "P"){
		Send {Space Down}
		Sleep 250
		Send {Space Up}
		Sleep 50
	}
}else if(jumpJet == 0){
	Send {Space Down}
	KeyWait, Space
	Send {Space Up}
}	

return

*RAlt::

jumpJet += 1
if(jumpJet > 1)
	jumpJet = 0

return

*~$MButton::

    SetTimer, ButtonHeld, 200

return

*~$Mbutton up::

    SetTimer, ButtonHeld, Off

return

ButtonHeld:

	melee = 1

return

*~WheelUp::

	melee = 0;

return

*~WheelDown::

	melee = 0

return

*$LButton::
	
	;if(aimbot == 1){
	;	terminateBot = 0
	;	SetTimer, AimBot, 30
	;}
	;if(aimbot == 1){
	;	SetTimer, AimBot, 30
	;	;terminateBot = 0
	;}
	;stopLThread = 0
	;SetTimer, LButtonThread, 100
	
	if(fireShield == 1){
		Send {f down}
		Sleep 30
		Send {f up}
	}
	if(fireQ == 1){
		Send {q down}
		Sleep 30
		Send {q up}
	}
    if(melee != 1){
		if(burst == 1){
			;BlockInput On
			Click down
			;Sleep 100
			;Click up
			;Sleep 30
			;Click down
			;Sleep 100
			;Click up
			;Sleep 30
			;Click down
			;Sleep 100
			Sleep 100
			Click up
			Click down
			Sleep 100
			Click up
			Click down
			Sleep 100
			Click up
			;BlockInput Off
			;MouseMove -11, 100, 3, R
			;mouseXY(-1, 6)
		}else{
			if(fireMode == 1 && wepType != 3 && wepType != 4){
				Click down
			}
			if(fireMode == 0){
				Click down
			}

			While GetKeyState("LButton", "P"){
				if(aimbot == 1){
					PixelSearch, SpotX, SpotY, 0, 50, 1008, 400, 0xED1C24, 50, FAST RGB
					;ImageSearch, SpotX, SpotY, 0, 0, 1008, 400, %A_ScriptDir%\image4.png

					If ErrorLevel
					{
						PixelSearch, SpotX, SpotY, 260, 400, 1000, 700, 0xED1C24, 50, FAST RGB
						
						If ErrorLevel
						{
						}else{
							tempRand = 0
							Random, tempRand, -15, -35
							mouseXY(0, tempRand)
							Sleep 15
							MouseGetPos, NX, NY
							X := SpotX-NX
							Y := SpotY-NY
							Random, tempRand, 50, 80
							mouseXY(0, Y + tempRand)
							Random, tempRand, 10, 35
							mouseXY(X, 0)
						}
					}else{
						tempRand = 0
						Random, tempRand, -15, -35
						mouseXY(0, tempRand)
						Sleep 15
						MouseGetPos, NX, NY
						X := SpotX-NX
						Y := SpotY-NY
						Random, tempRand, 50, 80
						mouseXY(0, Y + tempRand)
						Random, tempRand, 10, 35
						mouseXY(X + tempRand, 0)
					}
				}

				if(fireQ == 1 && fireMode != 0){
					Send {q down}
					Sleep 30
					Send {q up}
				}
				if(GlitchMove == 1 && fireMode != 0){
					;if(fireQ == 1){
						Sleep 50
					;}
					if(glitchMoveNum == 0){
						Send {a down}
						Sleep 250
						Send {a up}
						glitchMoveNum = 1
					}else if(glitchMoveNum == 1){
						;Sleep 100
						;Sleep 50
						glitchMoveNum = 2
					}else if(glitchMoveNum == 2){
						Send {d down}
						Sleep 230
						Send {d up}
						glitchMoveNum = 0
					}
				}
				if(noSpread == 1 && fireMode != 0){
					tempRand = 0
					if(GlitchMove == 1){
						Random, tempRand, 1, 21
						mouseXY(tempRand - 11, 0)
					}else{
						Random, tempRand, 1, 5
						mouseXY(tempRand - 3, 0)
					}
					Random, tempRand, 1, 5
					mouseXY(0, tempRand - 3)
				}
				if(wepType != 3 && wepType != 4){
					if(fireMode == 0){
						;do nothing
						Sleep 30
					}else if(fireMode == 1){
						if(wepType == 1){
							if(fireQ == 0)
								mouseXY(0, 2 * vrecoilMult)
							else
								mouseXY(0, 4 * vrecoilMult)
						}else{
							if(fireQ == 0)
								mouseXY(-3 * hrecoilMult, 2 * vrecoilMult)
							else
								mouseXY(-5 * hrecoilMult, 4 * vrecoilMult)
						}
				 		Sleep 50
					}
				}else if(fireMode != 0){
					Click down
					Sleep 15
					Click up
					if(wepType == 3){
						if(fireQ == 0)
							mouseXY(0, 6 * vrecoilMult)
						else
							mouseXY(0, 8 * vrecoilMult)
					}else if(wepType == 4){
						if(fireQ == 0)
							mouseXY(-1 * hrecoilMult, 14 * vrecoilMult)
						else
							mouseXY(-3 * hrecoilMult, 16 * vrecoilMult)
					}
					Sleep 50
				}
			}
			if(fireMode == 1 && wepType != 3 && wepType != 4){
				Click up
			}
			if(fireMode == 0){
				Click up
			}
		}
    }else{
		While GetKeyState("LButton", "P"){
			Click down
			Sleep 15
			Click up
			Sleep 100
		}
    }

	if(fireShield == 1){
		Send {f down}
		Sleep 30
		Send {f up}
	}
	
	;SetTimer, LButtonThread, Off
	;stopLThread = 1
	
	;if(aimbot == 1){
	;	terminateBot = 1
	;}
	;if(aimbot == 1){
	;	terminateBot = 1
	;}
return

LButtonThread:

Loop
{
	if(fireQ == 1){
		Send {q down}
		Sleep 30
		Send {q up}
	}
	if(stopLThread == 1){
		return
	}
}

return

mouseXY(x, y)
{
    DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0)
}

GuiClose:
ExitApp

i dont even know how to make it work



CyberAce
  • Members
  • 46 posts
  • Last active: Sep 13 2015 06:40 PM
  • Joined: 18 Jan 2015

Download AHK.exe, save the text and run it useing the AHK.exe. 



CyberAce
  • Members
  • 46 posts
  • Last active: Sep 13 2015 06:40 PM
  • Joined: 18 Jan 2015

I don't know if your there Epic, but if you are, then will just updating the offsets for the C++ hack fix everything?

And what did you use to find them. I've learnt and had success myself but not on something like Planetside2.



EpicnessCoding
  • Members
  • 217 posts
  • Last active: Feb 05 2016 12:48 AM
  • Joined: 29 Dec 2014

Yeah updating offsets will work! You can probably take the offsets of Planetsike hack and then use those. The offsets are similar.


I make custom scripts for money!

Sorry my website is down. Contact me by adding me on Steam. My steam is EpicnessCoding.

Just add me on steam if you have to. (Hint: Search EpicnessCoding, my name changes a lot :D)