Advertisement
LunaScripts

chams source

Aug 12th, 2016
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. CreateClientConVar ("chams","1", false ,false )
  2.  
  3. hook.Add("HUDPaint", "",function()
  4. if GetConVarNumber("chams") != 1 then return end
  5.  
  6. local v = player.GetAll()
  7.  
  8. for _,v in pairs( player.GetAll() ) do
  9.  
  10. if v != me and v:Alive() then
  11. cam.Start3D()
  12.  
  13.  
  14. cam.IgnoreZ(true)
  15. render.MaterialOverride(Material("models/debug/debugwhite"))
  16. render.SuppressEngineLighting( true )
  17.  
  18. local col = team.GetColor( v:Team() )
  19.  
  20. render.SetColorModulation( col.r/255, col.g/255, col.b/255 )
  21. v:DrawModel()
  22. render.SetColorModulation( 1, 1, 1 )
  23.  
  24. render.SuppressEngineLighting( false )
  25. render.MaterialOverride(0)
  26. cam.IgnoreZ(false)
  27.  
  28. cam.End3D()
  29.  
  30. end
  31. end
  32. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement