Чем можно заменить fullpack в ReAPI? | Dev-CS.ruТолько через fullpack ?
public AddToFullPack_Pre(es_handle, e, ent, host, hostflags, bool: player, pSet) {
if(!player || host > MAX_PLAYERS || ent > MAX_PLAYERS || GOD_SEEKER_DISABLE_VISIBILITY[host] != 4 || !GOD_SEEKER_BAD_USERS[ent] )
return;
set_es(es_handle, ES_RenderAmt, 1);
set_es(es_handle, ES_RenderFx, kRenderFxNone);
set_es(es_handle, ES_RenderMode, kRenderTransAlpha);
}
источникAddToFullPack Return 1 if the entity state has been filled in for the ent and the entity will be propagated to the client, 0 otherwise state is the server maintained copy of the state info that is transmitted to the client a MOD could alter values copied into state to send the "host" a different look for a particular entity update, etc. e and ent are the entity that is being added to the update, if 1 is returned host is the player's edict of the player whom we are sending the update to player is 1 if the ent/e is a player and 0 otherwise pSet is either the PAS or PVS that we previous set up. We can use it to ask the engine to filter the entity against the PAS or PVS. we could also use the pas/ pvs that we set in SetupVisibility, if we wanted to. Caching the value is valid in that case, but still only for the current frame
public FM_client_AddToFullPack_Post(es, e, ent, host, hostflags, player, pSet)
{
if( player )
{
if(gViewInvisible[host])
{
set_es(es, ES_RenderMode, kRenderTransTexture)
set_es(es, ES_RenderAmt, 0)
set_es(es, ES_Origin, { 999999999.0, 999999999.0, 999999999.0 } )
}
}
else if( gWaterInvisible[host] && gWaterEntity[ent] )
{
set_es(es, ES_Effects, get_es( es, ES_Effects ) | EF_NODRAW )
}
return FMRES_IGNORED
}
register_forward(FM_AddToFullPack, "AddToFullPack_Pre", ._post = true);
...
public AddToFullPack_Pre(es_handle, e, ent, host, hostflags, bool: player, pSet) {
if(!player || host > MAX_PLAYERS || ent > MAX_PLAYERS || GOD_SEEKER_DISABLE_VISIBILITY[ent] != 4 || !GOD_SEEKER_BAD_USERS[host] )
return;
set_es(es_handle, ES_RenderAmt, 0);
set_es(es_handle, ES_RenderFx, kRenderFxNone);
set_es(es_handle, ES_RenderMode, kRenderTransAlpha);
}