diff --git a/dlls/func_break.cpp b/dlls/func_break.cpp index f1829d6ca..bc04c1c8b 100644 --- a/dlls/func_break.cpp +++ b/dlls/func_break.cpp @@ -792,6 +792,8 @@ class CPushable : public CBreakable // breakables use an overridden takedamage virtual int TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, float flDamage, int bitsDamageType ); + int DamageDecal(int bitsDamageType); + static TYPEDESCRIPTION m_SaveData[]; static const char *m_soundNames[3]; @@ -1044,3 +1046,11 @@ int CPushable::TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, floa return 1; } + +int CPushable::DamageDecal(int bitsDamageType) +{ + if (FBitSet(pev->spawnflags, SF_PUSH_BREAKABLE)) + return CBreakable::DamageDecal(bitsDamageType); + + return CBaseEntity::DamageDecal(bitsDamageType); +}