blob: b5af27eb7078b6ab26dca7d0190c0f171a5a2930 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
#include "cbase.h"
#include "tf_hintmanager.h"
#define TFHINTMANAGER_THINK_INTERVAL 1.0f
IMPLEMENT_SERVERCLASS_ST_NOBASE(CTFHintManager, DT_TFHintManager)
END_SEND_TABLE()
LINK_ENTITY_TO_CLASS( tf_hintmanager, CTFHintManager );
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
CTFHintManager::CTFHintManager( void )
{
}
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
void CTFHintManager::Spawn( void )
{
Precache();
}
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
void CTFHintManager::Think( void )
{
SetNextThink( gpGlobals->curtime + TFHINTMANAGER_THINK_INTERVAL );
}
//-----------------------------------------------------------------------------
// Purpose:
// Input : *player -
// hintID -
//-----------------------------------------------------------------------------
void CTFHintManager::AddHint( CBaseTFPlayer *player, int hintID, int priority, int entityIndex /*=0*/ )
{
// Send a message to the client side entity
}
//-----------------------------------------------------------------------------
// Purpose: Always send
// Input : **ppSendTable -
// *recipient -
// *pvs -
// clientArea -
// Output : Returns true on success, false on failure.
//-----------------------------------------------------------------------------
int CTFHintManager::UpdateTransmitState()
{
return SetTransmitState( FL_EDICT_ALWAYS );
}
|