Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local cv=CreateConVar("cheesywallhack",0,false,false)
- local mat = Material("debug/debugdrawflat")
- local function applywep(e)
- if(!e.applied) then
- e.applied=true
- function e:RenderOverride()
- if(cv:GetBool()) then
- cam.IgnoreZ(true)
- render.SuppressEngineLighting(true)
- self:DrawModel()
- render.SuppressEngineLighting(false)
- cam.IgnoreZ(false)
- else
- self:DrawModel()
- end
- end
- end
- end
- local function apply(e)
- if(e.applied) then return end
- e.applied=true
- function e:RenderOverride()
- if(cv:GetBool()) then
- applywep(self:GetActiveWeapon())
- cam.IgnoreZ(true)
- render.SuppressEngineLighting(true)
- self:DrawModel()
- render.SuppressEngineLighting(false)
- cam.IgnoreZ(false)
- else
- self:DrawModel()
- end
- end
- end
- hook.Add("OnEntityCreated","apply",function(e)
- if(e:IsPlayer()) then
- apply(e)
- end
- end)
- hook.Add("HUDPaint","apply",function()
- if(!cv:GetBool()) then return end
- for k,v in pairs(player.GetAll()) do
- local tp=v:GetBonePosition(6):ToScreen()
- draw.SimpleText(v:Name(),"Default",tp.x,tp.y-5,team.GetColor(v:Team()),TEXT_ALIGN_CENTER)
- end
- end)
- for k,v in pairs(player.GetAll()) do
- apply(v)
- end
Advertisement
Add Comment
Please, Sign In to add comment