local menu = {
moly = Menu.SwitchColor("Grenade Circle","Molotov Circle",false,Color.new(0.47,0.47,1)),
smoky = Menu.SwitchColor("Grenade Circle","Smoke Circle",false,Color.new(0.47,0.47,1)),
}
Cheat.RegisterCallback("draw", function()
local lp = EntityList.GetClientEntity(EngineClient.GetLocalPlayer())
if lp == nil then return end
local lp_pos = lp:GetProp("m_vecOrigin")
if menu.smoky:Get() then
local smoke = EntityList.GetEntitiesByName("CSmokeGrenadeProjectile")
if smoke == nil then return end
for i = 1, #smoke do
local smoky_pos = smoke[i]:GetProp("m_vecOrigin")
local ms = menu.smoky:GetColor()
if smoke[i]:GetProp("m_bDidSmokeEffect") and lp_pos:DistTo(smoky_pos) < 950 then
Render.Circle3D(smoky_pos, 58, 125, Color.new(ms.r, ms.g, ms.b, 1))
end
end
end
if menu.moly:Get() then
local molotov = EntityList.GetEntitiesByName("CInferno")
if molotov == nil then return end
for i = 1, #molotov do
local moly_pos = molotov[i]:GetProp("m_vecOrigin")
local mc = menu.moly:GetColor()
if lp_pos:DistTo(moly_pos) < 950 then
Render.Circle3D(moly_pos, 58, 145, Color.new(mc.r, mc.g, mc.b, 1))
end
end
end
end)