int CTFGrenadePipebombProjectile::UpdateTransmitState()
{
if ( m_bDefensiveBomb )
{
return SetTransmitState( FL_EDICT_ALWAYS );
}
return BaseClass::UpdateTransmitState();
}
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
int CTFGrenadePipebombProjectile::ShouldTransmit( const CCheckTransmitInfo *pInfo )
{
if ( m_bDefensiveBomb )
{
return FL_EDICT_ALWAYS;
}
return BaseClass::ShouldTransmit( pInfo );
}
Robot team can see stickybomb when
m_bDefensiveBombis trueWhy it happen - TF2 send
FL_EDICT_ALWAYSwhenm_bDefensiveBombis true:https://github.com/ValveSoftware/source-sdk-2013/blob/master/src/game/shared/tf/tf_weapon_grenade_pipebomb.cpp#L1391C1-L1412C2