diff options
Diffstat (limited to 'mp/src/game/shared/takedamageinfo.h')
| -rw-r--r-- | mp/src/game/shared/takedamageinfo.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mp/src/game/shared/takedamageinfo.h b/mp/src/game/shared/takedamageinfo.h index a18493e0..43dfdf49 100644 --- a/mp/src/game/shared/takedamageinfo.h +++ b/mp/src/game/shared/takedamageinfo.h @@ -64,6 +64,8 @@ public: Vector GetDamageForce() const; void SetDamageForce( const Vector &damageForce ); void ScaleDamageForce( float flScaleAmount ); + float GetDamageForForceCalc() const; + void SetDamageForForceCalc( const float flScaleAmount ); Vector GetDamagePosition() const; void SetDamagePosition( const Vector &damagePosition ); @@ -129,6 +131,8 @@ protected: EHANDLE m_hDamageBonusProvider; // Who gave us the ability to do extra damage? bool m_bForceFriendlyFire; // Ideally this would be a dmg type, but we can't add more + float m_flDamageForForce; + DECLARE_SIMPLE_DATADESC(); }; @@ -289,6 +293,16 @@ inline void CTakeDamageInfo::ScaleDamageForce( float flScaleAmount ) m_vecDamageForce *= flScaleAmount; } +inline float CTakeDamageInfo::GetDamageForForceCalc() const +{ + return m_flDamageForForce; +} + +inline void CTakeDamageInfo::SetDamageForForceCalc( float flDamage ) +{ + m_flDamageForForce = flDamage; +} + inline Vector CTakeDamageInfo::GetDamagePosition() const { return m_vecDamagePosition; |