mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-08 11:01:33 +00:00
Merge ab1de254d1
into ceb6d4d783
This commit is contained in:
commit
f527511cf3
1 changed files with 1 additions and 11 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue