コード例 #1
0
ファイル: tf_viewmodel.cpp プロジェクト: Deathreus/TF2Classic
//-----------------------------------------------------------------------------
// Purpose
//-----------------------------------------------------------------------------
void CTFViewModel::FireEvent( const Vector& origin, const QAngle& angles, int event, const char *options )
{
	// Don't process animevents if it's not drawn.
	C_BasePlayer *pOwner = ToBasePlayer( GetOwner() );

	if ( !pOwner || pOwner->ShouldDrawThisPlayer() )
		return;

	BaseClass::FireEvent( origin, angles, event, options );
}