Ищу скрипт У кого есть луа скрипт на хит маркеры?

Начинающий
Статус
Оффлайн
Регистрация
10 Ноя 2020
Сообщения
21
Реакции[?]
2
Поинты[?]
0
Код:
local a={}local b={}me=LocalPlayer()CreateClientConVar("lamarr_tracer","cable/redlaser",true,false)local c=GetConVar("lamarr_tracer")hook.Add("PreDrawOpaqueRenderables","DrawTracerBeam",function()for d,e in next,a do if e[3]<=0 then table.remove(a,d)return end;a[d][3]=a[d][3]-FrameTime()local f,g=e[1],e[2]cam.Start3D()render.SetMaterial(Material(c:GetString()))render.DrawBeam(e[1],e[2],4,1,1,e[4])cam.End3D()end end)hook.Add("HUDPaint","DrawTracer",function()for d,e in next,b do local h=e[1]:ToScreen()if e[2]<=0 then table.remove(b,d)return end;e[2]=e[2]-FrameTime()surface.SetDrawColor(255,255,255)surface.DrawLine(h.x-8,h.y-8,h.x-2,h.y-2)surface.DrawLine(h.x-8,h.y+8,h.x-2,h.y+2)surface.DrawLine(h.x+8,h.y-8,h.x+2,h.y-2)surface.DrawLine(h.x+8,h.y+8,h.x+2,h.y+2)end end)hook.Add("PlayerTraceAttack","BulletTracer",function(i,j,k,l)if not IsFirstTimePredicted()then return end;local m,n;m=l.HitPos;n=l.StartPos;table.insert(a,{m,n,5,Color(0,255,0),me:EyeAngles()})table.insert(b,{m,1})end)gameevent.Listen("player_hurt")hook.Add("player_hurt","Hitmarker",function(o)if o.attacker~=me:UserID()then return end;sound.PlayFile("hitmarker.wav","mono",function()end)end)
 
Сверху Снизу