|
|
@ -973,15 +973,6 @@ qboolean CL_AddVisibleEntity( cl_entity_t *ent, int entityType ) |
|
|
|
if( !ent || !ent->model ) |
|
|
|
if( !ent || !ent->model ) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
|
|
// check for adding this entity
|
|
|
|
|
|
|
|
if( !clgame.dllFuncs.pfnAddEntity( entityType, ent, ent->model->name )) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// local player was reject by game code, so ignore any effects
|
|
|
|
|
|
|
|
if( RP_LOCALCLIENT( ent )) |
|
|
|
|
|
|
|
cl.local.apply_effects = false; |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// don't add the player in firstperson mode
|
|
|
|
// don't add the player in firstperson mode
|
|
|
|
if( RP_LOCALCLIENT( ent )) |
|
|
|
if( RP_LOCALCLIENT( ent )) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -991,6 +982,15 @@ qboolean CL_AddVisibleEntity( cl_entity_t *ent, int entityType ) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// check for adding this entity
|
|
|
|
|
|
|
|
if( !clgame.dllFuncs.pfnAddEntity( entityType, ent, ent->model->name )) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// local player was reject by game code, so ignore any effects
|
|
|
|
|
|
|
|
if( RP_LOCALCLIENT( ent )) |
|
|
|
|
|
|
|
cl.local.apply_effects = false; |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if( entityType == ET_BEAM ) |
|
|
|
if( entityType == ET_BEAM ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
ref.dllFuncs.CL_AddCustomBeam( ent ); |
|
|
|
ref.dllFuncs.CL_AddCustomBeam( ent ); |
|
|
|