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.
26 lines
589 B
26 lines
589 B
4 years ago
|
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||
|
#include "cbase.h"
|
||
|
|
||
|
#include "c_tf_tank_boss.h"
|
||
|
#include "tf_hud_boss_health.h"
|
||
|
#include "tf_gamerules.h"
|
||
|
|
||
|
|
||
|
IMPLEMENT_CLIENTCLASS_DT(C_TFBaseBoss, DT_TFBaseBoss, CTFBaseBoss)
|
||
|
RecvPropFloat( RECVINFO( m_lastHealthPercentage ) ),
|
||
|
END_RECV_TABLE()
|
||
|
|
||
|
|
||
|
LINK_ENTITY_TO_CLASS( base_boss, C_TFBaseBoss );
|
||
|
|
||
|
ShadowType_t C_TFBaseBoss::ShadowCastType( void )
|
||
|
{
|
||
|
if ( !IsVisible() )
|
||
|
return SHADOWS_NONE;
|
||
|
|
||
|
if ( IsEffectActive(EF_NODRAW | EF_NOSHADOW) )
|
||
|
return SHADOWS_NONE;
|
||
|
|
||
|
return SHADOWS_RENDER_TO_TEXTURE_DYNAMIC;
|
||
|
}
|