Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hook.Add('HUDPaint', 'retaded_esp', function()
- for k, v in pairs(ents.GetAll()) do
- if v:IsPlayer() then
- if v:Alive() and v:GetPos() != Vector(0, 0, 0) then
- local pos1 = v:GetPos() + Vector(0, 0, 64);
- local pos2 = (pos1 + Vector(0, 0, 10)):ToScreen();
- local trace = {}
- trace.start = OurPos
- trace.endpos = pos1
- trace.filter = {LocalPlayer(), v};
- local tr = util.TraceLine( trace )
- if v:IsAdmin() then
- draw.SimpleText(v:Nick(), 'Trebuchet18', pos2.x, pos2.y, Color(255, 0, 0,255), 1, 1, 1)
- else
- draw.SimpleText(v:Nick(), 'Trebuchet18', pos2.x, pos2.y, Color(0, 255, 0,255), 1, 1, 1)
- end
- end
- end
- end
- end)
- local On = false
- local Glow
- function Night( on )
- function think()
- for k,v in pairs(ents.GetAll()) do
- local sep = string.Explode("_",v:GetClass())
- if sep[1] == "npc" or v:GetClass() == "player" then
- if Glow then
- v:SetMaterial("models/weapons/v_slam/new light1") end
- end
- if (sep[1] == "npc" or v:GetClass() == "player") and !on then
- v:SetMaterial("") end
- end
- end
- hook.Add("Think","ehyuj",think)
- local mul
- if on then mul = 1 On = true else mul = 0 On = false end
- if on then
- surface.PlaySound( "items/nvg_on.wav" ) else
- surface.PlaySound( "items/nvg_off.wav" ) end
- function Think()
- local ply = LocalPlayer()
- if ply:Crouching() then plyht = 32 else plyht = 64 end
- local dlight = DynamicLight( ply:EntIndex() )
- if ( dlight ) then
- dlight.Pos = ply:GetPos()+Vector( 0,0,plyht )
- dlight.r = 0
- dlight.g = 1 * mul
- dlight.b = 0
- dlight.Brightness = 0.01
- dlight.Size = 10000
- dlight.Decay = 5
- dlight.DieTime = CurTime() + 1
- end
- end
- hook.Add( "Think", "Think", Think )
- local function ArghItBurns()
- DrawBloom( 0, 1, 2, 2, 2, 3, 5*mul, 5*mul, 5*mul )
- end
- hook.Add( "RenderScreenspaceEffects", "NoMoreEyesForYou!", ArghItBurns )
- local function PUMPPPTEST()
- local tab = {}
- tab[ "$pp_colour_addr" ] = 0
- tab[ "$pp_colour_addg" ] = 0
- tab[ "$pp_colour_addb" ] = 0
- tab[ "$pp_colour_brightness" ] = 0.005*mul
- tab[ "$pp_colour_contrast" ] = 1
- tab[ "$pp_colour_colour" ] = 1
- tab[ "$pp_colour_mulr" ] = 0
- tab[ "$pp_colour_mulg" ] = 0
- tab[ "$pp_colour_mulb" ] = 0
- DrawColorModify( tab )
- end
- hook.Add( "RenderScreenspaceEffects", "RenderColorModifyPOO", PUMPPPTEST )
- end
- function TogNight()
- if On == true then On = false
- elseif On == false then On = true end
- Night( On )
- end
- concommand.Add( "nightvision", TogNight )
Add Comment
Please, Sign In to add comment