entities disappear when head in ceiling

I demonstrate what I’m talking about here:

I think it’s another issue where I just need to be able to move the players eyeballs down
The RED player is the actual player, you can see his eyeballs are going too far into the ceiling which I think causes the entity culling
any tips on fixing?

Anyone have ideas on steps to fix this?

When you select a prop, get rid of the player-model and update the player view position.

Something like this / resize player:


	local min 		= Vector( -16 * scale, -16 * scale, 0 );
	local max 		= Vector( 16 * scale, 16 * scale, 64 * scale ); -- This isn't proper player scale, close enough though
	-- local maxduck	= Vector( 16 * scale, 16 * scale, 36 * scale );
	local stepsize  = math.Round( 18 * scale );
	_lp:SetModelScale( scale, 0 );
	_lp:SetRenderBounds( min, max ); --This should fix the player randomly disappearing.
	_lp:SetHull( min , max );
	-- Player:SetHullDuck( min , maxduck );
	_lp:SetViewOffset( Vector( 0, 0, 64 * scale ) );
	_lp:SetViewOffsetDucked( Vector( 0, 0, 32 * scale ) );
	_lp:SetStepSize( stepsize );
	if ( updatebones ) then _lp:SetupBones( ); end

_lp:SetViewOffset( Vector( 0, 0, 64 * scale ) );

This line did exactly what I’ve been trying to do for like 5 threads

Thanks.