Guest User

Untitled

a guest
Jul 21st, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.23 KB | None | 0 0
  1. hook.Add('HUDPaint', 'retaded_esp', function()
  2. for k, v in pairs(ents.GetAll()) do
  3. if v:IsPlayer() then
  4. if v:Alive() and v:GetPos() != Vector(0, 0, 0) then
  5. local pos1 = v:GetPos() + Vector(0, 0, 64);
  6. local pos2 = (pos1 + Vector(0, 0, 10)):ToScreen();
  7. local trace = {}
  8. trace.start = OurPos
  9. trace.endpos = pos1
  10. trace.filter = {LocalPlayer(), v};
  11. local tr = util.TraceLine( trace )
  12. if v:IsAdmin() then
  13. draw.SimpleText(v:Nick(), 'Trebuchet18', pos2.x, pos2.y, Color(255, 0, 0,255), 1, 1, 1)
  14. else
  15. draw.SimpleText(v:Nick(), 'Trebuchet18', pos2.x, pos2.y, Color(0, 255, 0,255), 1, 1, 1)
  16. end
  17. end
  18. end
  19. end
  20. end)
  21.  
  22. local On = false
  23. local Glow
  24. function Night( on )
  25.  
  26. function think()
  27. for k,v in pairs(ents.GetAll()) do
  28. local sep = string.Explode("_",v:GetClass())
  29. if sep[1] == "npc" or v:GetClass() == "player" then
  30. if Glow then
  31. v:SetMaterial("models/weapons/v_slam/new light1") end
  32. end
  33. if (sep[1] == "npc" or v:GetClass() == "player") and !on then
  34. v:SetMaterial("") end
  35. end
  36. end
  37. hook.Add("Think","ehyuj",think)
  38. local mul
  39. if on then mul = 1 On = true else mul = 0 On = false end
  40. if on then
  41. surface.PlaySound( "items/nvg_on.wav" ) else
  42. surface.PlaySound( "items/nvg_off.wav" ) end
  43.  
  44. function Think()
  45. local ply = LocalPlayer()
  46. if ply:Crouching() then plyht = 32 else plyht = 64 end
  47. local dlight = DynamicLight( ply:EntIndex() )
  48. if ( dlight ) then
  49. dlight.Pos = ply:GetPos()+Vector( 0,0,plyht )
  50. dlight.r = 0
  51. dlight.g = 1 * mul
  52. dlight.b = 0
  53. dlight.Brightness = 0.01
  54. dlight.Size = 10000
  55. dlight.Decay = 5
  56. dlight.DieTime = CurTime() + 1
  57. end
  58. end
  59. hook.Add( "Think", "Think", Think )
  60.  
  61.  
  62. local function ArghItBurns()
  63. DrawBloom( 0, 1, 2, 2, 2, 3, 5*mul, 5*mul, 5*mul )
  64. end
  65. hook.Add( "RenderScreenspaceEffects", "NoMoreEyesForYou!", ArghItBurns )
  66.  
  67. local function PUMPPPTEST()
  68.  
  69. local tab = {}
  70. tab[ "$pp_colour_addr" ] = 0
  71. tab[ "$pp_colour_addg" ] = 0
  72. tab[ "$pp_colour_addb" ] = 0
  73. tab[ "$pp_colour_brightness" ] = 0.005*mul
  74. tab[ "$pp_colour_contrast" ] = 1
  75. tab[ "$pp_colour_colour" ] = 1
  76. tab[ "$pp_colour_mulr" ] = 0
  77. tab[ "$pp_colour_mulg" ] = 0
  78. tab[ "$pp_colour_mulb" ] = 0
  79.  
  80. DrawColorModify( tab )
  81. end
  82. hook.Add( "RenderScreenspaceEffects", "RenderColorModifyPOO", PUMPPPTEST )
  83. end
  84.  
  85. function TogNight()
  86. if On == true then On = false
  87. elseif On == false then On = true end
  88. Night( On )
  89. end
  90. concommand.Add( "nightvision", TogNight )
Add Comment
Please, Sign In to add comment