• function GM:RenderScene
    4 replies, posted
[CODE]function GM:RenderScene( origin, angles, fov ) local lp = LocalPlayer() if( IsValid( lp ) ) then local tn = lp:Team() local breen = GetGlobalEntity( "Breen" ) if( IsValid( breen ) && lp != breen && ( tn == TEAM_COMBINE || tn == TEAM_SPECTATOR ) ) then --then we can draw breen's sprite render.SetMaterial( material_Protect ) render.DrawSprite( Vector( 0, 0, 85 ) + breen:GetPos(), 32, 32, COLOR_WHITE ) end end end[/CODE] It does not work and I do not know how to fix. This is part of code of the old gammode assassination for fretta [url=https://www.dropbox.com/sh/xcijsjg6aiees48/AAD610NT4TWN6AswI5ZVntQpa?dl=0]Dropbox[/url]
ok any errors?
[QUOTE=Author.;45797232]ok any errors?[/QUOTE] nope
I believe you have to start a 3D camera, but you shouldn't be using that hook for drawing shit anyway. Use PostDrawTranslucentRenderables
Sorry, you need to Log In to post a reply to this thread.