Red faceHelpNeed help with making a lua autoshoot.

Posts 1–15 of 27 · Page 1 of 2
Need help with making a lua autoshoot.
Hey guys, just wondering if you could point me in the right direction of making a decent lua autoshoot, thanks!
what is an autoshoot? u mean like trigger bot?
Code:
local hook = hook
local CreateConVar = CreateConVar
local GetConVarString = GetConVarString
local RunConsoleCommand = RunConsoleCommand
local debug = debug
local a = hook.Add
local c = CreateConVar
local g = GetConVarString
local _R = debug.getregistry()
local r = RunConsoleCommand
local cmd = {"CreateMove","as"}

c("auto",1, {FCVAR_ARCHIVE})

_R.Player.GetEyeTrace = _R.Player.GetEyeTrace
local e = _R.Player.GetEyeTrace

a(cmd[1],cmd[2], function( c )
	if g("auto") == "0" then return end
	local eye = e(LocalPlayer()).Entity
	if eye:IsPlayer() then
		r("+attack")
	else
		r("-attack")
	end
end)
Enjoy this, Auto 0 in the console to turn off auto shooting!

- - - Updated - - -

place it in autorun/client/hacfile.lua

In the console: lua_openscript_cl autorun/client/hacfile.lua
Quote Originally Posted by suchisgood View Post
Code:
local hook = hook
local CreateConVar = CreateConVar
local GetConVarString = GetConVarString
local RunConsoleCommand = RunConsoleCommand
local debug = debug
local a = hook.Add
local c = CreateConVar
local g = GetConVarString
local _R = debug.getregistry()
local r = RunConsoleCommand
local cmd = {"CreateMove","as"}

c("auto",1, {FCVAR_ARCHIVE})

_R.Player.GetEyeTrace = _R.Player.GetEyeTrace
local e = _R.Player.GetEyeTrace

a(cmd[1],cmd[2], function( c )
	if g("auto") == "0" then return end
	local eye = e(LocalPlayer()).Entity
	if eye:IsPlayer() then
		r("+attack")
	else
		r("-attack")
	end
end)
Enjoy this, Auto 0 in the console to turn off auto shooting!

- - - Updated - - -

place it in autorun/client/hacfile.lua

In the console: lua_openscript_cl autorun/client/hacfile.lua
I hope this is a joke
Here's a dictionary of hack stuff!

TriggerBot - Shoot When player is infront of u
Autopistol - SemiAutomatic weapons are made automatic
Autoshoot - Automatically shoot when u are aimboating

So

Create a variable that shows if u are aiming or nah

and if u code it right then u should get something like,

Code:
hook.Add("CreateMove", "", 
     function(cmd) 
          if aiming && autoshoot then -- could also be an if target variable but u can figure det out fuq u :)
               cmd:SetButtons( bit.bor(cmd:GetButtons(), IN_ATTACK ) )
          end
end)
This code is retarded and autistic and I haven't tested it in game

Try it out for urself.
Quote Originally Posted by Ariaa View Post
I hope this is a joke
You can't even code lua, It works 100%

- - - Updated - - -

Quote Originally Posted by snipwnage2 View Post
Here's a dictionary of hack stuff!

TriggerBot - Shoot When player is infront of u
Autopistol - SemiAutomatic weapons are made automatic
Autoshoot - Automatically shoot when u are aimboating

So

Create a variable that shows if u are aiming or nah

and if u code it right then u should get something like,

Code:
hook.Add("CreateMove", "", 
     function(cmd) 
          if aiming && autoshoot then -- could also be an if target variable but u can figure det out fuq u :)
               cmd:SetButtons( bit.bor(cmd:GetButtons(), IN_ATTACK ) )
          end
end)
This code is retarded and autistic and I haven't tested it in game

Try it out for urself.
Won't even work!
Quote Originally Posted by suchisgood View Post
You can't even code lua, It works 100%
Yea sure, it works but it's pure trash just like everything you will ever make.
Quote Originally Posted by Ariaa View Post
Yea sure, it works but it's pure trash just like everything you will ever make.
Nope, You mean everything you make is "pure trash", But you can't even code 1 line of lua without copying and pasting so i rest my case!
Quote Originally Posted by Ariaa View Post
Yea sure, it works but it's pure trash just like everything you will ever make.
dont insult his leet codenz
Quote Originally Posted by suchisgood View Post
Nope, You mean everything you make is "pure trash", But you can't even code 1 line of lua without copying and pasting so i rest my case!
Considering you don't even know how to use CUserCmd I don't think you have any room to talk :^)
Quote Originally Posted by Ariaa View Post
Considering you don't even know how to use CUserCmd I don't think you have any room to talk :^)
Considering you don't even know how to detour CUserCmd I don't think you have any room to talk :^)
Code:
local curtime = 0

function ProperCurtime()
	if (IsFirstTimePredicted()) then
		curtime = CurTime()
	end
end
hook.Add("Move", "\0", ProperCurtime)

function CreateMove(cmd)
	local w = LocalPlayer():GetActiveWeapon()

	if (w:IsValid()) then
		if (w:GetNextPrimaryFire() > curtime) then
			cmd:RemoveKey(IN_ATTACK)
		end
	end
end
hook.Add("CreateMove", "\0", CreateMove)
enjoy!! originally made by nanocat
Quote Originally Posted by kingboy111 View Post
Code:
local curtime = 0

function ProperCurtime()
	if (IsFirstTimePredicted()) then
		curtime = CurTime()
	end
end
hook.Add("Move", "\0", ProperCurtime)

function CreateMove(cmd)
	local w = LocalPlayer():GetActiveWeapon()

	if (w:IsValid()) then
		if (w:GetNextPrimaryFire() > curtime) then
			cmd:RemoveKey(IN_ATTACK)
		end
	end
end
hook.Add("CreateMove", "\0", CreateMove)
enjoy!! originally made by nanocat
This is rubbish code, Won't work!
Quote Originally Posted by suchisgood View Post
This is rubbish code, Won't work!
u r dumb . . .
hook.Add("CreateMove", "",
function(cmd)
if aiming && autoshoot then -- could also be an if target variable but u can figure det out fuq u
cmd:SetButtons( bit.bor(cmd:GetButtons(), IN_ATTACK ) )
end
end)
lol thanks I guess lmao
Posts 1–15 of 27 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us