local model = ClientsideModel( "models/headcrabclassic.mdl" )
model:SetNoDraw( true )
hook.Add( "PostPlayerDraw" , "manual_model_draw_example" , function( ply )
if not IsValid( ply ) or not ply:Alive() then return end
local attach_id = ply:LookupAttachment( 'eyes' )
if not attach_id then return end
local attach = ply:GetAttachment( attach_id )
if not attach then return end
local pos = attach.Pos
local ang = attach.Ang
model:SetModelScale( 1.1, 0 )
pos = pos + ( ang:Forward() * 2.5 )
ang:RotateAroundAxis( ang:Right(), 20 )
model:SetPos( pos )
model:SetAngles( ang )
model:SetRenderOrigin( pos )
model:SetRenderAngles( ang )
model:SetupBones()
model:DrawModel()
model:SetRenderOrigin()
model:SetRenderAngles()
end )