Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Rorick's Simple Testicular ESP Of Fortitude V.3
- local drawColor = Color( 150, 150, 150, 255)
- local hack_esp = CreateClientConVar( "hack_esp", 1, true, false )
- function lenMod(name)
- if name:IsNPC() then
- local NPCLen = string.len(name:GetClass())
- return NPCLen*8
- elseif name:IsPlayer() then
- local PlyLen = string.len(name:GetName())
- return PlyLen*8
- end
- end
- function espHack()
- if hack_esp:GetInt() == 1 then
- for _, v in pairs(ents.GetAll()) do
- local pPos = (v:GetPos() + Vector( 0,0,75 )):ToScreen()
- if ( v:IsNPC() ) then
- local drawColor = Color(255, 255, 255, 255)
- draw.RoundedBox( 6, (pPos.x - lenMod(v)/2), (pPos.y - 10), lenMod(v), 20, Color( 0, 0, 0, 80))
- txtD(v:GetClass(),drawColor,pPos)
- elseif ( v:IsPlayer() and v:Health() > 0 and v:Alive() and v != LocalPlayer()) then
- if ( v:GetFriendStatus() == "friend" ) then
- espHelth(v, pPos)
- local drawColor = Color(0, 255, 0, 255)
- draw.RoundedBox( 6, (pPos.x - lenMod(v)/2), (pPos.y - 10), lenMod(v), 20, Color( 0, 0, 0, 80))
- txtD(v:GetName(),drawColor,pPos)
- else
- local drawColor = team.GetColor(v:Team())
- espHelth(v, pPos)
- draw.RoundedBox( 6, (pPos.x - lenMod(v)/2), (pPos.y - 10), lenMod(v), 20, Color( 0, 0, 0, 80))
- txtD(v:GetName(),drawColor,pPos)
- end
- end
- end
- end
- end
- function espHelth(ply,pPos)
- draw.RoundedBox( 4,pPos.x-50, pPos.y - 22, math.Clamp(ply:Health(),1,100), 8, Color( 255, 0, 0, 80))
- if (ply:Health() > 100) then
- txtH("100+",Color(255,255,255,255),pPos)
- else
- txtH(ply:Health(),Color(255,255,255,255),pPos)
- end
- end
- function txtD(printed,clr,pPos)
- local text = {}
- text.pos = {}
- text.pos[1] = pPos.x - string.len(printed)*3
- text.pos[2] = pPos.y
- text.color = clr
- text.text = printed
- text.font = "DefaultFixed"
- text.xalight = TEXT_ALIGN_CENTER
- text.yalign = TEXT_ALIGN_CENTER
- draw.Text( text)
- end
- function txtH(printed,clr,pPos)
- local text = {}
- text.pos = {}
- text.pos[1] = pPos.x - string.len(printed)*3
- text.pos[2] = pPos.y - 18
- text.color = clr
- text.text = printed
- text.font = "DefaultFixed"
- text.xalight = TEXT_ALIGN_CENTER
- text.yalign = TEXT_ALIGN_CENTER
- draw.Text( text)
- end
- hook.Add( "HUDPaint", "DrawESP", espHack );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement