blob: 3380fc759c5bca3ea92e4fa9a579e25493bdae18 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#include "cbase.h"
#include "entity_burn_effect.h"
IMPLEMENT_SERVERCLASS_ST_NOBASE( CEntityBurnEffect, DT_EntityBurnEffect )
SendPropEHandle( SENDINFO( m_hBurningEntity ) )
END_SEND_TABLE()
LINK_ENTITY_TO_CLASS( entity_burn_effect, CEntityBurnEffect );
CEntityBurnEffect* CEntityBurnEffect::Create( CBaseEntity *pBurningEntity )
{
CEntityBurnEffect *pEffect = static_cast<CEntityBurnEffect*>(CreateEntityByName( "entity_burn_effect" ));
if ( pEffect )
{
pEffect->m_hBurningEntity = pBurningEntity;
return pEffect;
}
else
{
return NULL;
}
}
int CEntityBurnEffect::UpdateTransmitState()
{
return SetTransmitState( FL_EDICT_FULLCHECK );
}
int CEntityBurnEffect::ShouldTransmit( const CCheckTransmitInfo *pInfo )
{
CBaseEntity *pEnt = m_hBurningEntity;
if ( pEnt )
return pEnt->ShouldTransmit( pInfo );
else
return FL_EDICT_DONTSEND;
}
|