// Purpose: // Input : isbeingremoved - // *predicted - // Output : Returns true on success, false on failure. //----------------------------------------------------------------------------- bool CBeam::OnPredictedEntityRemove( bool isbeingremoved, C_BaseEntity *predicted ) { BaseClass::OnPredictedEntityRemove( isbeingremoved, predicted ); CBeam *beam = dynamic_cast< CBeam * >( predicted ); if ( !beam ) { // Hrm, we didn't link up to correct type!!! Assert( 0 ); // Delete right away since it's f****d up return true; } if ( beam->IsEFlagSet( EFL_KILLME ) ) { // Don't delete right away AddEFlags( EFL_KILLME ); return false; } // Go ahead and delete if it's not short-lived return true; }