Skip to content

[Bug] Robot team can see scottish resistance stickybomb #44

@M60TM

Description

@M60TM

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 );
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions