SHOW:
|
|
- or go back to the newest paste.
1 | - | function aimbot() |
1 | + | function lel() |
2 | local ply = LocalPlayer() | |
3 | local trace = util.GetPlayerTrace( ply ) | |
4 | - | local traceRes = util.GetPlayerTrace( ply ) |
4 | + | local traceRes = util.TraceLine( trace ) |
5 | if traceRes.HitNonWorld then | |
6 | - | local target = traceRes.Entity |
6 | + | local target:IsPlayer()then |
7 | if target:IsPlayer() then | |
8 | - | local targethead = target:LookupBone("ValveBiped.Bip01_Head1") |
8 | + | local targethead = target:LookupBone("Valve.Biped.Bip01_Head1" |
9 | local targetheadpos,targetheadang = target:GetBonePosition(targethead) | |
10 | ply:SetEyeAngles((targetheadpos - ply:GetShootPos()):Angle()) | |
11 | end | |
12 | end | |
13 | end | |
14 | - | hook.Add("Think","aimbot",aimbot) |
14 | + | |
15 | local lel = CreateClientConVar( "lel_enabled", 0, true, false ) | |
16 | - | local aimbot = CreatclientConVar( "lel_enabled", 0, true, false ) |
16 | + | |
17 | hook.Add("Think","lel",lel) | |
18 | - | hook.Remove("Think","aimbot",aimbot) |
18 | + | |
19 | - | end |
19 | + | local lel = CreateClientConVar( "lel_disabled", 0, true, false ) |
20 | ||
21 | hook.Remove("Think","lel",lel) |