Exemplo n.º 1
0
int CHudMenu :: Init( void )
{
	gHUD.AddHudElem( this );

	HOOK_MESSAGE( ShowMenu );

	InitHUDData();

	return 1;
}
Exemplo n.º 2
0
bool CHudMenu::Init()
{
	gHUD.AddHudElem( this );

	HOOK_MESSAGE( ShowMenu );

	InitHUDData();

	return true;
}
Exemplo n.º 3
0
int CHudSayText :: Init( void )
{
	gHUD.AddHudElem( this );

	HOOK_MESSAGE( SayText );

	InitHUDData();

	CVAR_CREATE( "hud_saytext_time", "5", 0 );

	return 1;
}
Exemplo n.º 4
0
int CHudScoreboard :: Init( void )
{
	gHUD.AddHudElem( this );

	HOOK_MESSAGE( ScoreInfo );
	HOOK_MESSAGE( TeamScore );
	HOOK_MESSAGE( TeamInfo );

	InitHUDData();

	return 1;
}
Exemplo n.º 5
0
int CHudSayText::Init(void)
{
	gHUD.AddHudElem(this);

	HOOK_MESSAGE(SayText);

	InitHUDData();

	m_HUD_saytext      = gEngfuncs.pfnRegisterVariable("hud_saytext", "1", 0);
	m_HUD_saytext_time = gEngfuncs.pfnRegisterVariable("hud_saytext_time", "5", 0);

	return 1;
}
Exemplo n.º 6
0
int CHudSayText :: Init( void )
{
	gHUD.AddHudElem( this );

	HOOK_MESSAGE( SayText );

	InitHUDData();

	m_HUD_saytext =			gEngfuncs.pfnRegisterVariable( "hud_saytext", "1", 0 );
	m_HUD_saytext_time =	gEngfuncs.pfnRegisterVariable( "hud_saytext_time", "5", 0 );

	m_iFlags |= HUD_INTERMISSION; // is always drawn during an intermission

	return 1;
}
Exemplo n.º 7
0
int CHudSayText :: Init( void )
{
	gHUD.AddHudElem( this );

	HOOK_MESSAGE( SayText );

	InitHUDData();

	m_HUD_saytext = CVAR_REGISTER( "hud_saytext", "1", 0 );
	m_HUD_saytext_time = CVAR_REGISTER( "hud_saytext_time", "5", 0 );

	m_iFlags |= HUD_INTERMISSION; // is always drawn during an intermission

	return 1;
}
Exemplo n.º 8
0
int CHudScoreboard::Init(void)
{
	gHUD.AddHudElem(this);

	// Hook messages & commands here
	//HOOK_COMMAND( "+showscores", ShowScores );
	//HOOK_COMMAND( "-showscores", HideScores );

	HOOK_MESSAGE(ScoreInfo);
	HOOK_MESSAGE(TeamScore);
	HOOK_MESSAGE(TeamInfo);

	InitHUDData();

	cl_showpacketloss = CVAR_CREATE("cl_showpacketloss", "0", FCVAR_ARCHIVE);

	return 1;
}
Exemplo n.º 9
0
int CHudMenu :: Init( void )
{
	gHUD.AddHudElem( this );

	HOOK_MESSAGE( ShowMenu );
	HOOK_MESSAGE( VGUIMenu );
	HOOK_MESSAGE( BuyClose );
	HOOK_MESSAGE( AllowSpec );
	HOOK_COMMAND( "client_buy_open", OldStyleMenuOpen );
	HOOK_COMMAND( "client_buy_close", OldStyleMenuClose );
	HOOK_COMMAND( "showvguimenu", ShowVGUIMenu );

	_extended_menus = CVAR_CREATE("_extended_menus", "1", FCVAR_ARCHIVE);

	InitHUDData();

	m_bAllowSpec = true; // by default, spectating is allowed

	return 1;
}