You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
883 B
44 lines
883 B
5 years ago
|
//========= 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 );
|
||
|
}
|
||
|
|
||
|
|