-
-
Notifications
You must be signed in to change notification settings - Fork 8
[Bug] Robot team can see scottish resistance stickybomb #44
Copy link
Copy link
Open
Description
Robot team can see stickybomb when m_bDefensiveBomb is true
Why it happen - TF2 send FL_EDICT_ALWAYS when m_bDefensiveBomb is true:
https://github.com/ValveSoftware/source-sdk-2013/blob/master/src/game/shared/tf/tf_weapon_grenade_pipebomb.cpp#L1391C1-L1412C2
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 );
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels