Include this for f'ing with
This commit is contained in:
parent
69d9e0afb5
commit
19f008492e
|
@ -511,4 +511,20 @@ concommand.Add( "benny_dev_eyetrace", function( ply )
|
|||
local tr = ply:GetEyeTrace()
|
||||
print( string.format("Vector( %i, %i, %i )", math.Round( tr.HitPos.x ), math.Round( tr.HitPos.y ), math.Round( tr.HitPos.z ) ) )
|
||||
print( tr.Entity )
|
||||
end)
|
||||
end)
|
||||
|
||||
if game.GetMap():Left( 13 ) == "bennysurvive_" then
|
||||
local ourMat = Material( "color" )
|
||||
hook.Add("PostDraw2DSkyBox", "ExampleHook", function()
|
||||
local r, g, b = render.GetFogColor()
|
||||
r=(r+1)/255
|
||||
g=(g+1)/255
|
||||
b=(b+1)/255
|
||||
local v = Vector( r, g, b )
|
||||
render.OverrideDepthEnable( true, false ) -- ignore Z to prevent drawing over 3D skybox
|
||||
ourMat:SetVector( "$color", v )
|
||||
render.SetMaterial( ourMat )
|
||||
render.DrawScreenQuadEx( 0, 0, ScrW(), ScrH() )
|
||||
render.OverrideDepthEnable( false, false )
|
||||
end)
|
||||
end
|
Loading…
Reference in New Issue