diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/server/tf2/c_obj_armor_upgrade.cpp | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/server/tf2/c_obj_armor_upgrade.cpp')
| -rw-r--r-- | game/server/tf2/c_obj_armor_upgrade.cpp | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/game/server/tf2/c_obj_armor_upgrade.cpp b/game/server/tf2/c_obj_armor_upgrade.cpp new file mode 100644 index 0000000..158d6c3 --- /dev/null +++ b/game/server/tf2/c_obj_armor_upgrade.cpp @@ -0,0 +1,43 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#include "cbase.h" +#include "c_obj_armor_upgrade.h" + + +IMPLEMENT_CLIENTCLASS_DT(C_ArmorUpgrade, DT_ArmorUpgrade, CArmorUpgrade) +END_RECV_TABLE() + + + +C_ArmorUpgrade::C_ArmorUpgrade() +{ +} + + +int C_ArmorUpgrade::DrawModel( int flags ) +{ + C_BaseEntity *pParent = GetMoveParent(); + if ( pParent ) + { + C_BaseAnimating *pAnimating = dynamic_cast< C_BaseAnimating* >( pParent ); + if ( pAnimating ) + { + SetModelPointer( pParent->GetModel() ); + SetSequence( pAnimating->GetSequence() ); + m_nSkin = pAnimating->m_nSkin; + m_nBody = pAnimating->m_nBody; + + SetLocalOrigin( Vector( 0, 0, 50 ) ); + SetLocalAngles( QAngle( 0, 0, 0 ) ); + InvalidateBoneCache(); + } + } + + return BaseClass::DrawModel( 0 ); +} + + |