This commit is contained in:
speedvoltage 2025-03-29 21:43:58 +01:00 committed by GitHub
commit f527511cf3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,7 +45,6 @@ public:
void Spawn( void );
// Filter out damage messages that don't contain blast damage (impervious to other forms of attack)
int OnTakeDamage( const CTakeDamageInfo &info );
void Event_Killed( const CTakeDamageInfo &info );
void Blocked( CBaseEntity *pOther )
{
@ -70,19 +69,10 @@ END_DATADESC()
void CFuncTankTrain::Spawn( void )
{
m_takedamage = true;
m_takedamage = DAMAGE_YES;
BaseClass::Spawn();
}
// Filter out damage messages that don't contain blast damage (impervious to other forms of attack)
int CFuncTankTrain::OnTakeDamage( const CTakeDamageInfo &info )
{
if ( ! (info.GetDamageType() & DMG_BLAST) )
return 0;
return BaseClass::OnTakeDamage( info );
}
//-----------------------------------------------------------------------------
// Purpose: Called when the train is killed.