don't
you
dare
paste
off
this
if i see this in one hack
i swear i will murder you.
in your sleep.
Code:
// dont paste off it dude
local attacking = 0 // you know shits bout to get real
function notwikipaste(cmd) // aimboat function
for k,v in pairs(player.GetAll()) do // for every player
if v != LocalPlayer() and (v:LookupAttachment("eyes") != 0) and v:Alive() and v:Health() > 0 then // check if he isn't you and if he has eyes (wtfgarry) and especially if he's alive
local nothing = {} // nothing
local tracestuf = {
[ "start" ] = LocalPlayer():GetShootPos(), // your shoot position, this can also be your eye position
[ "endpos" ] = v:GetAttachment(v:LookupAttachment("eyes")).Pos, // target eye position
[ "filter" ] = LocalPlayer(),
[ "mask" ] = MASK_SHOT
}
local trace = util.TraceLine(tracestuf, nothing)
if trace.Fraction == 1 or trace.Entity == v then // if you can see the entity then
aim_target = v // set this guy to aim_target
else // else set this guy to nothing because you can't see him
aim_target = nil
end
end
end
if aim_target != nil then
local TargEyePos = aim_target:GetAttachment(aim_target:LookupAttachment("eyes")).Pos // get this guys eye pos (using attachements not bones :ooooooo DON'T LEEK)
local AimPos = Angle(TargEyePos - EyePos(LocalPlayer())) // ok do you know math????????????
AimPos.p = math.NormalizeAngle(AimPos.p) // NORMALIZATION
AimPos.y = math.NormalizeAngle(AimPos.y) // BE NORMAL KIDS
cmd:SetViewAngles(AimPos) // set ur fokin angles
if attacking != 3 then // big ifthen statements
RunConsoleCommand("+attack") // obviously best way to do it
attacking = attacking + 1 // big maths
elseif attacking == 3 then // bigger ifthen statements
RunConsoleCommand("-attack") // bester way to do it
attacking = 0 // huge maths
end
end
end
hook.Add("CreateMove", "bigaimboat", notwikipaste) // i wonder what this does!