|
|
@ -970,6 +970,8 @@ all the visible entities should pass this filter |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
qboolean CL_AddVisibleEntity( cl_entity_t *ent, int entityType ) |
|
|
|
qboolean CL_AddVisibleEntity( cl_entity_t *ent, int entityType ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
qboolean draw_player = true; |
|
|
|
|
|
|
|
|
|
|
|
if( !ent || !ent->model ) |
|
|
|
if( !ent || !ent->model ) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
|
@ -979,7 +981,12 @@ qboolean CL_AddVisibleEntity( cl_entity_t *ent, int entityType ) |
|
|
|
cl.local.apply_effects = true; |
|
|
|
cl.local.apply_effects = true; |
|
|
|
|
|
|
|
|
|
|
|
if( !CL_IsThirdPerson( ) && ( ent->index == cl.viewentity )) |
|
|
|
if( !CL_IsThirdPerson( ) && ( ent->index == cl.viewentity )) |
|
|
|
return false; |
|
|
|
{ |
|
|
|
|
|
|
|
// we don't draw player in default renderer in firstperson mode
|
|
|
|
|
|
|
|
// but let the client.dll know about player entity anyway
|
|
|
|
|
|
|
|
// for use in custom renderers
|
|
|
|
|
|
|
|
draw_player = false; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// check for adding this entity
|
|
|
|
// check for adding this entity
|
|
|
@ -991,6 +998,9 @@ qboolean CL_AddVisibleEntity( cl_entity_t *ent, int entityType ) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( !draw_player ) |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
|
|
if( entityType == ET_BEAM ) |
|
|
|
if( entityType == ET_BEAM ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
ref.dllFuncs.CL_AddCustomBeam( ent ); |
|
|
|
ref.dllFuncs.CL_AddCustomBeam( ent ); |
|
|
|